body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #f0f0f0;
}

#game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 600px;
    padding: 20px;
    box-sizing: border-box;
}

#word-list {
    margin-bottom: 20px;
}

#grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20px, 1fr));
    gap: 1px;
    width: 100%;
    user-select: none; /* Prevent text selection */
}

.cell {
    width: 100%;
    padding-top: 100%;
    position: relative;
    background-color: #fff;
    border: 1px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: calc(10px + 2vmin);
    cursor: pointer;
}

.cell::after {
    content: attr(data-letter);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: calc(10px + 2vmin);
}

.cell.selected {
    background-color: yellow;
}

.cell.found {
    background-color: lightgreen;
}
