
/* Début de votre fichier CSS du jeu */

html, body {
    margin: 0;
    padding: 0;
    /* C'est la ligne magique ! */
    min-height: 100vh; /* 'vh' signifie "viewport height" (hauteur de la fenêtre visible) */
    width: 100%; /* S'assurer qu'il prend aussi toute la largeur */
    /* Assurez-vous que la couleur de fond que vous voulez pour le jeu est ici */
    background-color: #6a9ac9; /* Couleur du fond de votre jeu du Pendu (un bleu clair) */
}

/* Le reste de votre CSS pour le jeu... */



body {
    font-family: sans-serif;
    text-align: center;
    background: #ebaaff;
}

#grid {
    display: grid;
    grid-template-columns: repeat(4, 80px);
    gap: 10px;
    justify-content: center;
    margin: 20px auto;
}

.card {
    width: 80px;
    height: 80px;
    background: #444;
    border-radius: 8px;
    font-size: 2rem;
    color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}

.revealed {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: white;
    color: rgb(0, 0, 0);
}

.matched {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: lightgreen;
    color: black;
    cursor: default;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center; 
    margin: 0;
    padding: 0;
}


