@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #2E7D32, #43A047, #66BB6A);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

main {
    width: 100%;
    max-width: 900px;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    text-align: center;
}

h1 {
    color: #2E7D32;
    margin-bottom: 10px;
}

h2 {
    color: #2E7D32;
    margin-bottom: 15px;
}

#progresso {
    font-weight: bold;
    color: #555;
    margin-bottom: 20px;
}

/* ===== PÁGINAS DO QUIZ ===== */

.passo {
    display: none;
    animation: fade .5s;
}

.passo.ativo {
    display: block;
}

img {
    width: 100%;
    max-width: 500px;
    border-radius: 15px;
    margin-bottom: 20px;
}

p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.alternativas {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

button {
    padding: 15px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    background: #43A047;
    color: white;
    font-size: 17px;
    transition: .3s;
}

button:hover {
    background: #2E7D32;
    transform: translateY(-2px);
}

button:active {
    transform: scale(.97);
}

/* ===== RESULTADO ===== */

#resultado {
    margin-top: 20px;
    font-size: 18px;
    line-height: 1.7;
}

/* ===== GABARITO (ESTILO DA IMAGEM) ===== */

#gabarito {
    margin-top: 20px;
    padding: 25px;
    border-radius: 18px;

    background: #f4fff4;
    border: 2px solid #2E7D32;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: left;
}

/* cada questão vira card */
#gabarito > div {
    width: 100%;
    max-width: 700px;

    background: white;
    padding: 18px;
    border-radius: 14px;

    margin-bottom: 15px;

    border-left: 6px solid #43A047;

    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* título pergunta */
#gabarito strong {
    font-size: 16px;
    color: #2E7D32;
}

/* blocos internos */
#gabarito div div {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8fff8;
    font-size: 14px;
}

/* botão ⓘ discreto (SEM QUADRADO VERDE) */
.btn-info {
    background: none !important;
    border: none !important;
    box-shadow: none !important;

    color: #2E7D32;
    font-size: 14px;

    cursor: pointer;

    margin-left: 5px;
    padding: 0;
}

.btn-info:hover {
    text-decoration: underline;
}

/* animação suave */
@keyframes fade {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* responsivo */
@media(max-width:700px) {
    main {
        padding: 20px;
    }

    h1 {
        font-size: 28px;
    }

    p {
        font-size: 16px;
    }

    button {
        font-size: 15px;
    }

    #gabarito > div {
        max-width: 100%;
    }
}