/* Import Inter Black */
@font-face {
    font-family: 'InterBlack';
    src: url('/fonts/inter-black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}
  
/* Import Open Sans */
/* @font-face {
    font-family: 'Open Sans';
    src: url('/static/fonts/OpenSans-VariableFont_wdth,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
} */
  
/* Set default fonts without @apply */
h1, h2{
    font-family: 'InterBlack', sans-serif;
}

/* body {
    font-family: 'Open Sans', sans-serif;
} */

/* Code Window */
.code-window {
    border: 1px solid #444;
    border-radius: 8px;
    overflow: hidden;
    background: #1e1e1e;
    width: 100%;
}

.code-window .header {
    display: flex;
    gap: 6px;
    padding: 4px 10px;
    background-color: #333;
    border-bottom: 1px solid #444;
}

.code-window pre {
    padding: 24px;
    margin: 0;
    overflow-x: auto;
}

.code-window .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    align-self: center;
}

.code-window .label {
    margin-left: auto;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.code-window .red { background: #ff5f56; }
.code-window .yellow { background: #ffbd2e; }
.code-window .green { background: #27c93f; }

@layer utilities {
  @media (max-width: 640px) {
    .px-12 { padding-left: 1rem !important; padding-right: 1rem !important; }
    .py-16 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
    .pt-16 { padding-top: 2rem !important; }
    .pb-16 { padding-bottom: 2rem !important; }
    .mb-16 { margin-bottom: 2rem !important; }
    .gap-12 { gap: 1.5rem !important; }
    .gap-16 { gap: 2rem !important; }
    .gap-8  { gap: 1rem !important; }
    .p-12   { padding: 1.5rem !important; }
    .pt-12  { padding-top: 1.5rem !important; }
    .pb-12  { padding-bottom: 1.5rem !important; }
    .px-32  { padding-left: 1rem !important; padding-right: 1rem !important; }
    .py-24  { padding-top: 2rem !important; padding-bottom: 2rem !important; }
    .md\:px-32 { padding-left: 1rem !important; padding-right: 1rem !important; }
  }
}

.logo-marquee {
  position: relative;
  overflow: hidden;
}

/* Edge fades. Gradient overlays are used instead of mask-image because
   WebKit (Safari) drops or flickers masked content when a child inside the
   mask is transform-animated. The section background is white. */
.logo-marquee::before,
.logo-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 8%;
  z-index: 1;
  pointer-events: none;
}

.logo-marquee::before {
  left: 0;
  background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0));
}

.logo-marquee::after {
  right: 0;
  background: linear-gradient(to left, #fff, rgba(255, 255, 255, 0));
}

.logo-marquee-track {
  display: flex;
  width: max-content;
  /* One filter/opacity on the whole track instead of one per image keeps
     Safari to a single compositing layer, which avoids tiles dropping out. */
  filter: brightness(0);
  opacity: 0.45;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  animation: logo-marquee-scroll 45s linear infinite;
}

.logo-marquee-group {
  display: flex;
  align-items: center;
  gap: 4rem;
  padding-right: 4rem;
}

/* --logo-scale shrinks a logo that looks larger than the others. */
.logo-marquee-item {
  height: calc(2.5rem * var(--logo-scale, 1));
  width: auto;
  flex-shrink: 0;
  user-select: none;
  -webkit-user-drag: none;
}

@keyframes logo-marquee-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (max-width: 640px) {
  .logo-marquee-group {
    gap: 2.5rem;
    padding-right: 2.5rem;
  }

  .logo-marquee-item {
    height: calc(1.75rem * var(--logo-scale, 1));
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-marquee-track {
    animation: none;
  }
}

/* Product themes from the Serverpod design system. Set data-theme on a page
   or a section and use the sp-* classes below; never hard-code product hex
   values. */
[data-theme="framework"] {
  --sp-hero-indigo: #1b2265;
  --sp-accent-from: #bae6fd;
  --sp-accent-to: #ec4899;
  --sp-action: #db2777;
  --sp-action-hover: #be185d;
  --sp-action-frame-bg: rgba(255, 255, 255, 0.05);
  --sp-action-frame-border: rgba(255, 255, 255, 0.1);
  --sp-action-gradient-0: #01010a;
  --sp-action-gradient-20: #020626;
  --sp-action-gradient-40: #11154c;
  --sp-action-gradient-60: #312872;
  --sp-action-gradient-80: #5d3a92;
  --sp-action-gradient-100: #954cb1;
  --sp-card-gradient-0: #000228;
  --sp-card-gradient-20: #020838;
  --sp-card-gradient-40: #0f1750;
  --sp-card-gradient-60: #232a6c;
  --sp-card-gradient-80: #3c3f8a;
  --sp-card-gradient-100: #5251a1;
}

[data-theme="cloud"] {
  --sp-hero-indigo: #141b56;
  --sp-accent-from: #bae6fd;
  --sp-accent-to: #4493e9;
  --sp-action: #1973d6;
  --sp-action-hover: #1561b4;
  --sp-action-frame-bg: rgba(255, 255, 255, 0.05);
  --sp-action-frame-border: rgba(255, 255, 255, 0.1);
  --sp-action-gradient-0: #000009;
  --sp-action-gradient-20: #020520;
  --sp-action-gradient-40: #0c1043;
  --sp-action-gradient-60: #1a236c;
  --sp-action-gradient-80: #2a3d96;
  --sp-action-gradient-100: #3761be;
  --sp-card-gradient-0: #091c52;
  --sp-card-gradient-20: #042262;
  --sp-card-gradient-40: #012f7c;
  --sp-card-gradient-60: #084c96;
  --sp-card-gradient-80: #266bb5;
  --sp-card-gradient-100: #3f87cc;
}

[data-theme="appstudio"] {
  --sp-hero-indigo: #0c0648;
  --sp-accent-from: #5affe6;
  --sp-accent-to: #9ad8ff;
  --sp-action: #007f8d;
  --sp-action-hover: #006a76;
  --sp-action-frame-bg: rgba(255, 255, 255, 0.15);
  --sp-action-frame-border: rgba(255, 255, 255, 0.2);
  --sp-action-gradient-0: #01010e;
  --sp-action-gradient-20: #040032;
  --sp-action-gradient-40: #001841;
  --sp-action-gradient-60: #003159;
  --sp-action-gradient-80: #004d79;
  --sp-action-gradient-100: #006f9d;
  --sp-card-gradient-0: #031241;
  --sp-card-gradient-20: #001a4c;
  --sp-card-gradient-40: #022b53;
  --sp-card-gradient-60: #03456a;
  --sp-card-gradient-80: #056186;
  --sp-card-gradient-100: #0b7aa1;
}

.sp-accent {
  background-image: linear-gradient(to right, var(--sp-accent-from), var(--sp-accent-to));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* An accent-filled shape with dark ink, such as a badge or a step node. */
.sp-accent-fill {
  background-image: linear-gradient(135deg, var(--sp-accent-from), var(--sp-accent-to));
  color: var(--sp-hero-indigo);
}

/* A light green shape with dark ink, to set steps apart from accent ones. */
.sp-green-fill {
  background-image: linear-gradient(135deg, #d9f99d, #4ade80);
  color: var(--sp-hero-indigo);
}

/* A thin vertical accent bar beside a pull quote, readable on light grounds. */
.sp-accent-bar {
  background-image: linear-gradient(to bottom, var(--sp-accent-to), var(--sp-action));
}

/* Headlines on light grounds are set in solid ink, without the accent. */
.sp-heading-ink .sp-accent {
  background-image: none;
  color: inherit;
}

.sp-action-frame {
  background: var(--sp-action-frame-bg);
  border: 1px solid var(--sp-action-frame-border);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.sp-action {
  background: var(--sp-action);
  color: #fff;
  transition: background-color 150ms ease;
}

.sp-action:hover {
  background: var(--sp-action-hover);
}

.sp-action-text {
  color: var(--sp-action);
}

.sp-hero-indigo {
  background: var(--sp-hero-indigo);
}

.sp-action-gradient {
  background: linear-gradient(
    to bottom,
    var(--sp-action-gradient-0) 0%,
    var(--sp-action-gradient-20) 20%,
    var(--sp-action-gradient-40) 40%,
    var(--sp-action-gradient-60) 60%,
    var(--sp-action-gradient-80) 80%,
    var(--sp-action-gradient-100) 100%
  );
}

.sp-card-gradient {
  background: linear-gradient(
    to bottom,
    var(--sp-card-gradient-0) 0%,
    var(--sp-card-gradient-20) 20%,
    var(--sp-card-gradient-40) 40%,
    var(--sp-card-gradient-60) 60%,
    var(--sp-card-gradient-80) 80%,
    var(--sp-card-gradient-100) 100%
  );
}

.sp-action-link {
  color: var(--sp-action);
}

.sp-action-link:hover,
.group:hover .sp-action-link {
  color: var(--sp-action-hover);
}

/* A one-line terminal command with an icon-only copy button, for cards. */
.blog-code.blog-code-compact {
  margin: 0;
}

.blog-code.blog-code-compact pre {
  padding: 12px 48px 12px 16px;
}

.blog-code.blog-code-compact .blog-code-copy {
  top: 9px;
  right: 9px;
}

.blog-code.blog-code-compact [data-copy-code-label] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
