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

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

.github-link {
    margin-bottom: 15px;
    color: #007bff;
    text-decoration: none;
}

.github-link:hover {
    text-decoration: underline;
}

#controls {
    margin-bottom: 15px;
}

button {
    padding: 8px 16px;
    font-size: 1em;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    margin: 0 5px;
}

button:hover {
    background-color: #0056b3;
}

#message-area {
    min-height: 24px;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
}

#game-grid {
    display: grid;
    grid-template-columns: repeat(4, 100px);
    grid-auto-rows: 100px;
    gap: 10px;
    margin-bottom: 20px;
}

.word-box {
    background-color: white;
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    word-break: break-word;
}

.word-box.selected {
    background-color: #cce5ff;
}

.solved-row {
    grid-column: 1 / -1;
    background-color: #d4edda;
    border: 2px solid #28a745;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
}

.solved-row strong {
    text-transform: uppercase;
    font-size: 1.1em;
    margin-bottom: 5px;
    word-break: break-word;
}

.revealed-row {
    grid-column: 1 / -1;
    background-color: #e2e3e5;
    border: 2px solid #6c757d;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
}

.revealed-row strong {
    text-transform: uppercase;
    font-size: 1.1em;
    margin-bottom: 5px;
    word-break: break-word;
}

.found-group {
    background-color: #d4edda;
    border: 2px solid #28a745;
}

.error {
    background-color: #f8d7da;
    border: 2px solid #dc3545;
}