@import url("https://fonts.cdnfonts.com/css/minecraftia");
@import url("https://fonts.cdnfonts.com/css/quub");
@import url("https://fonts.cdnfonts.com/css/crima-display");
@import url("https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;700&display=swap");
body {
  background-image: url("images/backgrounddd.png");
  background-size: cover; /* Make sure the image covers the entire background */
  background-position: center; /* Center the image */
  background-attachment: fixed;
}
h1 {
  font-family: "Minecraftia", sans-serif;
  text-align: center;
  font-size: 4.5vh;
  line-height: 50px;
  z-index: 3;
  color: rgb(255, 255, 255);
  filter: drop-shadow(2px 2px rgb(255, 66, 132));
  padding-top: 20px;
}
form {
  text-align: center;
  justify-content: center;
  color: white;
  text-shadow: 2px 2px 4px rgba(255, 154, 154, 0.5);
}
label {
  display: block;
  margin-bottom: 15px;
  font-family: "Minecraftia", sans-serif;
  text-align: center;
  font-size: 2rem;
  color: rgb(255, 255, 255);
  padding: 10px;
}
input {
  font-size: 30px;
  width: 15%;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  border-radius: 10px;
  border: none;
  padding: 10px 15px;
  transition: transform 0.3s ease;
  border: solid black 3px;
}
input:hover {
  transform: scale(1.05);
}
button[type="submit"] {
  display: block;
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
  background-color: rgb(0, 0, 0);
  color: white;
  padding: 10px;
  letter-spacing: 2px;
  font-size: 20px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  width: 150px;
  margin: 20px auto;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
button[type="submit"]:hover {
  background-color: #ffbcdb;
  transform: scale(1.05);
  letter-spacing: 3px;
  cursor: pointer;
}
.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 80%;
  margin: 0 auto;
}

.row {
  display: flex;
  justify-content: space-between;
  margin-bottom: -50px;
}

button.sign {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

button.sign img {
  width: 125%;
  object-fit: cover;
}

button.sign img:hover {
  transform: scale(1.2);
  transition: transform 0.5s ease-in-out;
}

.popup-box {
  display: none;
  position: fixed;
  left: 50%;
  top: 55%;
  width: 950px; /* Adjusted width for better responsiveness */
  padding: 70px;
  background-image: url("./images/popup.png");
  background-size: cover;
  background-position: center;
  z-index: 10;
  text-align: center;
  transition: opacity 0.4s ease, transform 0.4s ease; /* Smoother transition for opacity and transform */
  transform: translate(-50%, -50%);
}
.popup-box img {
  width: 45%;
}

.popup-box .close-btn {
  position: absolute;
  top: 70px;
  right: 110px;
  font-size: 70px;
  cursor: pointer;
  color: rgb(95, 63, 32);
}

.popup-box .close-btn:hover {
  color: rgb(244, 158, 158);
  cursor: pointer;
}
#character-name {
  font-family: "Crima", sans-serif;
  font-size: 2.5rem; /* Increase the size for better visibility */
  color: #47290b; /* Light pink color for a cute Sanrio look */
  text-align: center;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1); /* Soft shadow for pop */
}

#description {
  font-family: "Baloo 2", cursive;
  font-weight: 500;
  font-size: 1.1rem; /* Slightly larger font for readability */
  color: rgb(99, 92, 72); /* Neutral color for contrast */
  text-align: center;
  line-height: 1.6; /* Improve readability with spacing */
  margin: 0 20px; /* Add some margin for better spacing */
  max-width: 100%; /* Control the width to prevent text overflow */
  margin: 0 auto 20px auto; /* Center the paragraph */
  padding: 15px;
  border-radius: 12px;
}
.box-content {
  width: 75%;
  margin: 0 auto;
  padding-bottom: 50px;
}
.contentt {
  margin-top: -50px;
}
#overlay {
  position: fixed;
  background-color: rgba(0, 0, 0, 0.2);
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(2px); /* Adds blur to the background */
  z-index: 9; /* Behind the popup but above the rest of the page */
  display: none; /* Initially hidden */
  transition: opacity 0.3s ease;
}
.control-button {
  position: fixed;
  width: 50px; /* Set appropriate width */
  height: 50px; /* Set appropriate height */
  border: none; /* Remove default border */
  background: none; /* Remove background */
  cursor: pointer; /* Change cursor on hover */
  z-index: 15; /* Ensure the buttons are above other elements */
}

#mute-button {
  bottom: 200px; /* Position 20px from the bottom */
  left: 10px; /* Position 20px from the left */
}

#instructions-button {
  bottom: 200px; /* Position 20px from the bottom */
  right: 160px; /* Position 20px from the right */
}
.sign,
.control-button {
  display: inline-block;
  margin: 10px;
  border: none;
  background-color: transparent; /* Adjust as needed */
  cursor: pointer; /* Changes cursor to pointer */
  transition: transform 0.2s ease; /* Smooth transition */
}

/* Scale up on hover */
.sign:hover,
.control-button:hover {
  transform: scale(1.05); /* Scale the button to 110% */
}
.popup {
  display: flex; /* Use flexbox for centering */
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
  position: fixed; /* Fix the position relative to the viewport */
  top: 0; /* Align to the top */
  left: 0; /* Align to the left */
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  background-color: rgba(0, 0, 0, 0.5); /* Darken the background */
  z-index: 999; /* Ensure it's on top of other elements */
  display: none; /* Hide initially */
  font-family: "Crima", sans-serif;
}

.popup .popuptext {
  margin: 0; /* Remove margin */
  width: 40%; /* Adjust width as needed */
  opacity: 0.97;
  background-color: rgb(255, 255, 255);
  color: rgb(173, 44, 93);
  border-radius: 6px;
  box-shadow: 0 4px 6px rgba(255, 64, 96, 0.1);
  border: 5px solid rgb(255, 200, 217);
  line-height: 200%;
  text-align: center;
  padding: 20px; /* Add some padding */
}
.popup .show {
  visibility: visible;
  animation: fadeIn 1s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.98;
  }
}
