/* Reset des styles par défaut */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Styles de base */
body {
    font-family: 'Arial', sans-serif;
    background-color: #fafafa;
    text-align: center;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1 {
    margin: 20px 0;
    font-size: 2rem;
    color: #333;
}

p {
    font-size: 1.1rem;
    color: #555;
    margin: 15px 0;
}

/* Container du jeu */
.game-container {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    margin: 20px 0;
    max-width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
}

/* Liste des mots */
.word-list {
    width: 30%;
    max-height: 550px;
    overflow-y: auto;
    padding: 0;
}

.word-list ul {
    list-style-type: none;
    padding: 0;
}

.word-list li {
    padding: 8px;
    font-size: 1rem;
    background-color: #f0f0f0;
    margin: 5px 0;
    border-radius: 5px;
}

/* Section des phrases */
.phrases-container {
    width: 65%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: flex-start;
    padding-left: 10px;
    max-height: 500px;
    overflow-y: auto;
}

.phrase {
    font-size: 1.2rem;
    margin-bottom: 15px;
    width: 100%;
}

.blank {
    border-bottom: 2px solid #000;
    width: 80px;
    display: inline-block;
    text-align: center;
    margin: 0 5px;
    min-width: 40px;
    padding: 2px;
}

.blank[contenteditable="true"]:empty:before {
    content: "";
    color: #888;
}

/* Style des boutons */
button {
    margin-top: 20px;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

button:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

/* Zone de résultat */
#result {
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
}

/* Rendre le contenu réactif */
@media (max-width: 768px) {
    .game-container {
        flex-direction: column;
        align-items: center;
    }

    .word-list {
        width: 100%;
        margin-bottom: 20px;
    }

    .phrases-container {
        width: 100%;
    }
}
