* {
  font-family: 'Cinzel', serif;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #111; /* Fundo bem escuro */
  color: white;
  text-align: center;
}

/* Background do jogo para maiores de 18 */
.background-ativo {
  background-image: url("imagem/bg000tiagobackgroundtriad.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Container principal do jogo */
#game {
  max-width: 600px;
  margin: 50px auto;
  padding: 40px;
  background: rgba(20, 20, 20, 0.396); /* Fundo translúcido dark */
  border-radius: 2px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.08); /* Brilho sutil */
}

/* Estilo do título e texto */
#game h1, #game h2, #game p,
#validation h1, #validation p {
    font-size: 24px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

/* Botões */
.buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.buttons button {
  width: 100%;
  max-width: 500px;
  font-size: 22px;
  padding: 15px;
  text-transform: uppercase;
  font-weight: bold;
  border-radius: 3px;
  transition: all 0.2s;
}


.buttons button:nth-child(1) { 
  background-color: #2C2C2C;  /* Cinza Chumbo */
  color: #D1B000;  /* Dourado Opaco */
  border: 1px solid #444;
}

.buttons button:nth-child(2) { 
  background-color: #1A1F3B;  /* Azul Noite */
  color: #B0A8FF;  /* Azul acinzentado nobre */
  border: 1px solid #2C2C2C;
}

.buttons button:nth-child(3) { 
  background-color: #4E0E0E;  /* Bordô Imperial */
  color: #E5C7A9;  /* Bege nobre */
  border: 1px solid #2C2C2C;
}

/* Efeito ao passar o mouse */
.buttons button:hover {
  background-color: black;
  color: white;
  transform: scale(1.03);
  transition: 0.2s;
}

/* Animação de tremor ao perder */
@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(10px); }
  60% { transform: translateX(-10px); }
  80% { transform: translateX(10px); }
  100% { transform: translateX(0); }
}

html.shake {
  animation: shake 0.8s ease-in-out;
}

/* Brilho verde (vencedor) */
@keyframes pulse-verde {
  0%, 100% { box-shadow: inset 0 0 50px rgba(50, 205, 50, 0.2); }
  50% { box-shadow: inset 0 0 100px rgba(50, 205, 50, 0.6); }
}
.pulse-verde {
  animation: pulse-verde 1.5s ease-in-out 3;
}

/* Brilho vermelho (derrota) */
@keyframes pulse-vermelho {
  0%, 100% { box-shadow: inset 0 0 50px rgba(255, 0, 0, 0.2); }
  50% { box-shadow: inset 0 0 100px rgba(255, 0, 0, 0.6); }
}
.pulse-vermelho {
  animation: pulse-vermelho 1.5s ease-in-out 3;
}

/* Brilho preto (empate) */
@keyframes pulse-preto {
  0%, 100% { box-shadow: inset 0 0 50px rgba(79, 79, 79, 0.2); }
  50% { box-shadow: inset 0 0 100px rgba(127, 127, 127, 0.6); }
}
.pulse-preto {
  animation: pulse-preto 1.5s ease-in-out 3;
}

/* Melhorando a responsividade */
@media (max-width: 768px) {
  #game {
    width: 90%;
    padding: 20px;
  }
  
  .buttons button {
    font-size: 18px;
  }
}

#validation {
  width: 600px; 
  margin: 0 auto; /* Centraliza no meio da página */
  padding: 20px; /* Espaçamento interno */
  padding-top: 15%; /* Espaçamento superior */
}

button {
  cursor: pointer; 
  color: rgb(24, 24, 24); 
  border: none; 
  font-size: 13px;
  padding: 1px 4px;
}


footer p{
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Fundo escuro translúcido */
  text-align: center;
  font-size: 12px;
  color: white;
  padding: 10px 0;
  opacity: 0.8;
  z-index: 1000; /* Garante que fique sempre acima de outros elementos */
}

footer:hover {
  opacity: 1;
}

/* Garante que os links do footer fiquem vermelhos ao passar o mouse */
footer a:hover, 
footer a:focus {
  color: #b00000 !important; 
}

footer a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

footer a:visited {
  color: white;
}
