/* QUIZ PAGE TEMPLATE STYLES */
:root {
    --yellow: #FFF200;
    --blue: #00d4e2;
    --dark-blue: #02567e;
    --white: #fff;
    --black: #000;
    --tealdark: #00557d;
    --tealmid: #00abc8;
    --teallight: #00d5e3;
    --tealpale: #e6f6f9;
    --Boisterous: #254aa2;
    font-size:14px;
}

body {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: var(--yellow);
    font-family: "Open Sans", sans-serif;
    overflow: hidden;
}

/* @keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(-5deg);
    }
} */

body::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(to bottom right, var(--dark-blue), var(--blue));
    transform: rotate(-5deg);
    transform-origin: center center;
    /*translate: 0.5% 0.5%;*/
    /*animation: rotate 0.5s ease-in-out 1s;*/

    z-index: -1;
}

.container {
    display: grid;
    grid-template-rows: auto;
    justify-items: center;
    max-width: 800px;
    width: 90%;
    padding: 0;
    box-sizing: border-box;


}

.subtitle {
    color: #f5d300;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-align: center;
}

.domanda {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 1rem 1rem;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0;
}

.logo svg {
    width: 80%;
    height: auto;
}

.risposte {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.risposte input[type="radio"] {
    display: none;
}

.risposte label {
    display: block;
    width: 100%;
    padding: 1em 0em;
    margin-top: 10px;
    background-color: var(--teallight);
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.5rem;
    color: rgba(0,0,0,0.7); 
}

.risposte label:hover {
    background-color: var(--tealdark);
    color: var(--tealpale);
}
.risposte input[type="radio"]:checked+label {
    background-color: var(--tealdark);   
    color: var(--tealpale);
}

.dcont {
    padding:0;
    margin:0;
    width:100%;
    text-align: center;
}

#d2,
#d3 {
    display: none;
}


@keyframes fadeInOut {
    0%,100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.esito {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    font-size:2rem;
    color: var(--tealpale);
    text-align: center;
    margin-top:1rem;
    line-height: 1.2;
    font-weight: 700;
    animation: fadeInOut 3s linear infinite;
    text-shadow: #00d5e3;
}
/* Form */

form {
    display: flex;
    flex-direction: column;
    row-gap: 1.1rem;
    width: 100%;
}


label {
    font-size: 1rem;
    line-height: 0.2;
    margin: 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.8);

}

.note {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.5);
    width: 100%;
    display: inline-block;
    margin-top: 0.5rem;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
}


.checkbox-item {
    display: flex;
    align-items: center;
}

.checkbox-item input[type="checkbox"] {
    margin-right: 10px;
}

.checkbox-item label {
    font-size: 0.75rem; 
}

input[type="text"],
input[type="email"],
input[type="date"],
input[type="tel"] {
    width: 100%;
    padding: 10px 5px;
    margin: 0;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="date"]::placeholder,
input[type="tel"]::placeholder {
    opacity: 0.5;
}

.toast {
    position: fixed;
    top: 10%;
    right: 1rem;
    background-color: #000;
    color: white;
    padding: 10px;
    border-radius: 6px;
    z-index: 99;
    opacity: 0;
    font-size: 0.75rem;
    animation: fadeInMove 0.5s ease-out forwards;
}

@keyframes fadeInMove {
    0% {
        opacity: 0.2;
        transform: translateY(0);
    }

    100% {
        opacity: 0.4;
        transform: translateY(-10px);
    }
}



#startquiz {
    width: 180px;
    border: 0;
    background: #191919;
    color: var(--yellow);
    border: 1px solid #191919;
    letter-spacing: 2px;
    padding: 0.5rem 2.5rem;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
}

#startquiz:hover {
    background: var(--yellow);
    color: #191919;
    border: 1px solid #191919;
}

.formtitle {
    color: var(--yellow);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.correct-answer {
    box-shadow: 0 0 25px 5px var(--yellow);
}

/* Mantiene lo stile visivo anche quando i radio button sono disabilitati */
.risposte input[type="radio"]:disabled+label {
    cursor: default;
}