body {
    font-family: Arial, sans-serif;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    color: #2c3e50;
}

.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.guess-grid {
    display: grid;
    grid-template-rows: repeat(6, 1fr);
    gap: 5px;
    margin-bottom: 20px;
}

.guess-row {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 5px;
}

.guess-tile {
    width: 35px;
    height: 35px;
    border: 2px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
}

.correct {
    background-color: #6aaa64;
    color: white;
    border-color: #6aaa64;
}

.present {
    background-color: #c9b458;
    color: white;
    border-color: #c9b458;
}

.absent {
    background-color: #787c7e;
    color: white;
    border-color: #787c7e;
}

.keyboard {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.keyboard-row {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.key {
    min-width: 30px;
    height: 45px;
    border-radius: 4px;
    background-color: #d3d6da;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    padding: 0 5px;
}

.key-wide {
    min-width: 65px;
}

#game-message {
    margin: 15px 0;
    font-weight: bold;
    height: 20px;
}

#new-game-btn {
    background-color: #2c3e50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

#new-game-btn:hover {
    background-color: #1a252f;
}

.instructions {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 20px;
    text-align: left;
}

.hidden {
    display: none;
}

.word-list {
    margin-top: 15px;
    font-style: italic;
    color: #666;
}