.loader {
    background-color: rgba(0, 0, 0, 0.60);
    position: fixed;
    top:0px;
    bottom:0px;
    height: 100%;
    width: 100%;
    z-index: 1500;
    margin-top: 0px;
}

.loader-centered {
    /*background-color: rgba(255, 0, 0, 0.50);*/
    position: absolute;
    left: 50%;
    top: 50%;
    height: 200px;
    width: 250px;
    margin-top: -100px;
    margin-left: -75px;
}


.object-circle{
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid #20b426; /* green */
    /*border-bottom: 16px solid #20b426; !* green *!*/
    border-radius: 50%;
    margin-right: auto;
    margin-left: auto;
    width: 120px;
    height: 120px;
    animation: spin 1.2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.textLoader::before{
    content: "ระบบกำลังประมวลผล...";
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 900;
    animation: animate infinite 1.3s;
    /*padding-left: 10px;*/
}

@keyframes animate {
    5.55% {
        content: "ระบบ";
    }
    11.1% {
        content: "ระบบก";
    }
    16.65% {
        content: "ระบบกำ";
    }
    22.2% {
        content: "ระบบกำล";
    }
    27.75% {
        content: "ระบบกำลั";
    }
    33.3% {
        content: "ระบบกำลัง";
    }
    38.85% {
        content: "ระบบกำลังป";
    }
    44.4% {
        content: "ระบบกำลังปร";
    }
    49.95% {
        content: "ระบบกำลังประ";
    }
    55.5% {
        content: "ระบบกำลังประม";
    }
    61.05% {
        content: "ระบบกำลังประมว";
    }
    66.6% {
        content: "ระบบกำลังประมวล";
    }
    72.15% {
        content: "ระบบกำลังประมวลผ";
    }
    77.7% {
        content: "ระบบกำลังประมวลผล";
    }
    83.25% {
        content: "ระบบกำลังประมวลผล.";
    }
    88.8% {
        content: "ระบบกำลังประมวลผล..";
    }
    94.35% {
        content: "ระบบกำลังประมวลผล...";
    }
    99% {
        content: "ระบบกำลังประมวลผล...";
    }
}

.middle {
    /*top: 50%;*/
    /*left: 50%;*/
    margin-right: auto;
    margin-left: auto;
    /*width: 120px;*/
    /*height: 120px;*/
    /*transform: translate(-50%, -50%);*/
    /*position: absolute;*/
}

.bar {
    width: 15px;
    height: 70px;
    background: rgba(255, 255, 255, 0.01);
    display: inline-block;
    transform-origin: bottom center;
    border-top-right-radius: 20px;
    border-top-left-radius: 20px;
    /*   box-shadow:5px 10px 20px inset rgba(255,23,25.2); */
    animation: loader 1.2s linear infinite;
}
.bar1 {
    animation-delay: 0.1s;
}
.bar2 {
    animation-delay: 0.2s;
}
.bar3 {
    animation-delay: 0.3s;
}
.bar4 {
    animation-delay: 0.4s;
}
.bar5 {
    animation-delay: 0.5s;
}
.bar6 {
    animation-delay: 0.6s;
}
.bar7 {
    animation-delay: 0.7s;
}
.bar8 {
    animation-delay: 0.8s;
}
.bar9 {
    animation-delay: 0.9s;
}
.bar10 {
    animation-delay: 1.0s;
}

@keyframes loader {
    0% {
        transform: scaleY(0.1);
        background: rgba(255, 255, 255, 0);
    }
    50% {
        transform: scaleY(1);
        background: rgba(173, 216, 230, 1) ;
    }
    100% {
        transform: scaleY(0.1);
        background: rgba(173, 216, 230, 1) ;
    }
}
