/* Base styles */
* {
  margin: 0;
  padding: 0;
}

body {
  display: grid;
  place-items: center;
  overflow: hidden;
  background-color: rgb(255, 255, 255);
  background-image: url("purple-bg.jpg");
}

/* Headings styles */
.headings {
  font-family: "Poppins", sans-serif;
  color: white;
  position: relative;
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
  font-size: 40px;
  padding: 5px 80px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 20px;
}

/* Container for the game grid */
.cont {
  display: grid;
  width: 600px;
  grid-template-columns: repeat(10, 1fr);
  margin: -50px 0 0px 20px;
}

.cont div {
  width: 60px;
  height: 62px;
  color: black;
}

/* Player pieces */
#p1, #p2 {
  width: 20px;
  height: 20px;
  border-radius: 30px 30px 30px 10px;
  color: white;
  position: relative;
  border: 3px solid rgb(13, 13, 13);
  top: -12px;
}

#p1 {
  background-color: rgb(155, 13, 13);
  transition: all linear 0.5s;
  z-index: 2;
}

#p2 {
  background-color: rgb(12, 94, 235);
  z-index: 2;
}

/* Game board image */
img {
  position: relative;
  top: -636px;
  left: 0;
  margin: 0;
  width: 615px;
  height: 682px;
}

/* Dice container and button */
#diceCont {
  display: grid;
  place-items: center;
  position: absolute;
  top: 300px;
  gap: 20px;
  left: 120px;
  font-size: 2rem;
  z-index: 99;
}

#diceBtn {
  z-index: 99;
  padding: 5px;
  cursor: pointer;
  font-size: 22px;
  font-weight: bold;
  border-radius: 5px;
  width: 200px;
  background: #d1ae45; /* Changed to d1ae45 */
}

/* Responsive design for dice container and button */
@media (max-width: 1250px) {
  #diceCont {
    display: flex;
    place-items: none;
    top: 92vh;
    left: 36vw;
    border: 2px solid rgb(250, 247, 247);
  }

  #diceBtn {
    width: 200px;
    margin-left: 20px;
  }
}

@media (max-width: 1250px) {
  #diceCont {
    display: flex;
    place-items: none;
    top: 99vh;
    left: 10vw;
  }

  #diceBtn {
    width: 200px;
    margin-left: 20px;
  }
}

/* Dice result text */
#tog, #dice {
  color: white;
  font-family: "Poppins", sans-serif;
}

.btn_submit {
  position: relative;
  display: inline-block;
  text-decoration: none;
  font-size: 18px; /* Smaller font size */
  padding: 5px 15px; /* Smaller padding */
  background: #d1ae45; /* Yellow color */
  border: 3px solid var(--color);
  color: rgb(7, 7, 7);
  font-weight: bold;
  font-family: "Poppins", sans-serif;
  border-radius: 10px; /* Curved edges */
}


/* Question container */
#question-container {
  margin-top: 60px; /* Adjust this value to move it further down */
  text-align: center;
}

#question {
  font-size: 24px; /* Increased font size */
  margin-bottom: 10px;
  text-align: center;
}

#answer-input {
  padding: 5px;
  margin-bottom: 10px;
  text-align: center;
}
#message {
  margin-top: 10px;
  text-align: center;
}

/* How to play button */
.howToPlayBtn {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  background-color: #ffffff;
  color: #8460de;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  cursor: pointer;
  width: auto;
  position: absolute;
  top: 20px;
  left: 20px;
}

.howToPlayBtn:hover {
  background-color: #c2b7b7;
}

/* Modal styling */
.modal {
  display: none;
  position: fixed;
  z-index: 2;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #ffffff;
  font-family: "Poppins", sans-serif;
  color: #000000;
  margin: 15% auto; /* Adjusted to position better */
  padding: 20px;
  border: 1px solid #888;
  border-radius: 10px;
  width: 30%; /* Decreased width */
  border: 2px dashed #000000; /* Black dashed border */
}
.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;
}
