﻿.container-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #f6f6f6;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.loaderR {
    position: relative;
    width: 100px;
    height: 130px;
    background: #fff;
    border-radius: 4px;
}

    .loaderR:before {
        content: '';
        position: absolute;
        width: 54px;
        height: 25px;
        left: 50%;
        top: 0;
        background-image: radial-gradient(ellipse at center, #0000 24%, var(--color-accent) 25%, var(--color-accent) 64%, #0000 65%), linear-gradient(to bottom, #0000 34%, var(--color-accent) 35%);
        background-size: 12px 12px, 100% auto;
        background-repeat: no-repeat;
        background-position: center top;
        transform: translate(-50%, -65%);
        box-shadow: 0 -3px rgba(0, 0, 0, 0.25) inset;
    }

    .loaderR:after {
        content: '';
        position: absolute;
        left: 50%;
        top: 20%;
        transform: translateX(-50%);
        width: 66%;
        height: 60%;
        background: linear-gradient(to bottom, var(--color-accent) 30%, #0000 31%);
        background-size: 100% 16px;
        animation: writeDown 2s ease-out infinite;
    }

@keyframes writeDown {
    0% {
        height: 0%;
        opacity: 0;
    }

    20% {
        height: 0%;
        opacity: 1;
    }

    80% {
        height: 65%;
        opacity: 1;
    }

    100% {
        height: 65%;
        opacity: 0;
    }
}
