﻿.loader-area {
    text-align: center;
}

.circle-loader {
    margin-bottom: 1em;
    border: 5px solid rgba(0, 0, 0, 0.2);
    border-left-color: #5cb85c;
    animation: loader-spin 1.2s infinite linear;
    position: relative;
    display: inline-block;
    vertical-align: top;
    border-radius: 50%;
    width: 7em;
    height: 7em;
}

.load-complete {
    -webkit-animation: none;
    animation: none;
    border-color: #5cb85c;
    transition: border 500ms ease-out;
}

.load-fail {
    -webkit-animation: none;
    animation: none;
    border-color: #ff4242;
    transition: border 500ms ease-out;
}

.checkmark {
    display: none;
}

    .checkmark.draw:after {
        animation-duration: 800ms;
        animation-timing-function: ease;
        animation-name: checkmark;
        transform: scaleX(-1) rotate(135deg);
    }

    .checkmark:after {
        opacity: 1;
        height: 3.5em;
        width: 1.75em;
        transform-origin: left top;
        border-right: 6px solid #5cb85c;
        border-top: 6px solid #5cb85c;
        content: '';
        left: 1.4583333333em;
        top: 3.5em;
        position: absolute;
    }

.failed {
    display: none;
}

    .failed.draw:before {
        width: 0rem;
        height: 7rem;
        transform: translateY(-28px) translateX(-2px) rotate(-45deg) scale(1);
        border-radius: 50% 50% 50% 50% / 10%;
        content: '';
        opacity: 1;
    }

    .failed.draw:after {
        width: 0rem;
        height: 7rem;
        transform: translateY(-32px) translateX(45px) rotate(45deg) scale(1);
        border-radius: 50% 50% 50% 50% / 10%;
    }

    .failed:after, .failed:before {
        opacity: 1;
        height: 3.5em;
        width: 1.75em;
        transform-origin: left top;
        border-right: 6px solid #ff4242;
        border-top: 6px solid #ff4242;
        content: '';
        left: 1.4583333333em;
        top: 3.5em;
        position: absolute;
    }

@keyframes loader-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes checkmark {
    0% {
        height: 0;
        width: 0;
        opacity: 1;
    }

    20% {
        height: 0;
        width: 1.75em;
        opacity: 1;
    }

    40% {
        height: 3.5em;
        width: 1.75em;
        opacity: 1;
    }

    100% {
        height: 3.5em;
        width: 1.75em;
        opacity: 1;
    }
}
