 @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&family=Pacifico&display=swap');

    body {
        font-family: "Poppins";
        text-align: center;
        margin: 0;
        padding: 20px;
    }

    h1 {
        font-family: "Pacifico", cursive;
        color: #3a2317;
        text-shadow: 1px 1px #f5e0c3;
        margin-bottom: 30px;
    }

    .quiz-container {
        background: rgba(255, 247, 230, 0.95);
        border: 3px solid #b38b5f;
        border-radius: 15px;
        padding: 30px 25px;
        max-width: 550px;
        margin: auto;
        box-shadow: 0 0 15px rgba(0,0,0,0.2);
        position: relative;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .quiz-container:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 25px rgba(0,0,0,0.25);
    }

    /* Logo dentro do card */
    .quiz-logo {
        position: absolute;
        top: -5px;
        right: 15px;
        width: 100px;
        height: auto;
        z-index: 10;
    }

    .question {
        font-size: 1.4em;
        margin-bottom: 20px;
        color: #5c3b28;
    }

    .options {
        text-align: left;
    }

    .options label {
        display: block;
        margin: 10px 0;
        padding: 12px 15px;
        border-radius: 8px;
        background: #fff7e6;
        cursor: pointer;
        transition: all 0.2s ease;
        border: 1px solid #d9b87a;
    }

    .options label:hover {
        background: #f2e0c4;
        transform: scale(1.02);
    }

    input[type="radio"] {
        margin-right: 10px;
    }

    button {
        background: #814827;
        border: none;
        color: #fff7e6;
        padding: 12px 25px;
        cursor: pointer;
        margin-top: 20px;
        border-radius: 10px;
        font-weight: 600;
        transition: all 0.2s ease;
    }

    button:hover {
        background: #C1864A;
        transform: scale(1.05);
    }

    .result {
        font-size: 1.5em;
        margin-top: 25px;
        padding: 15px;
        background: #fff7e6;
    }

/* Anuncio padrão desktop: canto direito */
    #ad-container {
        display: none;
        position: fixed;
        top: 50%;
        right: 40px;
        transform: translateY(-50%);
        z-index: 1000;
    }

#ad-container .ad-banner {
    background: repeating-linear-gradient(
        45deg,
        #f5f0e6,
        #f5f0e6 10px,
        #e8dfd1 10px,
        #e8dfd1 20px
    );
    padding: 15px 20px;
    width: 220px;
    text-align: center;
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
    font-family: 'Poppins', sans-serif;
    position: relative;
}

#ad-container .ad-banner img {
    width: 50px;
    height: auto;
    margin-bottom: 10px;
}

#ad-container .ad-text {
    font-weight: bold;
    color: #4b1d0d;
    margin-bottom: 10px;
    font-size: 14px;
    display: block;
}

#ad-container .ad-subtext {
    font-size: 12px;
    color: #814827;
    margin-bottom: 10px;
}

#ad-container .ad-button {
    text-decoration: none;
    background: #814827;
    border: none;
    color: #fff7e6;
    padding: 6px 15px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.2s ease;
}

#ad-container .ad-button:hover {
    background: #C1864A;
    transform: scale(1.05);
}

.voltar-site {
    text-align: center;
    margin-top: 35px;
    font-family: "Poppins", sans-serif;
}

.voltar-site a {
    text-decoration: underline;
    color: #421E12;
    font-weight: 600;
    transition: color 0.2s ease;
}

/* Responsividade para telas menores */
@media screen and (max-width: 600px) {
    body {
        padding: 10px;
    }

    h1 {
        margin-top: 35px;
        font-size: 1.5em;
        margin-bottom: 20px;
    }

    .quiz-container {
        padding: 20px 15px;
        max-width: 95%;
    }

    .quiz-logo {
        width: 70px;
        top: -10px;
        left: -10px;
    }
    #ad-container {
        position: relative; /* deixa fluir abaixo do conteúdo */
        top: auto;
        right: auto;
        bottom: auto;
        transform: none;
        margin: 20px auto 0 auto; /* centraliza */
        display: flex;
        justify-content: center;
        width: 100%;
        z-index: 1; /* não sobrepõe o quiz */
    }

    #ad-container .ad-banner {
        width: 90%;      /* ocupa quase toda a largura */
        max-width: 320px; /* limite para não ficar gigante */
        padding: 12px 15px;
    }

    #ad-container .ad-button {
        display: inline-block;
        width: auto;
        white-space: nowrap; /* botão não quebra */
    }

    .question {
        font-size: 1.2em;
        margin-bottom: 15px;
    }

    .options label {
        padding: 10px 12px;
        font-size: 0.95em;
    }

    button {
        padding: 10px 20px;
        font-size: 1em;
    }

    .result {
        font-size: 1.3em;
        padding: 12px;
    }
}
