body {
  font-family: 'Comic Sans MS', cursive;
  background: linear-gradient(135deg, #e0ffcc, #a1d99b);
  margin: 0;
  padding: 0;
  text-align: center;
  color: #2e4a1f;
  transition: background-color 0.5s ease;
}

header {
  padding: 20px;
  background-color: #6aa84f;
  color: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  animation: slideDown 0.6s ease forwards;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-30px);}
  to { opacity: 1; transform: translateY(0);}
}

h1 {
  margin: 0;
  font-size: 2.5rem;
  text-shadow: 1px 1px 3px #446d32;
}

.scoreboard {
  margin-top: 10px;
  font-size: 1.2rem;
  user-select: none;
}

main {
  padding: 20px;
  animation: fadeIn 0.7s ease forwards;
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

.pergunta {
  font-size: 1.5rem;
  margin-bottom: 20px;
  background: #f6ffe9;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 0 10px #c6e6af;
  transition: background-color 0.4s ease;
}

.opcoes {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
  margin: 0 auto 20px;
}

.opcoes button {
  background-color: #8fbc8f;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  user-select: none;
}

.opcoes button:hover:not(:disabled) {
  background-color: #6d9c6d;
  transform: scale(1.05);
}

.opcoes button:disabled {
  cursor: default;
  opacity: 0.7;
}

button.correta {
  background-color: #4caf50 !important;
  animation: pulseGreen 0.8s ease infinite;
}

@keyframes pulseGreen {
  0%, 100% { box-shadow: 0 0 8px #4caf50; }
  50% { box-shadow: 0 0 20px #81c784; }
}

button.errada {
  background-color: #f44336 !important;
  animation: pulseRed 0.8s ease infinite;
}

@keyframes pulseRed {
  0%, 100% { box-shadow: 0 0 8px #f44336; }
  50% { box-shadow: 0 0 20px #e57373; }
}

#proxima {
  margin-top: 10px;
  padding: 10px 20px;
  font-size: 1.1rem;
  border: none;
  background-color: #ffc107;
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

#proxima:hover {
  background-color: #e0a800;
  transform: scale(1.05);
}

.oculto {
  display: none;
}

.mensagem {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 10px 0;
  color: #333;
  min-height: 24px;
  user-select: none;
}

.voltar {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #ff9800;
  color: white;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  user-select: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.voltar:hover {
  background-color: #fb6c00;
  transform: scale(1.05);
}

/* Toast Message */

.toast-message {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #4caf50;
  color: white;
  padding: 10px 20px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 9999;
  opacity: 0;
  animation: fadeToast 0.5s forwards;
}

@keyframes fadeToast {
  to { opacity: 1; }
}
