@import url('https://fonts.googleapis.com/css?family=Raleway:400,700,800&display=swap');

*, ::before, ::after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

body {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Raleway, sans-serif;
    background: linear-gradient(rgb(56, 19, 77) 0%, rgb(178, 74, 187) 85%, rgb(216, 112, 231) 100%);
    position: relative;
}
.loading{
    height: 100%;
    width: 100%;
}

.floating{
    animation: island 5s ease-in-out infinite alternate;
    height: 100%;
}

.heading {
    position: relative;
    width: 100%;
    margin: 60px 0 20px 0;
}
.heading h1{
    text-align: center;
    color: #fff;
    text-transform: uppercase;
    font-size: 76px;
    opacity: .3;
    padding: 10px 0;
    margin: 0;
    letter-spacing: 13px;
    font-weight: 800;
}

.heading h1 span{
    font-weight: 400;
    letter-spacing: 20px;
}

.heading img{
    max-width: 100%;
    width: 460px;
    display: block;
    margin: 0 auto;
    opacity: .6;
}

.island {
    position: relative;
    width: 100%;
    max-width: 540px;
    left: 50%;
    transform: translate(-50%,-58%);
    top: 50%;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    filter: drop-shadow(5px 20px 15px rgba(0,0,0,.4)) drop-shadow(0 190px 60px rgba(174, 23, 187, 0.3));
}

.island img{
    width: 100%;
    user-select: none;
}

.speech-bubble {
    position: absolute;
    background: #fff;
    border-radius: 30px;
    display: inline-block;
    padding: 17px;
    top: 14%;
    left: 50%;
    filter: drop-shadow(0 5px 1px rgba(0,0,0,.3));
    font-size: 14px;
    color: #272727;
    font-weight: 700;
    animation: bubble-in 1s 0.6s forwards, bubble-out 1s 3.5s forwards;
    transform-origin: bottom;
    opacity: 0;
}

.speech-bubble:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 0;
    border: 20px solid transparent;
    border-top-color: #fff;
    border-bottom: 0;
    border-left: 0;
    margin-left: -10px;
    margin-bottom: -20px;
}

.speech-bubble p{
    line-height: 1.2;
    margin: 0;
}
.speech-bubble a{
    display: inline-block;
    color: #4a59a7;
    text-decoration: none;
    font-size: 18px;
}

.speech-bubble a span{
    font-size: 20px;
}

.island div.speech-bubble:nth-child(4){
    animation: bubble-in 1s 4.2s forwards;
    top: 11%;
}

.island div.speech-bubble:nth-child(4).speech-bubble::after{
    left: 39%;
}

@media (max-width: 576px){
    .island div.speech-bubble:nth-child(4){
        animation: bubble-in 1s 4.2s forwards;
        top: 4%;
    }

    .island div.speech-bubble:nth-child(4).speech-bubble::after{
        left: 50%;
    }

    .speech-bubble a{
        font-size: 16px;
    }
}

.error-title {
    position: relative;
    text-align: center;
}

.error-title p {
    font-size: 34px;
    font-weight: 700;
    color: #9056a5;
    z-index: 1;
    margin: 0;
    text-shadow: 0 0 3px rgba(0,0,0,.2);
}

.error-title p span {
    font-size: 80px;
    font-weight: 800;
    letter-spacing: -2px;
}

.back-btn {
    position: absolute;
    top: 51%;
    left: 32%;
    transform: translate(-20%,-50%);
    display: block;
    opacity: 0;
    animation: animateBackBtn 1s 1s forwards;
}

.back-btn a {
    padding: 10px 40px;
    font-size: 20px;
    background: #fff;
    color: #4f2091;
    text-decoration: none;
    /*! border-radius: 40px; */
    display: inline-block;
    box-shadow: 0 0 0 rgba(0,0,0,.8), 0 -10px 0 rgba(0,0,0,.3);
    font-weight: 700;
    text-transform: uppercase;
    -webkit-transition: all .4s;
    -moz-transition: all .4s;
    -ms-transition: all .4s;
    -o-transition: all .4s;
    transition: all .4s;
    border: 2px dotted #4f2091;
    outline: 5px solid white;
}
.back-btn a:hover,
.back-btn a:focus
{
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
    -ms-transform: scale(1.1);
    -o-transform: scale(1.1);
    transform: scale(1.1);
    box-shadow: 0 0 50px rgba(0,0,0,.7);
}

#clouds-wrap{
    bottom: 0;
    left: 0;
    position: fixed;
    right: 0;
    top: 50%;
    z-index: -1;
}

@media (max-width: 500px){
    #clouds-wrap{
        top: 45%;
    }
}

#clouds-wrap > div{
    /*animation-play-state: paused;*/
}

@media (max-width: 576px){
    .heading{
        margin: 30px 0 10px 0;
    }

    .heading img{
        padding: 0 25px;
    }

    .error-title p{
        font-size: 28px;
    }

    .error-title p span{
        font-size: 48px;
    }

    .island{
        transform: translate(-50%,-64%);
    }

    .speech-bubble {
        -webkit-border-radius: 10px;
        -moz-border-radius: 10px;
        border-radius: 10px;
        padding: 10px 15px;
        top: 6%;
        left: 47%;
        width: 150px;
        max-width: 100%;
    }
}

.x1{
    -webkit-animation: animateCloud 120s linear infinite;
    -o-animation: animateCloud 120s linear infinite;
    animation: animateCloud 120s linear infinite;
    -webkit-transform: scale(0.6);
    -moz-transform: scale(0.6);
    -ms-transform: scale(0.6);
    -o-transform: scale(0.6);
    transform: scale(0.6);
    opacity: 0.5;
    -webkit-animation-delay: -58s;
    -moz-animation-delay: -58s;
    -o-animation-delay: -58s;
    animation-delay: -58s;
}
.x2 {
    -webkit-animation: animateCloud 68s linear infinite;
    -o-animation: animateCloud 68s linear infinite;
    animation: animateCloud 68s linear infinite;
    -webkit-transform: scale(0.3);
    -moz-transform: scale(0.3);
    -ms-transform: scale(0.3);
    -o-transform: scale(0.3);
    transform: scale(0.3);
    opacity: .9;
    -webkit-animation-delay: -117s;
    -moz-animation-delay: -117s;
    -o-animation-delay: -117s;
    animation-delay: -117s;
}
.x3{
    -webkit-animation: animateCloud 50s linear infinite;
    -o-animation: animateCloud 50s linear infinite;
    animation: animateCloud 50s linear infinite;
    -webkit-transform: scale(0.5);
    -moz-transform: scale(0.5);
    -ms-transform: scale(0.5);
    -o-transform: scale(0.5);
    transform: scale(0.5);
    -webkit-animation-delay: -27s;
    -moz-animation-delay: -27s;
    -o-animation-delay: -27s;
    animation-delay: -27s;
}

.x4{
    -webkit-animation: animateCloud 65s linear infinite;
    -o-animation: animateCloud 65s linear infinite;
    animation: animateCloud 65s linear infinite;
    -webkit-transform: scale(0.9);
    -moz-transform: scale(0.9);
    -ms-transform: scale(0.9);
    -o-transform: scale(0.9);
    transform: scale(0.9);
    opacity: .9;
    -webkit-animation-delay: -32s;
    -moz-animation-delay: -32s;
    -o-animation-delay: -32s;
    animation-delay: -32s;
    z-index: 5;
}
.x5{
    -webkit-animation: animateCloud 71s linear infinite;
    -o-animation: animateCloud 71s linear infinite;
    animation: animateCloud 71s linear infinite;
    -webkit-transform: scale(0.4);
    -moz-transform: scale(0.4);
    -ms-transform: scale(0.4);
    -o-transform: scale(0.4);
    transform: scale(0.4);
    opacity: .7;
    position: absolute;
    bottom: 75%;
}
.x6{
    -webkit-animation: animateCloud 90s linear infinite;
    -o-animation: animateCloud 90s linear infinite;
    animation: animateCloud 90s linear infinite;
    -webkit-transform: scale(0.35);
    -moz-transform: scale(0.35);
    -ms-transform: scale(0.35);
    -o-transform: scale(0.35);
    transform: scale(0.35);
    opacity: .66;
    position: absolute;
    bottom: 32%;
    animation-delay: -75s;
}

.x7{
    -webkit-animation: animateCloud 51s linear infinite;
    -o-animation: animateCloud 51s linear infinite;
    animation: animateCloud 51s linear infinite;
    -webkit-transform: scale(0.8);
    -moz-transform: scale(0.8);
    -ms-transform: scale(0.8);
    -o-transform: scale(0.8);
    transform: scale(0.8);
    opacity: .40;
    position: absolute;
    bottom: 37%;
}

.cloud{
    background: white;
    background: linear-gradient(top, white 5%, #c4c4c4 100%);
    /*filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='white',endColorstr='#f1f1f1',GradientType=0);*/
    -webkit-border-radius: 100px;
    -moz-border-radius: 100px;
    border-radius: 100px;
    -webkit-box-shadow: 0 8px 5px rgba(0,0,0,.1);
    -moz-box-shadow: 0 8px 5px rgba(0,0,0,.1);
    box-shadow: 0 8px 5px rgba(0,0,0,.1);
    height: 7vw;
    position: relative;
    width: 20vw;
    filter: drop-shadow(-25px 10px 40px rgba(0,0,0,.4));
}

.cloud::after, .cloud:before{
    background: white;
    content: '';
    position: absolute;
    z-index: -1;
}

.cloud::after{
    -webkit-border-radius: 100px;
    -moz-border-radius: 100px;
    border-radius: 100px;
    height: 6vw;
    left: 3vw;
    top: -3vw;
    width: 6vw;
}

.cloud::before{
    -webkit-border-radius: 200px;
    -moz-border-radius: 200px;
    border-radius: 200px;
    height: 11vw;
    width: 10vw;
    right: 3vw;
    top: -5vw;
}

.cloud1 img{
    width: 360px;
    height: 202px;
    position: absolute;
    left: 20%;
    bottom: 10%;
    content: '';
    transform: translate(-50%,0);
    animation: cloud1-moving 60s ease-in-out infinite alternate;
}
.cloud2 img{
    width: 425px;
    height: 199px;
    position: absolute;
    right: 15%;
    bottom: 6%;
    content: '';
    transform: translate(20%,0);
    animation: cloud2-moving 80s ease-in-out infinite alternate;
}

#comets{
    position:relative;
    top:-150px;
    width:100vw;
    text-align: left;
}

#comets i {
    display: inline-block;
    width: 250px;
    height: 150px;
    position:absolute;
    border-radius: 5% 40% 70%;
    box-shadow: inset 0px 0px 1px #294b67;
    border: 1px solid #333;
    z-index: 1;
    background-color: #fff;
    opacity: .7;
    -webkit-animation: falling 10s 0s infinite;
    -webkit-animation-timing-function:ease-in;
}


#comets i:nth-child(1){
    left: 50vw;
    height:73px;
    width:3px;
    background-color: #fff;
    -webkit-animation: falling 90s 10s infinite;
}

#comets i:nth-child(2){
    -webkit-animation: falling2 12s 8s infinite;
    left: 43vw;
    height:70px;
    width:4px;
    background-color: #fff;
}

#comets i:nth-child(3){
    height:11px;
    width:3px;
    -webkit-animation: falling3 15s 9s infinite;
    left: 10vw;
    background-color: #fff;
}
#comets i:nth-child(4){
    height:11px;
    width:3px;
    -webkit-animation: falling2 12s 13s infinite;
    left: 10vw;
    background-color: #fff;
}
#comets i:nth-child(5){
    height:17px;
    width:7px;
    -webkit-animation: falling3 19s 17s infinite;
    left: 0;
    background-color: #fff;
}

.cosmic{
    position: absolute;
    width: 100%;
    max-width: 16.6%;
    height: auto;
    left: 34.4%;
    top: -14%;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.cosmic img{
    width: 100%;
    filter: drop-shadow(3px 0px 0px rgba(0,0,0,.3));
}
.waterfall .ticket{
    background-image: url('img/ticket.png');
    width: 18px;
    height: 25px;
    -webkit-background-size: contain;
    background-size: contain;
}

.illustration {
    display: block;
    position: relative;
    width: auto;
}

.number-one {
    transform: translateY(-10px) translateZ(0);
    opacity: 0;
    animation: fadeNumberDown-10 2384ms ease-in-out infinite;
    animation-fill-mode: forwards;
}
.number-two {
    transform: translateY(-20px) translateZ(0);
    opacity: 0;
    animation: fadeNumberDown-20 2738ms ease-in-out infinite;
    animation-delay: 1632ms;
    animation-fill-mode: forwards;
}
.number-three {
    transform: translateY(-30px) translateZ(0);
    opacity: 0;
    animation: fadeNumberDown-30 2393ms ease-in-out infinite;
    animation-delay: 3694ms;
    animation-fill-mode: forwards;
}
.number-four {
    transform: translateY(-50px) translateZ(0);
    opacity: 0;
    animation: fadeNumberDown-50 2210ms ease-in-out infinite;
    animation-delay: 3149ms;
    animation-fill-mode: forwards;
}
.number-five {
    transform: translateY(-60px) translateZ(0);
    opacity: 0;
    animation: fadeNumberDown-60 4367ms ease-in-out infinite;
    animation-delay: 2494ms;
    animation-fill-mode: forwards;
}
.number-six {
    transform: translateY(-70px) translateZ(0);
    opacity: 0;
    animation: fadeNumberDown-70 4975ms ease-in-out infinite;
    animation-delay: 710ms;
    animation-fill-mode: forwards;
}
.number-seven {
    transform: translateY(-80px) translateZ(0);
    opacity: 0;
    animation: fadeNumberDown-80 2046ms ease-in-out infinite;
    animation-delay: 4290ms;
    animation-fill-mode: forwards;
}
.number-eight {
    transform: translateY(-90px) translateZ(0);
    opacity: 0;
    animation: fadeNumberDown-90 4505ms ease-in-out infinite;
    animation-delay: 4073ms;
    animation-fill-mode: forwards;
}
.number-nine {
    transform: translateY(-60px) translateZ(0);
    opacity: 0;
    animation: fadeNumberDown-100 4766ms ease-in-out infinite;
    animation-delay: 2588ms;
    animation-fill-mode: forwards;
}
.number-ten {
    transform: translateY(-110px) translateZ(0);
    opacity: 0;
    animation: fadeNumberDown-110 4060ms ease-in-out infinite;
    animation-delay: 2916ms;
    animation-fill-mode: forwards;
}
.number-eleven {
    transform: translateY(-120px) translateZ(0);
    opacity: 0;
    animation: fadeNumberDown-120 2651ms ease-in-out infinite;
    animation-delay: 5692ms;
    animation-fill-mode: forwards;
}
.number-twelve {
    transform: translateY(-150px) translateZ(0);
    opacity: 0;
    animation: fadeNumberDown-150 4768ms ease-in-out infinite;
    animation-delay: 5541ms;
    animation-fill-mode: forwards;
}
.number-thirteen {
    transform: translateY(-160px) translateZ(0);
    opacity: 0;
    animation: fadeNumberDown-160 5324ms ease-in-out infinite;
    animation-delay: 5419ms;
    animation-fill-mode: forwards;
}

@media (max-width: 576px){
    .number-four{
        display: none;
    }
    .number-five{
        display: none;
    }
    .number-six{
        display: none;
    }
    .number-seven{
        display: none;
    }
}

/*=== Animations ====*/

/* Speech bubbles */

@-webkit-keyframes bubble-in
{
    0%{
        -webkit-transform: scale(0);
        -moz-transform: scale(0);
        -ms-transform: scale(0);
        -o-transform: scale(0);
        transform: scale(0);
        opacity: 0;}
    100%{
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -ms-transform: scale(1);
        -o-transform: scale(1);
        transform: scale(1);
        opacity: 1;}
}

@-webkit-keyframes bubble-out
{
    0%{
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -ms-transform: scale(1);
        -o-transform: scale(1);
        transform: scale(1);
        opacity: 1;}
    100%{
        -webkit-transform: scale(0);
        -moz-transform: scale(0);
        -ms-transform: scale(0);
        -o-transform: scale(0);
        transform: scale(0);
        opacity: 0;}
}

/* END Speech bubbles */

/* Cloud animation */

@-webkit-keyframes animateCloud
{
    0%{margin-left: -100%;}
    100%{margin-left: 100%;}
}

@keyframes cloud1-moving {
    from {
        transform: translateX(0); }
    to {
        transform: translateX(650px); }
}
@keyframes cloud2-moving {
    from {
        transform: translateX(0); }
    to {
        transform: translateX(-650px); }
}

/* END Cloud animation */

/* Island Animation */

@keyframes island {
    from {
        transform: translateY(0); }
    to {
        transform: translateY(-20px); }
}

/* END Island Animation */

/* Tickets Animation */

@keyframes fadeNumberDown-10 {
    0% {
        transform: translateY(-10px) translateX(10px);
        opacity: 0;
    }
    40% {
        opacity: 0.4;
    }
    60% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(140px) translateX(10px);
        opacity: 0;
    }
}
@keyframes fadeNumberDown-20 {
    0% {
        transform: translateY(-20px) translateX(20px);
        opacity: 0;
    }
    40% {
        opacity: 0.4;
    }
    60% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(140px) translateX(20px);
        opacity: 0;
    }
}
@keyframes fadeNumberDown-30 {
    0% {
        transform: translateY(-30px) translateX(30px);
        opacity: 0;
    }
    40% {
        opacity: 0.4;
    }
    60% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(130px) translateX(30px);
        opacity: 0;
    }
}
@keyframes fadeNumberDown-50 {
    0% {
        transform: translateY(-50px) translateX(50px);
        opacity: 0;
    }
    40% {
        opacity: 0.4;
    }
    60% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(110px) translateX(50px);
        opacity: 0;
    }
}
@keyframes fadeNumberDown-60 {
    0% {
        transform: translateY(-60px) translateX(55px);
        opacity: 0;
    }
    40% {
        opacity: 0.4;
    }
    60% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(90px) translateX(55px);
        opacity: 0;
    }
}
@keyframes fadeNumberDown-70 {
    0% {
        transform: translateY(-70px) translateX(65px);
        opacity: 0;
    }
    40% {
        opacity: 0.4;
    }
    60% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(80px) translateX(65px);
        opacity: 0;
    }
}
@keyframes fadeNumberDown-80 {
    0% {
        transform: translateY(-80px) translateX(70px);
        opacity: 0;
    }
    40% {
        opacity: 0.4;
    }
    60% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(80px) translateX(70px);
        opacity: 0;
    }
}
@keyframes fadeNumberDown-90 {
    0% {
        transform: translateY(-90px) translateX(30px);
        opacity: 0;
    }
    40% {
        opacity: 0.4;
    }
    60% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(60px) translateX(30px);
        opacity: 0;
    }
}
@keyframes fadeNumberDown-100 {
    0% {
        transform: translateY(-150px) translateX(0);
        opacity: 0;
    }
    40% {
        opacity: 0.4;
    }
    60% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(20px) translateX(0);
        opacity: 0;
    }
}
@keyframes fadeNumberDown-110 {
    0% {
        transform: translateY(-110px) translateZ(0);
        opacity: 0;
    }
    40% {
        opacity: 0.4;
    }
    60% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(30px) translateZ(0);
        opacity: 0;
    }
}
@keyframes fadeNumberDown-120 {
    0% {
        transform: translateY(-120px) translateZ(0);
        opacity: 0;
    }
    40% {
        opacity: 0.4;
    }
    60% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(20px) translateZ(0);
        opacity: 0;
    }
}
@keyframes fadeNumberDown-150 {
    0% {
        transform: translateY(-150px) translateZ(0);
        opacity: 0;
    }
    40% {
        opacity: 0.4;
    }
    60% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(10px) translateZ(0);
        opacity: 0;
    }
}
@keyframes fadeNumberDown-160 {
    0% {
        transform: translateY(-160px) translateZ(0);
        opacity: 0;
    }
    40% {
        opacity: 0.4;
    }
    60% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(10px) translateZ(0);
        opacity: 0;
    }
}

/* END Tickets Animation */

/* Comets Animation */

@-webkit-keyframes falling {

    0% {
        -webkit-transform: translate3d(100px,0px,0px) rotate(160deg);
    }

    3% {
        -webkit-transform:
                translate3d(450px,900px,0) rotate(160deg);
        opacity: 0;
    }
    100% {
        -webkit-transform:
                translate3d(450px,900px,0) rotate(160deg);
        opacity: 0;
    }
}

@-webkit-keyframes falling3 {
    0% {
        -webkit-transform: translate3d(0,0,0) rotate(150deg);
    }

    10% {
        -webkit-transform: translate3d(430px,640px,0) rotate(150deg);
        opacity: 0;
    }

    100% {
        -webkit-transform: translate3d(430px,640px,0) rotate(150deg);
        opacity: 0;
    }
}

@-webkit-keyframes falling2 {
    0% {
        -webkit-transform:translate3d(100px,0,0) rotate(130deg);
    }

    15% {
        -webkit-transform:translate3d(800px,580px,0) rotate(130deg);
        opacity: 0;
    }

    100% {
        -webkit-transform: translate3d(800px,680px,0) rotate(180deg);
        opacity: 0;
    }
}

/* END Comets Animation */

