    html { -webkit-text-size-adjust: 100%; }
    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html, body {
      height: 100%;
      font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    }

    #page-container {
      display: flex;
      flex-direction: column;
      min-height: 100vh;
    }

    /* ===== Header / Nav (shared) ===== */
    header.site-header{
      background:#111;
      color:#fff;
    }
    .site-header .nav{
      display:flex;
      justify-content:space-between;
      align-items:center;
      gap:16px;
      max-width:1200px;
      margin:0 auto;
      padding:12px 16px;
    }
    .brand{
      display:flex;
      align-items:center;
      gap:10px;
      text-decoration:none;
      color:#fff;
    }
    .brand-mark{
      font-family:"Shojumaru", system-ui;
      font-size:28px;
      letter-spacing:.5px;
      white-space:nowrap;
    }
    .primary-nav{
      display:flex;
      align-items:center;
      gap:20px;
      list-style:none;
      margin:0;
      padding:0;
    }
    .primary-nav a{
      color:#fff;
      text-decoration:none;
      padding:8px 10px;
      border-radius:6px;
    }
    .primary-nav a:hover{ background:#222; }

    /* Dropdown */
    .has-submenu{ position:relative; }
    .submenu{
      display:none;
      position:absolute;
      top:100%;
      left:0;
      background:#1b1b1b;
      list-style:none;
      padding:8px 0;
      margin:6px 0 0;
      min-width:200px;
      border:1px solid #2c2c2c;
      border-radius:8px;
      z-index:50;
    }
    .submenu a{ display:block; padding:8px 12px; }
    .has-submenu:hover .submenu{ display:block; }


    main {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      background-color: #f4f4f4;
      padding: 2rem;
    }
    .description {
      text-align: center;
    }

    .hero-content h1 {
      font-size: 3rem;
      margin-bottom: 1rem;
    }

    .hero-content p {
      font-size: 1.25rem;
    }

   
    body {
      font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
      background: #f4f4f4;
      text-align: center;
      
    }
    #game-container {
      background: #fff;
      padding: 20px;
      border-radius: 8px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
      width:95%;
      height: 80%;
      margin: 0 auto;
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    /* Buttons for Submit and Show Answer */
    /*button {
      background-color: #28a745;
      color: white;
      padding: 5px 10px;
      font-size: 16px;
      border-radius: 8px;
      border: none;
      cursor: pointer;
      transition: all 0.3s ease;
      margin: 10px;
    }*/

    /*button:hover {
      background-color: #218838;
      transform: translateY(-2px);
    }*/
    #category{
      font-family: "Comic Sans MS", cursive, sans-serif;
      font-weight: bold;
    }

    #answer {
      border-radius: 10px;
      border: 4px solid black;
      background: linear-gradient(45deg, #f0f0f0, white);
      font-size: 1.5em;
      padding: 12px 16px;
      box-shadow: inset 0 0 0 3px #fff,
                  0 0 0 4px #fff,
                  3px -3px 6px rgba(0,0,0,0.2), 
                  -3px 3px 6px rgba(255,255,255,0.5);
      text-align: center;
      font-family: "Comic Sans MS", cursive, sans-serif;
      outline: none;
      display: block;
      margin: 20px auto;
      width: 75%;
    }
      
    #question {
      margin: 35px 0 50px 0;
      font-size: 18px;
    }
    #score, #timer {
      font-size: 16px;
      margin: 10px 0;
    }
    /* Style for Category Buttons */
    #category-buttons {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* Responsive columns */
      gap: 5px;
      width: 100%;
      max-width: 1200px;
      margin: 0 auto;
      justify-content: center;
    }

    #category-buttons button {
      font-size: 14px;
      font-weight: bold;
      font-family: "Comic Sans MS", cursive, sans-serif;;
      padding: 10px;
      border: 2px solid #ccc;
      background-color: #f9f9f9;
      cursor: pointer;
      border-radius: 6px;
      box-sizing: border-box;
      transition: background-color 0.3s ease, transform 0.2s ease;
    }

    /* Button Hover Effect */
    #category-buttons button:hover {
      background-color: #e0e0e0;
      transform: translateY(-2px);
    }

    /* For active button (when the category is selected) */
    #category-buttons button.active {
      background-color: #ffffff;
      box-shadow: 0 5px 15px rgba(255, 102, 0, 0.3);
    }

    #category {
      font-size: 42px;
      font-family: "Blaka",sans-serif;

    }
    #question{
      font-size: 24px;
    }
    #multipleChoiceBtn{
      background-color: #fff;
      border: 2px solid #422800;
      border-radius: 30px;
      box-shadow: #422800 4px 4px 0 0;
      color: #422800;
      cursor: pointer;
      display: inline-block;
      font-weight: 600;
      font-size: 18px;
      padding: 0 18px;
      line-height: 50px;
      text-align: center;
      text-decoration: none;
      user-select: none;
      -webkit-user-select: none;
      touch-action: manipulation;
      margin-top: 20px;

    }
    #multipleChoiceBtn:hover {
      background-color: #f9f9f9;
    }

    #multipleChoiceBtn:active {
      box-shadow: #422800 2px 2px 0 0;
      transform: translate(2px, 2px);
    }

    #freeResponseBtn{
      background-color: #fff;
      border: 2px solid #422800;
      border-radius: 30px;
      box-shadow: #422800 4px 4px 0 0;
      color: #422800;
      cursor: pointer;
      display: inline-block;
      font-weight: 600;
      font-size: 18px;
      padding: 0 18px;
      line-height: 50px;
      text-align: center;
      text-decoration: none;
      user-select: none;
      -webkit-user-select: none;
      touch-action: manipulation;
      margin-top: 20px;

    }
    #freeResponseBtn:hover {
      background-color: #f9f9f9;
    }

    #freeResponseBtn:active {
      box-shadow: #422800 2px 2px 0 0;
      transform: translate(2px, 2px);
    }
    .choice-button{
      background-color:#fff;
      border:2px solid #422800;
      border-radius:30px;
      box-shadow:#422800 4px 4px 0 0;
      color:#422800;
      cursor:pointer;
      font-weight:600;
      font-size:18px;
      line-height:50px;
      text-align:center;
      text-decoration:none;
      user-select:none;
      -webkit-user-select:none;
      touch-action:manipulation;
      width:100%;
      margin:8px 0;   /* consistent spacing */
      display:block;  /* keep only one display */
    }
    .choice-button:hover {
      background-color: #f9f9f9;
    }

    .choice-button:active {
      box-shadow: #422800 2px 2px 0 0;
      transform: translate(2px, 2px);
    }
    .choice-button.correct {
      text-shadow: 12px 12px 12px limegreen;
    }

    .choice-button.incorrect {
      text-shadow: 12px 12px 12px red;
    }
    #Submit {
      background-color: #fff;
      border: 2px solid #422800;
      border-radius: 30px;
      box-shadow: #422800 4px 4px 0 0;
      color: #422800;
      cursor: pointer;
      display: inline-block;
      font-weight: 600;
      font-size: 18px;
      padding: 0 18px;
      line-height: 50px;
      text-align: center;
      text-decoration: none;
      user-select: none;
      -webkit-user-select: none;
      touch-action: manipulation;
      margin-top: 20px;
    }

    #Submit:hover {
      background-color: #f9f9f9;
    }

    #Submit:active {
      box-shadow: #422800 2px 2px 0 0;
      transform: translate(2px, 2px);
    }

    @media (min-width: 768px) {
    #Submit {
        min-width: 120px;
        padding: 0 25px;
      }
    }

    #Show {
      background-color: #fff;
      border: 2px solid #422800;
      border-radius: 30px;
      box-shadow: #422800 4px 4px 0 0;
      color: #422800;
      cursor: pointer;
      display: inline-block;
      font-weight: 600;
      font-size: 18px;
      padding: 0 18px;
      line-height: 50px;
      text-align: center;
      text-decoration: none;
      user-select: none;
      -webkit-user-select: none;
      touch-action: manipulation;
      margin-top: 20px;
      margin-left: 20px;
    }

    #Show:hover {
      background-color: #f9f9f9;
    }

    #Show:active {
      box-shadow: #422800 2px 2px 0 0;
      transform: translate(2px, 2px);
    }

    @media (min-width: 768px) {
    #Show {
        min-width: 120px;
        padding: 0 25px;
      }
    }
    #score{
      margin-top: 50px;
      font-size: 24px;
    }
    #timer{
     
      font-size: 24px;
    }
    /* ===== Footer (2 columns) ===== */
.site-footer{ background:#111; color:#fff; padding:32px 16px 12px; }
.site-footer a{ color:#fff; text-decoration:none; }
.site-footer a:hover{ text-decoration:underline; }

.footer-inner.two-col{
  max-width:1200px; margin:0 auto;
  display:grid; grid-template-columns: 1.2fr 1fr;
  gap: 32px 28px; align-items:start;
}

/* Left column */
.footer-left{
  display:flex; flex-direction:column; align-items:center; text-align:center;
}
.footer-logo{
  font-family:"Shojumaru", system-ui, sans-serif;
  font-size:32px; line-height:1; margin:0;
}
.footer-tag{ margin-top:20px; opacity:.9; line-height:1.35; max-width:560px; }

/* 25px space BEFORE links list/socials block */
.links-block{ margin-top:25px; width:100%; }

/* Links list (inline + centered) */
.about-col ul{
  list-style:none; margin:0; padding:0;
  display:flex; gap:14px 18px; flex-wrap:wrap; justify-content:center;
}
.about-col li{ display:inline-flex; }
.about-col a{ padding:4px 0; opacity:.95; }

/* Socials under links, tighter gap than before */
.socials{
  list-style:none; margin:14px 0 0; padding:0;
  display:flex; justify-content:center; align-items:center; gap:12px; flex-wrap:wrap;
}
.socials li{ display:inline-flex; }
.socials a{ display:inline-flex; padding:6px; }

/* Right column (contact) */
.contact-col{ text-align:center; max-width:420px; justify-self:center; width:100%; }
.contact-col h4{ margin:0 0 10px; font-size:18px; }
#footer-contact{ display:flex; flex-direction:column; gap:10px; }
#footer-contact input, #footer-contact textarea{
  width:100%; padding:10px 12px; border-radius:8px; border:1px solid #2a2a2a;
  background:#1b1b1b; color:#fff; resize:vertical;
}
#footer-contact button{
  padding:10px 12px; border-radius:8px; border:1px solid #2a2a2a;
  background:#fff; color:#111; font-weight:600; cursor:pointer;
}
#footer-contact button:hover{ background:#e9e9e9; }
.fineprint{ font-size:.9rem; opacity:.8; }

/* Bottom bar */
.footer-bottom{
  max-width:1200px; margin:22px auto 0;
  display:flex; gap:12px; align-items:center; justify-content:space-between;
  border-top:1px solid #222; padding-top:12px;
}
.footer-bottom p{ margin:0 auto; text-align:center; flex:1; }
.back-to-top{ white-space:nowrap; }

.sr-only{
  position:absolute; width:1px; height:1px; margin:-1px; border:0; padding:0;
  clip:rect(0 0 0 0); overflow:hidden;
}

/* Responsive */
@media (max-width: 900px){
  .footer-inner.two-col{ grid-template-columns:1fr; }
  .contact-col{ justify-self:center; }
  .footer-bottom{ flex-direction:column; gap:10px; }
}
/* keep existing rules; add this */
.has-submenu.open .submenu { display: block; }

.title-outline {
  font-family: Shojumaru, system-ui;
  font-size: clamp(32px, 7vw, 72px);
  color: #fff;
  text-shadow:
    -10px -10px 0 #000, 10px -10px 0 #000,
    -10px  10px 0 #000, 10px  10px 0 #000,
     0px -10px 0 #000,  0px  10px 0 #000,
    -10px   0px 0 #000, 10px   0px 0 #000;
}
@media (max-width: 600px) {
  #game-container {
    width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    padding: 16px;
  }
  #answer { width: 100%; font-size: 16px; } /* 16px prevents iOS zoom-on-focus */
  #question { font-size: 18px; margin: 20px 0 28px; }
  #category { font-size: 28px; }
}
/* === Mobile-friendly sizing for Trivia === */
#category{ font-size: clamp(28px, 6vw, 42px); }
#question{ font-size: clamp(18px, 4.8vw, 24px); }
#score, #timer{ font-size: clamp(14px, 3.8vw, 16px); }

/* Wider, readable answer input */
#answer{
  width: min(92vw, 680px);
  font-size: 18px;                /* ≥16px prevents iOS zoom */
  margin-left: auto;
  margin-right: auto;
}

/* Make category buttons friendlier to tap on small screens */
#category-buttons{
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  max-width: 100%;
}
#category-buttons button{
  font-size: 16px;
  padding: 12px;
}