body {
   font-family: 'Arial', sans-serif;
   background-color:#e1ff00;

   background-size: cover, cover;
   background-attachment: fixed;
   color: #4b2929;
   padding: 0;
   height: 100%; /* Ensure the body fills the viewport */
   margin: 0; /* Remove default margins */
   display: flex;
   flex-direction: column; /* Stack content vertically */
   overflow-x: hidden; /* Hides horizontal overflow */
}


.container {
   background-color: #fcfcfc;
   display: flex;
   flex-direction: column; /* Keeps content stacked vertically */
   align-items: center; /* Centers items horizontally */
   justify-content: flex-start; /* Centers content vertically */
   text-align: center; /* Ensures text stays centered */
   margin: 0px 10vh;
   min-height: 90vh; /* Adjust this value to increase overall height */
border-radius: 4vh;
}

h1 {
   font-size: 2.5rem;
   color: #b0d300;
   margin-bottom: 15px;
}

p {
   font-size: 1.2rem;
   line-height: 1.6;
   color: #000000;
   margin: 0px 0;
}

.quiz-container {
   display: flex;
   justify-content: flex-start; /* Aligns quizzes to the left */
   gap: 15px; /* Controls spacing between quizzes */
   flex-wrap: wrap; /* Ensures quizzes wrap if screen size is small */
   margin-left: 5%; /* Moves the whole row slightly to the left */
   margin-top: 20px;
   width: 90%; /* Keeps it from stretching too much */
   max-width: 1200px; /* Limits the maximum width */
}

.quiz-card-link {
   text-decoration: none; /* Remove default underline */
   color: inherit; /* Keep text color the same */
   display: block; /* Ensures it takes full width */
}

.quiz-card {
   background-color: #ffffff;
   border: 2px solid #aed100;
   border-radius: 8px;
   text-align: center;
   width: 17vw; /* Fixed width for each quiz */
   box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
   transition: transform 0.3s ease-in-out;
   height: 30vh;
}

.quiz-card:hover {
   transform: scale(1.05);
}

.quiz-card img {
   width: 100%; /* Makes image responsive */
   height: 80%; /* Fixed height to keep uniformity */
   object-fit: cover; /* Ensures images fit well */
   border-radius: 6px;
}

#quizcardtext {
   display: block;
   font-size: 1rem;
   font-weight: bold;
   color: #a7c900;
   text-decoration: none;
   padding-top: 4%;
   border-radius: 6px;
   transition: background-color 0.3s, color 0.3s;
   line-height: 1.3;
}

.quiz-card a:hover {
   background-color: #d4ff00;
   color: #fff;
}

@keyframes bounceIn {
  0% {
     transform: scale(0.3);
     opacity: 0;
  }
  50% {
     transform: scale(1.1);
     opacity: 1;
  }
  70% {
     transform: scale(0.9);
  }
  100% {
     transform: scale(1);
     opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
     transform: scale(1);
  }
  50% {
     transform: scale(1.05);
  }
}

.hamburger {
   display: none; /* Hidden by default on desktop */
   flex-direction: column;
   gap: 5px;
   cursor: pointer;
   margin-left: 20px;
}

.hamburger span {
   width: 30px;
   height: 5px;
   background-color: #fff;
   border-radius: 5px;
}

@media screen and (max-width: 1024px) {
 .container {
       max-width: 80%;
       width: 80%;
       text-align: center;
       background-color: #fcfcfc;
       border-radius: 10px;
       box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
       margin: auto; /* Centers container horizontally */
       display: flex;
       flex-direction: column;
       align-items: center; /* Centers content */
       justify-content: center;
       padding: 0vw 5vw;
       margin-bottom: 10vh;
   } 

   .quiz-container {
      display: flex;
      flex-wrap: wrap; /* Allows wrapping on smaller screens */
      justify-content: center; /* Centers horizontally */
      align-items: center;
      gap: 20px; /* Creates equal spacing between cards */
      width: 100%;
      padding-bottom: 2vh;

  }
  
  .quiz-card-link {
      text-decoration: none;
  }
  
  .quiz-card {
      width: 300px;  /* Set a fixed width */
      height: 220px; /* Set a fixed height */
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      background: #fff;
      border-radius: 10px;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
      text-align: center;
      margin-left: -4vw;
  }
  
  .quiz-card img {
      width: 100%;
      height: 79%; /* Makes all images the same height */
      object-fit: cover; /* Ensures images maintain aspect ratio */
      border-radius: 10px;
  }
  
  #quizcardtext {
      font-size: 1.3rem;
      font-weight: bold;
      padding-bottom: 1vh;
  }

  h1 {
   font-size: 9vw;  
}

   p {
       font-size: 5vw;
   }
}