*{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body{
    height: 100vh;
    width: 100vh;
    background: linear-gradient(90deg, 
    rgba(65, 185, 131)0%, rgba(0, 212, 215) 100%);
}

.board{
    position: absolute;
    display: grid;
    width: 100%;
    height: 100%;
    display: grid;
    justify-content: center;
    align-content: center;
    justify-items: center;
    align-items: center;
    grid-template-columns: repeat(3, auto);
}

.board.x .cell:not(.x):not(.circle):hover::after,
.board.x .cell:not(.x):not(.circle):hover::before,
.board.circle .cell:not(.x):not(.circle):hover::after,
.board.circle .cell:not(.x):not(.circle):hover::before{
    background: rgba(255, 255, 255, 0.3)!important;
}


/*  celula */

.cell{
    width: 100px;
    height: 100px;
    border: 2px solid white;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.cell.x, .cell.circle{
    cursor: not-allowed;
}

.cell:nth-child(1),
.cell:nth-child(2),
.cell:nth-child(3){
    border-top: none;
}

.cell:nth-child(1),
.cell:nth-child(4),
.cell:nth-child(7){
    border-left: none;
}

.cell:nth-child(7),
.cell:nth-child(8),
.cell:nth-child(9){
    border-bottom: none;
}

.cell:nth-child(3),
.cell:nth-child(6),
.cell:nth-child(9){
    border-right: none;
}

/* X */
.cell.x::after,
.cell.x::before,
.board.x .cell:not(.x):not(.circle):hover::after,
.board.x .cell:not(.x):not(.circle):hover::before{

    content: "";
    height: calc(100px * 0.15);
    width: calc(100px * 0.9);
    background: white;
    position: absolute;
}

.cell.x::before,
.board.x .cell:not(.x):not(.circle):hover::before{
    transform: rotate(45deg);
}

.cell.x::after,
.board.x .cell:not(.x):not(.circle):hover::after{
    transform: rotate(-45deg);
}

/* Circle */
.cell.circle::after,
.cell.circle::before,
.board.circle .cell:not(.x):not(.circle):hover::after,
.board.circle .cell:not(.x):not(.circle):hover::before{
    content: "";
    height: calc(100px * 0.9);
    width: calc(100px * 0.9);
    background: white;
    position: absolute;
    border-radius: 50%;
}

/* massage */
.winning-massage{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.8);
    flex-direction: column;
}

.winning-massage button{
    font-size: 2.5rem;
    background-color: rgba(65, 185, 131, 1);
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    border: none;
    margin-top: 16px;
    color: white;
}

.winning-massage button:hover{
    color: rgba(65, 185, 131, 1);
    background-color: white;
}

.winning-massage-text{
    color: white;
    font-size: 5rem;
}

.show-winning-massage{
    display: flex;
}


.score{
    position: absolute;
    width: 100%;
}

.X{
    top: 5px;
    position: relative;
    left: 72%;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 25px;
}

.X #score-x{
    background: rgba(198, 219, 250, 1);
    margin: 5px 0 0 5px;
    padding: 0px 20px 3px 20px;
    font-size: 30px;
    border-radius: 10px;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.Circle{
    bottom: 63px;
    position: relative;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 25px;
    margin-left: 80px;

}

.Circle #score-circle{
    background: rgba(198, 219, 250, 1);
    margin: 5px 0 0 5px;
    padding: 0px 20px 3px 20px;
    font-size: 30px;
    border-radius: 10px;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.Empate{
    bottom: 29px;
    position: relative;
    right: 45%;
    left: 45%;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 25px;
}

.Empate #score-empate{
    background: rgba(198, 219, 250, 1);
    margin: 5px 0 0 5px;
    padding: 0px 20px 3px 20px;
    font-size: 30px;
    border-radius: 10px;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}


#scoreboard {
    display: none;
}

#player-x.active,
#player-circle.active {
    font-weight: bold;
}
