body {
  background: #fafafa;
  margin: 0;
  padding: 0;
  overflow: hidden; /* Para evitar barras de rolagem */
  font-family: "Press Start 2P", system-ui;
}

.dino {
  position: absolute;
  bottom: 0;
  background-image: url(dino_run1.png);
  width: 55px;
  height: 58px;
}

.cactus {
  position: absolute;
  width: 60px;
  height: 60px;
  bottom: 0;
  background-image: url(cactus.png);
}

.voa1 {
  position: absolute;
  width: 42px;
  height: 16px;
  bottom: 80px; /* Posicionado 80px acima do chão */
  background-image: url(voa1.png);
}

.game-over {
  text-align: center;
  color: #ff0000;
  padding: 100%;
  position: absolute;
  top: 50%; /* Centraliza verticalmente */
  left: 50%; /* Centraliza horizontalmente */
  transform: translate(-50%, -50%); /* Ajusta para o verdadeiro centro */
  font-size: 100px; /* Tamanho do texto */
  border-radius: 10px; /* Bordas arredondadas */
  border: 1px solid #ff0000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Sombra para destacar */
  background-color: #000000;
}


@keyframes slideright {
  from {
    background-position: 20000%;
  }
  to {
    background-position: 0%;
  }
}

.background {
  position: absolute;
  bottom: 0;
  background-image: url('background.png');
  background-repeat: repeat-x;
  animation: slideright 600s infinite linear;
  width: 100%;
  height: 305px; /* Altura do background ajustada */
}

.score {
  font-size: 50px; /* Tamanho da fonte ajustável */
  font-family: "Press Start 2P", system-ui;
  color: #17b36a;
  background-color: rgb(190, 231, 237);
  text-align: center;
  padding: 5px;
  position: absolute;
  top: 10px; /* Ajuste de posicionamento */
  left: 10px; /* Ajuste de posicionamento */
  border-radius: 5px; /* Borda arredondada */
  border: 2px solid #17b36a; /* Borda verde para destacar */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Sombra para destacar */
}

.high-score {
  font-size: 20px; /* Tamanho da fonte ajustável */
  font-family: "Press Start 2P", system-ui;
  color: #2079cb;
  background-color: rgb(190, 231, 237);
  border: 1px solid #2079cb;
  border-radius: 5px;
  padding: 5px 10px;
  position: absolute;
  top: 22px; /* Ajuste conforme necessário */
  right: 10px; /* Ajuste conforme necessário */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Sombra para destacar */
}

.jump-button {
  position: absolute;
  bottom: 1%;
  left: 90%;
  transform: translateX(-50%);
  font-size: 20px;
  padding: 10px 20px;
  background-color: #000000;
  color: rgb(38, 255, 0);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-family: "Press Start 2P", system-ui;
  z-index: 10; /* Coloca o botão acima do texto de Game Over */
}

.jump-button:hover {
  background-color: #000000;
}
