body,
:root {
    --sl-color-accent: #E00034;
    --sl-color-text-accent: var(--sl-color-accent);
    --sl-color-text-invert: #fff;
    --sl-color-gray-5: #4c4c4c;
    --sl-color-gray-6: #2e2e2e;
    --sl-font-system: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 
        'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 
        'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    --sl-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 
        'Liberation Mono', 'Courier New', monospace;
}

body {
    font-family: var(--sl-font-system);
    margin: 0;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.sl-link-button {
    border-radius: 0.5rem !important;
    padding: 0.75rem 1rem !important;
    color: #fff !important;
}

[data-theme="light"] .sl-link-button.minimal {
    color: #000 !important;
}

[data-theme="light"] header.header {
    border-top: 3px solid #E00034;
}

[data-theme="light"] .sl-link-button.secondary {
    border-color: #fff !important;
    background-color: #fff !important;
    color: #000 !important;
}

@media screen and (min-width: 1500px) {
    :root {
        --sl-sidebar-width: 24rem;
    }
}

  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  .custom-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .custom-intro .logo {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
  }

  .custom-intro .text-wrapper {
    padding: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.2s forwards;
  }

  .custom-intro .restricted-content {
    text-align: center;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.4s forwards;
  }

  .custom-intro .text-wrapper h1 {
    margin-top: 0;
    margin-bottom: 1rem;
    text-align: center;
    color: #fff;
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
  }

  .custom-intro .text-wrapper p {
    text-align: center;
    font-size: 0.8rem;
    color: #fff;
  }

  .custom-intro .restricted-content p {
    padding: 0 1rem;
    color: #fff;
  }

  .custom-intro .key {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background-color: var(--sl-color-gray-6);
    border: 1px solid var(--sl-color-gray-5);
    border-radius: 4px;
    font-family: var(--sl-font-mono);
    font-size: 0.9em;
    box-shadow: 0 2px 0 var(--sl-color-gray-5);
    color: #fff;
  }

  [data-theme="light"] .custom-intro .key {
    background-color: #f4f4f4;
    border-color: #ddd;
    box-shadow: 0 2px 0 #ddd;
    color: #333;
  }

  .animation {
    position: relative;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 200vh;
    margin: 0 auto;
    overflow: hidden;
    z-index: 1;
  }

  .animation svg {
    position: fixed;
    top: -80vh;
    left: 0;
    width: 100vw;
    height: 200vh;
  }

  .logo img {
    width: 220px;
    margin: 2rem 0;
  }

  .custom-intro-background {
    margin-top: 0 !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-color: #000;

    img {
      margin-top: 0 !important;
      object-fit: cover;
      object-position: top;
      width: 100%;
      height: 100%;
      opacity: 0;
      animation: fadeIn 5s ease-out forwards;
      z-index: -1;
    }
  }

  [data-theme="light"] .custom-intro-background {
    background-color: #fff;
  }

  body:has(.custom-intro) .content-panel:first-of-type,
  body:has(.custom-intro) footer {
    display: none;
    border: none;
  }

  body:has(.custom-intro) .header {
    transform: translateY(-100px);
  }

  body:has(.custom-intro) .content-panel {
    border: none;
  }

  body:has(.custom-intro) .main-frame {
    padding: 0;
  }

  /* Add these styles for the concentric animation */
  .concentric-container {
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    opacity: 1;
    transition: opacity 0.1s ease;
  }

  .ring {
    opacity: 0.1;
    fill: none;
    stroke: var(--sl-color-accent);
    stroke-width: 1;
    transform-origin: center;
    animation: pulse 4s ease-in-out infinite;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
  }

  .ring:nth-child(1) { animation-delay: 0.0s; }
  .ring:nth-child(2) { animation-delay: 0.2s; }
  .ring:nth-child(3) { animation-delay: 0.4s; }
  .ring:nth-child(4) { animation-delay: 0.6s; }
  .ring:nth-child(5) { animation-delay: 0.8s; }
  .ring:nth-child(6) { animation-delay: 1.0s; }
  .ring:nth-child(7) { animation-delay: 1.2s; }
  .ring:nth-child(8) { animation-delay: 1.4s; }
  .ring:nth-child(9) { animation-delay: 1.6s; }
  .ring:nth-child(10) { animation-delay: 1.8s; }

  @keyframes pulse {
    0% { opacity: 0.1; }
    50% { opacity: .6; }
    100% { opacity: 0.1; }
  }

  /* Add scroll animation script */

  /* Add these CSS variables for theme support */
  :root {
    --sl-color-accent: #E00034;
    --sl-color-text-accent: var(--sl-color-accent);
    --sl-color-text-invert: #fff;
    --sl-color-gray-5: #4c4c4c;
    --sl-color-gray-6: #2e2e2e;
  }

  /* Fix logo visibility */
  [data-theme="light"] .light\:sl-hidden {
    display: none;
  }

  [data-theme="dark"] .dark\:sl-hidden {
    display: none;
  }

  /* Add text colors */
  .custom-intro .text-wrapper h1 {
    margin-top: 0;
    margin-bottom: 1rem;
    text-align: center;
    color: #fff;
    font-size: 2.5rem;
  }

  .custom-intro .text-wrapper p {
    text-align: center;
    font-size: 0.8rem;
    color: #fff;
  }

  .custom-intro .restricted-content p {
    color: #fff;
  }

  [data-theme="light"] .custom-intro .text-wrapper h1,
  [data-theme="light"] .custom-intro .text-wrapper p,
  [data-theme="light"] .custom-intro .restricted-content p {
    color: #000;
  }