/* Style général du corps */
        header {
            text-align: center;
            padding: 10px;
            background-color: #333;
            color: #fff;
        }

        header img {
            width: 50px;
            vertical-align: middle; /* Ajuste l'alignement vertical de l'image */
        }

        header h2 {
            display: inline-block; /* Place le texte sur la même ligne que l'image */
            margin-left: 10px; /* Marge à gauche de l'image */
            font-family: Arial, sans-serif; /* Police légèrement différente */
        }
body {
    font-family: 'Arial', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(to right, #ff7e5f, #feb47b);
    color: #333;
}

/* Conteneur principal du jeu */
#game-container {
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
    display: none;
    margin: auto; /* Centre le conteneur verticalement */
}

/* Style pour la page d'accueil */
.home-screen {
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
    margin: auto; /* Centre le conteneur verticalement */
}

.home-screen h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #555;
}

.home-screen button {
    padding: 10px 20px;
    font-size: 1.2em;
    color: #fff;
    background: #ff7e5f;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.home-screen button:hover {
    background: #feb47b;
    transform: translateY(-2px);
}

.home-screen button:active {
    transform: translateY(1px);
}

/* Style pour chaque niveau */
.level {
    display: none;
    margin: 20px;
    padding: 20px;
    border-radius: 10px;
    transition: all 0.5s ease;
}

.level.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

/* Animation pour l'apparition des niveaux */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Style des titres des niveaux */
.level h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #555;
}

/* Style des champs de saisie */
.level input[type="password"] {
    width: 80%;
    padding: 10px;
    margin-bottom: 20px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    transition: border 0.3s ease;
}

.level input[type="password"]:focus {
    border: 2px solid #ff7e5f;
    outline: none;
}

/* Style des boutons */
.level button {
    padding: 10px 20px;
    font-size: 1em;
    color: #fff;
    background: #ff7e5f;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.level button:hover {
    background: #feb47b;
    transform: translateY(-2px);
}

.level button:active {
    transform: translateY(1px);
}

/* Style pour la fenêtre modale */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.4s ease-in-out;
}

/* styles.css */

/* Styles pour le bouton des crédits */
#credits-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 20px;
    background-color: #fff;
    color: #ff7e5f;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease, transform 0.3s ease;
}

#credits-button:hover {
    background-color: #ff7e5f;
    color: #fff;
    transform: scale(1.15); /* Augmente légèrement la taille au survol */
}


/* Style pour les modales */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

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

.modal-content .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #888;
}


@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Style pour le footer */
footer {
    background-color: white;
    padding: 10px 0;
    text-align: center;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
}

footer p {
    margin: 0;
    font-size: 1em;
    color: #555;
}
