#minesweeper-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    font-family: 'Arial', sans-serif;
    background-color: #c0c0c0;
    min-height: 100vh;
    gap: 10px;
}

#game-wrapper {
    display: flex;
    justify-content: center;
}

#game-area {
    display: flex;
    flex-direction: column;
    border: 3px solid;
    border-color: #ffffff #7b7b7b #7b7b7b #ffffff;
    background-color: #c0c0c0;
    padding: 6px;
}

#game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #c0c0c0;
    border: 3px solid;
    border-color: #7b7b7b #ffffff #ffffff #7b7b7b;
    padding: 3px;
    margin-bottom: 6px;
}

.counter {
    background-color: #000;
    display: inline-flex;
    gap: 0;

}

.digit {
    font-family: 'digital-7', sans-serif;
    font-size: 32px;
    font-weight: bold;
    text-align: center;

    color: #ff0000;

}

#smiley-button {
    background-color: #c0c0c0;
    border: 3px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#smiley-button img {
    width: 52px;
    height: 36px;
    display: block;
}

#smiley-button:active {
    border-color: #808080 #ffffff #ffffff #808080;
}

#difficulty-selector {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: center;
    width: 100%;
}

.difficulty-btn {
    background-color: #c0c0c0;
    border: 3px solid;
    border-color: #ffffff #7b7b7b #7b7b7b #ffffff;
    padding: 6px 12px;
    cursor: pointer;
    font-family: 'Arial', sans-serif;
    font-size: 13px;
    text-align: center;
    white-space: nowrap;
    flex: 0 1 auto;
}

.difficulty-btn:active {
    border-color: #7b7b7b #ffffff #ffffff #7b7b7b;
}

.difficulty-btn.active {
    border-color: #7b7b7b #ffffff #ffffff #7b7b7b;
    border-width: 2px;
    padding: 9px 17px;
}

#game-board {
    display: grid;
    gap: 0;
    border: 3px solid;
    border-color: #7b7b7b #ffffff #ffffff #7b7b7b;
    padding: 0;
    background-color: #c0c0c0;
}

.cell {
    width: 20px;
    height: 20px;
    background-color: #c0c0c0;
    border-width: 3px;
    border-style: solid;
    border-color: #ffffff #7b7b7b #7b7b7b #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    user-select: none;
    box-sizing: border-box;
}

.cell:active {
    border-width: 2px;
    border-color: #7b7b7b;
}

.cell.revealed {
    background-color: #c0c0c0;
    border: 1px solid #7b7b7b;
    margin: -1px 0 0 -1px;
    cursor: default;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cell img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

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

.cell.flagged,
.cell.question {
    font-size: 12px;
}

.cell.wrong-flag {
    background-color: #ff6666;
}

/* Number colors matching classic Minesweeper */
.cell.number-1 {
    color: #0000ff;
}

.cell.number-2 {
    color: #008000;
}

.cell.number-3 {
    color: #ff0000;
}

.cell.number-4 {
    color: #000080;
}

.cell.number-5 {
    color: #800000;
}

.cell.number-6 {
    color: #008080;
}

.cell.number-7 {
    color: #000000;
}

.cell.number-8 {
    color: #808080;
}
