body {
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    background-color: #121213;
    color: white;
}

h1 {
    font-size: 36px;
    margin: 20px 0;
    letter-spacing: 2px;
}

#board {
    width: 350px;
    height: 420px;
    margin: 0 auto;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
}

.tile {
    width: 60px;
    height: 60px;
    border: 2px solid #3a3a3c;
    margin: 2.5px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    font-weight: bold;
    transition: all 0.2s;
}

.tile.correct {
    background-color: #538d4e;
    border-color: #538d4e;
}

.tile.present {
    background-color: #b59f3b;
    border-color: #b59f3b;
}

.tile.absent {
    background-color: #3a3a3c;
    border-color: #3a3a3c;
}

.keyboard-row {
    width: 400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    margin-bottom: 5px;
}

.key-tile {
    width: 36px;
    height: 50px;
    margin: 1px;
    border: 1px solid #3a3a3c;
    background-color: #818384;
    color: white;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    user-select: none;
}

.enter-key-tile {
    width: 60px;
    height: 50px;
    margin: 1px;
    border: 1px solid #3a3a3c;
    background-color: #818384;
    color: white;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    user-select: none;
}

.key-tile:hover, .enter-key-tile:hover {
    background-color: #9a9a9c;
}

.key-tile.correct, .enter-key-tile.correct {
    background-color: #538d4e;
    border-color: #538d4e;
}

.key-tile.present, .enter-key-tile.present {
    background-color: #b59f3b;
    border-color: #b59f3b;
}

.key-tile.absent, .enter-key-tile.absent {
    background-color: #3a3a3c;
    border-color: #3a3a3c;
}

#answer {
    font-size: 18px;
    margin: 20px 0;
    min-height: 30px;
}

#gameOverContainer {
    margin-top: 20px;
}

#restartBtn {
    background-color: #538d4e;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#restartBtn:hover {
    background-color: #6aaa64;
}

#restartBtn:active {
    background-color: #538d4e;
    transform: translateY(1px);
}