.tableContainer {
    display: none;
    gap: 1rem;
    background: white;
    padding: 1rem;
    transition: background-color var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
    margin: 1vw;

}

#main-board {
    border-collapse: collapse;
    border: 2px solid black;
    background-color: var(--board-bg);
    z-index: 2;
    position: relative;
}

#main-board td {
    min-width: 20px;
    min-height: 20px;
    max-width: 20px;
    max-height: 20px;
    width: 20px;
    height: 20px;
    border: none;
    text-align: center;
    font-size: 1rem;
}

.fixed {
    background-color: black !important;
}

.bomb-fixed {
    background-color: black !important;
}

.ghost {
    background-color: gray !important;
}

.side-panel {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 2;
}

.stat-box {
    background: var(--panel-color);
    color: white;
    padding: 0.5rem;
    border-radius: 1rem;
    text-align: center;
    position: relative;
}

.stat-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    color: black;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: blue;
}

#preview-box {
    background: white;
    padding: 1rem;
    border-radius: 1rem;
    border: 2px solid #eee;
    text-align: center;
}

#preview-board {
    border-collapse: collapse;
    margin: 0 auto;
    width: 100px;
    max-width: 100px;
    min-width: 100px;
    height: 100px;
    max-height: 100px;
    min-height: 100px;
}

#preview-board td {
    min-width: 20px;
    min-height: 20px;
    max-width: 20px;
    max-height: 20px;
    width: 20px;
    height: 20px;
    border: none;
}

.buttons-rotate {
    display: flex;
    justify-content: center;
}

.buttons-grid {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.arrow-btn {
    width: 10vw;
    height: 10vw;
    max-width: 50px;
    max-height: 50px;
    font-size: 1rem;
    cursor: pointer;
    background: black;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#level-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10rem;
    font-weight: 900;
    color: red;
    pointer-events: none;
    opacity: 0;
    z-index: 10;
}

@keyframes levelFly {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
        color: #000;
    }

    30% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }

    70% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(150px, -200px) scale(0.2);
    }
}

.animate-level {
    animation: levelFly 1.5s forwards;
}

@keyframes flash {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
        background-color: yellow;
    }
}

.flashing {
    animation: flash 0.2s 3;
}

@keyframes explode {
    0% {
        transform: scale(1);
        background-color: yellow
    }

    50% {
        transform: scale(1.8);
        background-color: red;
        border-radius: 50%;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.exploding {
    animation: explode 0.5s ease-out forwards;
}