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

.wrapper{
    height: 100vh;
    width: 100vw;
   display: grid;
   place-items: center;
   background-size: cover;
   background-position: center;
   background-image: url(images/gradient-bg.jpg);
}

.game-info{
    color: white;
    position: absolute;
    top: 3rem;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 1rem;
    border: 1px solid rgba(255,255,255,0.25);
    padding: 0.5rem 3rem;
    text-align: center;
    background-color: rgba(255,255,255,0.15);
}

.tic-tac-toe{
     background-color: rgba(255,255,255,0.15);
     border-radius: 1rem;
    border: 1px solid rgba(255,255,255,0.25);    
    width: 90%;
    max-width: 20rem;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    aspect-ratio: 1/1;
}

.box{
    position: relative;
    cursor: pointer;
    display: grid;
    place-items: center;
    aspect-ratio: 1/1; /* For Square shape*/
width: 100%;
    color: white;
    font-size: 3rem;

}

.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{
     color: white;
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 1rem;
    border: 1px solid rgba(255,255,255,0.25);
    padding: 0.5rem 2rem;
    text-align: center;
    background-color: rgba(255,255,255,0.15);
    cursor: pointer;
    display: none;
}

.btn.active{
    display: flex;
}

.win{
    background-color: rgba(0,255,0,0.3);
}