* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  height: 100%;
}

#menu,
#help {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(#87ceeb, #e0f6ff);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

#menu h1 {
  font-size: 4rem;
  color: #fff;
  text-shadow: 2px 2px 4px #000;
  margin-bottom: 2rem;
}

#menu button,
#help button {
  margin: 1rem;
  padding: 1rem 2rem;
  font-size: 1.5rem;
  background: green;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

#menu button:hover,
#help button:hover {
  background: white;
  color: green;
  border: 2px solid green;
}

#game {
  display: none;
  width: 100%;
  height: 100vh;
  border-bottom: 30px solid green;
  position: relative;
  overflow: hidden;
  background: linear-gradient(#87ceeb, #e0f6ff);
}

button.start {
  background: green;
  color: white;
  font-size: 1.5rem;
  border: none;
  padding: 1rem;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 1;
}

button.start:hover {
  background: none;
  color: green;
  border: 2px solid green;
}

#game-over {
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
}

#game-over h1 {
  font-size: 3rem;
  color: red;
  margin-bottom: 2rem;
}

#game-over button {
  background-color: green;
  color: black;
  font-weight: bold;
  font-size: 1.5rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

#game-over button:hover {
  background-color: #0f0;
  color: black;
  border: 2px solid black;
}

.pipe {
  position: absolute;
  bottom: 0;
  right: -80px;
  width: 80px;
}

.mario {
  position: absolute;
  bottom: 0;
  width: 150px;
}

.clouds {
  position: absolute;
  top: 0;
  width: 550px;
  animation: clouds-animation 20s infinite linear;
}

@keyframes clouds-animation {
  from {
    right: -550px;
  }
  to {
    right: 100%;
  }
}

.pipe-animation {
  animation: pipe-animation 2s infinite linear;
}
@keyframes pipe-animation {
  from {
    right: -80px;
  }
  to {
    right: 100%;
  }
}

.jump {
  animation: jump 800ms ease-out;
}
@keyframes jump {
  0% {
    bottom: 0;
  }
  40%,
  50%,
  60% {
    bottom: 200px;
  }
  100% {
    bottom: 0;
  }
}

.score {
  position: fixed;
  top: 10px;
  right: 20px;
  font-size: 2rem;
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 4px #000;
  z-index: 3;
}

#touch-area {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  pointer-events: none; /* 👈 ESSA LINHA é a solução */
}

button {
  padding: 1rem 2rem;
  font-size: 1.5rem;
  border-radius: 10px;
  min-width: 150px;
}

#restart-btn {
  bottom: 5%;
  top: auto;
}
