body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 15px;
    min-height: 100vh;
}

.container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

h1 {
    color: #333;
    margin: 0;
    font-size: 1.5rem;
    text-align: center;
}

.word-display {
    font-size: 1.8rem;
    color: #2c3e50;
    font-weight: bold;
    word-break: break-word;
    text-align: center;
    padding: 10px 0;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #eee;
}

.input-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

input {
    padding: 12px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

button {
    padding: 12px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
}

button:hover {
    background-color: #2980b9;
}

.alphabet-buttons {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
    margin: 10px 0;
}

.alphabet-btn {
    aspect-ratio: 1/1;
    background-color: #2ecc71;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.alphabet-btn:hover {
    background-color: #27ae60;
}

.message {
    text-align: center;
    font-size: 1rem;
    min-height: 24px;
    padding: 5px 0;
}

.correct {
    color: #2ecc71;
}

.incorrect {
    color: #e74c3c;
}

/* Footer adjustments */
footer {
    margin-top: 20px;
    text-align: center;
    font-size: 0.8rem;
}

footer a {
    color: #3498db;
    text-decoration: none;
}

/* Very small screens adjustment */
@media (max-width: 350px) {
    .alphabet-buttons {
        grid-template-columns: repeat(5, 1fr);
    }
}