* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    text-align: center;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
    margin-bottom: 20px;
    color: #333;
}

.game-info {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: bold;
}

.counter, .timer {
    background-color: #333;
    color: #ff3333;
    padding: 10px 20px;
    border-radius: 4px;
    min-width: 120px;
}

.game-controls {
    margin-bottom: 20px;
}

button, select {
    padding: 10px 15px;
    margin: 0 5px;
    border: none;
    border-radius: 4px;
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
    font-size: 16px;
}

button:hover, select:hover {
    background-color: #45a049;
}

select {
    background-color: #2196F3;
}

select:hover {
    background-color: #0b7dda;
}

#game-board {
    display: grid;
    gap: 2px;
    margin: 0 auto 20px;
    background-color: #ddd;
    padding: 10px;
    border-radius: 4px;
}

.cell {
    width: 30px;
    height: 30px;
    background-color: #999;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    border: 2px solid;
    border-top-color: #fff;
    border-left-color: #fff;
    border-right-color: #666;
    border-bottom-color: #666;
}

.cell.revealed {
    background-color: #eee;
    border: 1px solid #999;
    cursor: default;
}

.cell.mine {
    background-color: #ff3333;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.cell.flag {
    background-color: #999;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="red"><path d="M6.4 10.6l1.4 1.4L10 9.6V22h4V9.6l2.2 2.4 1.4-1.4-8-8-8 8z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.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;
}

#game-message {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    min-height: 30px;
}

@media (max-width: 600px) {
    .cell {
        width: 24px;
        height: 24px;
    }
}