html, body {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #0f0f2a;
  font-family: Arial, sans-serif;
}

body {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

/* Full screen scenery */
#sceneryCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
}

/* Centered game container */
#game-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100vw;
  height: 600px;
  z-index: 2;
}

#gameCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
}

.screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  text-align: center;
  padding: 2rem;
  z-index: 10;
}

.screen h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #4ade80;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.screen p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.button {
  background: #4ade80;
  color: #1a1a2e;
  border: none;
  padding: 0.8rem 1.5rem;
  font-size: 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.button:hover {
  background: #22c55e;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.hidden {
  display: none;
}

#gameUI {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: white;
  font-size: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 5;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  background: rgba(0, 0, 0, 0.5);
  padding: 1rem;
  border-radius: 8px;
}

#gameUI label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

#gameUI input[type="checkbox"] {
  width: 1.2rem;
  height: 1.2rem;
}

.game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(26, 26, 46, 0.95);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #4ade80;
}

.game-over h2 {
    color: #4ade80;
    margin-bottom: 15px;
}

#restartButton {
    margin-top: 20px;
    padding: 10px 25px;
    background-color: #4ade80;
    border: none;
    border-radius: 5px;
    color: #1a1a2e;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

#restartButton:hover {
    background-color: #22c55e;
    transform: scale(1.05);
}
