.game-board-wrapper {
    display: flex;
    padding: 48px 0;
    justify-content: center;
}
.game-window-wrapper {
    display: flex;
}
.game-window {
    display: flex;
    margin-right: 12px;
}
.game-menu-wrapper {
    display: flex;
    flex-direction: column;
    position: absolute;
    justify-content: center;
    align-items: center;
    width: 300px;
    height: 300px;
    z-index: 10;
}

.start-menu-wrapper, .game-over-menu-wrapper{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    h3 {
        text-align: center;
        font-size: 3rem;
    }
    button {
        font-size: 2rem;
    }
}
.game-mode-menu-wrapper, .restart-menu-wrapper, .not-implemented-menu-wrapper, .change-mode-menu-wrapper, .cpu-menu-wrapper{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    .menu-btn-wrapper {
        display: flex;
        gap: 8px;
    }
    h3 {
        text-align: center;
        font-size: 1.5rem;
    }
    button {
        font-size: 1rem;
    }
}

.restart-menu-wrapper {
    h3 {
        font-size: 3rem;
    }
    button {
        font-size: 2rem;
    }
}

.not-implemented-menu-wrapper {
    button {
        margin-top: 8px;
        font-size: 1.5rem;
    }
}

.game-board {
    display: grid;
    grid-template-columns: repeat(3, auto);
    width: fit-content;
    height: fit-content;
    position: relative;
}
.game-board.paused {
    border-radius: 2rem;
    filter: blur(3px) opacity(20%);
    transition: filter 0.5s ease-in;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: default;
}

.menu-btn {
    background-color: var(--sub-banner-background);
}
.menu-btn:hover {
    background-color: var(--banner-background);
}
.menu-btn:disabled {
    background-color: var(--inactive-button-hover-color);
}

.menu-btn:disabled:hover {
    background-color: var(--inactive-button-hover-color);
}

.restart-btn {
    color: var(--primary-text-color);
    background-color: var(--primary-color);
}
.restart-btn:hover {
    color: var(--primary-text-color);
    background-color: var(--primary-color-hover);
}

.restart-btn:disabled {
    color: var(--heading-text-color);
    background-color: var(--inactive-button-hover-color);
}

.restart-btn:disabled:hover {
    background-color: var(--inactive-button-hover-color);
}

.cell {
    display: flex;
    border: solid var(--heading-text-color) 2px;
    height: 100px;
    width: 100px;
    justify-content: center;
    align-items: center;
}
.cell:first-child,
.cell:nth-child(2),
.cell:nth-child(3) {
    border-top: none;
}
.cell:first-child,
.cell:nth-child(4),
.cell:nth-child(7) {
    border-left: none;
}
.cell:nth-child(3),
.cell:nth-child(6),
.cell:nth-child(9) {
    border-right: none;
}
.cell:nth-child(7),
.cell:nth-child(8),
.cell:nth-child(9) {
    border-bottom: none;
}
.cell[mark=""] {
    cursor: pointer;
}
.cell[mark="x"],
.cell[mark="o"] {
    cursor: not-allowed;
}
.cell.game-over, .cell.cpu-turn {
    cursor: not-allowed;
}
.cell[mark=""]::before,
.cell[mark=""]::after {
    content: "";
}
.game-board[turn="x"] .cell[mark=""]:hover::before,
.game-board[turn="x"] .cell[mark=""]:hover::after {
    display: flex;
    position: absolute;
    height: 100px;
    width: 20px;
    background-color: var(--banner-background);
}
.game-board[turn="x"] .cell[mark=""]:hover::before {
    transform: rotate(45deg);
}
.game-board[turn="x"] .cell[mark=""]:hover::after {
    transform: rotate(-45deg);
}
.game-board[turn="o"] .cell[mark=""]:hover::before,
.game-board[turn="o"] .cell[mark=""]:hover::after {
    display: flex;
    position: absolute;
    height: 90px;
    width: 90px;
    border-radius: 50%;
}
.game-board[turn="o"] .cell[mark=""]:hover::after {
    transform: scale(.6);
    background-color:  var(--background-color);
}
.game-board[turn="o"] .cell[mark=""]:hover::before {
    background-color: var(--banner-background);
}
.cell[mark="x"]::before,
.cell[mark="x"]::after {
    content: "";
    display: flex;
    position: absolute;
    height: 100px;
    width: 20px;
    background-color: var(--heading-text-color);
}
.cell[mark="x"]::after {
    transform: rotate(45deg);
}
.cell[mark="x"]::before {
    transform: rotate(-45deg);
}
.cell[mark="o"]::before,
.cell[mark="o"]::after {
    content: "";
    display: flex;
    position: absolute;
    height: 90px;
    width: 90px;
    border-radius: 50%;
}
.cell[mark="o"]::after {
    transform: scale(.6);
    background-color: var(--background-color);
}

.cell[mark="o"]::before {
    background-color: var(--heading-text-color);
}

.game-status-wrapper {
    border-radius: 1rem;
    padding: 8px;
    margin: 0 8px;
    min-width: 150px;
    width: fit-content;
    background-color: var(--sub-banner-background);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.status-menu-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4px;
    width: 80%;
    gap: 12px;

    .player-box-wrapper {
        display: flex;
        gap: 24px;
        .player-box {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            background-color: var(--banner-background);
            padding: 4px;
            border-radius: .5rem;
            width: 45px;
            gap: 4px;

            .player-role {
                font-size: 1rem;
            }
            .player-mark {
                display: flex;
                justify-content: center;
                align-items: center;
                font-size: 1.5rem;
                width: 2ch;
                color: var(--heading-text-color);
                
                border-radius: .25rem;
            }
        }
        .player-box.active .player-mark {
            background-color: var(--background-color);
        }
    }
}
.status-btn-wrapper {
    justify-self: flex-end;
    display: flex;
    
    gap: 12px;
}

.hidden {
    display: none;
}

