/* Importa a fonte do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

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

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(120deg, #ff9a9e, #fad0c4);
  padding: 20px;
}

.container {
  text-align: center;
  max-width: 500px;
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 20px;
  backdrop-filter: blur(15px);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}

h1 {
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 1px 1px 15px #000;
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
}

.roleta-container {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto 20px;
}

#roletaCanvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 5px solid white;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

.seta {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 30px solid #ff0000;
  z-index: 10;
  filter: drop-shadow(0px 2px 2px rgba(0,0,0,0.5));
}

.botoes-acao {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

button {
  margin: 5px;
  padding: 12px 25px;
  font-size: 16px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: 0.3s;
  background: #fff;
  color: #333;
  font-weight: bold;
}

#btnRegras {
  background: #f0f0f0;
  padding: 8px 15px;
  font-size: 14px;
}

button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  transform: scale(1);
  box-shadow: none;
}

/* O resultado agora é o comando de movimento */
#resultado {
  font-size: 1.5rem; /* Um pouco maior */
  font-weight: 700;
  color: white;
  text-shadow: 2px 2px 8px #000;
  margin-top: 15px;
  min-height: 1.5em; /* Ajustado */
}

.pergunta-container {
  margin-top: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  display: none;
}

#textoPergunta {
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  text-shadow: 1px 1px 3px #000;
}

#alternativas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.alternativa {
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.3s;
  font-weight: 500;
  border: 2px solid transparent;
}

.alternativa:hover {
  background: rgba(255, 255, 255, 0.5);
}

.alternativa.correct {
  background: #4CAF50;
  color: white;
  border-color: #fff;
}
.alternativa.incorrect {
  background: #f44336;
  color: white;
  border-color: #fff;
}
.alternativa.disabled {
  pointer-events: none;
  opacity: 0.8;
}

.info {
  margin-top: 15px;
  color: #fff;
  font-weight: 600;
  text-shadow: 1px 1px 8px #000;
}

/* --- Estilos do Modal de Regras --- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.modal-content {
  background: white;
  padding: 25px;
  border-radius: 15px;
  max-width: 450px;
  width: 90%;
  text-align: left;
  color: #333;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.modal-content h2 {
  text-align: center;
  margin-bottom: 15px;
}

.modal-content ul {
  list-style-position: inside;
  padding-left: 10px;
}

.modal-content li {
  margin-bottom: 10px;
}

#btnFecharModal {
  display: block;
  margin: 20px auto 0 auto;
  background: #ff0000;
  color: white;
}
