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

h1 {
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 2.5em;
    color: #333;
}

#info-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    border-radius: 8px;
}

#info {
    display: flex;
    margin-right: 20px;
}

#info div {
    margin: 0 10px;
    font-size: 18px;
    color: #333;
}

button {
    margin: 0 10px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

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

#board-container {
    display: flex;
    justify-content: center;
    width: 100%;
    height: 100%;
    max-width: 600px; /* Fixed width for game area */
    max-height: 600px; /* Fixed height for game area */
    margin: 10px 0;
}

#board {
    display: grid;
    border: 1px solid #ddd;
}

.cell {
    border: 1px solid #ccc; /* Light border for individual cells */
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2); /* Inner shadow for 3D effect */
}

.cell:hover {
    background-color: #ddd; /* Highlight on hover */
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2); /* Increased shadow on hover */
}

.cell.revealed {
    background-color: #ddd;
    cursor: default;
    box-shadow: none; /* Remove shadow for revealed cells */
}

.cell.flagged {
    background-color: #ffeb3b;
}

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


#settings {
    margin: 20px;
    padding: 15px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 100%;
    max-width: 600px;
    box-sizing: border-box;
    display: none; /* Initially hidden */
}

.settings-row {
    margin: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.settings-row label {
    margin: 0 10px;
    font-size: 16px;
    color: #333;
}

.settings-row input {
    width: 60px;
    text-align: center;
    margin: 0 10px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.settings-row button {
    margin: 0 5px;
    padding: 8px 16px;
    font-size: 16px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.settings-row button:hover {
    background-color: #218838;
}
