body {
    text-align: center;
    margin: 0;
    background-color: #f0f0f0;
    color: #333;
    font-family: Arial, sans-serif;
}

h1 {
    margin-top: 20px;
}

.box {
    border: 6px solid #333;
    background-color: #fff;
    padding: 20px;
    margin-top: 50px;
}

.question-container {
    margin-bottom: 30px;  /* Espacement entre les questions */
}

.question {
    font-size: 18px;
    margin-bottom: 10px;
}

button {
    background-color: #444;
    color: white;
    border: none;
    padding: 10px;
    margin: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #555;
}

button.correct {
    background-color: green;
}

button.incorrect {
    background-color: red;
}

/* Affichage de la réponse (initialement cachée) */
.response {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.6s, visibility 0.6s;
    margin-top: 10px;
    font-weight: bold;
    font-size: 18px;
    color: #333;  /* Couleur par défaut */
    text-align: left;  /* Alignement à gauche */
}

.response.show {
    visibility: visible;
    opacity: 1;
}

/* Couleurs pour les réponses */
.response.correct {
    color: green;
}

.response.incorrect {
    color: red;
}

.result {
    margin-top: 30px;
}

#final-result {
    font-size: 20px;
    font-weight: bold;
}

/* Style du mode nuit */
body.night-mode {
    background-color: #121212;
    color: #fff;
}


body.night-mode .box {
    background-color: #333;
    border-color: #555;
}

