body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    padding: 20px;
    margin: 0;
}

#quiz-container {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 80px;  /* Spazio per evitare che l'H1 venga coperto dall'header */
}

#fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 98%;  /* Migliora la gestione dello spazio */
    padding: 1%;  /* Aggiunge un margine interno */
    background-color: #4CAF50;
    color: white;
    display: flex;
    justify-content: space-between;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

#timer {
    font-size: 18px;
    flex: 1;
}

#progress {
    font-size: 18px;
    white-space: nowrap;
    flex: 1;
    text-align: right;
}

button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    margin-top: 20px;
    display: block;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    font-size: 16px;
}

button:hover {
    background-color: #45a049;
}

.question {
    margin-bottom: 20px;
}

.question p {
    font-weight: bold;  /* Rendere il testo della domanda in grassetto */
}

.selected {
    background-color: #d4edda; /* Verde chiaro per indicare la selezione */
    padding: 5px;
    border-radius: 5px;
}

.result {
    margin-top: 20px;
    font-weight: bold;
}

.hidden {
    display: none;  /* Nasconde gli elementi */
}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    button {
        font-size: 14px;
        padding: 8px 16px;
    }

    #timer, #progress {
        font-size: 16px;
        white-space: normal; /* Permetti il ritorno a capo su schermi piccoli */
    }
}