@import url('https://fonts.googleapis.com/css2?family=Merriweather+Sans:ital,wght@0,300;0,400;0,500;0,600;1,700&family=Poppins:ital,wght@0,200;0,400;0,600;1,400&display=swap');

* , *::before , *::after{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}


.wrapper{
    background: radial-gradient(ellipse at 0% 100%, rgba(156, 134, 233, 1) 0%, rgba(126, 144, 233, 1) 12%, rgba(162, 125, 247, 1) 22%, rgba(169, 126, 247, 1) 30%, rgba(130, 210, 237, 1) 36%, rgba(125, 255, 252, 1) 42%, rgba(135, 233, 191, 1) 49%, rgba(135, 255, 144, 1) 59%, rgba(141, 233, 134, 1) 66%, rgba(179, 233, 134, 1) 72%, rgba(208, 233, 134, 1) 79%, rgba(233, 233, 134, 1) 87%, rgba(233, 177, 134, 1) 92%, rgba(233, 144, 134, 1) 100%);
    width: 100wh;
    height: 100vh;

    /* display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 0; */

    display: grid;
    place-items: center;
}

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

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

.box{
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;  
    cursor: pointer;
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: 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{
    color: black;
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255,255,255,0.15);
    border-radius: 1rem;
    border: 1px solid rgba(255,255,255,0.25);
    padding: 15px 10px;
    display: none;
}

.btn.active{
    display: flex;
}

.win{
    background-color: rgb(119, 234, 130);
}


