/* Style global */
body {
    font-family: Comic Sans MS, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 20px;
    text-align: center;
}


h1 {
    color: #333;
    font-size: 2em;
    margin-bottom: 20px;
}

/* Tableau */
table {
    width: 80%;
    margin: 20px auto;
    border-collapse: collapse;
}

th, td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
    font-size: 16px;
}

th {
    background-color: #4CAF50;
    color: white;
    font-weight: bold;
}

td {
    background-color: #fff;
}

input {
    width: 80%;
    padding: 6px;
    font-size: 16px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Gestion des erreurs : fond rouge pour les mauvaises réponses */
.error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* Boutons */
.button-container {
    margin-top: 20px;
}

#theme-toggle {
    position: fixed;  /* Fixe le bouton à une position précise */
    top: 10px;        /* Un peu de marge du haut */
    right: 10px;      /* Un peu de marge à droite */
    background-color: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;    /* Assure que le bouton soit au-dessus des autres éléments */
}
#confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    opacity: 0;
    animation: fall 3s forwards;
}

@keyframes fall {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translateY(100vh) rotate(720deg);
    }
}

button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    margin: 10px;
    border: none;
    border-radius: 5px;
    background-color: #4CAF50;
    color: white;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}

button:disabled {
    background-color: #d6d6d6;
    cursor: not-allowed;
}

/* Score */
#score {
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 20px;
    color: #333;
}

/* Réinitialiser et cacher les éléments après utilisation */
#replayBtn {
    display: none;
}

/* Marges et espacements supplémentaires */
.container 

/* Style pour le bandeau en bas */
#footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #4CAF50; /* Une couleur de fond verte */
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 16px; /* Taille du texte légèrement plus grande */
    font-family: Arial, sans-serif; /* Police plus simple */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2); /* Ajoute une ombre pour le rendre plus visible */
}

#footer strong {
    font-weight: bold;
}

/* Ajout d'un style au texte du symbole de la marque déposée */
#footer strong::after {
    content: "®"; /* Affiche le symbole de la marque déposée */
    margin-left: 5px;
    font-size: 18px;
}


.correct {
    background-color: lightgreen;
}

