.game-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.game-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.game-info {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 8px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.board {
    display: inline-grid;
    gap: 1px;
    background-color: #ccc;
    border: 5px solid #999;
    user-select: none;
    margin-bottom: 20px;
    overflow: auto;
    max-width: 100%;
}

.cell {
    width: 30px;
    height: 30px;
    background-color: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    cursor: pointer;
    font-size: 18px;
}

.cell:hover {
    background-color: #ddd;
}

.cell.revealed {
    background-color: #fff;
    cursor: default;
}

.cell.flagged {
    color: red;
}

.cell.mine {
    background-color: #ffcccc;
}

.cell.exploded {
    background-color: #ff0000;
}

/* Number colors */
.cell[data-value="1"] { color: blue; }
.cell[data-value="2"] { color: green; }
.cell[data-value="3"] { color: red; }
.cell[data-value="4"] { color: darkblue; }
.cell[data-value="5"] { color: darkred; }
.cell[data-value="6"] { color: teal; }
.cell[data-value="7"] { color: black; }
.cell[data-value="8"] { color: gray; }

.message-area {
    height: 30px;
    font-weight: bold;
    color: #333;
    margin-top: 10px;
}

@media (max-width: 600px) {
    .cell {
        width: 25px;
        height: 25px;
        font-size: 14px;
    }
}
