* {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    box-sizing: border-box;
    border: none;
    outline: none;
    font-size: 24px;
}
body {
  display: flex;
  flex-direction: column; /* Change the flex direction to column */
  justify-content: center;
  align-items: center;
  height: auto; /* Allow the body to grow vertically */
  min-height: 100vh; /* Ensure a minimum height of the viewport */
  padding: 1rem; /* Add some padding for better spacing */
}
body {
    background-color: rgb(255, 255, 255);
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Poppins", sans-serif;
    background-image: url(numbers.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
   
    background-attachment: fixed;
}
#hashText {
    font-family: "Poppins", sans-serif;
    font-size: 40px;
    font-weight: bolder;
    color: #ffffff; /* Your chosen color */
    text-transform: uppercase;
    letter-spacing: 2px;
position: relative;
  z-index: 1;
  text-shadow: -1px -1px black,
  1px -1px black,
  -1px 1px black,
  -1px -1px black;
   
  }
  header {
    text-align: center;
    position: absolute;
  top: 5vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    
}

.container {
    position: relative;
   
    /* Add some top margin to the container */
}

.container {
    background-color: rgb(247, 247, 247);
    transition: 1s ease;
    width: 100%; /* Set the width to 100% for smaller screens */
  max-width: 600px; /* Adjust the maximum width as needed */
  padding: 1rem; /* Reduce the padding for smaller screens */
  margin-top: 2rem; /* Add some margin-top for spacing */
    border-radius: 20px; /* Adjust the border radius */
    font-size: 36px;
    overflow: hidden;
    margin-top: 5vh;
    box-shadow: 0.8rem 0.8rem 6rem 1.5rem rgb(0 0 0 / 0.25); /* Reduce the box-shadow */
    padding: 1rem; /* Reduce the padding */
    border: 2px dashed black;

    
  }
.question-card {
    background-color: #8460de;
    border-radius: 1rem;
    margin: 1rem auto; /* Reduce the margin */
  padding: 1rem 0;;
    text-align: center;
}

.answer-card {
    padding: 1rem 0 0;
    display: flex;
    flex-direction: column;
}
.video-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
  }
button {
    transition: 0.3s;
    cursor: pointer;
    font-size: 24px; /* Set the options font size to 24px */
    border-radius: 0.8rem; /* Adjust the border radius */
    text-align: center;
    background-color: rgba(0, 0, 0, 0.1);
    margin: 0.4rem 0; /* Reduce the margin */
    padding: 0.8rem 0; /* Reduce the padding */
  }
#startBtn, #restartBtn {
  font-size: 1.5rem; /* Reduce the button font size */
  padding: 0.4rem 1rem; /* Reduce the padding */
}
#question{
    color: white;
}
button:hover {
    background-color: rgba(0, 0, 0, 0.25);
}

button:focus {
    outline: none; /* Remove the default focus outline */
}

.game-data {
    margin: 1rem auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

#startGame,
#endGame {
    text-align: center;
    display: flex;
    flex-direction: column;
    column-gap: 1rem;
}

#startBtn,
#restartBtn {
    cursor: pointer;
    border-radius: 5px;
    margin: 2rem auto 1rem;
    color: rgb(23, 23, 23);
    background-color: #d1ae45;
    width: 168px;
    height: 40px;
    align-content: center;
    align-items: center;
font-size: 24px;
}

#inGame,
#endGame {
    display: none;
}

#startGame>p {
    margin: 1rem auto;
}

#timer {
    display: none;
    text-align: left;
    height: 0.5rem;
    width: 100%;
    background-color: rgb(250, 250, 250);
    overflow: hidden;
    border-radius: 1rem;
}

#progress {
    transition: ease;
    height: 100%;
    background-color: rgba(255, 0, 0, 0.5);
}

#message {
    font-size: 24px;;
}
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.3s;
  }
  
  @keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
  }
  .modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: none;
    width: 90%; /* Adjust width to be more flexible */
    max-width: 600px; /* Max width for larger screens */
    height: auto; /* Allow height to adjust based on content */
    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: #8460de;
    margin-bottom: 20px;
  }
  .modal-content .popButton {
    padding: 10px 20px;
    font-size: 24px;
    background-color: #8460de;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .modal-content .popButton:hover {
    background-color: #8460de;
  }
  /* 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;
   }
  
  /* Add a hover effect */
  .howToPlayBtn:hover {
    background-color: #c2b7b7; /* Slightly darker purple on hover */
  }
  .modal {
    display: none;
    position: fixed;
    z-index: 2; /* Ensure the modal is above other elements */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
  }
  
  /* Style the modal content */
  .modal-content {
    background-color: #ffffff; /* Use a white background for the modal content */
    font-family: "Poppins", sans-serif; /* Use the same font as the game */
    color: #000000; /* Set the text color to black */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3); /* Add a subtle shadow */
    border-radius: 10px; /* Rounded corners */
  }
  
  
  .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 */
}
.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: 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;
  }
}
