/* ==== Main Website Styles ==== */

body {
    /* font-family: 'Baloo 2', cursive; */
    background-color: #fffaf4;
    margin: 0;
    padding: 0;
    color: #402c1c;
  }
  
  .logo img {
    height: 70px;
    width: auto;
  }
  
  .section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 40px 5%;
    justify-content: center;
  }
  
  .section:nth-child(even) {
    flex-direction: row-reverse;
    background-color: #fef3e3;
  }
  
  .image-box {
    flex: 1 1 350px;
    padding: 10px;
  }
  
  .image-box img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .content-box {
    flex: 1 1 350px;
    padding: 10px;
  }
  
  .content-box h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #c1440e;
  }
  
  .ingredients {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }
  
  .desc {
    font-size: 1.1rem;
    color: #5e412f;
    line-height: 1.5;
  }
  
  /* ==== Navbar ==== */
  
  .navbar {
    background-color: rgba(139, 0, 0, 0.8);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    height: 70px;
  }
  
  .logo {
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 1px;
  }
  
  .nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
  }
  
  .nav-links li a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s, transform 0.3s;
  }
  
  .nav-links li a:hover {
    color: #ffd700;
    transform: scale(1.1);
  }
  
  /* Mobile menu button */
  .menu-toggle {
    display: none;
    cursor: pointer;
    color: white;
    font-size: 1.5rem;
    background: none;
    border: none;
    padding: 5px;
  }
  
  /* ==== About Bihar Food Section ==== */
  
  .about-bihar-food {
    background-color: #ffffff;
    padding: 50px 20px;
    text-align: center;
    color: #4a2c1a;
    line-height: 1.8;
    max-width: 1000px;
    margin: auto;
    font-size: 1.2rem;
  }
  
  .about-bihar-food h2 {
    font-size: 2.5rem;
    color: #c1440e;
    margin-bottom: 20px;
  }
  
  /* ==== Bihar Quiz Section ==== */
  
  #bgVideo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(50%);
  }
  
  .quiz-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.15);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    text-align: center;
    width: 90%;
    max-width: 500px;
    color: #fff;
    z-index: 1;
  }
  
  .quiz-container h2 {
    margin-bottom: 15px;
    font-size: 1.8rem;
    color: #fff;
  }
  
  #start-screen h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ffd700;
  }
  
  .quiz-container button {
    padding: 10px 20px;
    background-color: #ffd700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    margin: 10px 5px;
    transition: background 0.3s ease;
  }
  
  .quiz-container button:hover {
    background-color: #e6c200;
  }
  
  #options button {
    display: block;
    margin: 10px auto;
    width: 80%;
    padding: 10px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background-color: #fef3e3;
    color: #402c1c;
    font-weight: bold;
  }
  
  #options button:hover {
    background-color: #f5dcb0;
  }
  
  #options button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
  }
  
  .quiz-image {
    width: 250px;
    height: auto;
    margin-bottom: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  }
  
  .hide {
    display: none;
  }
  
  #quiz-summary h3 {
    margin-top: 30px;
    font-size: 24px;
    color: #8B0000;
    text-align: center;
  }
  
  #quiz-summary {
    padding: 20px;
    margin-top: 20px;
    max-height: 70vh;
    overflow-y: auto;
  }
  
  
  /* ==== Quiz Summary Section Styling ==== */
  #result-screen {
    background-color: rgba(255, 250, 240, 0.95);
    padding: 30px;
    border-radius: 15px;
    margin: 30px auto;
    max-width: 800px;
    color: #402c1c;
    font-family: roboto;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  }
  
  #quiz-summary h3 {
    font-size: 2rem;
    color: #c1440e;
    margin-bottom: 20px;
  }
  
  #quiz-summary div {
    background-color: #fff5e1;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    line-height: 1.6;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  }
  
  #quiz-summary strong {
    color: #8b4513;
  }
  
  #quiz-summary span {
    font-weight: bold;
  }
  
  
  .modal {
    display: none;
    position: fixed;
    z-index: 100;
    padding-top: 120px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
  }
  
  .modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
  }
  
  .close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
  }
  
  .close:hover {
    color: red;
  }
  
  .food-slider-section {
    padding: 40px 20px;
    background: #fdf5e6;
    text-align: center;
    font-family: 'Baloo 2', cursive;
    overflow: hidden;
  }
  
  .food-slider-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #8b0000;
  }
  
  .food-slider {
    display: flex;
    gap: 20px;
    width: max-content; /* important for infinite scroll */
    animation: scrollSlider 40s linear infinite;
  }
  
  .food-slider a {
    flex-shrink: 0;
    height: 200px;
  }
  
  .food-slider img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  }
  
  .food-slider img:hover {
    transform: scale(1.05);
  }
  
  footer {
    background-color: #222;
    color: #fff;
    padding: 40px 20px;
    font-family: 'Arial', sans-serif;
  }
  
  .footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 30px;
  }
  
  .footer-section {
    flex: 1 1 200px;
  }
  
  .footer-section h2 {
    color: #f7c200;
    margin-bottom: 10px;
  }
  
  .footer-section p {
    margin: 5px 0;
    font-size: 14px;
  }
  
  .footer-section.social img {
    margin-right: 10px;
    margin-top: 10px;
    vertical-align: middle;
  }
  
  .footer-bottom {
    text-align: center;
    border-top: 1px solid #555;
    padding-top: 20px;
    margin-top: 30px;
    font-size: 14px;
    color: #ccc;
  }






  /* Keyframes for infinite seamless scroll */
  @keyframes scrollSlider {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-50% - 7 * 20px)); /* 50% of slider width + total gap width */
    }
  }
  
  
  /* ==== Responsive Design ==== */
  
  @media screen and (max-width: 950px) {
    .content-box h2 {
      font-size: 1.8rem;
    }
    
    .ingredients {
      font-size: 1.3rem;
    }
    
    .desc {
      font-size: 1rem;
    }
    
    .about-bihar-food h2 {
      font-size: 2rem;
    }
    
    .about-bihar-food p {
      font-size: 1rem;
    }
  }
  
  @media screen and (max-width: 768px) {
    .menu-toggle {
      display: block;
    }
    
    .nav-links {
      position: fixed;
      top: 100px;
      left: 0;
      right: 0;
      background-color: rgba(139, 0, 0, 0.95);
      flex-direction: column;
      align-items: center;
      padding: 20px 0;
      transform: translateY(-150%);
      transition: transform 0.3s ease;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
    
    .nav-links.active {
      transform: translateY(0);
    }
    
    .section {
      flex-direction: column;
      text-align: center;
    }
    
    .section:nth-child(even) {
      flex-direction: column;
    }
    
    .image-box {
      margin-bottom: 20px;
    }
    
    .food-slider a {
      width: 250px;
      height: 170px;
    }
    
    .food-slider img {
      width: 250px;
      height: 170px;
    }
    
    .footer-section {
      flex: 1 1 100%;
      text-align: center;
      margin-bottom: 20px;
    }
  }
  
  @media screen and (max-width: 480px) {
    .navbar {
      padding: 10px 15px;
    }
    
    .logo img {
      height: 50px;
    }
    
    .content-box h2 {
      font-size: 1.5rem;
    }
    
    .ingredients {
      font-size: 1.1rem;
    }
    
    .desc {
      font-size: 0.9rem;
    }
    
    .about-bihar-food h2 {
      font-size: 1.8rem;
    }
    
    .about-bihar-food p {
      font-size: 0.9rem;
      line-height: 1.6;
    }
    
    .food-slider a {
      width: 200px;
      height: 140px;
    }
    
    .food-slider img {
      width: 200px;
      height: 140px;
    }
    
    .modal-content {
      max-width: 95%;
    }
  }