/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  background: #1e1e1e;
  overflow: hidden;
  font-family: 'Arial', sans-serif;
}

/* Canvas Fullscreen and Responsive */
canvas {
  display: block;
  width: 100vw;
  height: 100vh;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Overlay Style for Menus */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.85);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10;
  text-align: center;
}

/* Buttons */
.btn {
  padding: 16px 32px;
  font-size: 1.5rem;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  color: #fff;
  margin: 8px;
  transition: background 0.3s ease;
}

.btn-play {
  background-color: #ff9900;
}
.btn-play:hover {
  background-color: #e68a00;
}

.btn-restart {
  background-color: #e60000;
}
.btn-restart:hover {
  background-color: #cc0000;
}

/* Game Over Text */
.game-over-text {
  color: white;
  font-size: 2rem;
  margin-bottom: 20px;
}

/* Mobile Jump Button */
#jump-button {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 14px 20px;
  background: #ffc400;
  border-radius: 50%;
  font-weight: bold;
  color: #000;
  font-size: 1rem;
  z-index: 5;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

#jump-button:active {
  background: #e6b300;
}

/* Show jump button only on small screens */
@media (max-width: 768px) {
  #jump-button {
    display: block;
  }

  .btn {
    font-size: 1.2rem;
    padding: 12px 24px;
  }

  .game-over-text {
    font-size: 1.5rem;
  }
}
#start-menu,
#game-over {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000; /* <- make sure it's high enough */
  width: 100%;
  height: 100%;
}

canvas {
  pointer-events: none;
}
#jump-button {
  pointer-events: auto;
}


.instructions {
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  text-align: right;
  max-width: 300px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.instructions h2 {
  margin-top: 0;
  font-size: 1.5rem;
  color: #ffcc00;
}

.instructions ul {
  list-style-type: disc;
  padding-right: 20px;
  margin: 0;
}

.instructions li {
  margin-bottom: 10px;
  font-size: 1rem;
}
