.loader {
    color: #ff6767;
    position: fixed;
    box-sizing: border-box;
    left: -9999px;
    top: -9999px;
    width: 0;
    height: 0;
    overflow: hidden;
    z-index: 999999
}

.loader:after,
.loader:before {
    box-sizing: border-box;
    display: none
}

.loader.is-active {
    background-color: rgba(0, 0, 0, .85);
    width: 100%;
    height: 100%;
    left: 0;
    top: 0
}

.loader.is-active:after,
.loader.is-active:before {
    display: block
}

@keyframes rotation {
    0% {
        transform: rotate(0)
    }

    to {
        transform: rotate(359deg)
    }
}

@keyframes blink {
    0% {
        opacity: .5
    }

    to {
        opacity: 1
    }
}

.loader[data-text]:before {
    position: fixed;
    left: 0;
    top: 50%;
    color: currentColor;
    font-family: Helvetica, Arial, sans-serif;
    text-align: center;
    width: 100%;
    font-size: 14px
}

.loader[data-text=""]:before {
    content: "Loading"
}

.loader[data-text]:not([data-text=""]):before {
    content: attr(data-text)
}

.loader[data-text][data-blink]:before {
    animation: blink 1s linear infinite alternate
}

@keyframes corners {
    6% {
        width: 60px;
        height: 15px
    }

    25% {
        width: 15px;
        height: 15px;
        left: calc(100% - 15px);
        top: 0
    }

    31% {
        height: 60px
    }

    50% {
        height: 15px;
        top: calc(100% - 15px);
        left: calc(100% - 15px)
    }

    56% {
        width: 60px
    }

    75% {
        width: 15px;
        left: 0;
        top: calc(100% - 15px)
    }

    81% {
        height: 60px
    }
}

.loader-border[data-text]:before {
    color: #fff
}

.loader-border:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 15px;
    height: 15px;
    background-color: #ff6767;
    animation: corners 3s ease both infinite
}