/* Base Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    color: #4b2929;
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
  }
  
  /* Animations */
  @keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  @keyframes slideIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .container {
    width: 100%;
    text-align: center;
    line-height: 1.5;
  }
  
  /* Header Section */
  .background-section {
    background: url('header-image.jpg') center/cover no-repeat;
    color: #fff;
    margin-top: -40px;
    padding-bottom: 3vh;
  }
  
  .section {
    padding-left: 18vh;
    width: 50vw;
  }
  
  .homeintro {
    font-size: 39px;
    line-height: 1.3;
    margin-left: 150px;
    font-weight: bold;
    text-align: left;
    color: #000;
  }
  
  .underhomeintro {
    font-size: 23px;
    margin-left: 150px;
    text-align: left;
    color: #2e2e2e;
  }
  
  /* Featured Quizzes Section */
  .featured-quizzes {
    background-color: #fff;
    margin: -3vh auto 5vh;
    padding: 0 7rem;
  }
  
  #featuredquiztitle {
    font-size: 2.9rem;
    background: linear-gradient(90deg, #ffffff, #ff8888, #7878ff, #ffd17c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .featured-quizzes h2 {
    text-align: center;
    font-size: 2rem;
  }
  
  .featured-list {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: center;
    margin-top: 5vh;
  }
  
  .featured-item {
    width: 30vw;
    height: 45vh;
    background-color: #dedede;
    border: 1px solid #a1a1a1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  }
  
  .featured-item:hover {
    transform: translateY(-5px);
  }
  
  .featured-image {
    width: 100%;
    height: 70%;
    display: block;
    object-fit: cover;
  }
  
  .quiz-caption {
    text-align: center;
    margin-top: 1vh;
    font-size: 1.5rem;
    line-height: 1.2;
    font-weight: bold;
    padding: 0 3vw;
    color: #000;
  }
  
  /* Headings */
  h1 {
    font-size: 48px;
    margin: 0px 0;
    margin-bottom: -1vh;
    padding-top: 60px;
    font-weight: bold;
    animation: fadeIn 1.5s ease-in-out;
    background: linear-gradient(240deg, #ffffe1, #bce2ff, #ffcbcb, #c5ffc5, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  h2, h3, h4, h5, h6 {
    font-size: 25px;
    margin-bottom: -10px;
    animation: fadeIn 1.5s ease-in-out;
  }
  
  h2 { 
    color: #ff38ac;
    padding-top: 10px;
  }
  
  h3 { color: #636df7; }
  h4 { color: #c8d600; }
  h5 { color: #17ff5c; margin-top: 30px; }
  h6 { color: #00bbff; margin-top: 30px; }
  
  p {
    font-size: 20px;
    margin-bottom: 30px;
    color: #000;
    animation: fadeIn 2s ease-in-out;
  }
  
  /* Quiz List */
  .quiz-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 80%;
    margin: 20px auto 0;
  }
  
  .quiz-item {
    position: relative; /* Establish positioning context */
    background-color: #fff;
    border: 1px solid #d1d1d1;
    border-radius: 12px;
    padding: 20px;
    margin: 15px;
    width: 250px;
    box-shadow: 0 7px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: slideIn 1s ease;
    cursor: pointer;
  }

  /* Pseudo-element for the dark overlay */
.quiz-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Adjust opacity as needed */
    z-index: 1;
    border-radius: 12px;
  }
  
  /* Ensure that the inner content sits above the overlay */
.quiz-item > * {
    position: relative;
    z-index: 2;
  }
  
  .quiz-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }

  .quiz-item p {
    color: white;
    z-index: 2;
  }
  
  .quiz-icon {
    font-size: 55px;
    margin: 20px 0 -30px;
    text-align: center;
    z-index: 2;
  }
  
  /* Buttons */
  button {
    background-color: #ffffff;
    color: #000000;
    border: none;
    padding: 14px 27px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    font-size: 16px;
  }
  
  button:hover {
    background-color: #444;
    transform: scale(1.05);
  }
  
  /* About Us */
  .about-us {
    background-color: #000;
    padding: 5px 20vw;
    text-align: center;
    box-shadow: 0 4px 30px rgba(43, 255, 142, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: slideIn 1s ease;
  }
  
  .about-us h2 {
    font-size: 45px;
    margin: 10px 0 15px;
    background: linear-gradient(270deg, #ffff47, #2da4ff, #ff7f7f, #86ff86, #e49da9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeIn 1.5s ease-in-out;
  }
  
  .about-us p {
    font-size: 1.2rem;
    line-height: 2;
    color: #fff;
    margin-bottom: 15px;
    animation: fadeIn 2s ease-in-out;
    text-align: left;
  }
  
  .ceo-section {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: -10px;
  }
  
  .ceo-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
  }
  
  /* Browse by Category Title */
  #browsebycategorytitle {
    font-size: 2.7rem;
    background: linear-gradient(90deg, #6adfff, #c19d00, #00fffb, #ffd17c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 2vh;
  }
  
  /* Reviews Section */
  .reviews-section {
    margin: 30px auto 90px;
    text-align: center;
    padding: 0 15vw 30px;
    background-color: #e1e1e1;
    border-radius: 10px;
    box-shadow: 0 4px 30px rgba(255, 112, 2, 0.3);
  }
  
  .reviews-section h2 {
    font-size: 45px;
    margin: 2vh 0 15px;
    background: linear-gradient(270deg, #ffff47, #0994ff, #ff9898, #1aff1a, #ff7e94);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeIn 1.5s ease-in-out;
  }
  
  .review {
    margin-bottom: 20px;
    padding: 20px 7vw;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.7;
  }
  
  .review-text {
    font-size: 1.3rem;
  }
  
  .review-author {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: bold;
    color: #333;
  }
  
  .reviewer-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
  }

  @media only screen and (max-width: 1024px) {
    /* Container and Overall Layout */
    .container {
    padding: 0; 
    margin: 0;   
    overflow-x: hidden;
}

.background-section {
    background: url('header-image.jpg') 45% center/cover no-repeat;
    text-align: center;
    height: 110vw;
  }
  
    .section {
      padding-left: 10vw;
      padding-top: 1vh;
      width: 79vw;
      text-align: left;
    }
    
    /* Header Section */
    .homeintro, .underhomeintro {
      margin-left: 0;
    }
    .homeintro {
      font-size: 7vw;
    }
    .underhomeintro {
      font-size: 5vw;
    }
    h1 {
      font-size: 9vw;
      padding-top: 8vh;
      text-align: center;
    }

    #featuredquiztitle {
        font-size: 2rem;
    }

    h2, h3, h4, h5, h6 {
      font-size: 1.7rem;
    }

    p {
      font-size: 1.2rem;
      margin-bottom: 20px;
    }
    
    /* Featured Quizzes Section */
    .featured-quizzes {
      padding: 0 1rem;
    }
    .featured-list {
      gap: 1rem;
      flex-direction: column;
      align-items: center;
      margin-top: 3vh;
    }
    .featured-item {
      width: 90vw;
      height: 35vh;
    }
    .featured-image {
object-fit: cover;    
}
    .quiz-caption {
      font-size: 1.3rem;
      padding: 0 1rem;
    }
    
    /* Quiz List Section */
    .quiz-list {
      flex-direction: column;
      gap: 1rem;
    }
    .quiz-item {
      width: 85vw;
      margin: 1vw -6.5vw;
      padding: 15px;
    }
    .quiz-icon {
      font-size: 5rem;
    }
    button {
      padding: 10px 20px;
      font-size: 1.2rem
    }
    
    /* About Us Section */
    .about-us {
      padding: 5px 8vw;
    }
    .about-us h2 {
      font-size: 2rem;
    }
    .about-us p {
      font-size: 1.2rem;
    }
    .ceo-section {
      flex-direction: column;
      justify-content: center;
    }
    .ceo-image {
      width: 23vw;
      height: 12vh;
      margin: 0 auto;
      margin-top: 1vh;
    }
    
    /* Browse by Category Title */
    #browsebycategorytitle {
      font-size: 2rem;
      margin-bottom: 1vh;
    }
    
    /* Reviews Section */
    .reviews-section {
      padding: 0 5%;
      padding-bottom: 1vh;
      width: 90vw;
    }
    .reviews-section h2 {
      font-size: 2rem;
    }
    .review {
      padding: 15px 5%;
    }
    .review-text {
      font-size: 1.2rem;
    }
    .review-author {
      font-size: 14px;
    }
    .reviewer-photo {
      width: 10vh;
      height: 18vw;
    }

    .reviews-section span{
        font-size: 1.1rem;
      }
  }