@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir.woff2') format('woff2');
    font-display: swap;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Vazir';
    direction: rtl;
}

body {
    background: url('/assets/images/loading-desktop.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    min-height: 100dvh;
}

/* لودینگ */
.loader {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.loader div {
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-radius: 50%;
    animation: bounce 0.6s infinite alternate;
}

.loader div:nth-child(2) { animation-delay: 0.2s; }
.loader div:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
    from { transform: translateY(0); opacity: 0.7; }
    to   { transform: translateY(-14px); opacity: 1; }
}

/* متن */
p {
    color: #ffffff;
    font-size: 15px;
    margin-bottom: 32px;
    text-align: center;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

/* تبلت و موبایل */
@media (max-width: 768px) {
    body {
        background: url('/assets/images/loading-mobile.jpg') no-repeat center center;
        background-size: cover;
    }

    p {
        font-size: 14px;
        margin-bottom: 24px;
    }
}

/* موبایل کوچک */
@media (max-width: 480px) {

    body {
        background: url('/assets/images/loading-mobile.jpg') no-repeat center center;
        background-size: cover;
    }
    
    p {
        font-size: 13px;
        margin-bottom: 20px;
    }
}