/* style.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-image: url("purple-bg.jpg");
  background-position: center;
  background-size: 100% 100%;
  font-family: "Poppins", sans-serif;
}

#title-text {
  font-size: 40px;
  font-weight: bolder;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: -1px -1px black, 1px -1px black, -1px 1px black, 1px 1px black;
  text-align: center;
  margin-bottom: 20px;
}

/* .start-screen {
  display: none;
  justify-content: center;
  align-items: center;
}

.start-content {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  height: 500px;
  width: 600px;
  text-align: center;
  padding-top: 10%;
  border: 2px dashed;
  position: relative;
}

.start-btn {
  padding: 10px 20px;
  background-color: #d1ae45;
  color: #232323;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
} */

.form {
  background-color: #ffffff;
  max-width: 450px;
  height: 420px;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 2px dashed black;
}

.form h4,
.form h2,
.form h1 {
  color: #000000;
}

.form h4 {
  align-items: center;
  padding: 10px;
}

.form h1,
.form h2 {
  padding: 10px;
  margin: 10px;
}

.form input {
  border: 2px solid #000000;
  outline: none;
  width: 90%;
  padding: 8px;
  margin: 10px 0;
  border-radius: 20px;
  background-color: #ffffff;
}

.form input::placeholder {
  color: black;
}

.btn {
  outline: none;
  width: 168px;
  padding: 8px;
  /* margin: 10px 0; */
  border-radius: 5px;
  background-color: #d1ae45;
  height: 40px;
  border: none;
  
}

.button-container {
  display: flex;
  justify-content: center;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: none;
  width: 600px;
  height: 450px;
  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;
}

.close {
  color: #8460de;
  float: right;
  font-size: 24px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.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;
 }

.howToPlayBtn:hover {
  background-color: #c2b7b7;
}
#start-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  top: 0;
  left: 0;
  width: 25%;
  height: 45%;
  background-color: rgb(255, 255, 255);
  z-index: 999;
  align-content: center;
  text-align: center;
  border: 2px dashed;
  border-radius: 20px;
}

.start-content {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  align-content: center;
}

.start-btn {
  padding: 10px 20px;
  background-color: #d1ae45;
  color: #232323;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}
.game-container {
  display: none; /* Hide game container initially */
}
.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 screen and (max-width: 480px) {
  #start-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    top: 0;
    left: 0;
    width: 100%;
    height: 45%;
    background-color: rgb(255, 255, 255);
    z-index: 999;
    align-content: center;
    text-align: center;
    border: 2px dashed;
    border-radius: 20px;
  }
  .btn {
    outline: none;
    width: 168px;
    padding: 8px;
    margin: 10px 0; 
    border-radius: 5px;
    background-color: #d1ae45;
    height: 40px;
    border: none;
    
  }
  .homeBtn {
    position: absolute;
    top: 90px; /* Adjust the top position as needed */
    left: 10px;
    z-index: 1;
  
  
  }
  #imgbtn {
    height: 50px;
    width: 50px;
  }
}

@media (max-width: 480px) {
.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: none;
    width: 600px;
    height: 273px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
}
  /* 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;
  }
}
