/*
 * Preloader Styles with a three-dot loading animation
 */

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    flex-direction: column; /* تغییر جهت نمایش به حالت ستونی */
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

#preloader img {
    max-width: 150px;
    height: auto;
    margin-bottom: 20px; /* فاصله بین لوگو و انیمیشن لودینگ */
}

/* Three-dot loading animation */
.loader-dots {
    text-align: center;
}

.loader-dots span {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #EFBF04; /* رنگ نقطه‌ها */
    border-radius: 50%;
    margin: 0 5px;
    animation: bounce 1.4s infinite ease-in-out both;
}

.loader-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loader-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1.0);
    }
}