/* Estilos para os botões de resposta */
.quiz-pergunta {
  text-align: center;
}

.quiz-pergunta h3 {
  color: #555;
  font-weight: 400;
  margin-bottom: 40px !important;
}

.quiz-resposta-btn {
  display: block;
  width: 100%;
  padding: 16px;
  margin-bottom: 10px;
  border: 1px solid #000;
  border-radius: 5px;
  background-color: #000;
  color: #f1f1f1;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s, border-color 0.3s;
}

.quiz-resposta-btn:hover:not(:disabled) {
  background-color: #111;
  border-color: #111;
}

/* Feedback visual para as respostas */
.resposta-correta-btn {
  background-color: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
  font-weight: bold;
}

.resposta-errada-btn {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

.quiz-resposta-btn:disabled {
  cursor: not-allowed;
}

/* Modal Overlay */
.quiz-modal-overlay {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Modal Content (a janela pop-up) */
.quiz-modal-content {
  background-color: #fff;
  padding: 30px;
  padding-top: 20px; /* Reduz o padding superior para a barra de progresso */
  border-radius: 8px;
  width: 100%;
  max-width: 450px;
  position: relative; /* Essencial para o posicionamento da barra */
  overflow: hidden; /* Para garantir que a borda não saia da div */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Barra de Progresso */
.quiz-progress-bar-container {
  position: absolute; /* Posiciona a barra em relação ao modal-content */
  top: 0;
  left: 0;
  width: 100%;
  height: 6px; /* Altura da 'borda' */
  background-color: #e0e0e0;
  border-radius: 8px 8px 0 0; /* Apenas os cantos superiores arredondados */
}

.quiz-progress-bar-fill {
  height: 100%;
  width: 0%;
  background-color: #51c605;
  transition: width 0.4s ease;
}

/* Botão de fechar */
.quiz-modal-close-btn {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.quiz-modal-close-btn:hover,
.quiz-modal-close-btn:focus {
  color: #000;
  text-decoration: none;
}
