.grid-cell {
    width: 40px;
    height: 40px;
    background-color: rgba(221, 221, 221, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    border: 1px solid #333;
    background-size: cover; /* Ensures the image covers the whole cell */
    background-position: center; /* Centers the image in the cell */
    
}
@keyframes explodeAnimation {
    0% {
        background-position: 0 0;
        opacity: 1;
    }
    50% {
        background-position: -800px 0; /* Adjust this value to move through your sprite sheet */
        opacity: 1; /* Keep opacity at 1 until the animation is 50% complete */
    }
    100% {
        background-position: -800px 0; /* Ensure the background is at the end of the animation */
        opacity: 0; /* Start fading out */
    }
}

.exploded {
    background-image: url('images/exploded.png'); /* Path to your sprite sheet */
    background-size: auto 100%; /* Ensure the image covers the entire cell */
    animation: explodeAnimation 1s steps(8) infinite; /* Adjust the duration and steps to match your animation */
}

@keyframes blinkAnimation {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.blink-s {
    background-image: url('images/s_symbol.png');
    background-size: cover;
    animation: blinkAnimation 1s infinite;
}

.blink-e {
    background-image: url('images/e_symbol.png');
    background-size: cover;
    animation: blinkAnimation 1s infinite;
}

.blink-question {
    background-image: url('images/question_symbol.png');
    background-size: cover;
    animation: blinkAnimation 1s infinite;
}

#game-grid {
    background-image: url('images/background.jpg');
    background-size: contain; /* Adjust the size to fit the grid */
    background-repeat: no-repeat;
    background-position: left;
    padding-left: 8px;
}