@import url("./variables.css");

body {
    background: url("../assets/images/backgrounds/website.png");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* LOGO. */
.logo-wrapper {
    width: 20rem;
    height: 20rem;
}
.logo,
.logo-animate {
    animation: animationLogo1 3s ease-in-out;
    opacity: 1;
}
@keyframes animationLogo1 {
    0% {
        opacity: 0;
        transform: scale(1);
    }
    90% {
        opacity: 1;
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}
.logo-animate {
    animation: animationLogo2 5s ease-out;
    transform: scale(1);
    opacity: 0;
}
@keyframes animationLogo2 {
    0% {
        opacity: 0;
    }
    58% {
        opacity: 0;
        transform: scale(1);
    }
    59% {
        opacity: 0.3;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.8);
    }
}

/* BUTTON PLAY */
.delayed-show {
    opacity: 0;
    animation: fadeIn .5s ease-in forwards;
    animation-delay: 4.75s;
}
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ANIMATED SPRITES */
.sprites-set {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}
.sprites-set img {
    position: absolute;
    display: block;
}
.sprites-set img:nth-child(1) {
    left: 0%;
    animation: animate 15s linear infinite;
    animation-delay: -7s;
}
.sprites-set img:nth-child(2) {
    left: 5%;
    animation: animate 20s linear infinite;
    animation-delay: -5s;
}
.sprites-set img:nth-child(3) {
    left: 10%;
    animation: animate 25s linear infinite;
}
.sprites-set img:nth-child(4) {
    left: 15%;
    animation: animate 15s linear infinite;
    animation-delay: -5s;
}
.sprites-set img:nth-child(5) {
    left: 80%;
    animation: animate 18s linear infinite;
    animation-delay: -10s;
}
.sprites-set img:nth-child(6) {
    left: 85%;
    animation: animate 25s linear infinite;
}
.sprites-set img:nth-child(7) {
    left: 90%;
    animation: animate 10s linear infinite;
}
.sprites-set img:nth-child(8) {
    left: 95%;
    animation: animate 22s linear infinite;
}
@keyframes animate {
    0% {
        top: -5%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        top: 98%;
        opacity: 0;
        transform: rotate(45deg);
    }
}
.sprites-set-2 {
    transform: scale(1.4) rotateY(180deg);
    filter: blur(5px);
}
.sprites-set-3 {
    transform: scale(0.6);
    filter: blur(10px);
}