/* general styles */
html {
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    background-color: #dbd6d6;
  }
  
  body {
    height: auto;
    margin: 0;
    background-color: #f5f5f5;
    background: url("../images/Anime-scenery.webp") no-repeat center/cover;
  }
  .paddingBottom {
    padding-bottom: 350px;
  }
  
  /* header styles */
  h1:hover {
    animation: spin 2s ease;
    animation-iteration-count: 1;
  }
  
  .header {
    background-color: #f5f5f5;
    padding-bottom: 2px;
    text-align: center;
    background-color: #dbd6d6;
  }
  h2 {
    margin-top: 5%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    color: #f5f5f5;
    font-family: "Public Sans";
    font-size: 28px;
  }  
  /* page content styles */
  /* structure the title */

  .title {
    background-color: #4f4f4f;
    padding: 7px;
    border: 3px solid #f5f5f5;
    border-radius: 8px;
    color: #f5f5f5;
    font-family: "Kanit";
    max-width: 90%;
  }
  
  .landing-page-title {
    background-color: #4f4f4f;
    padding: 7px;
    border: 3px solid #f5f5f5;
    border-radius: 8px;
    width: 40%;
    height: 40%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    color: #f5f5f5;
    margin-top: 8%;
    font-family: "Kanit";
    font-size: 110%;
    max-width: 90%;
  }
  
  /* style buttons on landing page */
  .btn-container {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    width: 70%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 100px;
    font-family: "Kanit";
  }
  
  .btn-big {
    height: 130px;
    width: 140px;
    font-size: 28px;
  }
  
  /* add animations to the buttons for better interactivity */
  .btn-big:hover {
    transition-duration: 800ms;
    transform: scale(1.1);
  }
  
  @keyframes spin {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
  }
  
  /* rules pages styles */
  /* styles for the container of the rules div */
  .rules-container {
    height: auto;
    width: 60%;
    font-family: "Kanit";
    background-color: #f5f5f5;
    border: 7px solid #4f4f4f;
    border-radius: 10px;
    padding: 1rem 1rem 2.5rem 1rem;
    margin-left: auto;
    margin-right: auto;
  }
  .rules-container h3 {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .rules-container p {
    font-size: 16px;
  }
  /* styles for the rules div itself */
  .rules-text {
    background-color: #4f4f4f;
    height: auto;
    width: 65%;
    border: 7px solid #4f4f4f;
    border-radius: 8px;
    margin-left: auto;
    margin-right: auto;
    padding: 1rem 1.5rem 1.5rem 1rem;
    color: #f5f5f5d0;
    font-size: 75%;
  }
  
  /* style buttons on rules page */
  .buttons {
    width: 60%;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }
  
  .back {
    height: 80px;
    width: 90px;
    background-color: #4f4f4f;
    padding: 7px;
    border: 3px solid #f5f5f5;
    border-radius: 8px;
    color: #f5f5f5;
    font-family: "Kanit";
  }
  .startQuizBtn {
    height: 80px;
    width: 90px;
    background-color: #4f4f4f;
    padding: 7px;
    border: 3px solid #f5f5f5;
    border-radius: 8px;
    color: #f5f5f5;
    font-family: "Kanit";
  }
  
  /* add animations to the buttons for better interactivity */
  .startQuizBtn:hover {
    transition-duration: 1000ms;
    transform: scale(1.1);
  }
  .back:hover {
    transition-duration: 1000ms;
    transform: scale(1.1);
  }
  
  /* game container */
  
  #timer {
    height: 30px;
    width: 15px;
    float: right;
    margin-right: 14%;
    background-color: #4f4f4f;
    padding: 7px;
    border: 3px solid #f5f5f5;
    border-radius: 12px;
    color: #f5f5f5;
    font-family: "Kanit";
    text-align: center;
    width: 70px;
  }
  
  .quiz-container {
    height: 70%;
    width: 40%;
    font-family: "Kanit";
    background-color: #f9f9f9; /* Softer background color */
    border: 7px solid #4f4f4f;
    border-radius: 20px;
    padding: 2rem;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Added shadow for depth */
  }
  
  .imageContainer {
    max-height: 300px;
    width: 400px;
  }
  #quizImage {
    max-height: 180px;
    max-width: 90%;
    border: 5px solid #4f4f4f;
    border-radius: 5px;
  }
  
  .image-Question {
    margin-left: auto;
    margin-right: auto;
    width: 80%;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
  }
  #question-picture {
    width: 50%;
    height: 50%;
    padding: 20px; /* Increased padding for better spacing */
    color: #4f4f4f; /* Keep the color */
    font-size: 100%; /* Slightly larger font size */
    font-weight: 700; /* Slightly lighter weight */
    background-color: #e8e8e8; /* Softer background color */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    text-align: center; /* Center-align the text */
  }
  
  .options {
    background-color: #5a5a5a;
    height: auto;
    width: 70%;
    border: 4px solid #4f4f4f;
    border-radius: 8px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 60px;
    padding: 1rem 3rem 1rem 1rem;
    padding: 1.5rem 2rem; /* Adjusted padding for better spacing */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Added shadow for depth */
  }
  
  .selection {
    font-size: 105%;
    margin: 5px;
    background-color: #4f4f4f;
    padding: 7px;
    border: 3px solid #f5f5f5;
    border-radius: 8px;
    color: #f5f5f5;
    font-family: "Kanit";
  }
  .selection:hover {
    transition-duration: 1000ms;
    transform: scale(1.1);
  }
  
  .list {
    list-style-type: none;
  }
  
  .hint {
    margin-top: 3px;
    height: 60px;
    width: 80px;
    background-color: #4f4f4f;
    padding: 7px;
    border: 3px solid #f5f5f5;
    border-radius: 8px;
    color: #f5f5f5;
    font-family: "Kanit";
  }
  
  .hint-container {
    background-color: #4f4f4f;
    padding: 7px 2px 2px 2px;
    border: 3px solid #f5f5f5;
    border-radius: 8px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    color: #f5f5f5;
    font-family: "Kanit";
    height: 40%;
    width: 50%;
  }
  
  .blur {
    filter: blur(3px); /* Adjust the blur value as needed */
  }
  
  /* styles for final page */
  
  .final-page-one-title {
    background-color: #4f4f4f;
    padding: 7px;
    border: 3px solid #f5f5f5;
    border-radius: 8px;
    width: 30%;
    height: 40%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    color: #f5f5f5;
    margin-top: 8%;
    font-family: "Kanit";
    max-width: 90%;
  }
  .final-page-two-title {
    background-color: #4f4f4f;
    padding: 7px;
    border: 3px solid #f5f5f5;
    border-radius: 8px;
    width: 35%;
    height: 40%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    color: #f5f5f5;
    margin-top: 8%;
    font-family: "Kanit";
    max-width: 90%;
  }
  
  .congratulations {
    margin-top: 7%;
  }
  
  .play-again {
    background-color: #4f4f4f;
    padding: 7px;
    border: 3px solid #f5f5f5;
    border-radius: 8px;
    color: #f5f5f5;
    font-family: "Kanit";
    max-width: 90%;
    font-size: 120%;
  }
  
  .return-to-main {
    background-color: #4f4f4f;
    padding: 7px;
    border: 3px solid #f5f5f5;
    border-radius: 8px;
    color: #f5f5f5;
    font-family: "Kanit";
    max-width: 90%;
    font-size: 120%;
  }
  .play-again:hover {
    transition-duration: 800ms;
    transform: scale(1.1);
  }
  .return-to-main:hover {
    transition-duration: 800ms;
    transform: scale(1.1);
  }
  
  .play-again-container {
    width: 35%;
    height: 40%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    color: #f5f5f5;
    margin-top: 3%;
  }
  .return-to-main-container {
    width: 35%;
    height: 40%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    color: #f5f5f5;
    margin-top: 3%;
  }

  /* media query for responsive screen sizes*/
  
  /* medium sized screens */
   @media (min-width: 600px) {
    .play-again-container {
      margin-top: 3%;
    }
    .return-to-main-container {
      margin-top: 3%;
    }
    .rules-container {
      height: 480px;
      width: 35%;
    }
    .rules-text {
      height: 60%;
      line-height: 170%;
      width: 60%;
    }
    .final-page-one-title {
      width: 20%;
      margin-top: 5%;
    }
    .final-page-two-title {
      width: 25%;
      margin-top: 5%;
    }
    body {
      height: 100vh;
    }
  } 
  
  /* smaller sized screens */
  @media (max-width: 600px) {
    .timer {
      margin-right: 17%;
      margin-top: 8%;
      margin-bottom: 3%;
    }
    .quiz-container {
      width: 80%;
    }
    .landing-page-title {
      height: 45%;
    }
    .final-page-one-title {
      height: 45%;
    }
    .final-page-two-title {
      height: 45%;
    }
  }

  /* font size for medium sized screens*/
  @media (min-width: 500px) {
    .rules-text {
      font-size: 100%;
    }
  }
  
  /* screens that do not not have a large height */
  @media (max-height: 1000px) {
    .quiz-container {
      max-height: 600px;
    }
  
    .options {
      max-height: 50%;
    }
    .hint-container {
      float: inline-end;
      margin-bottom: 20%;
    }
  
    body {
      height: 100vh;
    }
  }
  
  /* font size for larger screens */
  @media (max-width: 1100px){
    .rules-text{
      font-size: 70%;
    }
  }


  /* padding bottom to fix the UI bug of the body not being long enough */
  @media (min-width: 500px) and (max-height: 1000px) {
    body {
      padding-bottom: 300px;
    }
  }
  
  @media (max-width: 400px) and (max-height: 800px) {
    body {
      padding-bottom: 200px;
    }
  }