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

html, body {
    height: 100%;
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #e0ecf8, #ffffff);
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Title */
h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

/* Word display */
#wordToFind {
    font-size: 2.2rem;
    letter-spacing: 8px;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Tries left */
#triesLeft {
    font-weight: bold;
    color: #084e8b;
}

/* Alphabet letters */
#letters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 600px;
    gap: 10px;
    margin: 30px 0;
}

#letters p {
    background-color: #ecf0f1;
    padding: 12px 18px;
    border-radius: 8px;
    border: 2px solid #3498db;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    user-select: none;
    font-weight: 500;
}

#letters p:hover {
    background-color: #3498db;
    color: white;
    transform: translateY(-2px);
}

.letter-disabled {
    background-color: #bdc3c7 !important;
    color: #7f8c8d !important;
    border-color: #95a5a6;
    cursor: not-allowed;
    pointer-events: none;
    transform: none !important;
}

/* Message de défaite */
#loose {
    color: #e74c3c;
    font-size: 1.6rem;
    margin-bottom: 15px;
    font-weight: bold;
}

#win {
    color: green;
    font-size: 1.6rem;
    margin-bottom: 15px;
    font-weight: bold;
}

/* Button */
#restart {
    background: linear-gradient(135deg, #55a5d9, #084e8b);
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: background-position 0.4s ease, transform 0.2s ease;
    background-size: 200%;
    margin-top: 10px;
}

#restart:hover {
    background-position: right center;
    transform: scale(1.05);
}