*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body  {
    font-family: sans-serif;
    text-align: center;
    background-image: url('../img/fondpendu.jpg'); /* Chemin relatif pour accéder au dossier img */
    background-size: cover; /* Pour couvrir toute la surface du body */
    background-repeat: no-repeat; /* Pour éviter la répétition de l'image */
    user-select: none;
    }

header {
    margin: 2rem 0;
}

section[id="letters"] {
    border: none;
    border-radius: 0.5rem;
    padding: 1rem;
    background: linear-gradient(to right, #1e3c72, #2a5298);
    box-shadow: 0 0 1rem #ffff;
    max-width: 600px;
    margin: 2rem auto;
}

section[id="letters"] ul li {
    border: 0.1rem solid black;
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 0.5rem;
    background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
    cursor: pointer;
    margin: 0.3rem;
}

section[id="letters"] ul li[class="good"] {
    background: lightgreen;
}

section[id="letters"] ul li[class="wrong"] {
    background: tomato;
}

section[id="letters"] ul li[class="disabled"] {
    pointer-events: none;
    cursor: pointer;
}

section[id="letters"] button {
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: none;
    outline: none;
    margin-top: 1rem;
    cursor: pointer;
    background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
    color: white;
}

section[id="Mot_a_trouver"] figcaption {
    max-width: 300px;
    border: 0.1rem solid #ffff;
    border-radius: 0.5rem;
    margin: auto;
    padding: 0.5rem;
}

section[id="Mot_a_trouver"] figcaption > hr {
    margin: 0.5rem auto;
    width: 90%;
    border-color: lightskyblue;
}

section[id="Mot_a_trouver"] figcaption, 
section[id="Mot_a_trouver"] > p {
    margin-top: 1rem;
}

section[id="Mot_a_trouver"] > p {
    letter-spacing: 1rem;
}

section[id="Mot_a_trouver"] > p.gameover {
    letter-spacing: 0rem;
    font-weight: bold;
    font-size: 1.5rem;
}

section[id="Mot_a_trouver"] > p.winner {
    color: lightgreen;
}

section[id="Mot_a_trouver"] > p.winner::after {
    content: '\01F603';
}

section[id="Mot_a_trouver"] > p.looser {
    color: tomato;
}

section[id="Mot_a_trouver"] > p.looser::after {
    content: '\01f625';
}


  


