body {
    background-color: #121212;
    color: #3498db;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.game-container {
    text-align: center;
    padding: 20px;
}

h1 {
    letter-spacing: 4px;
    margin-bottom: 20px;
}

/* Controls Section */
.controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    background: #1a1a1a;
    padding: 15px;
    border-radius: 8px;
}

.input-group {
    display: flex;
    flex-direction: column;
    font-size: 12px;
}

input {
    width: 45px;
    background: #222;
    border: 1px solid #333;
    color: #fff;
    padding: 5px;
    border-radius: 4px;
    text-align: center;
}

button {
    background: #3498db;
    color: #121212;
    border: none;
    padding: 0 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    height: 35px;
    align-self: flex-end;
}

button:hover {
    background: #2980b9;
}

.stats {
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: #eee;
}

/* Grid Layout */
#grid-wrapper {
    max-height: 70vh;
    max-width: 95vw;
    overflow: auto;
    border: 2px solid #333;
    background-color: #333;
    border-radius: 4px;
}

#grid {
    display: grid;
    gap: 2px; /* This creates the grid lines */
}

.cell {
    width: 30px;
    height: 30px;
    background-color: #222;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    user-select: none;
}

.cell.revealed {
    background-color: #1a1a1a;
    cursor: default;
}

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

.cell:hover:not(.revealed) {
    background-color: #2c2c2c;
}
