﻿/*
.load-text {
    text-align: center;
    color: white;
}

.loader {
    animation: rotate 1s infinite;
    -moz-animation: rotate 1s infinite;
    -webkit-animation: rotate 1s infinite;
    height: 50px;
    width: 50px;
}

    .loader:before,
    .loader:after {
        content: "";
        display: block;
        height: 20px;
        width: 20px;
    }

    .loader:before {
        animation: box1 1s infinite;
        -moz-animation: box1 1s infinite;
        -webkit-animation: box1 1s infinite;
        background-color: #fff;
        box-shadow: 30px 0 0 #d90909;
        margin-bottom: 10px;
    }

    .loader:after {
        animation: box2 1s infinite;
        background-color: #d90909;
        box-shadow: 30px 0 0 #fff;
    }

@keyframes rotate {
    0% {
        transform: rotate(0deg) scale(0.8);
        -moz-transform: rotate(0deg) scale(0.8);
        -webkit-transform: rotate(0deg) scale(0.8);
    }

    50% {
        transform: rotate(360deg) scale(1.2);
        -moz-transform: rotate(360deg) scale(0.8);
        -webkit-transform: rotate(360deg) scale(0.8);
    }

    100% {
        transform: rotate(720deg) scale(0.8);
        -moz-transform: rotate(720deg) scale(0.8);
        -webkit-transform: rotate(720deg) scale(0.8);
    }
}

@keyframes box1 {
    0% {
        box-shadow: 30px 0 0 #d90909;
    }

    50% {
        box-shadow: 0 0 0 #d90909;
        margin-bottom: 0;
        transform: translate(15px, 15px);
        -moz-transform: translate(15px, 15px);
        -webkit-transform: translate(15px, 15px);
    }

    100% {
        box-shadow: 30px 0 0 #d90909;
        margin-bottom: 10px;
    }
}

@keyframes box2 {
    0% {
        box-shadow: 30px 0 0 #fff;
    }

    50% {
        box-shadow: 0 0 0 #fff;
        margin-top: -20px;
        transform: translate(15px, 15px);
        -moz-transform: translate(15px, 15px);
        -webkit-transform: translate(15px, 15px);
    }

    100% {
        box-shadow: 30px 0 0 #fff;
        margin-top: 0;
    }
}
*/

.animation-container {
    display: block;
    position: relative;
    width: 800px;
    max-width: 100%;
    margin: 0 auto;
    .lightning-container

{
    position: absolute;
    top: 50%;
    left: 0;
    display: flex;
    transform: translateY(-50%);
    .lightning

{
    position: absolute;
    display: block;
    height: 12px;
    width: 12px;
    border-radius: 12px;
    transform-origin: 6px 6px;
    animation-name: woosh;
    animation-duration: 1.5s;
    animation-iteration-count: infinite;
    animation-timing-function: cubic-bezier(0.445, 0.050, 0.550, 0.950);
    animation-direction: alternate;
    &.white

{
    background-color: #4ec7d2;
    box-shadow: 0px 50px 50px 0px transparentize(white, 0.7);
}

&.red {
    background-color: #fc7171;
    box-shadow: 0px 50px 50px 0px transparentize(#fc7171, 0.7);
    animation-delay: 0.2s;
}

}
}


.boom-container {
    position: absolute;
    display: flex;
    width: 80px;
    height: 80px;
    text-align: center;
    align-items: center;
    transform: translateY(-50%);
    left: 200px;
    top: -145px;
    .shape

{
    display: inline-block;
    position: relative;
    opacity: 0;
    transform-origin: center center;
    &.triangle

{
    width: 0;
    height: 0;
    border-style: solid;
    transform-origin: 50% 80%;
    animation-duration: 1s;
    animation-timing-function: ease-out;
    animation-iteration-count: infinite;
    margin-left: -15px;
    border-width: 0 2.5px 5px 2.5px;
    border-color: transparent transparent #42e599 transparent;
    animation-name: boom-triangle;
    &.big

{
    margin-left: -25px;
    border-width: 0 5px 10px 5px;
    border-color: transparent transparent #fade28 transparent;
    animation-name: boom-triangle-big;
}

}

&.disc {
    width: 8px;
    height: 8px;
    border-radius: 100%;
    background-color: #d15ff4;
    animation-name: boom-disc;
    animation-duration: 1s;
    animation-timing-function: ease-out;
    animation-iteration-count: infinite;
}

&.circle {
    width: 20px;
    height: 20px;
    animation-name: boom-circle;
    animation-duration: 1s;
    animation-timing-function: ease-out;
    animation-iteration-count: infinite;
    border-radius: 100%;
    margin-left: -30px;
    &.white

{
    border: 1px solid white;
}

&.big {
    width: 40px;
    height: 40px;
    margin-left: 0px;
    &.white

{
    border: 2px solid white;
}

}
}

&:after {
    background-color: rgba(178, 215, 232, 0.2);
}

}

.shape {
    &.triangle, &.circle, &.circle.big, &.disc

{
    animation-delay: .38s;
    animation-duration: 3s;
}

&.circle {
    animation-delay: 0.6s;
}

}

&.second {
    left: 485px;
    top: 155px;
    .shape

{
    &.triangle, &.circle, &.circle.big, &.disc

{
    animation-delay: 1.9s;
}

&.circle {
    animation-delay: 2.15s;
}

}
}
}
}

@keyframes woosh {
    0% {
        width: 12px;
        transform: translate(0px, 0px) rotate(-35deg);
    }

    15% {
        width: 50px;
    }

    30% {
        width: 12px;
        transform: translate(214px, -150px) rotate(-35deg);
    }

    30.1% {
        transform: translate(214px, -150px) rotate(46deg);
    }

    50% {
        width: 110px;
    }

    70% {
        width: 12px;
        transform: translate(500px, 150px) rotate(46deg);
    }

    70.1% {
        transform: translate(500px, 150px) rotate(-37deg);
    }

    85% {
        width: 50px;
    }

    100% {
        width: 12px;
        transform: translate(700px, 0) rotate(-37deg);
    }
}

@keyframes boom-circle {
    0% {
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    30% {
        opacity: 0;
        transform: scale(3);
    }

    100% {
    }
}

@keyframes boom-triangle-big {
    0% {
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    40% {
        opacity: 0;
        transform: scale(2.5) translate(50px, -50px) rotate(360deg);
    }

    100% {
    }
}

@keyframes boom-triangle {
    0% {
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    30% {
        opacity: 0;
        transform: scale(3) translate(20px, 40px) rotate(360deg);
    }

    100% {
    }
}

@keyframes boom-disc {
    0% {
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    40% {
        opacity: 0;
        transform: scale(2) translate(-70px, -30px);
    }

    100% {
    }
}