body {
    font-family: 'Verdana', sans-serif;
    background: url('asia.webp') no-repeat center center fixed; /* Remplace 'ton_image.jpg' par le nom du fichier */
    background-size: cover; /* Ajuste l'image pour couvrir l'écran */
    color: #333;
    text-align: center;
    margin: 0;
    padding: 0;
}

h1 {
    color: #8b5fbf;
    font-size: 2.5em;
    font-family: 'Roboto', sans-serif;
    margin-bottom: 10px;
    background-color: rgba(255, 255, 255, 0.8); /* Fond légèrement transparent pour lisibilité */
    padding: 10px;
    border-radius: 5px;
}

#game {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px;
    max-width: 90%;
}

#grid {
    display: grid;
    grid-template-columns: repeat(10, 35px);
    gap: 5px;
    margin-bottom: 20px;
}

.cell {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8e1e7;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid #333;
    transition: all 0.2s;
    font-weight: bold;
    font-size: 1.2em;
}

.cell:hover {
    background-color: #f4b6c2;
}

.selected {
    background-color: #f4b6c2;
}

.found {
    background-color: #c3a0d9;
    color: #333;
    transition: all 0.4s;
}

#wordList h2 {
    font-size: 1.5em;
    color: #8b5fbf;
    margin: 10px 0;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 5px;
    border-radius: 5px;
}

#wordList ul {
    list-style: none;
    padding: 0;
    font-size: 1.1em;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 colonnes pour les mots */
    gap: 5px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
    padding: 10px;
}

#wordList li {
    padding: 5px 0;
    color: #000000; /* Noir pour un meilleur contraste */
}

#wordList li.found {
    background-color: #6a0080; /* Couleur plus foncée pour le surlignage */
    color: #ffffff; /* Texte blanc pour le contraste */
    font-weight: bold; /* Texte en gras */
    padding: 5px;
    border-radius: 3px;
}

button {
    padding: 12px 24px;
    margin-top: 15px;
    background-color: #8b5fbf;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.2em; /* Taille de police plus grande */
    font-weight: bold; /* Texte en gras */
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #333;
}



