#game-board {
    display: grid;
    gap: 2px; /* Space between cells */
    margin: 20px auto; /* Center the board horizontally */
    width: fit-content; /* Adjust width to fit the grid */
    border: 4px solid #000000; /* Add a border around the game board */
    border-radius: 10px; /* Optional: Add rounded corners */
    padding: 10px; /* Optional: Add padding inside the border */
    background-color: #8b1a1a; /* Optional: Add a background color */
}

.game-cell {
    width: 50px;
    height: 50px;
    border: 2px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    background-color: #54c436;
}

.game-cell.revealed {
    background-color: #a15411;
    border-color: #aaa;
}

.game-cell.mine {
    background-color: red;
    color: white;
}

.secret {
    color: pink;
    font-size: 2em;
    position: fixed;
    top:50%;
    left: 10%;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0); /* Start and end at the original position */
    }
    50% {
        transform: translateY(-65px); /* Move up by 20px */
    }
}

.bounce {
    display: inline-block; /* Ensure the element is treated as inline-block */
    animation: bounce 1s infinite; /* Apply the bounce animation */
    font-size: 2em; /* Optional: Adjust font size */
    color: pink; /* Optional: Match the existing style */
}

#difficulty {
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
    align-items: center; /* Center the buttons horizontally */
    gap: 10px; /* Add spacing between buttons */
    margin: 20px 0; /* Add some margin around the difficulty section */
}

#difficulty button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #2af60f;
    border: 2px solid #333;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#difficulty button:hover {
    background-color: #944208; 
}

#play-again {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #2af60f;
    border: 2px solid #333;
    border-radius: 5px;
    cursor: pointer;
    margin: 20px auto;
    display: block;
}

#play-again:hover {
    background-color: #944208; 
}