 body {
    background-image: url("purple-bg.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
   
    background-attachment: fixed;
    font-size: 24px;
    margin: 0;
    padding: 0;
    text-align: center;
    overflow: hidden;
    font-family: "Poppins", sans-serif;
  }
  


#container {
  text-align: center;
  position: relative;
  height: 2000px;
}

h1 {
  color: #ffffff; /* Dark brown heading */
  margin-bottom: 10px;
}

label {
  color: #ffffff; /* Dark brown label text */
  font-size: 18px;
}

input[type="number"],
input[type="button"] {
  /* padding: 12px 24px; */
  font-size: 16px;
  border: none;
  background-color: #ffffff; /* Brownish color for input fields */
  color: rgb(0, 0, 0);
  cursor: pointer;
  transition: background-color 0.3s;
  margin: 10px;
  border-radius: 5px;
}

input[type="number"]:hover,
input[type="button"]:hover {
  background-color: #ffffff; /* Darker brown color on hover */
}

canvas {
  border: 2px solid #9404b4; /* Dark brown border around canvas */
  background-color: #ffffff; /* Light brown background for the grid */
  margin-bottom: 50px; /* Added margin-bottom to create space below the canvas */
  border-radius: 5px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  height: 600px; /* Soft shadow effect */
  display: block; /* Added to make the canvas a block element */
  margin: 0 auto; /* Center the canvas horizontally */
}

#gameControls {
  display: flex;
  justify-content: center;
  align-items: center;
}

#gameControls label {
  margin-right: 10px;
}

#startButton {
  margin-left: 20px;
}

#questionBox {
  position: relative; /* Changed from absolute to relative */
  background-color: #ad23c0; /* Green color */
  border: 2px solid #000; /* Black border */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Darker shadow */
  text-align: center;
  border-radius: 10px; /* Rounded corners */
  z-index: 1; /* Ensure the box is on top */
  margin: 30px auto 0; /* Center the question box horizontally and add top margin */
  max-width: 600px; /* Set a maximum width for the question box */
  padding: 20px;
}

#questionText {
  font-size: 18px;
  font-weight: bold;
  color: #fff; /* White text color */
  margin-bottom: 10px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* Text shadow for better visibility */
}

#answerInput {
  width: 200px;
  padding: 5px;
  font-size: 16px;
  margin-bottom: 10px;
  border: 1px solid #000; /* Black border */
  border-radius: 5px; /* Rounded corners */
}

#submitAnswer {
  padding: 5px 10px;
  font-size: 16px;
  background-color: #d1ae45; /* Orange color */
  color: #fff; /* White text color */
 /* border: 1px solid #000; /* Black border */
  border-radius: 5px; /* Rounded corners */
  cursor: pointer; /* Change cursor to pointer on hover */
}

#submitAnswer:hover {
  background-color: #d1ae45; /* Darker orange color on hover */
}

.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: 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: #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: 10px;
  left: 10px;
  z-index: 1;
}

/* Style the button to match the game theme */
/* Add a hover effect */
.homeBtn button:hover {
  background-color: #c2b7b7;
}


.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;
  /* box-shadow: 5px 10px 10px rgba(0, 0, 0, 0.2);  */
  /* transition: background-color 0.3s ease; */
}


.close {
  color: #9404b4;
  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;
}
   

