*{
  box-sizing: border-box;
}

body{
  /* background-color: rgb(167, 121, 121); */
  padding: 0;
  margin: 0;
  overflow: hidden;
  background-image: url("/images/moon.png");
  background-size: cover;
  background-repeat: no-repeat;

}

.game-container{
  position: relative;
  width: 352px;
  height: 198px;
  margin: 0 auto;
  outline: solid rgba(28, 40, 46, 0.649);

  transform: scale(2) translateY(50%);

}

.game-container canvas{
  image-rendering: pixelated;
}

.start-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* background-image: url("/images/holloweenmap.png"); */
  background-image: url("/images/holloweenmap.png");
  background-size: cover;
  font-size: 2em;
  text-align: center;
  z-index: 100; /* Ensure it's on top */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s, visibility 0.5s;
}

.start-screen.active {
  opacity: 1;
  visibility: visible;
}

.start-screen button {
  padding: 10px 20px;
  font-size: 1em;
  cursor: pointer;
  border-radius: 20px;
  background-color: rgb(206, 50, 50)
}
.game-over-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
  display: none; /* Hidden by default */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 2em;
  text-align: center;
  z-index: 100; /* Ensure it's on top */
}

.game-over-screen.active {
  display: flex; /* Show when active */
}


 /* Style the UI elements */
.ui-container {
  position: absolute;
  top: 15%;
  left: 20%;
  color: white;
  font-family: sans-serif;
}

.health-bar,
.stamina-bar {
  width: 100px;
  height: 10px;
  background-color: gray;
  margin-bottom: 5px;
}

.health-level,
.stamina-level {
  height: 10px;
  background-color: green;
}


#controlDisplay {
  position: fixed;
  top:55%;
  right: 15%;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px;
  border-radius: 5px;
  font-size: 14px;
  font-family: Arial, sans-serif;
  text-align: center;
}

#shuffleMessage {
  position: fixed; /* Keeps it in place even if the page scrolls */
  bottom: 80px; /* Adjust this value to position it near the bottom */
  left: 50%;
  transform: translateX(-50%);
  background: red;
  color: white;
  padding: 15px 30px;
  font-size: 20px;
  font-weight: bold;
  border-radius: 8px;
  display: none;
  z-index: 1000; /* Ensures it's above all other elements */
}

#shuffleMessage.visible {
  display: block;
}