/* Global Styles */
body {
  font-family: 'Comic Sans MS', sans-serif;
  background: linear-gradient(0deg, #f6d365, #fda085);
  margin: 0;
  padding: 0;
  padding-top: 2%; /* Adjust the value as needed */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;  /* Center the content vertically */
  height: 100%;
  min-height: 100%;
  text-align: center;
  color: #333;
  transition: background 0.3s ease;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Add space to the left side on smartphones */
@media (max-height: 480px) {
    body {
    padding-left: 30%; /* Adjust this value for the amount of space you want */
  }
}

h0 {
  font-size: 36px;
  color: #ff5722; /* Bright orange for a playful look */
  text-shadow: 4px 4px 6px rgba(0, 0, 0, 0.2);
  margin-bottom: 10px;
}

h1 {
  font-size: 28px;
  color: #ff5722; /* Bright orange for a playful look */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
}

h2 {
  color: #444;
  font-size: 20px;
  margin: 10px 0;
}

/* Ensure the urinals are responsive and use the available width */
#game-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
  gap: 10px;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px;
}

/* Adjust grid for tablets and larger screens */
@media (min-width: 480px) {
  #game-board {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
}

@media (min-width: 1024px) {
  #game-board {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}

/* Stack vertically when screen is too narrow */
@media (max-width: 480px) {
  #game-board {
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  }
}

#game-board div {
  background-color: #fff;
  border-radius: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 170px;
  height: auto;
  max-width: 100%;
  margin: 5px;
}

#game-board div img {
  width: 100%; /* Ensure it covers the container */
  height: auto; /* Stretch to fill */
}


/* Adjust for tablets */
@media (max-width: 768px) {
  #game-board div {
    max-width: 80px;
  }
}

/* Adjust for small screens */
@media (max-width: 480px) {
  #game-board div {
    max-width: 60px;
  }
}

/* For images that should have hover effects */
.hover-image:hover {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

/* For images that should not have hover effects */
.no-hover-image {
  pointer-events: none;  /* This ensures no interaction with the image */
  
}



img {
  width: 100px;
  height: 100px;
  border-radius: 0px;
  margin-bottom: 5px;
  transition: transform 0.2s ease;
}

img:hover {
  transform: scale(1.1);
}

input[type="checkbox"] {
  transform: scale(1.5);
  margin-top: 5px;
}

input[type="number"] {
  width: 70px;
  padding: 10px;
  border-radius: 12px;
  border: 2px solid #ddd;
  font-size: 18px;
  background-color: #fff;
  transition: border-color 0.3s ease;
}

input[type="number"]:focus {
  outline: none;
  border-color: #ff5722;
}

/* Button Styling */
button {
  background-color: #ff5722;
  color: #fff;
  padding: 18px 35px;
  border: none;
  border-radius: 50px;
  font-size: 20px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-top: 0px;
  display: inline-block;
  width: 250px; /* Increased width for larger button */
  max-width: 100%; /* Ensures it resizes properly */
}

@media (max-width: 768px) {
  button {
    padding: 15px 25px;
    width: 200px; /* Adjust button size on medium screens */
  }
}

@media (max-width: 480px) {
  button {
    padding: 12px 20px;
    width: 100%; /* Full width button for very small screens */
  }
}


button:hover {
  background-color: #ff3d00;
}

button:active {
  transform: scale(0.98);
}

button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* Label Styling */
label {
  font-size: 18px;
  font-weight: bold;
  margin-right: 10px;
  color: #444;
}

div {
  margin-bottom: 25px;
}

#wait-count {
  font-size: 22px;
  font-weight: bold;
  color: #444;
  margin-top: 20px;
  padding: 10px;
  background-color: #f1f1f1;
  border-radius: 10px;
}

/* Game Container */
.container {
  padding: 20px;
  border-radius: 0px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  margin-top: 5px;
  width: 100%;
  max-width: 600px;
  text-align: center;
}




/* Initially hide the message */
#rotate-message {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 20px;
  border-radius: 10px;
  font-size: 18px;
  z-index: 9999;
}

/* Show the message when the screen is in portrait mode */
@media (max-width: 768px) and (orientation: portrait) {
  #rotate-message {
    display: block;
  }
}

/* Styling for the Number of Records container */
#record-count {
  background-color: #ff5722;  /* Match the color of the reset button */
  color: white;  /* Ensure text is white */
  padding: 10px 20px;
  border-radius: 10px;
  margin-top: 5px;
  display: flex;
  justify-content: center;  /* Horizontally center content in the container */
  align-items: center;      /* Vertically center content in the container */
  width: 30%;
  max-width: 600px;
  right: -32%;
  position: relative;  /* Position the logo absolutely */
  white-space: nowrap;  /* Prevent text from wrapping */
}

/* Make the number of records text center aligned */
#record-count h3 {
  margin: 0;
  text-align: center;  /* Ensure the text is centered */
  display: inline-block;  /* Allow the text to behave like an inline element */
}

/* Styling for the logo to move it outside the background color */
#logo {
  width: 80%;
  height: auto;
  position: absolute;
  top: -25%;
  right: -150%;
  transition: transform 0.2s ease;
  transform-origin: top; /* Set the scaling to start from the top */
}

#logo:hover {
  transform: scale(1.1);
}


/* Remove the default link styling */
#record-count a {
  display: inline-block;
  text-decoration: none;
}


.flex-container {
  display: flex;
  align-items: center; /* Ensure they are vertically aligned */
  justify-content: flex-start; /* Align items to the left */
  width: 100%;
  gap: 5px; /* Reduce space between vertical bar and game board */
}

#door-container {
  display: flex;
  justify-content: flex-start; /* Aligns to the left */
  width: 100%; /* Ensures full width */
  margin-left: 65.75% 
}

#door {
  width: 20%; /* Adjust as needed */
  height: auto;
  margin-left: 10%; /* Remove right margin */
  pointer-events: none;
}








/* Modal Styles */
#warning-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#warning-content {
  background-color: white;
  padding: 10px;
  border-radius: 10px;
  width: 480px;
  text-align: center;
}

#close-warning {
  margin-top: 10px;
  padding: 10px 20px;
  background-color: #ff5722;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#close-warning:hover {
  background-color: #ff3d00;
}












#warning-modal-gif {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1001; /* Ensures this modal appears over the first one */
}

#warning-content-gif {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#close-warning-gif {
  margin-top: 10px;
  padding: 10px 20px;
  background-color: #ff5722;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#close-warning-gif:hover {
  background-color: #ff3d00;
}

#warning-image {
  height: 50vh; /* 80% of the viewport height */
  width: auto;  /* 80% of the viewport width */
  object-fit: contain; /* Ensures the GIF maintains its aspect ratio */
  margin-bottom: 5px;
  pointer-events: none;
}








#info-section {
  text-align: justify;  /* Justifies text */
  margin: 0 20%;
  width: 80%;           /* Adjust width for readability */
}


@media (max-height: 480px) {
    #info-section {
      margin: 0 10%;
    }
}

#head {
  color: white;  /* Ensure text is white */
  padding: 0px;  /* Remove padding */
  margin: 0px;   /* Remove margin */
  border-radius: 10px;
  display: flex;
  justify-content: center;  /* Horizontally center content */
  align-items: center;      /* Vertically center content */
  width: 30%;
  max-width: 600px;
  right: -32%;
  position: relative;
  white-space: nowrap;  /* Prevent text from wrapping */
  gap: 0px;  /* Remove space between flex items */
}

#reset-button {
  margin-bottom: 10%; /* Adjust the value as needed */
}





