/* Botão Principal para Abrir o Quiz */
#gquiz-open-button {
    position: fixed;
    bottom: 20px;
    width: 80px;
    height: 80px;
    border: none;
    border-radius: 50%; /* Faz o botão ser redondo */
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 9998;
    transition: all 0.3s;
    
    /* Novo layout com Flexbox para alinhar ícone e texto */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px 5px; /* Ajuste no padding */
}

#gquiz-open-button:hover {
    transform: scale(1.1); /* Efeito de zoom no hover */
}

/* Classes de Posicionamento */
.gquiz-pos-left {
    left: 20px;
}
.gquiz-pos-right {
    right: 20px;
}

/* Estilo para o Ícone (SVG) dentro do botão */
#gquiz-open-button .gquiz-icon svg {
    width: 32px;
    height: 32px;
    stroke: currentColor; /* O ícone herda a cor do texto do botão */
    margin-bottom: 5px;
}

/* Estilo para o Texto dentro do botão */
#gquiz-open-button .gquiz-text {
    line-height: 1.2;
    text-align: center;
}


/* --- O RESTO DO CSS DO MODAL CONTINUA IGUAL --- */

/* Overlay do Modal (fundo escurecido) */
#gquiz-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7); display: flex;
    justify-content: center; align-items: center; z-index: 9999;
}

/* Conteúdo do Modal */
#gquiz-modal-content {
    background-color: #fff; padding: 20px 30px; border-radius: 8px;
    width: 90%; max-width: 600px; max-height: 90vh; overflow-y: auto;
    position: relative; box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Botão de Fechar */
#gquiz-close-button {
    position: absolute; top: 10px; right: 15px; font-size: 28px;
    font-weight: bold; color: #aaa; cursor: pointer;
}
#gquiz-close-button:hover { color: #333; }

/* Estilo das Perguntas e Respostas */
.gquiz-question h3 { margin-top: 0; }
.gquiz-answers { list-style: none; padding: 0; margin: 20px 0; }
.gquiz-answers li { padding: 10px; border: 1px solid #ddd; border-radius: 5px; margin-bottom: 10px; cursor: pointer; }
.gquiz-answers li:hover { background-color: #f5f5f5; }
.gquiz-answers label { display: block; cursor: pointer; width: 100%; }

/* Área de Navegação */
#gquiz-navigation {
    display: flex; justify-content: space-between; margin-top: 20px;
    border-top: 1px solid #eee; padding-top: 20px;
}
#gquiz-navigation button {
    padding: 10px 20px; border: none; background-color: #0073aa;
    color: white; border-radius: 5px; cursor: pointer;
}
#gquiz-navigation button#gquiz-prev-button { background-color: #6c757d; }