body {
    font-family: "Poppins", sans-serif;
    text-align: center;
    background-color: #e6f7ff;
    color: #333;
    background-image: url(purple-bg.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    font-size: 24px;
    margin: 0;
    padding: 0;
    background-size: 100% 100%;
  }

  #game-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
  }

  .container {
    margin: 0 20px;
  }

  .box {
    border: 4px solid #8460de;
    min-height: 200px;
   
    width: 400px;
    background-color: #fff;
    border-radius: 30px;
    transition: border-color 0.3s ease, transform 0.3s ease;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }

  .box:hover {
    border-color: #6a3fd6;
    transform: scale(1.05);
  }

  #question-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
  }

  .true-false-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: #8460de;
  }

  .true-false-icon.true::before {
    content: '\2714';
  }

  .true-false-icon.false::before {
    content: '\2718';
  }

  .button-container {
    margin-top: 20px;
  }

  #question-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
  }

  .question {
    background-color: #8460de;
    border: 2px solid #000000;
    cursor: move;
    margin: 10px;
    padding: 10px;
    width: 300px;
    border-radius: 20px;
    transition: background-color 0.3s ease;
    color: white;
  }

  .question:hover {
    background-color: #6d40dd;
  }

  .correct {
    background-color: #66ff99;
    transition: background-color 0.3s ease;
  }

  .incorrect {
    background-color: #ff9999;
    transition: background-color 0.3s ease;
  }

  button {
    height: 40px;
    width: 168px;
    cursor: pointer;
    background-color: #d1ae45;
    color: rgb(23, 23, 23);
    border: none;
    border-radius: 5px;
    font-size: 24px;
    transition: background-color 0.3s ease, transform 0.3s ease;
   
  }


  .correct {
    background-color: #66ff99;
    animation: bounce 0.5s ease-in-out;
  }

  .incorrect {
    background-color: #ff9999;
    animation: shake 0.5s ease-in-out;
  }

  @keyframes bounce {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-10px);
    }
  }

  @keyframes shake {
    0%, 100% {
      transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
      transform: translateX(-10px);
    }
    20%, 40%, 60%, 80% {
      transform: translateX(10px);
    }
  }

  .popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-in-out;
  }

  .popup-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: slideUp 0.3s ease-in-out;
  }

  .popup-content h2 {
    margin-bottom: 10px;
    color: #8460de;
    font-size: 24px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  }

  .popup-content p {
    margin-bottom: 20px;
    font-size: 18px;
    color: #333;
  }

  .popup-content button {
    height: 40px;
    width: 168px;
    cursor: pointer;
    background-color: #d1ae45;
    color: rgb(23, 23, 23);
    border: none;
    border-radius: 5px;
    font-size: 24px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  }

  .popup-content button:hover {
    background-color: #cea321;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  @keyframes slideUp {
    from {
      transform: translateY(50px);
    }
    to {
      transform: translateY(0);
    }
  }

  #gg {
    background-color: white;
    height: auto;
    width: fit-content;
    margin: 0 auto;
    border: 2px dashed black;
    border-radius: 20px;
    padding-bottom: 10px;
  }

  #hashText {
    font-size: 40px;
    font-weight: bolder;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 20px;
    padding: 10px;
    text-shadow: -1px -1px black,
                 1px -1px black,
                 -1px 1px black,
                 -1px -1px black;
    text-align: center;
  }


.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: -2%;
    width: 100%;
    height: 102%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.3s;
    overflow: hidden;
  }
  
  @keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
  }
  
  .modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: none;
    width: 30%;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
  }
  
  .modal-content p {
    font-size: 24px;
    color: #000000;
    margin-bottom: 20px;
  }
  
  .modal-content .popButton {
    padding: 10px 20px;
    font-size: 24px;
    background-color: #3FBAD9;
    color: #000000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .modal-content .popButton:hover {
    background-color: #000000;
  }
  
  /* Position the button at the top-left corner */
  .howToPlayBtn {
    position: absolute;
    top: 25px;
    left: 10px;
    z-index: 1;
  }
  
  /* Style the button to match the game theme */
  .howToPlayBtn {
    font-family: "Poppins", sans-serif; /* Use the same font as the game */
    font-size: 16px; /* Adjust the font size as needed */
    background-color: #793DAE;  
    /* color: #8460de;  */
    border: none;
    font-weight: bolder;
    background-color: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
   }
  
  
 
  
  .close {
    color: #8460de;
    float: right;
    font-size: 24px;
    font-weight: bold;
  }
  
  .close:hover,
  .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }
  .modal-header {
    text-align: center;
    margin-bottom: 10px;
}

.modal-header img {
    max-width: 50%; /* Set the maximum width to 50% of the parent container */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Make the image a block-level element */
    margin: 0 auto; /* Center the image horizontally */
}
.modal-content iframe {
    margin-top: 20px; /* Added margin-top for the iframe */
}
@media (max-width: 768px) {
    /* Styles for screens up to 768px wide */
    #game-container {
      flex-direction: column;
      align-items: center;
    }

    .container {
      margin: 10px 0;
    }

    .box {
      width: 267px;
      min-height: 120px;
      margin-left: 5px;
    }

    #question-container {
      flex-direction: column;
      align-items: center;
      margin-left: -6px;
    }

    .question {
      width: 90%;
      max-width: 350px;
    }

    button {
      width: 120px;
      font-size: 18px;
    }
  }

  @media (max-width: 480px) {
    /* Styles for screens up to 480px wide */
    .box {
      width: 100%;
      max-width: none;
    }

    .question {
      width: 100%;
      max-width: none;
    }
  }
  .homeBtn {
    position: absolute;
    top: 145px; /* Adjust the top position as needed */
    left: 10px;
    z-index: 1;
  
  }
  
  /* Style the home button */
  .homeBtn button {
    font-family: "Poppins", sans-serif;
    background-color: #793DAE;  
    font-size: 16px; 
    border: none;
    font-weight: bolder;
    border-radius: 5px;
    padding: 15px 20px;
    cursor: pointer;
    /* box-shadow: 5px 10px 10px rgba(0, 0, 0, 0.2); */
    transition: background-color 0.3s ease;
  }
  @media (max-width: 768px) {
    body {
      font-size: 18px;
    }
  
    #game-container {
      flex-direction: column;
        width: 300px;
      
    }
  
  
    .container {
      margin: 10px 0;
    }
  
    .box {
      width: 90%;
      max-width: 400px;
      min-height: 150px;
    }
  
    #question-container {
      flex-direction: column;
    }
  
    .question {
      width: 90%;
      max-width: 350px;
      font-size: 16px;
    }
  
    button {
      width: 120px;
      font-size: 18px;
    }
  
    .howToPlayBtn, .homeBtn button {
      padding: 8px 16px;
      font-size: 14px;
    }
  }
  
  @media (max-width: 480px) {
    body {
      font-size: 16px;
    }
  
    .box {
      width: 257px;
        min-height: 120px;
        margin-left: 5px;
    }
  
    .question {
      width: 95%;
      font-size: 14px;
      margin-left: -3px;
    }
  
    button {
      width: 100px;
      font-size: 16px;
    }
  
    .howToPlayBtn, .homeBtn button {
      padding: 6px 12px;
      font-size: 12px;
    }
  }
  @media (max-width: 480px) {
    #hashText {
      font-size: 40px;
      font-weight: bolder;
      color: #ffffff;
      text-transform: uppercase;
      letter-spacing: 2px;
      margin-top: 20px;
      padding: 10px;
      text-shadow: -1px -1px black, 1px -1px black, -1px 1px black, -1px -1px black;
      text-align: center;
      visibility: hidden;
  }
  
  
    h1 {
      font-size: 1.5rem;
    }
  
    #question-text {
      font-size: 1rem;
    }
  
    .option {
      padding: 8px 16px;
      font-size: 0.9rem;
    }
  
    #submit-btn {
      font-size: 1rem;
      padding: 8px 16px;
    }
  }


@media (max-width: 480px) {
  
  .howToPlayBtn img,
  .homeBtn img {
    width: 50px;
    height: 50px;
  }

  .button-container {
    display: flex;
    flex-direction: column; /* Change the flex direction to column */
    align-items: center; /* Center the buttons horizontally */
    padding: 10px; /* Add some padding for spacing */
  }
  .homeBtn {
    position: absolute;
    top: 90px; /* Adjust the top position as needed */
    left: 10px;
    z-index: 1;
  
  
  }
  .btn {
    outline: none;
    width: 168px;
    padding: 8px;
    margin: 10px 0; 
    border-radius: 5px;
    background-color: #d1ae45;
    height: 40px;
    border: none;
    
  }
}
@media (max-width: 480px) {
  /* Styles for screens with a maximum width of 480px (smartphones) */
  .container {
    max-width: 95%;
    padding: 0.5rem;
  }

  .modal-content {
    width: 90%;
    margin: 40% auto;
  }

  .modal-content p {
    font-size: 16px;
  }

  .modal-header img {
    max-width: 50%;
  }

  .modal-content iframe {
    height: 150px;
    width: 350px;
  }
}
