﻿@import url("https://static.amootsoft.com/fonts/Fonts.css");

@import url("https://static.amootsoft.com/load-awesome/css/line-scale.min.css");
@import url("https://static.amootsoft.com/load-awesome/css/square-jelly-box.min.css");
@import url("https://static.amootsoft.com/load-awesome/css/timer.min.css");
@import url("https://static.amootsoft.com/load-awesome/css/ball-grid-beat.min.css");


/* ===== ساختار ثابت ===== */
/*.blockui {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    padding: 30px 40px;
    border-radius: 12px;
    color: #fff;
    font-family: sans-serif;
    min-width: 200px;
}*/

.amoot-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.spinner {
    width: 44px;
    height: 44px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.amoot-loader .text-container {
    position: relative;
    height: 1.6em;
    width: 180px;
    width: 100%;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 500;
}

    /* ===== تنظیمات عمومی برای هر span ===== */
    .amoot-loader .text-container span {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        opacity: 0;
        animation-duration: calc(var(--amoot-loader-spancount) * 2s); /* کل چرخه = n × 2s */
        animation-iteration-count: infinite;
        animation-fill-mode: forwards;
        font-family: Amoot;
    }

/* ===== متغیر تعداد متون ===== */
:root {
    --amoot-loader-spancount: 5; /* تعداد کل متون - این عدد را تغییر دهید */
    --brand: #2266af;
}

/* ===== کلیدفریم‌های مجزا برای هر متن ===== */
/* هر متن ۲ ثانیه نمایش داده می‌شود و amoot-loader-fade-in/out دارد */

@keyframes amoot-loader-fade1 {
    0% {
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    15% {
        opacity: 1;
    }
    /* 20% - 5% */
    20% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

@keyframes amoot-loader-fade2 {
    0% {
        opacity: 0;
    }

    20% {
        opacity: 0;
    }

    25% {
        opacity: 1;
    }

    35% {
        opacity: 1;
    }

    40% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

@keyframes amoot-loader-fade3 {
    0% {
        opacity: 0;
    }

    40% {
        opacity: 0;
    }

    45% {
        opacity: 1;
    }

    55% {
        opacity: 1;
    }

    60% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

@keyframes amoot-loader-fade4 {
    0% {
        opacity: 0;
    }

    60% {
        opacity: 0;
    }

    65% {
        opacity: 1;
    }

    75% {
        opacity: 1;
    }

    80% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

@keyframes amoot-loader-fade5 {
    0% {
        opacity: 0;
    }

    80% {
        opacity: 0;
    }

    85% {
        opacity: 1;
    }

    95% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* ===== انتساب کلیدفریم و تأخیر به هر span ===== */
.text-container span:nth-child(1) {
    animation-name: amoot-loader-fade1;
    animation-delay: 0s;
}

.text-container span:nth-child(2) {
    animation-name: amoot-loader-fade2;
    animation-delay: 0s;
}

.text-container span:nth-child(3) {
    animation-name: amoot-loader-fade3;
    animation-delay: 0s;
}

.text-container span:nth-child(4) {
    animation-name: amoot-loader-fade4;
    animation-delay: 0s;
}

.text-container span:nth-child(5) {
    animation-name: amoot-loader-fade5;
    animation-delay: 0s;
}




.amoot-progress-bar {
    width: 100%;
    /*max-width: 200px;*/
    height: 4px;
    background: rgba(255,255,255,0.2);
    background: #e3e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 4px;
    position: relative;
}

    .amoot-progress-bar.pingpong::after {
        content: '';
        display: block;
        width: 42%;
        height: 100%;
        background: #fff;
        background-color: var(--brand);
        border-radius: 4px;
        animation: AnimatePingPong 1.15s ease-in-out infinite alternate;
    }

@keyframes AnimatePingPong {
    from {
        transform: translateX(145%);
    }

    to {
        transform: translateX(-245%);
    }
}



/*تم*/
.m-blockui > span > .amoot-loader,
.pageloaderinner span .amoot-loader {
    min-width: 200px
}
