/*!
 * three-dots - v0.1.2
 * CSS loading animations made by single element.
 * https://github.com/nzbin/three-dots#readme
 *
 * Copyright (c) 2018 nzbin
 * Released under MIT License
 */

:root {
    --flashing-color: #449a47;
    --pulse-color: #8e939e;
}

/**
 * ==============================================
 * Dot Flashing
 * ==============================================
 */
.dot-flashing {
    position: relative;
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background-color: var(--flashing-color);
    color: var(--flashing-color);
    animation: dotFlashing 1s infinite linear alternate;
    animation-delay: .5s;
}

.dot-flashing::before, .dot-flashing::after {
    content: '';
    display: inline-block;
    position: absolute;
    top: 0;
}

.dot-flashing::before {
    left: -15px;
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background-color: var(--flashing-color);
    color: var(--flashing-color);
    animation: dotFlashing 1s infinite alternate;
    animation-delay: 0s;
}

.dot-flashing::after {
    left: 15px;
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background-color: var(--flashing-color);
    color: var(--flashing-color);
    animation: dotFlashing 1s infinite alternate;
    animation-delay: 1s;
}

@keyframes dotFlashing {
    0% {
        background-color: var(--flashing-color);
    }
    50%,
    100% {
        background-color: #ebe6ff;
    }
}

/**
 * ==============================================
 * Dot Pulse
 * ==============================================
 */
.dot-pulse {
    position: relative;
    left: -9999px;
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background-color: var(--pulse-color);
    color: var(--pulse-color);
    box-shadow: 9999px 0 0 -5px var(--pulse-color);
    animation: dotPulse 1.5s infinite linear;
    animation-delay: .25s;
}

.dot-pulse::before, .dot-pulse::after {
    content: '';
    display: inline-block;
    position: absolute;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background-color: var(--pulse-color);
    color: var(--pulse-color);
}

.dot-pulse::before {
    box-shadow: 9984px 0 0 -5px var(--pulse-color);
    animation: dotPulseBefore 1.5s infinite linear;
    animation-delay: 0s;
}

.dot-pulse::after {
    box-shadow: 10014px 0 0 -5px var(--pulse-color);
    animation: dotPulseAfter 1.5s infinite linear;
    animation-delay: .5s;
}

@keyframes dotPulseBefore {
    0% {
        box-shadow: 9984px 0 0 -5px var(--pulse-color);
    }
    30% {
        box-shadow: 9984px 0 0 2px var(--pulse-color);
    }
    60%,
    100% {
        box-shadow: 9984px 0 0 -5px var(--pulse-color);
    }
}

@keyframes dotPulse {
    0% {
        box-shadow: 9999px 0 0 -5px var(--pulse-color);
    }
    30% {
        box-shadow: 9999px 0 0 2px var(--pulse-color);
    }
    60%,
    100% {
        box-shadow: 9999px 0 0 -5px var(--pulse-color);
    }
}

@keyframes dotPulseAfter {
    0% {
        box-shadow: 10014px 0 0 -5px var(--pulse-color);
    }
    30% {
        box-shadow: 10014px 0 0 2px var(--pulse-color);
    }
    60%,
    100% {
        box-shadow: 10014px 0 0 -5px var(--pulse-color);
    }
}
