body {
    font-family: "Silkscreen", sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #e0f7fa; /* Bleu clair doux */
    color: #333; /* Couleur du texte */
}

#game-container {
    border: 2px solid #00897b; /* Vert foncé */
    border-radius: 10px;
    padding: 20px;
    width: 80%;
    max-width: 600px;
    margin: 20px auto;
    box-sizing: border-box;
    background-color: #ffffff; /* Blanc pur */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Style de l'entrée de devinette */
#guess-input {
    width: 70%;
    margin-right: 10px;
    box-sizing: border-box;
    padding: 10px;
    border: 2px solid #00897b;
    border-radius: 5px;
}

/* Style du bouton de devinette */
#guess-btn {
    font-family: "Silkscreen", sans-serif;
    background-color: #ffcc80; /* Orange doux */
    color: white;
    padding: 10px 20px;
    margin-top: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 80%;
    box-sizing: border-box;
}

/* Style au survol du bouton de devinette */
#guess-btn:hover {
    background-color: #ffa726; /* Orange vif */
    transform: scale(1.05);
}

/* Style du message de résultat */
#result-msg {
    margin-top: 20px;
    font-size: 1.2em;
}

/* Style de l'affichage du meilleur score */
#best-score {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #00897b; /* Vert foncé */
}

/* Styles pour le bouton "Recommencer" dans le cadre du jeu */
#restart-btn {
    font-family: "Silkscreen", sans-serif;
    background-color: #ffcc80;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 80%;
    box-sizing: border-box;
}

/* Style au survol du bouton "Recommencer" */
#restart-btn:hover {
    background-color: #ffa726;
    transform: scale(1.05);
}

/* Styles pour la 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);
    padding-top: 60px;
    box-sizing: border-box;
}

/* Style du contenu de la modale */
.modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 400px;
    border-radius: 10px;
    text-align: center;
    box-sizing: border-box;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Style du bouton de fermeture de la modale */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

/* Style au survol et au focus du bouton de fermeture de la modale */
.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Style du bouton "Recommencer" dans la modale */
#modal-restart-btn {
    font-family: "Silkscreen", sans-serif;
    background-color: #ffcc80;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
    width: 80%;
    box-sizing: border-box;
}

/* Style au survol du bouton "Recommencer" dans la modale */
#modal-restart-btn:hover {
    background-color: #ffa726;
    transform: scale(1.05);
}

/* Style des messages d'avertissement */
.warning {
    color: yellow;
    font-weight: bold;
    background-color: black;
    padding: 5px;
}

/* Style des messages d'indices */
.hint {
    color: #00897b;
    font-weight: bold;
}
