body {
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #333;
    color: #eee;
    text-align: center;
}

.minesweeper-container {
    background-color: #444;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

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

.game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.1em;
}

#reset-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

#reset-button:hover {
    background-color: #0056b3;
}

.game-board {
    display: grid;
    border: 3px solid #777;
    background-color: #ccc;
    width: fit-content;
    margin: 0 auto;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
}

.cell {
    width: 30px;
    height: 30px;
    background-color: #bbb;
    border: 2px outset #eee; /* Gives a raised effect */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    user-select: none; /* Prevent text selection */
}

.cell.revealed {
    background-color: #ddd;
    border: 1px solid #999; /* Gives a sunken effect */
    border-color: #999 #ccc #ccc #999; /* Fine-tune sunken look */
    cursor: default;
}

.cell.revealed.mine {
    background-color: #ff6b6b;
    color: black;
}

.cell.flagged {
    background-color: #ccc;
    color: red;
}

/* Number colors */
.number-1 { color: blue; }
.number-2 { color: green; }
.number-3 { color: red; }
.number-4 { color: darkblue; }
.number-5 { color: darkred; }
.number-6 { color: teal; }
.number-7 { color: black; }
.number-8 { color: gray; }

.game-status {
    margin-top: 20px;
    font-size: 1.5em;
    font-weight: bold;
}

.game-status.game-over {
    color: #ff6b6b;
}

.game-status.game-won {
    color: #28a745;
}