body {
    font-family: Open Sans, Tahoma, Helvetica Neue, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    min-width: 350px; /* عرض حداقلی برای صفحه */
    min-height: 600px;
}

.menu {
    background-color: white;
    width: 100%;
    height: 70px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    z-index: 99999;
}

.logo {
    height: 47px;
    width: 175px;
    z-index: 99999;
    background-image: url('../images/logo.png');
    background-size: cover;
    background-position: center;
}

nav {
    display: flex;
    align-items: center;
    margin-left: 30px;
}

.menu a {
    text-decoration: none;
    color: black;
    font-size: 15px;
    margin: 0 10px;
    position: relative;
    z-index: 99999;
}

.menu a:hover {
    color: gray;
    z-index: 99999;
}

.green-box {
    background-color: green;
    padding: 8px 12px;
    color: white;
    font-size: 16px;
    border-radius: 5px;
    margin-left: 20px;
    z-index: 99999;
    cursor: pointer; /* تغییر شکل موس به حالت دستی */
}

.dropdown {
    position: relative;
    z-index: 99999;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    list-style: none;
    margin: 0;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 99999;
}

.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
    z-index: 99999;
}

.dropdown-menu li {
    padding: 5px 20px;
    z-index: 99999;
}

.dropdown-menu li:hover {
    background-color: #f0f0f0;
    z-index: 99999;
}

.language-dropdown {
    position: relative;
    margin-left: 20px;
    z-index: 99999;
}

.language-btn {
    background-color: transparent;
    border: none;
    color: black;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    z-index: 99999;
}

.language-btn .arrow {
    margin-left: 5px;
    z-index: 99999;
}

.language-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100000;
}

.language-dropdown:hover .language-list {
    display: block;
    opacity: 1;
    transform: translateY(0);
    z-index: 99999;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 99999;
}

@media (max-width: 768px) {
    nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
    nav.active {
        display: flex;
        z-index: 104;
    }

    .menu-toggle {
        display: block;
    }
}

.splashscreen {
    width: 100%;
    height: 100vh;
    background-image: url("../images/splashscreen.jpg");
    background-size: cover;
    background-position: center;
    z-index: 1;
}
.custom-logo {
    position: absolute;
    top: 100px;
    left: 30px;
    width: 400px;
    height: auto;
    opacity: 0.5;
    z-index: 10;
}
.custom-heading {
    position: absolute;
    top: 180px;
    font-size: 42px;
    text-shadow: 
        2px 2px 0 white,  /* سایه به پایین-راست */
        -2px -2px 0 white, /* سایه به بالا-چپ */
        2px -2px 0 white, /* سایه به بالا-راست */
        -2px 2px 0 white; /* سایه به پایین-چپ */
    line-height: 1.3;
    font-family: 'Roboto', tahoma, sans-serif;
    color: black;
    line-height: 1.3;
    left: 50%;
    transform: translate(-50%);
    z-index: 10;
}
@media (max-width: 640px) {
    .custom-heading {
        font-size: 25px;
        top: 180px;
    }

    .custom-logo {
        width: 200px;
    }
}
#particles-container {
    position: absolute;
    top: 0px;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* برای نمایش بکگراند */
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}
.sale-table {
    width: 300px;
    height: 180px;
    border-radius: 15px;
    position: absolute;
    left: 100px;
    transform: 0;
    bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    z-index: 999;
    opacity: 0.8;
}

@media (max-width: 400px) {
    .sale-table {
        left: 10px;
    }
}

@media (max-width: 460px) {

    .logo {
        height: 50px;
        width: 50px;
        background-image: url('../images/logo3.png');
        background-size: cover;
        background-position: center;
    }
}

.row1-sale {
    background-color: #80C4E9;
    width: calc(50% - 2px);
    height: 60px;
    border-top-left-radius: 15px;
    cursor: pointer;
    z-index: 999;
}
.row1-sale,.row2-sale p {
    text-align: center;
    color: #000;
    font-size: 20px;
    z-index: 999;
}
.row2-sale p {
    color: white;
    text-decoration: line-through;
}
.row2-sale {
    background-color: black;
    width: calc(50% - 2px);
    height: 60px;
    border-top-right-radius: 15px;
    margin-left: 4px;
    cursor: pointer;
    z-index: 999;
    opacity: 0.2;
}
.row3-sale {
    background-color: #80C4E9;
    width: 100%;
    height: 60px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    padding: auto;
    z-index: 999;
}
.row4-sale {
    width: 100%;
    height: 60px;
    background-image: url("../images/chart-sale.png");
    background-size: cover;
}
.btn {
    display: inline-block;
    text-align: center;
    border-radius: 2px;
    line-height: 19px;
    cursor: pointer;
    margin-left: -1px;
    padding: 4px 15px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
    background-image: -webkit-linear-gradient(top,#f8f8f8,#f1f1f1);
    border: 1px solid #c6c6c6;
    color: #000;
    text-decoration: none;
    font-family: sans-serif;
    margin-left: 10px;
}

.btn:active {
    background-color: #f6f6f6;
    background-image: -webkit-linear-gradient(top,#f6f6f6,#f1f1f1);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.is-pressed {
    background: -webkit-linear-gradient(top,#eee,#e0e0e0);
    border: 1px solid #d7d7d7;
    box-shadow: inset 0 1px 2px 0 rgba(0,0,0,0.1);
    margin-right: 10px;
}

.description-sale {
    font-size: 32px;
    text-align: center;
    font-weight: normal;
    margin-top: 40px;
}
.description-sale-p {
    font-family: 'roboto', sans-serif;
    font-size: 25px;
    text-align: right;
    direction: rtl;
    font-weight: 100;
    margin-left: 50px;
    margin-right: 50px;
    line-height: 34px;
    display: block;
}
@media (max-width: 1200px) {
    .description-sale-p {
        margin-left: 40px;
        margin-right: 40px;
    }
}

    /* اگر اندازه پنجره کمتر از 1000 پیکسل باشد */
@media (max-width: 1000px) {
    .description-sale-p {
        margin-left: 30px;
        margin-right: 30px;
    }
}

    /* اگر اندازه پنجره کمتر از 800 پیکسل باشد */
@media (max-width: 800px) {
    .description-sale-p {
        margin-left: 20px;
        margin-right: 20px;
    }
}

.video-container {
    width: 90%; /* عرض اولیه 90 درصد صفحه */
    max-width: 1000px; /* حداکثر عرض 800 پیکسل */
    margin: 20px auto; /* مرکز‌چین کردن و فاصله از بالا و پایین */
    text-align: center; /* مرکز‌چین کردن محتوای داخلی */
}

video {
    width: 100%; /* ویدیو کل عرض div را بگیرد */
    height: auto; /* حفظ نسبت ابعاد */
    display: block; /* جلوگیری از فضای اضافی اطراف ویدیو */
}

.sniper-titr {
    display: block;
    text-align: center;
}

.line hr {
    width: 90%;
    border-top: 2px solid;
}

.lineEnd {
    margin-top: 40px;
}

.news-item {
    margin-bottom: 20px;
}
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}
.pagination a {
    margin: 0 5px;
    padding: 5px 10px;
    border: 1px solid #ddd;
    text-decoration: none;
}

/* اخبار در ۸۰ درصد عرض صفحه و چپ چین */
.news-item {
    width: 80%;
    margin: 10px auto;
    text-align: left;
}

/* تاریخ خبر */
.news-date {
    font-size: 14px;
    color: #888;
    margin-bottom: 5px;
}

/* خلاصه خبر محدود به دو خط */
.news-summary {
    overflow: hidden;
    display: -webkit-box;
    line-clamp: 2; /* محدود کردن به دو خط */
    box-orient: vertical;
    text-overflow: ellipsis; /* نمایش '...' بعد از متن اضافی */
}

/* خط افقی پس از هر خبر (غیر از آخرین خبر) */
.news-separator {
    width: 100%;
    margin: 10px auto;
    border: 1px solid #ddd;
}

.footer p{
    text-align: center;
    font-size: small;
    color: gray;
}

.news-data {
    width: 90%;
    margin-left: 5%;
    text-align: center;
}

.news-data h2 {
    font-size: 40px;
    margin-top: 40px;
}

.news-data img {
    max-width: 80%;
    position: relative;
    margin-top: 25px;
    margin-bottom: 30px;
}

.news-data p {
    text-align: left;
}

.buy-robot{
    text-align: center;
}

.buy-robot-p{
    text-align: right;
    direction: rtl;
    width: 90%;
    margin-left: 5%;
}

.buy-robot img {
    width: 200px;
    height: 200px;
}

.wallet {
    color: gray;
    font-size: 12px;
}

/* کادر فرم */
#auth-form {
    position: absolute;
    top: 80px;
    left: 20px;
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    border-radius: 8px;
    display: none; /* مخفی باشد */
    z-index: 9999;
}

#auth-form input {
    display: block;
    width: 100%;
    margin: 10px 0;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

#auth-form button {
    background-color: green;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
}

#auth-form button:hover {
    background-color: darkgreen;
}

/* استایل برای دکمه Sign Up */
/* استایل برای دکمه Login with one-time password */
#signUpBtn {
    background-color: blue; /* رنگ پس‌زمینه */
    color: white; /* رنگ متن */
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: block; /* باعث می‌شود دکمه به صورت عمودی زیر فیلد ایمیل نمایش داده شود */
    width: 100%; /* دکمه تمام عرض فرم را اشغال می‌کند */
}

#signUpBtn:hover {
    background-color: darkblue; /* تغییر رنگ پس‌زمینه وقتی موس روی دکمه می‌رود */
}

/* استایل برای کادر کپچا */
#captcha-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

#captcha-image {
    margin-right: 10px; /* فاصله بین تصویر کپچا و آیکون */
}

#captcha-icon {
    width: 30px; /* اندازه تصویر آیکون */
    height: auto;
}

#registration-container {
    display: flex;
    align-items: center;
    gap: 5px; /* فاصله بین چک‌باکس و متن */
}

#registration-container label {
    font-size: 12px; /* اندازه فونت به 12 پیکسل */
    white-space: nowrap; /* جلوگیری از شکستن متن به خطوط متعدد */
    margin: 0; /* حذف فاصله اضافی */
    color: red;
}

/* ورودی های غیرفعال */
input[disabled] {
    background-color: #f0f0f0; /* رنگ پس‌زمینه ورودی‌های غیرفعال */
    cursor: not-allowed; /* نشان‌گر موس به حالت غیرقابل کلیک تغییر می‌کند */
}

#registration-container input[type="checkbox"] {
    margin: 0;
    padding: 0;
}

.salam {
    font-size: 25px;
    margin-left: calc(5% + 15px);
    margin-bottom: 30px;
    color: #8c8b8b;
    margin-right: 5%;
    background-color: #94fc9f;
    margin-top: 15px;
    width: 90%;
}


#popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    z-index: 1000;
    text-align: center;
    direction: rtl;
}

#popup img {
    display: block;
    margin: 0 auto 10px auto;
    width: 158px;
    height: 47px;
}

#popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

#popup button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

#popup button:hover {
    background-color: #0056b3;
}