/* lang.css - نسخه نهایی فیکس شده برای موبایل */

/* بدنه صفحه - تغییر یافته برای حذف اسکرول */
html, body {
    background-image: url(aks2.png);
    
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
    font-family: 'Tahoma', sans-serif;
    /* جلوگیری از هرگونه اسکرول */
    overflow: hidden !important;
    position: fixed; 
    touch-action: none; 
}

/* پنل اصلی */
.selection-panel {
    background-color: #1a2421;
    padding: 35px 25px;
    border-radius: 18px;
    border: 1px solid #11812d;
    text-align: center;
    box-shadow: 0 16px 40px rgba(24, 225, 13, 0.4);
    backdrop-filter: blur(10px);
    max-width: 360px;
    width: 85%;
    box-sizing: border-box; /* فیکس شدن پدینگ */
}

/* عنوان برند */
.brand-title {
    color: #20700a !important;
    font-size: 2.4rem;
    margin: 0 0 8px 0;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
    font-weight: bold;
}

/* متن خوش‌آمدگویی */
.subtitle {
    color: #e9e6e6;
    font-size: 0.9rem;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

/* ظرف دکمه‌ها */
.language-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* دکمه‌های زبان */
.btn-lang {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: #058c39;
    border: 1px solid #05580c;
    font-weight: bold;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #1a2421;
}

.btn-lang:hover {
    background-color: #ffffff;
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(20, 112, 10, 0.3);
}

/* انیمیشن عنوان */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px); /* یکم ملایم‌تر شد که به سقف نچسبه */
    }
}

/* انیمیشن خروج پنل */
.fade-out {
    opacity: 0 !important;
    transform: scale(0.9) !important;
    transition: all 0.5s ease-out !important;
}

/* =========================
   تنظیمات مخصوص موبایل
   ========================= */
@media (max-width: 480px) {
    /* حذف پدینگ بدنه در موبایل برای جلوگیری از اسکرول احتمالی */
    body {
        padding: 0;
    }

    .selection-panel {
        padding: 22px 18px;
        max-width: 280px;
        border-radius: 16px;
        box-shadow: 0 10px 28px rgba(24, 225, 13, 0.35);
    }

    .brand-title {
        font-size: 1.9rem;
        margin-bottom: 6px;
    }

    .subtitle {
        font-size: 0.8rem;
        margin-bottom: 18px;
    }

    .language-wrapper {
        gap: 10px;
    }

    .btn-lang {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
}
