/* Import Tally Text font */
/* Regular style */
@font-face {
  font-family: "Tally-Text";
  src: url("/fonts/Tally-Text/Tally-Text-Bold.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

/* Import Roboto font */
/* Regular style */
@font-face {
  font-family: "Roboto";
  src: url("/fonts/Roboto/Roboto-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

/* Regular italic style */
@font-face {
  font-family: "Roboto";
  src: url("/fonts/Roboto/Roboto-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
}

/* Bold style */
@font-face {
  font-family: "Roboto";
  src: url("/fonts/Roboto/Roboto-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

  body {
    font-family: "Roboto", cursive;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: #fff;
    color: #222;
    font-size: 1.2rem;
  }

  @media (prefers-color-scheme: dark) {
    body {
      background: #111111;
      color: #f5f5f5;
    }

    a {
      color: #7cb9ff;
    }
  }

  .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 6rem 2rem 2rem 2rem; /* ⬅️ Added top padding to offset fixed header */
    box-sizing: border-box;
  }

  h1,
  h2 {
    color: #fcdb3a; /* Default (assumes light mode) */
  }

  a {
    color: #0091ff;
    text-decoration: none;
  }

  @media (prefers-color-scheme: dark) {
    h1,
    h2 {
      color: #fcdb3a; /* Keep same or set another if desired */
    }

    a {
      color: #0091ff;
      text-decoration: none;
    }
  }

  @media (prefers-color-scheme: light) {
    h1,
    h2 {
      color: #155124; /* Override for light mode */
    }
    a {
      color: #007aff;
      text-decoration: none;
    }
  }

  h2 {
    margin-top: 2rem;
    scroll-margin-top: 100px; /* Adjust to match your header height */
  }

  a:hover {
    text-decoration: underline;
    color: #fcdb3a;
  }

  ul {
    padding-left: 20px;
  }

  li {
    margin-bottom: 0.5rem;
  }

  h1 {
    text-align: center;
    margin-bottom: 40px;
  }

  .header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff; /* Default for light mode */
    z-index: 1000;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  }

  @media (prefers-color-scheme: dark) {
    .header {
      background: #111; /* Dark mode background */
      box-shadow: 0 2px 4px rgba(255, 255, 255, 0.05); /* Optional: lighter shadow for dark mode */
    }
  }

  /* Logo + App Name container */
  .app-brand {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: inherit; /* This is what keeps it from being blue */
  }

  /* Logo */
  .app-logo {
    width: 50px;
    height: 50px;
    display: block;
  }

  /* App Name - visually centered with translate */
  .app-name {
    font-family: "Tally-Text", cursive;
    font-size: 1.7rem;
    font-weight: 400;
    transform: translateY(1.5px); /* 👈 manual adjustment */
  }

  #footer {
    text-align: center;
    margin-top: 40px;
    padding: 1rem;
    font-size: 0.95rem;
    color: #666;
  }