body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f0f0f0;
}

.game-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

#board {
    display: grid;
    grid-template-columns: repeat(10, 30px);
    grid-template-rows: repeat(10, 30px);
    gap: 2px;
    margin: 20px;
}

.cell {
    width: 30px;
    height: 30px;
    background-color: #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    border: 1px solid #999;
}

.cell.revealed {
    background-color: #ddd;
}

.cell.mine {
    background-color: #ff4444;
}

.cell.flagged {
    background-color: #ffcc00;
}

.cell.flagged::after {
    content: '🚩';
}

#info-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px;
}

.mode-selector {
    margin-bottom: 10px;
}

#reset {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 10px;
}

#mines-remaining {
    font-size: 16px;
    margin-bottom: 10px;
}

#game-status {
    font-size: 18px;
    font-weight: bold;
    color: green;
}

@media (max-width: 600px) {
    .game-container {
        flex-direction: column;
    }

    #info-area {
        width: 100%;
        margin-top: 0;
    }
}