/* Importing a font from our Laptop */

@font-face {
    font-family: Titlefont;
    src: url(Afogand.ttf);
}

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@500&family=Oswald:wght@300&family=Roboto+Condensed:wght@900&family=Roboto:wght@300;400;700&family=Work+Sans&display=swap');


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

body{
    background: url("./../assets/HomeBackground.jpg");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    font-family: 'Open Sans', sans-serif;
    font-family: 'Oswald', sans-serif;
    font-family: 'Roboto', sans-serif;
    font-family: 'Roboto Condensed', sans-serif;
    font-family: 'Work Sans', sans-serif;
}

/* Home Page */

.Home{
    width: 100vw;
    height: 100vh;
}

.flex{
    display: flex;
}

/* Nav Bar */

nav{
    width: 100%;
    height: 13%;
    padding: 1.5% 6.5%;
    justify-content: space-between;
}

#navpart{
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo img{
    width: 50px;
}

.gamename{
    font-family: Titlefont;
    padding-left: 25px;
    font-size: 40px;
    cursor: pointer;
}

#navpart .creater a{
    font-size: 22px;
    text-decoration: none;
    font-weight: 300;
    text-transform: uppercase;
}
#navpart .creater a:hover{
    transform: scale(1.05);
}

/* creater Animation */
.creater{
    position: relative;
    width: 120px;
    height: 50px;
    margin-right: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 10px;    
}

.creater::before{
    content: '';
    position: absolute;
    width: 25px;
    height: 140px;
    /* background: linear-gradient(#ffffff, #6A3EEB); */
    background:#ffffff;
    animation: glow 4s linear infinite;
}

.creater::after{
    content: '';
    position: absolute;
    inset: 4px;
    background: linear-gradient(to right,#8F71F3, #896EF1);;
    border-radius: 5px;
}
/* Animation */
@keyframes glow {
    0%{
        transform: rotate(0deg);
    }
    100%{
        transform: rotate(360deg);
    }
}


.creater a{
    position: relative;
    color: #ffffff;
    z-index: 10;
}

.navplaybtn .playnav{
    width: 100px;
    height: 50px;
    color: #ffffff;
    border-radius: 50px;
    border: 2px solid white;
    background-color: transparent;
    font-size: 16px;
    cursor: pointer;
}
/* text content */
.textcontent{
    height: 70%;
    max-width: 44%;
    padding: 8% 0 6% 8%;
}

.textcontent .head1{
    font-size: 3.438rem;
    font-weight: 300;
}
.textcontent .head2{
    font-size: 3.438rem;
    font-weight: 300;
    padding-left: 25px;
    padding-bottom: 30px;
}
.textcontent .nextlevel{
    font-size: 3.438rem;
    font-weight: 600;
}

.textcontent .desc{
    color: #FFF;
    font-size: 1.125rem;
    font-style: normal;
    font-weight: 400;
    line-height: 135%;
    padding-left: 25px;
}
/* Play Button */
.playbtn{
    width: 100px;
    height: 50px;
    color: #7945E3;
    box-shadow: 0px 4px 4px 0px #7945E3;
    border-radius: 50px;
    background-color: white;
    font-size: 16px;
    margin: 25px;   
    border: none;
    cursor: pointer;
}
/* Next Level Animation */

.nextlevel{
    position: relative;
    color: #A88CFD;
    -webkit-text-stroke: 0.1vw white;
}

.nextlevel::before{
    content: attr(data-text);
    position: absolute;
    top: 0;
    left:0;
    width: 0;
    height: 100%;
    color: white;
    -webkit-text-stroke: 0vw #A88CFD;
    border-right: 2px solid white;
    overflow: hidden;
    animation: animate 5s linear infinite;
}

@keyframes animate{
    0%, 10%, 100%{
        width: 0;
    }
    70%, 90%{
        width: 100%;
    }
}


.playbtn:hover{
    color: #ffffff;
    border: 2px solid white;
    background-color: transparent;
    transition: 0.2s;
    transform: scale(1.1);
}

.navplaybtn .playnav:hover{
    color: #7945E3;
    box-shadow: 0px 4px 4px 0px #7945E3;
    border-radius: 50px;
    background-color: white;
    border: none;
    transition: 0.2s;
}

/* Responsive Done */

@media screen and (max-width: 1200px){

    .textcontent{
        margin-top: 10%;
    }
    .textcontent .head1, .textcontent .head2, .textcontent .nextlevel{
        font-size: 2rem;
    }
    .textcontent .desc{
        font-size: 1rem;
    }

}

@media screen and (max-width:  480px){
    
    body{
        background: #7945E3;
    }

    .logo img{
        width: 35px;
    }
    
    nav{
        padding: 15px;
    }

    .gamename{
        padding-left: 10px;
        font-size: 25px;
    }
    .creater{
        margin: 0;
    }
    .navplaybtn .playnav{
        display: none;
    }

    .textcontent{
        max-width: 100vw;
        height: 100%;
        margin: auto;
        margin-top: 20%;
        padding-left: 25px;
        padding-right: 25px;
    }

    .textcontent .head1, .textcontent .head2, .textcontent .nextlevel{
        font-size: 40px;
    }
    .textcontent .head2{
        padding-left: 10px;
    }
    .textcontent .desc{
        padding: 10px;
        font-size: 1.2rem
    }
    .playbtn{
        margin: 50px 100px;
    }
    .nextlevel{
        color: #7945E3;
    }
    .nextlevel::before{
        -webkit-text-stroke: 0vw #7945E3;
    }
    .creater::after{
        background: #7945E3;
    }
}