/* COVER PAGE CONTAINER STYLE
   - Main container takes full screen size and relative positions children
*/
.cover-page {
    background-color: var(--c6);
    position: relative;
    height: 100vh;
    width: 100%;
}

/* UTILITY STYLES */
/* Removes click events for moving elements */
.animated {
    pointer-events: none;
    user-select: none;
    -moz-user-select: none;
}

/* CLOUD LAYERS*/
.cloud-layer {
    position: absolute;
    width: 100%;
    pointer-events: none;
}
/* Position and set bg image for each cloud */
#l1 {
    top: 80vh;
    z-index: 10;
}
#l2 {
    top: 65vh;
    z-index: 9;
}
#l3 {
    top: 58vh;
    z-index: 8;
}
#l4 {
    top: 53vh;
    z-index: 7;
}
#l5 {
    top: 50vh;
    z-index: 6;
}
#sun {
    position: fixed;
    width: 50vh;
    left: calc(50vw - 25vh);
    top: 30%;
}
#pegasus {
    position: absolute;
    z-index: 9;
    animation-name: pegasus;
    animation-duration: 4s;
    animation-timing-function: linear;
    animation-fill-mode: both;
    animation-direction: normal;
    animation-timing-function: cubic-bezier(0, 0, 0, 1);
    animation-delay: 0s;
    pointer-events: none;
}
@keyframes pegasus {
    0% {
        top: 100vh;
        left: 100vw;
        width: 100vh;
        z-index: 12;
    }
    99% {
        z-index: 12;
    }
    100% {
        top: 28vh;
        left: calc(53vw - 20vh);
        width: 35vh;
        z-index: 9;
    }
}

/* TAKING FLIGHT TEXT */
/* Container for the text to center it */
#main-text {
    position: fixed;
    width: 100%;
    padding-top: 11vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9;
    pointer-events: initial;
}
#main-text > h1 {
    color: white;
    font-family: Georgia, "Times New Roman", Times, serif;
    text-align: center;
    letter-spacing: 2.6rem;
    padding-left: 2.6rem;
    animation-name: title-text;
    animation-duration: 6s;
    animation-timing-function: ease-out;
    animation-delay: 2s;
    animation-fill-mode: both;
    margin: 0;

    /* In case animation is disabled */
    text-shadow: 4px 4px 0px #000000;
    font-size: 4rem;
}
#main-text > h2 {
    color: white;
    text-align: center;
    letter-spacing: 1.3rem;
    padding-left: 1.6rem;
    margin-top: 0.5rem;
    animation-name: stl-text;
    animation-duration: 4s;
    animation-timing-function: ease-out;
    animation-delay: 4s;
    animation-fill-mode: both;
    margin: 0;
}
@keyframes title-text {
    0% {
        opacity: 0%;
        font-size: 1.3rem;
        text-shadow: none;
    }
    70% {
        opacity: 100%;
    }
    100% {
        text-shadow: 4px 4px 0px #000000;
        font-size: 3rem;
    }
}
@keyframes stl-text {
    0% {
        opacity: 0%;
        text-shadow: none;
        margin-top: 1.7rem;
        font-size: 0.6rem;
    }
    70% {
        opacity: 100%;
    }
    100% {
        padding-top: 0;
        font-size: 1.4rem;
        text-shadow: 2px 2px 0px #000000;
    }
}

/* FLOATING CLOUDS */
.cloud {
    position: absolute;
    background-position-x: center;
    background-size: 100% auto;
    background-repeat: no-repeat;
    pointer-events: none;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-direction: normal;
    animation-fill-mode: none;
}
#c1 {
    z-index: 10;
    width: 16em;
    bottom: 2%;
    animation-name: c1;
    animation-duration: 100s;
    animation-delay: -7s;
}
#c2 {
    z-index: 10;
    width: 18em;
    bottom: 4%;
    animation-name: c2;
    animation-duration: 100s;
    animation-delay: -70s;
}
#c3 {
    z-index: 9;
    width: 15em;
    bottom: 15%;

    animation-name: c3;
    animation-duration: 200s;
    animation-delay: -60s;
}
#c4 {
    z-index: 8;
    width: 12em;
    bottom: 22%;
    animation-name: c4;
    animation-duration: 300s;
    animation-delay: -200s;
}
#c5 {
    z-index: 7;
    width: 10em;
    bottom: 35%;
    animation-name: c5;
    animation-delay: -60s;
    animation-duration: 360s;
    /* animation-delay: ; */
}
#c6 {
    z-index: 6;
    width: 8em;
    bottom: 42%;
    animation-name: c5;
    animation-delay: -450s;
    animation-duration: 600s;
    /* animation-delay: ; */
}
@keyframes c1 {
    0% {
        left: -40vh;
    }
    100% {
        left: 100%;
    }
}
@keyframes c2 {
    0% {
        left: -35vh;
    }
    100% {
        left: 100%;
    }
}
@keyframes c3 {
    0% {
        left: -30vh;
    }
    100% {
        left: 100%;
    }
}
@keyframes c4 {
    0% {
        left: -25vh;
    }
    100% {
        left: 100%;
    }
}
@keyframes c5 {
    0% {
        left: -20vh;
    }
    100% {
        left: 100%;
    }
}

/* FLOATING BALOONS */
.baloon {
    position: absolute;
    background-position-x: center;
    background-size: 100% auto;
    background-repeat: no-repeat;
    pointer-events: none;

    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-direction: normal;
    animation-fill-mode: none;
    pointer-events: none;
}
#b1 {
    z-index: 9;
    height: 15em;
    left: 4%;
    animation-name: b1;
    animation-duration: 30s;
    animation-delay: -5s;
}
#b2 {
    z-index: 9;
    height: 11.5em;
    right: 4%;
    animation-name: b2;
    animation-duration: 50s;
    animation-delay: -10s;
}
#b3 {
    z-index: 7;
    height: 10em;
    left: 30%;
    animation-name: b3;
    animation-delay: -3s;
    animation-duration: 65s;
}
#b4 {
    z-index: 6;
    height: 7em;
    right: 10%;
    animation-name: b4;
    animation-delay: -20s;
    animation-duration: 75s;
}
#b5 {
    z-index: 5;
    height: 4em;
    left: 20%;
    animation-name: b5;
    animation-delay: -80s;
    animation-duration: 160s;
}
#b6 {
    z-index: 5;
    height: 4em;
    left: 70%;
    animation-name: b5;
    animation-delay: -60s;
    animation-duration: 160s;
}
@keyframes b1 {
    0% {
        top: 100%;
    }
    100% {
        top: -30%;
    }
}
@keyframes b2 {
    0% {
        top: 100%;
    }
    100% {
        top: -25%;
    }
}
@keyframes b3 {
    0% {
        top: 80%;
    }
    100% {
        top: -15%;
    }
}
@keyframes b4 {
    0% {
        top: 70%;
    }
    100% {
        top: -10%;
    }
}
@keyframes b5 {
    0% {
        top: 60%;
    }
    100% {
        top: -10%;
    }
}

/* MOBILE STYLES */
@media only screen and (max-width: 900px) {
    /* REPOSITION CLOUD LAYERS */
    #sun {
        width: 70vw;
        left: calc(50vw - 35vw);
        top: calc(50vh - 35vw);
        /* top: calc(80vh); */
    }
    @keyframes title-text {
        0% {
            opacity: 0%;
            font-size: 1rem;
            text-shadow: none;
        }
        70% {
            opacity: 100%;
        }
        100% {
            text-shadow: 2px 2px 0px #000000;
            font-size: 1.2rem;
        }
    }
    @keyframes stl-text {
        0% {
            opacity: 0%;
            text-shadow: none;
        }
        70% {
            opacity: 100%;
        }
        100% {
            text-shadow: 2px 2px 0px #000000;
        }
    }
    #main-text {
        padding-top: 10vh;
    }
    #main-text > h1 {
        line-height: 1.5;
        letter-spacing: 0.8rem;
        padding-left: 0.8rem;
        text-align: center;
    }
    #main-text > h2 {
        font-size: 1rem;
        letter-spacing: 0.2rem;
        text-align: center;
        padding-left: 0rem;
    }

    #c1 {
        bottom: 10%;
    }
    #c2 {
        bottom: 15%;
    }
    #c3 {
        bottom: 25%;
    }
    #c4 {
        bottom: 33%;
    }
    #c5 {
        bottom: 40%;
    }

    .baloon {
        font-size: 0.6em;
    }
    .cloud {
        font-size: 0.6em;
    }

    @keyframes pegasus {
        0% {
            top: 100vh;
            left: 50vw;
            width: 60vh;
            z-index: 12;
        }
        100% {
            top: 30vh;
            left: calc(55vw - 12.5vh);
            width: 25vh;
            z-index: 9;
        }
    }
}
