@import url('https://fonts.googleapis.com/css2?family=Nerko+One&display=swap');

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

body {
    background: #18181b;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
}

.roundedContainer {
    width: 80vh;
    height: 80vh;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(90deg) scale(0.6,0.6);
    }

    50% {
        transform: rotate(180deg);
    }

    75% {
        transform: rotate(270deg) scale(0.6,0.6);
    }

    100% {
        transform: rotate(360deg);
    }
}

.roundedContainer .star {
    width: 5em;
    position: relative;
    top: 0;
    left: -50%;
    animation: star 3s infinite;
    z-index: 10;
}

@keyframes star {
    0% {
        transform: rotate(0);
    }

    25% {
        transform: rotate(360deg);
    }

    50% {
        transform: rotate(0deg);
    }

    75%{
        transform: rotate(360deg);
    }

    100%{
        transform: rotate(0deg);
    }
}

.ninja {
    position: absolute;
    top: 25%;
    left: 44%;
    animation: ninja 3s infinite;
    z-index: -1;
}

@keyframes ninja {
    0% {
        transform: translateY(0);
    }

    25% {
        transform: translateY(30px);
    }

    50% {
        transform: translateY(0px);
    }

    75% {
        transform: translateY(30px);
        
    }

    100% {
        transform: translateY(0px);
    }
}

.frontNinja{
    position: absolute;
    top: 30%;
    width: 280px;
    height: 280px;
    background: #18181b;
    z-index: 0;
    animation: growing 10s infinite;
}

@keyframes growing {
    0% {height: 280px;}
    20% {height: 180px;}
    40% {height: 120px;}
    50% {height: 100px;}
    60% {height: 80px;}
    80% {height: 60px;}
    100% {height: 0;}
}

.name h1{
    font-family: 'Nerko One', cursive;
    font-size: 48px;
    animation: loading 9s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background: #18181b;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;    
    }

    15% {
        background: -webkit-linear-gradient(0deg,  #fff 0%,  #fff 15%, #18181b 15%, #18181b 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    
    25% {
        background: -webkit-linear-gradient(0deg,  #fff 0%,  #fff 25%, #18181b 25%, #18181b 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    
    40% {
        background: -webkit-linear-gradient(0deg,  #fff 0%,  #fff 40%, #18181b 40%, #18181b 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
        
    50% {
        background: -webkit-linear-gradient(0deg,  #fff 0%,  #fff 50%, #18181b 50%, #18181b 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    
    60% {
        background: -webkit-linear-gradient(0deg,  #fff 0%,  #fff 60%, #18181b 60%, #18181b 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    
    75% {
        background: -webkit-linear-gradient(0deg,  #fff 0%,  #fff 75%, #18181b 75%, #18181b 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    98% {
        background: #fff;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    
    100% {
        background: #fff;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}



