@font-face {
    font-family: 'BHoma';
    src: url('/static/fonts/BHoma.ttf') format('truetype');
}

@font-face {
    font-family: 'BYekan';
    src: url('/static/fonts/BYekan.ttf') format('truetype');
}

@font-face {
    font-family: 'Bangers';
    src: url('/static/fonts/Bangers.ttf') format('truetype');
}


@font-face {
    font-family: 'Crass';
    src: url('/static/fonts/crass.ttf') format('truetype');
}


@font-face {
    font-family: 'crass';
    src: url('/static/fonts/crass.ttf') format('truetype');
}


body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'BYekan', sans-serif;
    direction: rtl;
    /* جهت متن راست‌به‌چپ */
}

.container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.background-image {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    background-image: url('../images/taxi_wide.jpg');
    /* تصویر پیش‌فرض */
    background-size: cover;
    background-position: center;
}

.logo {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 10px;
}

.logo a:hover {
    color: gold;
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.logo img {
    width: 70px;
    height: auto;
}

.links {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    /* حالت پیش‌فرض: عمودی */
    gap: 10px;
    text-align: right;
    /* متن‌ها راست‌چین */
}

.links a {
    color: black;
    /* رنگ مشکی متن */
    text-decoration: none;
    font-size: 18px;
    /* اندازه فونت پیش‌فرض */
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.3);
    /* پس‌زمینه شیشه‌ای */
    backdrop-filter: blur(10px);
    /* افکت blur */
    border-radius: 10px;
    /* گوشه‌های گرد */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.8);
    /* سایه */
    transition: all 0.3s ease;
    position: relative;
    /* برای قرارگیری افکت نور */
    overflow: hidden;
    font-weight: bold;
    z-index: 1;
    /* متن در بالای افکت باقی بماند */
}

/* افکت نور متحرک هنگام هاور */
.links a:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.links a::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 300%;
    height: 100%;
    background: linear-gradient(90deg, #FF8C00, #FFB74D, #212121, #FF8C00);
    background-size: 300% auto;
    transition: all 0.3s ease-in-out;
    opacity: 0;
    z-index: -1;
    /* افکت نور پشت متن بماند */
}

/* فعال شدن افکت نور هنگام هاور */
.links a:hover::before {
    left: 0;
    opacity: 1;
    animation: lightMove 5s infinite linear;
}

/* حالت tall (موبایل) */
@media (orientation: portrait) {
    .background-image {
        background-image: url('../images/taxi_tall.jpg');
        /* تصویر برای حالت عمودی */
    }

    .logo {
        top: auto;
        bottom: 20px;
        left: 20px;
    }

    .links {
        display: flex;
        flex-direction: row;
        gap: 5px;
        padding: 10px;
        width: 100vw;
        /* عرض کل صفحه */
        height: auto;
        border-radius: 0px;
        /* حذف گوشه‌های گرد */
        text-align: center;
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.8);
        background: linear-gradient(90deg, #FF8C00, #FFB74D, #212121, #FF8C00);
        background-size: 300% auto;
        animation: lightMove 10s infinite linear;
        white-space: nowrap;
        /* جلوگیری از شکستن متن‌ها */
        overflow: hidden;
        position: fixed;
        /* ثابت کردن در بالا */
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        /* همیشه در بالا */
        margin: 0;
        /* حذف هر گونه فاصله */
    }

    .links a {
        color: black;
        background: transparent;
        width: auto;
        padding: 5px 10px;
        font-size: 12px;
    }

    .links a:hover {
        color: gold;
        transform: translateY(-5px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    }
}

/* --- استایل‌های پس‌زمینه (تغییر تصاویر برای حالت افقی/عمودی) --- */
.background-image {
    background-image: url('../images/taxi_wide.jpg');
    background-size: cover;
    background-position: center;
}

@media (orientation: portrait) {
    .background-image {
        background-image: url('../images/taxi_tall.jpg');
    }
}

/* مودال‌ها و سایر استایل‌ها... (بدون تغییر) */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    font-family: 'BHoma', sans-serif;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    width: 90%;
    max-width: 400px;
    margin: auto;
    padding: 20px;
    border-radius: 12px;
    position: relative;
    font-family: 'BYekan', sans-serif;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #333;
}

.close-btn {
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 18px;
    cursor: pointer;
    font-family: 'BYekan', sans-serif;
    color: red;
    font-weight: bold;
    background: none;
    border: none;
    padding: 5px;
}

.modal-content input {
    width: 90%;
    padding: 12px;
    margin: 10px auto;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-align: center;
    font-size: 14px;
    font-family: 'BHoma', sans-serif;
    outline: none;
    background-color: rgba(255, 255, 255, 0.6);
}

.bhoma-button {
    font-family: 'BHoma', sans-serif;
}

.password-requirements {
    font-size: 10px;
    color: red;
    text-align: right;
    margin-top: 5px;
    font-family: 'BHoma', sans-serif;
    line-height: 1.2;
}

.password-requirements .requirement.valid {
    color: green;
}

.button-container {
    width: 100%;
    margin-top: 15px;
    display: flex;
    justify-content: space-evenly;
}

.modal-button {
    min-width: 100px;
    padding: 10px 20px;
    font-family: 'BHoma', sans-serif;
    font-size: 14px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.modal-button:active {
    transform: scale(0.97);
}

.confirm-button {
    background-color: #28a745;
    color: #fff;
}

.confirm-button:hover {
    background-color: #218838;
}

.cancel-button {
    background-color: #dc3545;
    color: #fff;
}

.cancel-button:hover {
    background-color: #c82333;
}

.modal-logo {
    width: 50px;
    position: absolute;
    top: 10px;
    left: 10px;
}

.modal-title {
    font-family: 'BYekan', sans-serif;
    font-size: 20px;
    font-weight: bold;
    color: #1a237e;
    margin-top: 30px;
}

.modal-subtitle {
    font-family: 'BYekan', sans-serif;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    margin-top: 10px;
}

.modal-description {
    font-family: 'BHoma', sans-serif;
    font-size: 14px;
    line-height: 1.4;
    color: #eee;
    margin-bottom: 5px;
}

.modal-list {
    text-align: right;
    margin: 5px auto;
    padding-right: 15px;
    list-style-type: none;
    font-size: 13px;
}

.modal-divider {
    border: none;
    height: 1px;
    background-color: #90caf9;
    margin: 10px 0;
}

.modal-link a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
}

.modal-link a:hover {
    text-decoration: underline;
}

.modal-footer {
    font-size: 12px;
    color: #eee;
    margin-top: 8px;
}

.modal-button {
    background-color: #4caf50;
    color: white;
    border: none;
    padding: 8px 15px;
    font-size: 13px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 10px;
}

.modal-button:hover {
    background-color: #388e3c;
}

@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        max-width: 400px;
        padding: 10px;
    }

    .modal-logo {
        width: 40px;
    }

    .modal-title {
        font-size: 18px;
    }

    .modal-subtitle {
        font-size: 15px;
    }

    .modal-description {
        font-size: 13px;
    }

    .modal-list {
        font-size: 12px;
    }

    .modal-link a {
        font-size: 12px;
    }

    .modal-button {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* تغییر رنگ فونت‌های سفید به نارنجی (اینجا #1a237e گذاشته شده) */
.modal-subtitle,
.modal-description,
.modal-list,
.modal-footer,
.modal-link a {
    color: #1a237e !important;
}

@media (orientation: landscape) {

    /* ====== متن فارسی انیمیشنی ====== */
    .animate-text {
        font-family: 'BHoma', sans-serif;
        font-size: 26px;
        font-weight: bold;
        text-align: center;
        position: absolute;
        bottom: 70%;
        left: 50%;
        transform: translateX(-50%);
        white-space: nowrap;
        color: transparent;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
        background: linear-gradient(90deg, #FFD700, #000000, #ff0000, #FFD700);
        background-size: 300% auto;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: lightMove 5s infinite linear;
        z-index: 10;
    }
}

/* تعریف یک بار از انیمیشن */
@keyframes lightMove {
    0% {
        background-position: -300% center;
    }

    100% {
        background-position: 300% center;
    }
}



@media (orientation: portrait) {

    /* متن فارسی انیمیشنی در حالت عمودی */
    .animate-text {
        font-family: 'BHoma', sans-serif;
        font-size: 22px;
        font-weight: bold;
        text-align: center;
        position: absolute;
        top: 10%;
        /* فاصله از پایین کمتر */
        left: 50%;
        transform: translateX(-50%);
        white-space: nowrap;
        color: transparent;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
        background: linear-gradient(90deg, #FFD700, #000000, #ff0000, #FFD700);
        background-size: 300% auto;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: lightMove 5s infinite linear;
        z-index: 10;
    }

    /* متن انگلیسی RASHT */
    .rasht-banner {
        font-family: "crass", sans-serif;
        font-size: 10px;
        font-weight: bold;
        text-align: center;
        position: absolute;
        top: 89%;
        /* در حالت عمودی کمی پایین‌تر از بالای صفحه */
        left: 80%;
        transform: translateX(-50%);
        white-space: nowrap;
        color: transparent;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
        background: linear-gradient(90deg, #eedeee, #000000, #ff0000, #eeff00);
        background-size: 300% auto;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: lightMove 5s infinite linear;
        z-index: 10;
    }

    /* متن انگلیسی TAXI */
    .taxi-banner {
        font-family: "crass", sans-serif;
        font-size: 40px;
        font-weight: 900;
        text-align: center;
        position: absolute;
        bottom: 3%;
        /* تنظیم برای قرارگیری در حالت عمودی */
        left: 80%;
        transform: translateX(-50%);
        white-space: nowrap;
        color: transparent;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
        background: linear-gradient(90deg, #ffffff, #000000, #ff0000, #eeff00);
        background-size: 300% auto;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: lightMove 5s infinite linear;
        z-index: 10;
    }
}