@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
/* Estilo Geral do jogo */
body {
  font-family: 'Press Start 2P', cursive;
  text-align: center;
  background: linear-gradient(90deg, #C9E4CA, #F7CAC9, #C5CAE9);
  margin: 0;
  padding: 0;
  overflow: hidden;
  animation: backgroundAnimation 10s infinite alternate;
  -webkit-animation: backgroundAnimation 10s infinite alternate; /* ✅ Para melhor compatibilidade */
}
/* Estilo do titulo  */
h1 {
  font-size: 25px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  color: #FFC5C5;
  margin-bottom: 10px;
}
/* Estilo da pontuação */
#score {
  font-size: 24px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
  color: #6f7ee4;
  margin: 10px 0;
}
/* Estilo do canvas */
canvas {
  display: block;
  background: linear-gradient(180deg, #2b1055, #7597de);
  border: 2px solid #ff00ff;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
  margin: 0px auto;
  max-width: 90vw;
  height: auto;
}
/* Estilo dos controles */
#controls {
  display: flex;
  justify-content: center;
  margin-top: 0px;
}
#game-container {
  position: relative;
}
/* Estilo do botão */
#startButton {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  display: inline-block;
  background: #ff00ff;
  border: none;
  padding: 15px;
  font-size: 20px;
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
  cursor: pointer;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(255, 0, 255, 0.5);
  margin-top: 0px;
  transition: transform 0.2s ease, background 0.2s ease;
  transform: translate(-50%, -50%);
}
#startButton:hover {
  background: #ff33ff;
}
#startButton:active {
  transform: scale(0.95);
  box-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}
/* Estilo do botão de game over */
#gameOverMessage {
  position: absolute;
  top: 50%;
  left: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #ff00ff;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
  z-index: 10;
  max-width: 80%;
  backdrop-filter: blur(5px);
  transform: translate(-50%, -50%);
}
#gameOverMessage h2 {
  color: #ff00ff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}
#gameOverMessage p {
  color: #333;
}
#restartButton {
  background: #ff00ff;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  color: white;
  cursor: pointer;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
  transition: background 0.2s ease;
}
#restartButton:hover {
  background: #ff33ff;
}
.hidden {
  display: none;
}
/* Efeito de pulso para o texto */
@keyframes pulse {
  0% { opacity: 0.7; text-shadow: 0 0 10px rgba(255, 255, 255, 0.7); }
  50% { opacity: 1; text-shadow: 0 0 20px rgba(255, 255, 255, 1); }
  100% { opacity: 0.7; text-shadow: 0 0 10px rgba(255, 255, 255, 0.7); }
}
@keyframes backgroundAnimation {
  0% { background: linear-gradient(90deg, #C9E4CA, #F7CAC9, #C5CAE9); }
  25% { background: linear-gradient(90deg, #F7CAC9, #C5CAE9, #C9E4CA); }
  50% { background: linear-gradient(90deg, #C5CAE9, #C9E4CA, #F7CAC9); }
  75% { background: linear-gradient(90deg, #C9E4CA, #F7CAC9, #C5CAE9); }
  100% { background: linear-gradient(90deg, #F7CAC9, #C5CAE9, #C9E4CA); }
}
