body {
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #c0c0c0;
}

#game-container {
    border: 3px solid;
    border-color: #fff #808080 #808080 #fff;
    padding: 10px;
    background-color: #c0c0c0;
}

#header {
    display: flex;
    justify-content: space-between;
    padding: 5px;
    border: 3px solid;
    border-color: #808080 #fff #fff #808080;
    margin-bottom: 10px;
}

#mine-counter, #timer {
    background-color: #000;
    color: #ff0000;
    font-family: 'Courier New', Courier, monospace;
    font-size: 2em;
    padding: 0 5px;
    border: 2px inset #808080;
}

#reset-button {
    width: 40px;
    height: 40px;
    border: 3px solid;
    border-color: #fff #808080 #808080 #fff;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
}

#reset-button.smiley::before {
    content: '🙂';
}

#reset-button.sunglasses::before {
    content: '😎';
}

#reset-button.dizzy::before {
    content: '😵';
}


#game-board {
    border: 3px solid;
    border-color: #808080 #fff #fff #808080;
    display: grid;
    grid-template-columns: repeat(var(--cols), 25px);
    grid-template-rows: repeat(var(--rows), 25px);
}

.cell {
    width: 25px;
    height: 25px;
    border: 2px solid;
    border-color: #fff #808080 #808080 #fff;
    background-color: #c0c0c0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
}

.cell.revealed {
    border: 1px solid #808080;
    background-color: #bdbdbd;
}

.cell.mine {
    background-color: red;
}

.cell.mine::before {
    content: '💣';
}


.cell.flagged::before {
    content: '🚩';
}

.cell[data-adjacent-mines="1"] { color: #0000ff; }
.cell[data-adjacent-mines="2"] { color: #008000; }
.cell[data-adjacent-mines="3"] { color: #ff0000; }
.cell[data-adjacent-mines="4"] { color: #000080; }
.cell[data-adjacent-mines="5"] { color: #800000; }
.cell[data-adjacent-mines="6"] { color: #008080; }
.cell[data-adjacent-mines="7"] { color: #000000; }
.cell[data-adjacent-mines="8"] { color: #808080; }


#difficulty-container, #power-up-container {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

button {
    padding: 5px 10px;
    border: 2px solid;
    border-color: #fff #808080 #808080 #fff;
    background-color: #c0c0c0;
    cursor: pointer;
}

button:active {
    border-color: #808080 #fff #fff #808080;
}

/* Responsive */
@media (max-width: 600px) {
    .cell {
        width: 30px;
        height: 30px;
    }
    #game-board {
        grid-template-columns: repeat(var(--cols), 30px);
        grid-template-rows: repeat(var(--rows), 30px);
    }
}
