.loader {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
}

.loader h4 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 40px;
    text-align: center;
    content: attr(data-title);
    margin: .1em;
    margin-bottom: .5em;
}

.loader div {
    display: flex;
    justify-content: center;
    margin-bottom: .1em;
}

.loader span {
    display: inline-block;
    vertical-align: middle;
    width: 2.5em;
    height: 2.5em;
    margin: .1em;
    background: #ab2121;
    border-radius: 5em;
    animation: loading 1s infinite alternate;
    opacity: 0;
}

.loader span:nth-of-type(2) {
    animation-delay: 0.2s;
}

.loader span:nth-of-type(3) {
    animation-delay: 0.4s;
}

.loader span:nth-of-type(4) {
    animation-delay: 0.6s;
}

.loader span:nth-of-type(5) {
    animation-delay: 0.8s;
}

.loader span:nth-of-type(6) {
    animation-delay: 1.0s;
}

.loader span:nth-of-type(7) {
    animation-delay: 1.2s;
}

@keyframes loading {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}