/* change font size to change size of balls */

.loader {
    display: none;
    font-size: 20px;
    /*position: relative;*/
    width: 4em;
    height: 1em;
    margin: 40px auto;
    z-index: 100;

    position: absolute;
    top: 50%;
    left: 50%;
    /*top: calc(50vh - (!* height *!100px / 2));*/
    /*left: calc(50vw - (!* width *!140px / 2));*/
    transform: translate(-50%, -50%);
}

.dot {
    width: 1em;
    height: 1em;
    border-radius: 0.5em;
    background: #fb8644;
    position: absolute;
    animation-duration: 0.5s;
    animation-timing-function: ease;
    animation-iteration-count: infinite;
}

.dot1, .dot2 {
    left: 0;
}

.dot3 { left: 1.5em; }

.dot4 { left: 3em; }

@keyframes reveal {
    from { transform: scale(0.001); }
    to { transform: scale(1); }
}

@keyframes slide {
    to { transform: translateX(1.5em) }
}


.dot1 {
    animation-name: reveal;
}

.dot2, .dot3 {
    animation-name: slide;
}

.dot4 {
    animation-name: reveal;
    animation-direction: reverse;
}
