@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500&display=swap');

*,*::before,*::after{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    user-select: none;
}

body{
    position: relative;
    overflow-x: hidden;
    height: 100vh;
    width: 100vw;
    background-attachment: fixed;}

.introd{
    background-color: black;
    color: white;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    font-size: 15rem;
    height: 100vh;
    width: 100vw;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.onclickk{
    z-index: -5;
    /* animation: move 1s ease-in-out ; */
}

@keyframes move{
    0%{
        transform: translateY(0);
    }
    100%{
        transform: translateY(1);
    }
}

.sub{
    color: whitesmoke;
    font-size: 5rem;
    text-align: center;
}

.wrapper{
    
    display: grid;
    place-items: center;
    
}

.video{
    z-index: -1;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    object-fit: cover;
}

.video::after{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000cc;
}

#myVideo {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
  }

.game-info{
    color: whitesmoke;
    margin-top: 10vh;
    margin-bottom: 15vh;
    background-color: rgba(255 , 255 , 255 , 0.15);
    border-radius: 1rem;
    border: 1px solid rgba(255 , 255 , 255 , 0.25);
    padding: 0.5rem 3rem;
    font-weight: bold;
}

.btn{
    background-color: rgba(255 , 255 , 255 , 0.15);
    border-radius: 1rem;
    border: 1px solid rgba(255 , 255 , 255 , 0.25);
    padding: 0.5rem 3rem;
    color: whitesmoke;
    font-weight: bold;
    display: none;
}

.active{
    display: flex;
}

.tic-tac-toe{
    width: 90%;
    max-width: 20rem;
    display: grid;
    grid-template-columns: repeat( 3 , 1fr);
    bottom: 10rem;background-color: rgba(255 , 255 , 255 , 0.15);
    border-radius: 1rem;
    border: 5px solid beige;
    padding: 2rem;
    aspect-ratio: 1/1;
    color: whitesmoke;
}

.box{
    min-width: 5rem;
    min-height: 5rem;
    position: relative;
    aspect-ratio: 1/1;
    cursor: pointer;
    font-size: 5rem;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 1.5rem;
    box-sizing: border-box;
    height: 100%;
    width: 100%;
}

.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;
}

.play-area{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10%;
    margin-bottom: 10vh;
}


.player{
    width: 15vw;
    max-width: 18rem;
    min-width: 12rem;
    aspect-ratio: 1/1;
    border-radius: 50%;
    object-fit: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    /* animation: leaves 5s ease-in-out infinite alternate; */
}

.zoom{
    animation: leaves 0.5s ease-in-out infinite alternate;
}

@keyframes leaves {
    0% {
        transform: scale(1.0);
        opacity: 80%;
    }
    100% {
        transform: scale(1.05);
        opacity: 100%;
    }
}

.win{
    background-color: rgba(16, 223, 16, 0.897);
    color: rgb(202, 255, 237);
}