@charset "UTF-8";
@import url("../noctua7.css");

/* ********************************** INÍCIO - JOGO_VELHA ****************************** */

/* ****************** JOGO_VELHA_CONTAINER */
.jogo_velha_container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: calc(100vh - ((2 * var(--height_42)) + (var(--height_30))));
    margin: 0;
    padding: 10px 0;
    background-color: var(--color-n7-black);
    box-sizing: border-box;
    animation: abertura_jogo_velha 0.8s ease-out;
}

@keyframes abertura_jogo_velha {
    from {
        opacity: 0;
        scale: 0.5 1;
    }

    to {
        opacity: 1;
        scale: 1 1;
    }
}

#gameBoardVelha {
    margin: 0;
    padding: 10px;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    border-radius: 10px;
    background-color: var(--color-n7-gray-light);
}

#iniciarJogoVelha {
    display: none;
    padding: 15px;
    color: var(--color-n7-gray-light);
    background-color: var(--color-n7-middle);
    border: none;
    border-radius: 10px;
    margin-top: 10px;
    cursor: pointer;
}

#iniciarJogoVelha:hover {
    color: var(--color-n7-light);
    background-color: var(--color-n7-black);
    cursor: pointer;
}

.square {
    width: 100px;
    height: 100px;
    background-color: var(--color-n7-white);
    border: 0.5px solid var(--color-n7-dark);
    display: inline-block;
    border-radius: 10px;
}

.o {
    position: relative;
}

.o::after {
    content: "\2B55";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    font-size: 70px;
    padding: 0px;
    line-height: 100px;
    color: black;
}

.x {
    position: relative;
}

.x::after {
    content: "\274C";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    font-size: 70px;
    padding: 0px;
    line-height: 100px;
    color: black;
}

#gameOver {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 20px;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    top: 0;
    row-gap: 15px;
    z-index: 5;
}

#restart {
    padding: 15px;
    background-color: black;
    border: none;
    border-radius: 10px;
    margin-top: 10px;
}

.vencedor {
    font-size: 20px;
    text-align: center;
    background-color: #22b60e33;
    margin: 5px auto;
    padding: 5px;
    line-height: 400px;
    height: 400px;
    border-radius: 5px;
}

/* ********************************** FIM - JOGO_VELHA ********************************* */

/* ********************************** INÍCIO - @MEDIA / JOGO_VELHA ********************* */

@media screen and (min-width: 576px) {

    /* ****************** JOGO_VELHA_CONTAINER */
    .jogo_velha_container {
        width: 350px;
        min-height: 100%;
        margin: 10px 0;
        border-radius: 8px;
    }
}

@media screen and (min-width: 768px) {}

@media screen and (min-width: 992px) {}

/* ********************************** FIM - @MEDIA / JOGO_VELHA ************************ */