/* POPUP DO QUIZ */
.quiz-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

.quiz-popup-content {
    background: #111;
    border-radius: 15px;
    width: 100%;
    max-width: 500px;
    padding: 30px;
    color: #fff;
    text-align: center;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
    position: relative;
    font-family: 'Poppins', sans-serif;
}

.quiz-popup-content h4 {
    margin-bottom: 20px;
    color: #a855f7;
}

.quiz-answer-btn {
    display: block;
    width: 100%;
    margin: 10px 0;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background-color: #222;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-answer-btn:hover {
    background-color: #7d2ae8;
    color: #fff;
    transform: translateY(-2px);
}

.quiz-answer-btn.correct {
    background-color: #16a34a !important; /* Verde */
    color: #fff;
}

.quiz-answer-btn.wrong {
    background-color: #dc2626 !important; /* Vermelho */
    color: #fff;
}

.quiz-close-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #7d2ae8;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-close-btn:hover {
    background-color: #a464f8;
    transform: translateY(-2px);
}

/* Container geral do índice */
#quizIndex {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(18, 18, 18, 0.9);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.3);
    border: 2px solid #7d2ae8;
}

/* Título do índice */
#quizIndex + h2,
h2 {
    font-family: 'Poppins', sans-serif;
    color: #a855f7;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
    margin-bottom: 30px;
    font-size: 1.8rem;
}

/* Botões do índice */
#quizIndex button {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    background: #1a1a1a;
    color: #fff;
    border: 2px solid #7d2ae8;
    border-radius: 10px;
    padding: 12px 20px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Efeito de hover com glow */
#quizIndex button:hover {
    background: linear-gradient(135deg, #7d2ae8, #a464f8);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.7);
}

/* Adiciona um efeito de barra animada no hover */
#quizIndex button::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 0;
    background: #fff;
    transition: width 0.3s ease;
}

#quizIndex button:hover::before {
    width: 100%;
}

/* Responsividade para telas menores */
@media (max-width: 600px) {
    #quizIndex {
        width: 90%;
        padding: 15px;
    }

    #quizIndex button {
        font-size: 14px;
        padding: 10px 15px;
    }
}
