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

body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
    text-align: center;
}

h1 {
    margin-bottom: 20px;
    color: #333;
}

#game-board {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 20px;
}

.tile {
    aspect-ratio: 1;
    border: 2px solid #d3d6da;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: bold;
    text-transform: uppercase;
    background-color: white;
}

.tile.correct {
    background-color: #6aaa64;
    color: white;
    border-color: #6aaa64;
}

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

.tile.absent {
    background-color: #787c7e;
    color: white;
    border-color: #787c7e;
}

#message {
    margin: 20px 0;
    font-size: 1.5rem;
    font-weight: bold;
    min-height: 2rem;
}

#keyboard {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.keyboard-row {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.key {
    min-width: 30px;
    height: 58px;
    border-radius: 4px;
    border: none;
    background-color: #d3d6da;
    font-weight: bold;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 15px;
    transition: background-color 0.2s;
}

.key:hover {
    background-color: #c0c3c7;
}

.special-key {
    background-color: #818384;
    color: white;
}

.special-key:hover {
    background-color: #6c6e70;
}

.enter-key {
    min-width: 100px;
}

.key.correct {
    background-color: #6aaa64;
    color: white;
}

.key.present {
    background-color: #c9b458;
    color: white;
}

.key.absent {
    background-color: #787c7e;
    color: white;
}

#new-game {
    padding: 10px 20px;
    font-size: 1.2rem;
    background-color: #6aaa64;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#new-game:hover {
    background-color: #5a9a54;
}

@media (max-width: 500px) {
    .container {
        padding: 10px;
    }
    
    .tile {
        font-size: 1.5rem;
    }

    .key {
        min-width: 25px;
        height: 50px;
        font-size: 1rem;
        padding: 0 10px;
    }

    .enter-key {
        min-width: 80px;
    }
} 