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


body {
    background-image: linear-gradient(90deg, rgb(0, 92, 128), rgba(140, 15, 197, 0.767));
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    color: white;
    height: 97vh;
    width: 100vw;
}



.board {
    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.x .cell:not(.x):not(.circle):hover::before
{
    background-color: rgba(255, 255, 255, 0.418) !important;
}

/*CAIXA*/
.cell {
    width: 100px;
    height: 100px;
    position: relative;
    border: 5px solid rgb(0, 0, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
}

.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(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.x::before,
.cell.x::after,
.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;
    border-radius: 20px;
}

.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);
}


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


    

.winning-message {
    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.897);
    flex-direction: column;
}

.winning-message button{
    font-size: 2em;
    background-color: rgb(8, 119, 82);
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 20px;
    border: none;
    margin-top: 16px;
    color: white;
}

.winning-message button:hover{
    background-color: rgb(255, 255, 255);
    color: rgb(8, 119, 82);
}

.winning-message p{
    font-size: 5em;
}

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

footer {
color:rgb(255, 255, 255);
margin-left: 10px;

}

a{
    text-decoration: none;
    color: rgb(255, 255, 255);
}

a:hover{
    text-decoration: underline;
    color: black;
 cursor: pointer;
}




