body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #343a40;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 20px;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #212529;
}

canvas {
    background-color: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.word {
    font-size: 2em;
    margin: 20px 0;
    letter-spacing: 10px;
    color: #495057;
}

.letters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 600px;
    margin-bottom: 20px;
}

.letters button {
    margin: 5px;
    padding: 10px 15px;
    font-size: 1em;
    border: none;
    border-radius: 6px;
    background-color: #dee2e6;
    color: #212529;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.letters button:hover:not(:disabled) {
    background-color: #ced4da;
}

.letters button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#message {
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 20px;
}

.hidden {
    display: none;
}