/*
waitMe - 1.19 [31.10.17]
Author: vadimsva
Github: https://github.com/vadimsva/waitMe
*/

.waitMe_container:not(body),
body.waitMe_container .waitMe {
    transform: translateZ(0);
    backface-visibility: hidden;
}
body.waitMe_container .waitMe {
    position: fixed;
    height: 100vh;
}
body.waitMe_container .waitMe .waitMe_content {
    top: 50% !important;
    transform: none !important;
}
.waitMe_container .waitMe {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9989;
    text-align: center;
    overflow: hidden;
    cursor: wait;
}
.waitMe_container .waitMe * {
    font-family: inherit;
    font-size: inherit;
    font-weight: initial;
    font-style: initial;
    line-height: initial;
    color: initial;
    text-decoration: initial;
    text-transform: initial;
    padding: initial;
    margin: initial;
}
.waitMe_container .waitMe .waitMe_content {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    backface-visibility: hidden;
}
.waitMe_container .waitMe .waitMe_content.horizontal > .waitMe_progress {
    display: inline-block;
    vertical-align: middle;
}
.waitMe_container .waitMe .waitMe_content.horizontal > .waitMe_text {
    display: inline-block;
    margin: 0 0 0 20px;
    vertical-align: middle;
}
.waitMe_container .waitMe .waitMe_progress {
    position: relative;
    font-size: 0;
    line-height: 0;
}
.waitMe_container .waitMe .waitMe_progress > div {
    animation-fill-mode: both;
    display: inline-block;
    transform: translateZ(0);
    backface-visibility: hidden;
}
.waitMe_container .waitMe .waitMe_text {
    position: relative;
    margin: 20px 0 0;
}
body.waitMe_body {
    overflow: hidden;
    height: 100%;
}
body.waitMe_body.hideMe {
    transition: opacity 0.2s ease-in-out;
    opacity: 0;
}
body.waitMe_body .waitMe_container:not([data-waitme_id]) {
    position: fixed;
    z-index: 9989;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
}
body.waitMe_body .waitMe_container:not([data-waitme_id]) > div {
    animation-fill-mode: both;
    position: absolute;
}
body.waitMe_body .waitMe_container.progress > div {
    width: 0;
    height: 3px;
    top: 0;
    left: 0;
    background: #000;
    box-shadow: -5px 0 5px 2px rgba(0, 0, 0, 0.2);
    animation: progress_body 7s infinite ease-out;
}
body.waitMe_body .waitMe_container.working > div {
    width: 10%;
    height: 3px;
    top: 0;
    left: -10%;
    background: #000;
    box-shadow: -5px 0 5px 2px rgba(0, 0, 0, 0.2);
    animation: working_body 2s infinite linear;
}
body.waitMe_body .waitMe_container.progress > div:after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 60%;
    right: 0;
    width: 60px;
    border-radius: 50%;
    opacity: 0.5;
    transform: rotate(3deg);
    box-shadow: #000 1px 0 6px 1px;
}
body.waitMe_body .waitMe_container.img > div {
    width: 100%;
    height: 100%;
    text-align: center;
    background-position: center !important;
    background-repeat: no-repeat !important;
}
body.waitMe_body .waitMe_container.text > div {
    width: 100%;
    top: 45%;
    text-align: center;
}

@keyframes progress_body {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}
@keyframes working_body {
    0% {
        left: -10%;
    }
    100% {
        left: 100%;
    }
}

.waitMe_container .waitMe_progress.rotation > div {
    width: 60px;
    height: 60px;
    margin: auto;
    border-radius: 100%;
    border-width: 6px;
    border-style: solid;
    border-left-color: transparent !important;
    border-right-color: transparent !important;
    border-bottom-color: transparent !important;
    animation: rotation 1s infinite linear;
}

@keyframes rotation {
    0% {
        transform: rotate(0);
    }
    100% {
        transform: rotate(360deg);
    }
}


.waitMe_container .waitMe_progress.bouncePulse > div {
    width: 20px;
    height: 20px;
    margin-right: 1px;
    display: inline-block;
    border-radius: 50%;
    transform: scale(0.5);
    animation: bouncePulse 1.4s infinite ease-in-out;
}

.waitMe_container .waitMe_progress.bouncePulse > .waitMe_progress_elem1,
.waitMe_container .waitMe_progress.bouncePulse > .waitMe_progress_elem3 {
    animation-delay: 0.1s;
}

.waitMe_container .waitMe_progress.bouncePulse > .waitMe_progress_elem2 {
    animation-delay: 0.4s;
}

@keyframes bouncePulse {
    0%,
    100%,
    80% {
        transform: scale(0.5);
    }
    40% {
        transform: scale(1);
    }
}

.waitMe_container .waitMe .waitMe_content {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
}

.waitMe_container .waitMe .waitMe_content .waitMe_progress.rotation .waitMe_progress_elem1 {
    border-left-color: rgba(28, 161, 243, 0.6) !important;
    border-right-color: rgba(28, 161, 243, 0.6) !important;
    border-bottom-color: rgba(28, 161, 243, 0.6) !important;
}
