/* Rimuove i margini e blocca lo scroll della pagina */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000000;
    font-family: sans-serif;
}

/* Div a schermo intero sul monitor 9:16 */
.fullscreen-box {
    width: 100vw;
    height: 100vh;
    /* Stile estetico */
    background-color: #DD0A2B;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    font-weight: bold;
}

.hidden {
    display: none;
}

.disabled {
    pointer-events: none;
}

.slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    display: none;
    position: absolute;
    transition: background-image 0.3s ease-in-out;
}

.slide.active {
    display: block;
}

.answer-patch {
    position: absolute;
    width: 100%;
    height: 10%;
    display: none;
    /*background-color: rgba(0, 0, 0, 0.5);*/
}

#answer-a {
    top: 32%;
}

#answer-b {
    top: 43.5%;
}

#answer-c {
    top: 55%;
}

#answer-d {
    top: 66.5%;
}

#slide-a {
    background-image: url(../img/apertura.jpg);
}

#slide-0 {
    background-image: url(../img/question-0.jpg);
}

#slide-1 {
    background-image: url(../img/question-1.jpg);
}

#slide-2 {
    background-image: url(../img/question-2.jpg);
}

#slide-3 {
    background-image: url(../img//question-3.jpg);
}

#slide-4 {
    background-image: url(../img/question-4.jpg);
}

#slide-5 {
    background-image: url(../img/question-5.jpg);
}

#slide-6 {
    background-image: url(../img/end.jpg);
}

.button {
    /*background-color: rgba(0, 255, 0, 0.5);*/
    width: 66%;
    position: absolute;
}

#start-button {
    height: 9%;
    top: 43.5%;
    left: 18%;
}

#send-button {
    height: 191px;
    width: 711px;
    background-image: url(../img/send-button.png);
    background-size: contain;
    top: 81%;
    left: 28%;
}

#next-button {
    top: 79%;
    left: 18%;
    height: 9%;
}

.timer-container {
    position: absolute;
    left: 7%;
    top: 80%;
    width: 200px;
    height: 200px;
    display: none;
}

svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg) ;
}

.clipped-content {
    clip-path: url(#circle-clip);
}

.outer-border {
    fill: none;
    stroke: #ffffff;
    stroke-width: 10px;
}

/* Lo sfondo fisso giallo (rivelato dal timer) */
.yellow-base {
    fill: url(#yellow-gradient);
}

/* Lo sfondo pieno bianco che si rimpicciolisce */
.animated-fill {
    fill: none;
    stroke: url(#radial-gradient);
    /* Lo stroke-width è 180 per riempire l'intero cerchio (raggio 90 x 2) */
    stroke-width: 180px;
    /* La circonferenza calcolata (2 * PI * raggio) dove raggio è 90 */
    stroke-dasharray: 565;
    stroke-dashoffset: 0;
}

/* L'animazione di 1 secondo che fa crescere lo spicchio trasparente */
.animate {
    animation: countdown-slice 1s linear infinite;
}

@keyframes countdown-slice {
    0% {
        stroke-dashoffset: 0; /* Cerchio tutto bianco */
    }

    100% {
        stroke-dashoffset: 565; /* Diventa tutto trasparente */
    }
}

/* Il numero al centro */
.number {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 7.5rem;
    font-weight: bold;
    letter-spacing: -5px;
    color: #DD0A2B;
    z-index: 10;
    user-select: none;
    transition: color 0.2s ease;
}