/* === Geral ==================================== */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* === Game ==================================== */

.game {
  width: 100%;
  height: 100vh;
  border-bottom: 100px solid rgb(24, 174, 24);

  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background: linear-gradient(#87ceeb, #e0f6ff);
}

.pokebola-game {
  position: absolute;
  bottom: 0;
  width: 80px;
  animation: poke-animation 1.5s infinite linear;
}

.pikachu {
  width: 150px;
  position: absolute;
  bottom: 0;
}

.jump-pikachu {
  animation: pikachu-animation 500ms ease-out;
}

.cloud-game {
  position: absolute;
  width: 700px;
  animation: clouds-animation 20s infinite linear;
}

/* === Score =================================== */

#display-tempo {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 1.5rem;
  text-transform: uppercase;
  background: -webkit-linear-gradient(#0586fe, #3537ac);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: 'Press Start 2P', cursive;
}

/* === Game Over ================================ */

.hidden {
  display: none !important;
}

.container-gameover {
  display: flex;
  justify-content: center;
}

.game-over {
  position: absolute;
  width: 500px;
  top: 20px;
}

/* === Botão Reset ============================== */

.button-reset {
  font-family: 'Press Start 2P', cursive;
  position: absolute;
  width: 300px;
  height: 50px;
  border-radius: 10px;
  color: #3560ac;
  background-color: #feca05;
  border: none;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  margin-top: 20px;
  transition: 0.5s ease;
  transition-property: background-color, color;
  box-shadow: 3px 3px #3561ac36;
}

.button-reset:hover {
  color: white;
  font-weight: 500;
  background-color: #3560ac;
}

/* === Keyframes ============================== */

@keyframes poke-animation {
  from {
    right: -80px;
  }
  to {
    right: 100%;
  }
}

@keyframes clouds-animation {
  from {
    right: -700px;
  }
  to {
    right: 100%;
  }
}

@keyframes pikachu-animation {
  0% {
    bottom: 0;
  }
  40% {
    bottom: 180px;
  }
  50% {
    bottom: 180px;
  }
  60% {
    bottom: 180px;
  }
  70% {
    bottom: 180px;
  }
  100% {
    bottom: 0%;
  }
}

/* === CSS Responsivo ============================== */

@media (max-width: 768px) {
  .game-over {
    margin-top: 150px;
    position: absolute;
    width: 400px;
  }

  .button-reset {
    width: 300px;
  }
}
