body {
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.controls {
    margin-bottom: 20px;
}

#game-container {
    display: flex;
    flex-direction: column;
}

#col-cues {
    display: flex;
    justify-content: flex-start;
    padding-left: 100px; /* to align with the grid */
}

#col-cues .cue-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    padding: 5px;
    box-sizing: border-box;
    font-family: monospace;
    text-align: center;
}

#row-cues-and-grid {
    display: flex;
}

#row-cues {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-right: 5px;
}

#row-cues .cue-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 30px;
    padding: 5px;
    min-width: 90px;
    text-align: right;
    box-sizing: border-box;
    font-family: monospace;
}

#grid {
    display: grid;
    border: 2px solid black;
}

.cell {
    width: 30px;
    height: 30px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.cell.filled {
    background-color: black;
}

.cell.marked {
    background-color: #f0f0f0;
    position: relative;
}

.cell.marked::after {
    content: 'X';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: red;
    font-size: 20px;
}

#feedback {
    margin-top: 20px;
    font-size: 1.2em;
    font-weight: bold;
}
