

html { 
  height: 100%;
}

* { 
  padding: 0;
  margin: 0;
}
  

body {
  font-family: "Poppins", sans-serif;
  background-image: url(../nn.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
 font-size: 24px;
  background-attachment: fixed;
}
img { 
  border: 0;
}
.left { 
  float: left;
  width: auto;
  margin-right: 10px;
}
.right { 
  float: right; 
  width: auto;
  margin-left: 10px;
}
.center { 
  display: block;
  text-align: center;
  margin: 20px auto;
}
#main, header, #logo, nav, #site_content, footer { 
  margin-left: auto; 
  margin-right: auto;
}
#main {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -10px;
  width: 100%;
  max-width: 965px;
  height: auto;
  background-color: #ffffff;
  padding: 10px;
  border: 2px dashed #000000;
  box-sizing: border-box;
  position: relative;
}
#gameArea {
  cursor: default;
  /* Landscape */
 
  /* Portrait */
  /* height: 960px; */
  /* width: 640px; */
  background-color: #ffffff; /* Pure white */
  height: 57vh; /* Use 80% of the viewport height */
  width: 100%; /* Use 100% of the available width */
  max-width: 962px; /* Set a maximum width for larger screens */
  background-color: #ffffff;
}


.clockImage {
  max-width: 150px; /* Set a fixed maximum width */
  max-height: 150px; /* Set a fixed maximum height */
  border-radius: 50%;
  cursor: pointer;
  margin-top: 2%;
}

#clockImages {
    text-align: center;
}

/* Styles for screens smaller than 768px (e.g., tablets) */
@media (max-width: 767px) {
  .clockImage {
    max-width: 100px;
    max-height: 100px;
  }
}

/* Styles for screens smaller than 480px (e.g., phones) */
@media (max-width: 479px) {
  .clockImage {
    max-width: 80px;
    max-height: 80px;
  }
}

#questionSection{
    text-align: center;
    font-family: Calibri;
    font-size: 48px;
    padding: 10px 20px 30px 20px;
}

#answerSection{
    text-align: center;
    font-family: Calibri;
    font-size: 48px;
    /*display: inline;*/

    /*width: 863px;*/
    height: 150px;
    padding: 10px 20px 30px 20px;
    border-radius: 15px 15px 15px 15px;
    -moz-border-radius: 15px 15px 15px 15px;
    -webkit-border: 15px 15px 15px 15px;

}

.testBorder{	
    border-style: dotted;
    border-width: 1px;
    border-color: red;
}


.timer {
  position: absolute;
  top: 23vh; /* Adjust this value as needed to position vertically */
  right: 500px; /* Adjust this value as needed to position horizontally */
  font-size: 24px;
  z-index: 10;
}

#scoreDisplay {
  position: absolute;
  top: 26vh; /* Adjust this value based on your layout needs */
  right: 500px; /* Adjust this value as needed to position horizontally */
  font-size: 24px;
  font-weight: bold;
  color: #333;
  z-index: 10;
}
@media (max-width: 480px) {
.timer{
  top: 29vh;
  right: 4vh;
}
#scoreDisplay{
  top: 32vh;
  right: 4vh;

}}
#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;
border: none;
}


.modal {
  display: none; /* Hide the modal by default */
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 100;
}

.modal-content {
  background-color: #ffffff;
  margin: 15% auto; /* Center modal vertically and horizontally */
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 400px; /* Set maximum width for the modal */
  text-align: center;
  z-index: 100;
  
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 100;
}
.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;
  z-index: 100;
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}
.modal-conten {
  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;
  z-index: 100;
}
.modal-conten p {
  font-size: 24px;
  color: #8460de;
  margin-bottom: 20px;
  z-index: 100;
}
.modal-conten .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;
  z-index: 100;
}

.modal-conten .popButton:hover {
  background-color: #8460de;
  z-index: 100;
}
/* 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 */
  z-index: 100;
}
.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);
  z-index: 100;
}

/* 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 */
  z-index: 100;
}


.close {
  color: #8460de;
  float: right;
  font-size: 24px;
  font-weight: bold;
  z-index: 100;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
  z-index: 100;
}
.resetButton {
  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;
border: none;
}

/* Change background color on hover */
/* Styles for the Start Game screen */
#startGameScreen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin-top: -60px;
  width: 976px;
  border-radius: 20px;
  
  height: 68%;
  background-color: #ffffff; /* White */
  padding: 10px;
  box-shadow: rgba(0, 0, 0, 0.1) 0 0 40px 5px;
/* Dashed border *//* Adjust the color and intensity here */
  background-color: #ffffff;
  border-radius: 20px;
 
  box-sizing: border-box;
  z-index: 2;
}

#startGameBtn {
  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;
border: none;
}




/* Hide all other elements initially */
#gameContainer {
  display: none;
}
#hashText {
  font-family: "Poppins", sans-serif;
  font-size: 40px;
  font-weight: bolder;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: absolute;
  top: 50px; /* Adjust the top position as needed */
  left: 50%; /* Center the text horizontally */
  transform: translateX(-50%); /* Center the text horizontally */
  z-index: 1;
  text-shadow: -1px -1px black, 1px -1px black, -1px 1px black, -1px -1px black;
}

.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 */
}
.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) {
  /* Styles for screens smaller than 768px */
  #questionSection {
    font-size: 24px;
  }

  #answerSection {
    font-size: 24px;
    height: auto; /* Adjust height for smaller screens */
  }

  .clockImage {
    max-width: 25vw;
    max-height: 25vw;
  }

  /* Add more styles as needed */
}

@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;
  }
}
