body{
  overflow-x: hidden;
}
.sky {
    cursor: url("face/1.png");
    height: 600px;
    background-image: linear-gradient(rgb(3, 72, 95), rgba(255, 255, 255, 0));
}



#cloud2 {
    width: 150px;
    position: absolute;
    top: 300px;
    left: 20px;
    animation: wind 45s infinite;
    animation-timing-function: linear;
    animation-direction: reverse;
    animation-delay: 5s;
    z-index: 1;
    animation-fill-mode: both;
}
#cloud1 {
    width: 220px;
    position: absolute;
    top: 30px;
    left: 20px;
    animation: wind 35s infinite;
    animation-timing-function: linear;
    z-index: 1;
}


#heading2 {
    position: absolute;
    top: 380px;
    left: 50%;
    margin-left: -145px;
    font-size: 2.5em;
    font-weight: 200;
    opacity: 0;
    font-family: 'Titillium Web', sans-serif;
    animation: name2 2.5s 1s;
    animation-fill-mode: forwards;
}
#heading1 {
    position: absolute;
    top: 250px;
    left: 50%;
    margin-left: -165px;
    text-align: center;
    font-size: 500%;
    font-family: 'Titillium Web', sans-serif;
    font-weight: 900;
    opacity: 0;
    transform: scale(1.4);
    animation: name1 5s;
    animation-fill-mode: forwards;
}


#frame {
    position: absolute;
    top: 34px;
    left: 50%;
    opacity: 0;
    margin-left: -85px;
    animation: face 5s 2s;
    cursor: pointer;
    animation-fill-mode: forwards;
    background-color: black;
    overflow: hidden;
}

#frame:hover #face {
    transform: scale(1.07);
    transition: 0.5s ease-in;
    filter: blur(2px);
}

#frame2 {
    height: 400px;
    width: auto;
    overflow-x: hidden;
    overflow-y: scroll;
}
#face {
    width: 130px;
}
.skills {
    position: absolute;
    top: 650px;
    width: 100%;
    height: 900px;
    padding-top: 100px;
    background-image: linear-gradient(rgba(255, 255, 255, 0), rgba(29, 30, 102, 0.534), rgb(50, 60, 116));
}

.skillbox{
    position: absolute;
    left: 25%;
    width: 50%;
}

li{
    position: relative;
    list-style: none;
    margin: 30px;
    font-size: 1.3em;
    font-family: 'Titillium Web', sans-serif;
    font-weight: 700;;
}

li::after{
    content: "";
    position: absolute;
    top: 30px;
    left: 0;
    height: 15px;
    width: 0;
    background-color: rgba(14, 14, 14, 0.486);
    border-radius: 10px;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    animation-timing-function: ease;

}
li::before{
    content: "";
    position: absolute;
    top: 30px;
    width: 100%;
    height: 15px;
    background-color: rgba(14, 14, 14, 0.486);
    border-radius: 10px;
}
li.laziness::after{
    animation-name: laziness;
}
li.procrastination::after{
    animation-name: procrastination;
}
li.humor::after{
    animation-name: humor;
}
li.java::after{
    animation-name: java;
}
li.html::after{
    animation-name: html;
}
li.css::after{
    animation-name: css;
}
li.javascript::after{
    animation-name: javascript;
}
li.c::after{
    animation-name: c;
}
li.python::after{
    animation-name: python;
}
#loader{
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 999;
    background-color: black;
}
.box{
    height: 50px;
    width: 50px;
    z-index: 2;
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 5px;
}

#box3{
    margin: 25px -75px;
    background-color: blue;
    animation: resize 0.3s 0.8s both infinite;
}
#box4{
    margin: 25px 25px;
    background-color: yellow;
    animation: resize 0.3s 1.2s both infinite;
}
#box1{
    margin: -75px -75px;
    background-color: red;
    animation: resize 0.3s 0s both infinite;
}
#box2{
   margin: -75px 25px;
   background-color: green;
   animation: resize 0.3s 0.4s both infinite;
}




/* Animations */

@keyframes wind {
    from {
        transform: translatex(-300px);
    }
    to {
        transform: translatex(1500px);
    }
}

@keyframes name1 {
    from {
        opacity: 0%;
        transform: translateY(40px);
    }
    50% {
        transform: scale(1.4);
    }
    100% {
        transform: scale(1.4);
        opacity: 100%;
    }
}

@keyframes name2 {
    from {
        opacity: 0%;
        transform: translateY(-40px);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1.05);
        opacity: 100%;
    }
}

@keyframes face {
    from {
        opacity: 0%;
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1.05);
        opacity: 100%;
    }
}
@keyframes laziness{
    to {
        width: 99%;
    }
}
@keyframes procrastination{
    to {
        width: 97%;
    }
}
@keyframes humor{
    to {
        width: 85%;
    }
}
@keyframes java{
    to {
        width: 70%;
    }
}
@keyframes html{
    to {
        width: 90%;
    }
}
@keyframes css{
    to {
        width: 87%;
    }
}
@keyframes javascript{
    to {
        width: 30%;
    }
}
@keyframes c{
    to {
        width: 80%;
    }
}
@keyframes python{
    to {
        width: 20%;
    }
}
@keyframes resize{
    50%{
        transform: scale(1.85);
    }
}


/* Media Query */

@media screen and (max-width: 600px) {
    #cloud1 {
        display: none;
    }
    #cloud2 {
        display: none;
    }
    #heading1 {
        position: absolute;
        top: 300px;
        left: 50%;
        margin-left: -95px;
        text-align: center;
        font-size: 300%;
        opacity: 0;
        transform: scale(1.4);
        font-family: 'Titillium Web', sans-serif;
        animation: name1 5s;
        animation-fill-mode: forwards;
    }
    #frame {
        position: absolute;
        top: 34px;
        left: 50%;
        opacity: 0;
        margin-left: -65.25px;
        animation: face 5s 2s;
        cursor: pointer;
        animation-fill-mode: forwards;
        background-color: black;
        overflow: hidden;
    }
    #heading2 {
        position: absolute;
        top: 380px;
        left: 50%;
        margin-left: -132px;
        font-size: 2.5em;
        opacity: 0;
        font-family: 'Titillium Web', sans-serif;
        animation: name2 2.5s 1s;
        animation-fill-mode: forwards;
    }

    .skillbox{
        left: 7%;
        width: 75%;
    }
}
