/* Styles pour l'overlay */
#overlay, #overlay2 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Filtre noir semi-transparent */
    z-index: 998; /* Place l'overlay derrière le bouton et la fenêtre modale */
    display: none;
}

/* Styles pour le bouton "Paramètres" */
#settingsBtn {
    position: fixed;
    bottom: 20px; /* distance du bas de la page */
    right: 20px; /* distance de la droite de la page */
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 999; /* Assure que le bouton est en premier plan */
    transition: all 1s linear;
}

/* Styles pour la fenêtre modale */
.modal {
    display: none;
    position: fixed;
    z-index: 1000; /* Place la fenêtre modale au-dessus de l'overlay */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 5px;
    width: 50%;
    position: relative;
}

#win {
    width: 50%;
    height: 50%;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: black;
}
