/* Il tuo Widget Personalizzato */
/* ------------ SEZIONE QUESTIONARIO ------------- */

.sezione-questionario {
    width: 100%;
    /* min-height: 100vh; */
    /* min-height: 100dvh; */
    /* height: 100vh; */
    /* height: 100dvh; */
    
    /* background-image: url(assets/images/sfondoUpride.png); */
    /* background-color: white; */
    /* background-position: center 70%; */
    /* background-repeat: no-repeat; */
    /* background-size: max(100dvh, 55dvh); */
    /* color: black !important; */
    
    font-family: Arial, sans-serif;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* border: 1px solid purple; */
}

/* stili per schermi più piccoli di 700px */
@media screen and (max-width: 700px) {
    .sezione-questionario {
        background-size: cover;
    }
}

/* ------------ CARD CONTENITORE QUIZ-CONTAINER ------------- */

.quiz-container {
    width: 80%;
    max-width: 600px;
    box-sizing: content-box;
    padding: 20px;
    background-color: #ffffffab;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    margin: 20px 0;
}

/* ------------ CONTENITORE DOMANDA e RISPOSTE ------------- */

.domande-risposte-container {
    flex-direction: column;
}

h1.question {
    margin-bottom: 20px;
    font-size: min(1.8rem, 4vw);
}

.answer-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* margin-bottom: 20px; */
}

.answer-card {
    font-size: min(1.2em, 3.5vw);
    line-height: max(1.5rem, 1.7dvw);
    padding: .5em;
    background-color: #e9ecef;
    transition: background-color 0.2s ease;
    border: 1px solid #ced4da;
    border-radius: 5px;
    cursor: pointer;
}

.answer-card:hover {
    background-color: #dee2e6;
}

.answer-card.selezionato {
    background-color: #713B9B;
    /* Green */
    color: white;
}

/* ------------ PUNTEGGIO ------------- */

.success-message {
    flex-direction: column;
    margin-top: 30px;
    margin-bottom: 30px;
    animation: celebrate 0.6s ease-out;
}

.success-message>span {
    font-size: 27px;
    font-weight: 700;
    color: #713B9B;
}

@keyframes celebrate {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ------------------------- */

.navigatore-Pagine {
    display: flex;
    justify-content: space-evenly;
    margin: 15px 0px;
}

.button-in-main-box {
    height: 30px;
    width: 40%;

    font-size: 0.8em;

    border: 2px solid #713B9B;
    border-radius: 20rem;

    transition: all 0.3s ease;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
}

.button-in-main-box:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px #646cff50;
}

/* ------------------------- */

.progress-container {
    margin-top: 12px;
}

.progress-bar {
    width: 100%;
    height: .5em;
    background: #e0e0e000;
    background: #764ba22b;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    /* transition: width 0.1s linear; */
    border-radius: 15px;
}

/* ------------------------- */

.form-invio-mail {
    flex-direction: column;
    line-height: 2rem;
    position: inherit;
}

.form-invio-mail input {
    border-bottom: 1px solid darkgray !important;
    text-align: center;
}

.emojimail {
    font-size: 55px;
    margin-bottom: 10px;
}

/* ------------------------- */

.fade-in-text {
    animation: fadeInAnim 0.6s ease-out forwards;
}

@keyframes fadeInAnim {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}