@font-face {
    font-family: Iransans;
    src: url('assets/font/is.ttf');
}
@media (max-width: 480px){
    .maindiv, .modal-content{
        width: 95%;
        padding: 16px;
    }
}
/* From Uiverse.io by FWDJc */
.loader {
    width: 7em;
    height: 5em;
    position: relative;
    animation: beat 1s infinite;
}

.loader::before,
.loader::after {
    content: "";
    position: absolute;
    top: 0;
    width: 50px;
    height: 80px;
    border-radius: 5em 5em 0 0;
    animation: coldblue 1s infinite;
}

.loader::before {
    left: 50px;
    transform: rotate(-45deg);
    transform-origin: 0 100%;
}

.loader::after {
    left: 0;
    transform: rotate(45deg);
    transform-origin: 100% 100%;
}

@keyframes beat {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes coldblue {

    0%,
    100% {
        background-color: rgb(255, 255, 255);
    }

    50% {
        background-color: rgb(198, 23, 23);
    }
}

/* ------------------------------------------------------------------ */
html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    direction: rtl;
}

body {
    background-image: url("assets/img/mainback.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    overflow: hidden;
}

.main {
    font-family: Iransans;
}

.maindiv {
    /* glassmorphim */
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0px 8px 32px rgba(0, 0, 0, 0.25);
    /* ------------------styles------------------------- */
    width: 90%;
    /* روی موبایل تقریبا کل عرض */
    max-width: 400px;
    /* روی دسکتاپ محدود */
    margin: 20px auto;
    /* وسط صفحه */
    padding: 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    color: #fff;
}

.line {
    height: 1px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0));
    margin: 20px 0px;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.2);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: transparent;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    width: 90%;
    max-width: 400px;
    padding: 24px;
    text-align: center;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    color: #fff;
}

.glass-btn {
    display: inline-block;
    width: 100%;
    /* کل عرض کارت */
    padding: 12px 20px;
    /* اندازه دکمه */
    border-radius: 12px;
    /* گوشه‌های گرد */
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    /* شفافیت شیشه‌ای */
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    /* بلور پشت دکمه */
    -webkit-backdrop-filter: blur(10px);
    /* ساپورت سافاری */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    /* شفاف‌تر روی هاور */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    transform: translateY(-2px);
    /* کمی بالاتر رفتن */
}