*,
*::before,
*::after{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Markazi Text', serif;
}

.wrapper{
    width: 100vw;
    height: 100vh;
    background-image: url(./assets/gradient-bg.jpg);
    display: grid;
    place-items: center;
}

.game-info{
    position: absolute;
    top: 3rem;
    color: white;
    background-color: rgba(255,255,255,0.15);
    border-radius: 1rem ;
    border: 1px solid rgba(255,255,255,0.15);
    padding: 0.5rem 3rem;
    text-align: center;
}

.tic-tac-toe{
    margin: 100px;
    width: 90%;
    max-width: 20rem;
    background-color: rgba(255,255,255,0.15);
    border-radius: 1rem ;
    border: 1px solid rgba(255,255,255,0.15);
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(3,1fr) ;
    aspect-ratio: 1/1; /*ratio of box , to make box square*/
    place-items: center;
}

.box{
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.box1, .box2 , .box4 , .box5{
    border-right:2px solid white ;
    border-bottom: 2px solid white;
}

.box3 , .box6{
    border-bottom: 2px solid white;
}

.box7 , .box8{
    border-right: 2px solid white;
}

.btn{
   display: none;
}

.btn.active{
    display: flex;
    all:unset;
    color:white;
    position: absolute;
    bottom: 3rem;
    background-color: rgba(255,255,255,0.15);
    border-radius: 1rem ;
    border: 1px solid rgba(255,255,255,0.15);
    padding: 0.5rem 2rem;
    cursor: pointer;
   
}

.win{
    background-color: rgba(0,255,0,0.3);
}