﻿/* Loader */
.blobs {
    width: 150px;
    height: 150px;
    position: relative;
    overflow: hidden;
    border-radius: 70px;
    transform-style: preserve-3d;
}

    .blobs .blob-center {
        transform-style: preserve-3d;
        position: absolute;
        background: #007bff;
        top: 50%;
        left: 50%;
        width: 30px;
        height: 30px;
        transform-origin: left top;
        transform: scale(0.5) translate(-50%, -50%);
        animation: blob-grow linear 3.4s infinite;
        border-radius: 50%;
        box-shadow: 0 0 25px #007bff;
    }

.blob {
    position: absolute;
    background: #007bff;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    animation: blobs ease-out 3.4s infinite;
    transform: scale(0.5) translate(-50%, -50%);
    transform-origin: center top;
    opacity: 0;
}

    .blob:nth-child(1) {
        animation-delay: 0.2s;
    }

    .blob:nth-child(2) {
        animation-delay: 0.4s;
    }

    .blob:nth-child(3) {
        animation-delay: 0.6s;
    }

    .blob:nth-child(4) {
        animation-delay: 0.8s;
    }

    .blob:nth-child(5) {
        animation-delay: 1s;
    }

@keyframes blobs {
    0% {
        opacity: 0;
        transform: scale(0) translate(calc(-330px - 50%), -50%);
    }

    1%, 99% {
        opacity: 1;
    }

    35%, 65% {
        opacity: 1;
        transform: scale(0.5) translate(-50%, -50%);
    }

    100% {
        opacity: 0;
        transform: scale(0) translate(calc(330px - 50%), -50%);
    }
}

@keyframes blob-grow {
    0%, 39%, 92%, 100% {
        transform: scale(0) translate(-50%, -50%);
    }

    40%, 42%, 90%, 91% {
        transform: scale(0.5, 0.5) translate(-50%, -50%);
    }

    43%, 44%, 86%, 87% {
        transform: scale(0.75, 0.75) translate(-50%, -50%);
    }

    45%, 46%, 84%, 85% {
        transform: scale(1, 1) translate(-50%, -50%);
    }

    47%, 48%, 82%, 83% {
        transform: scale(1.1, 1.1) translate(-50%, -50%);
    }

    52%, 80%, 81% {
        transform: scale(1.2, 1.2) translate(-50%, -50%);
    }

    54%, 78% {
        transform: scale(1.3, 1.3) translate(-50%, -50%);
    }

    58%, 68%, 70% {
        transform: scale(1.5, 1.5) translate(-50%, -50%);
    }
}

/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-30px);
    }

    60% {
        transform: translateY(-15px);
    }
}
