/* Estilos Gerais */
body {
  font-family: 'Press Start 2P', cursive; /* Fonte estilo pixel art */
  background: linear-gradient(135deg, #708090 20%, #2b3e50 80%); /* Gradiente de fundo */
  color: #f5f5f5; /* Cor do texto mais clara */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  text-align: center; /* Centralizar texto */
}

header {
  background-color: #222;
  color: #fff;
  padding: 20px 0; /* Aumentar o padding */
  width: 100%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); /* Sombra mais forte */
  margin-bottom: 30px; /* Aumentar a margem */
  border-radius: 0 0 15px 15px; /* Arredondar bordas inferiores */
}

h1 {
  margin: 0;
  font-size: 2.5em; /* Aumentar o tamanho da fonte */
  text-shadow: 3px 3px 0 #000; /* Sombra no texto */
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px; /* Aumentar o espaçamento */
}

/* Canvas */
#canvas-container {
  width: 800px;
  border: 5px solid #222; /* Borda mais grossa */
  border-radius: 15px; /* Aumentar o arredondamento */
  overflow: hidden;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5); /* Sombra mais pronunciada */
}

/* Instruções */
#instructions {
  background-color: rgba(0, 0, 0, 0.5); /* Fundo semi-transparente */
  color: #fff;
  padding: 15px; /* Aumentar o padding */
  border-radius: 10px;
  text-align: center;
  font-size: 1em; /* Aumentar tamanho da fonte */
  text-shadow: 2px 2px 0 #000; /* Sombra no texto */
}

/* Rodapé */
footer {
  margin-top: 30px; /* Aumentar a margem */
  text-align: center;
  font-size: 0.9em;
  color: #ddd; /* Cor mais clara */
}

/* Botão de Reiniciar */
#restart-button {
  display: none;
  background-color: #00cc00; /* Cor de fundo mais vibrante */
  color: white;
  padding: 20px 40px; /* Aumentar o padding */
  text-align: center;
  text-decoration: none;
  font-size: 1.2em; /* Aumentar o tamanho da fonte */
  margin: 30px 0; /* Aumentar a margem */
  cursor: pointer;
  border: none;
  border-radius: 10px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease; /* Transição suave */
  font-family: 'Press Start 2P', cursive; /* Fonte estilo pixel art */
  text-shadow: 2px 2px 0 #000; /* Sombra no texto */
}

#restart-button:hover {
  background-color: #00aa00; /* Escurecer no hover */
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7); /* Aumentar sombra no hover */
  transform: translateY(-2px); /* Leve deslocamento para cima */
}

/* Ícones */
.iconify {
  vertical-align: -0.125em;
}

/* Texto Game Over */
.game-over-text {
  font-size: 4em; /* Aumentar tamanho da fonte */
  fill: #ff0000;
  text-align: center;
  font-family: 'Press Start 2P', cursive; /* Fonte estilo pixel art */
  text-shadow: 5px 5px 0px #000; /* Sombra mais forte */
}

/* Texto Pontuação Final */
.score-text {
  font-size: 2em; /* Aumentar tamanho da fonte */
  fill: #f5f5f5;
  text-align: center;
  font-family: 'Press Start 2P', cursive; /* Fonte estilo pixel art */
  text-shadow: 3px 3px 0px #000; /* Sombra no texto */
}

/* Responsividade para Telas Menores */
@media (max-width: 850px) {
  #canvas-container {
      width: 95%;
      border-width: 3px;
  }

  h1 {
      font-size: 2em;
  }

  #instructions {
      font-size: 0.9em;
      padding: 10px;
  }

  #restart-button {
      font-size: 1em;
      padding: 15px 30px;
  }

  .game-over-text {
      font-size: 3em;
  }

  .score-text {
      font-size: 1.5em;
  }
}
