:root {
    --primary: #563285;
    --primary-light: #563285;
    --primary-dark: #12081e;
    --secondary: #FFB300;
    --secondary-light: #FFCA28;
    --secondary-dark: #ff8f00;


    --background: #f5f5f5;

    --font-family-base: IRANSans, Roboto, sans-serif;
    --font-family-title: IRANSans, Roboto, sans-serif;
    /*--font-family-title: IranYekan, Roboto, sans-serif;*/

    --danger: #ffeeee;
    --danger-dark: #e57373;
    --info: #e3f2fd;
    --info-dark: #64b5f6;
    --success: #e8f5e9;
    --success-dark: #a5d6a7;

    --text-color: #212121;

    --box-shadow: 0 0 1rem 0 #00000033;
}

[data-theme="dark"] {
    --primary: #FF9100;
    --primary-light: #FFB300;
    --primary-dark: #fff4ea;
    --secondary-dark: #281046;
    --secondary: #563285;
    --secondary-light: #693ea3;

    --background: #111;
    --box-shadow: 0 0 1rem 0 #ffffff33;


}

html {
    font-size: 17px;
    /*overflow-x: hidden;*/
}

body {
    font-family: var(--font-family-base);
    direction: rtl;
    background: linear-gradient(85deg, var(--secondary-light), var(--secondary-dark));
    /*width: 100% !important;*/
    /*overflow-x: hidden;*/
}

a {
    color: initial
}

a:active, a:hover {
    color: initial;
    text-underline-style: dash
}

#_app {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100% !important;
    overflow-x: hidden;
}

nav {
    /*height: 6rem;*/
    padding: 1rem;
    justify-content: space-between;
}

nav .h3 {
    line-height: 1.75rem;
}

nav img {
    width: 36px;
    height: 36px;
}

main {
    background: var(--background);
    padding: 0.5rem;
    border-radius: 0.5rem;
    margin: 0 0.5rem;
    min-height: calc(100vh - 101px);
    position: relative;
}

main .menu {
    border-radius: .5rem;
    background-color: #fff;
    box-shadow: 0 1px 5px 0 #999;
    min-height: 48.75px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .25rem;
}

main .menu .btn {
    margin-left: .5rem;
    border: 0;
}

.btn-light {
    color: var(--primary-dark);
    background-color: #eee;
    border-color: #f8f9fa
}

.btn-light:hover {
    color: var(--primary-dark);
    background-color: #e2e6ea;
    border-color: #dae0e5
}

.btn-light.focus, .btn-light:focus {
    color: var(--primary-dark);
    background-color: #e2e6ea;
    border-color: #dae0e5;
    box-shadow: 0 0 0 .2rem rgba(216, 217, 219, .5)
}

.btn-light.disabled, .btn-light:disabled {
    color: var(--primary-dark);
    background-color: #f8f9fa;
    border-color: #f8f9fa
}

.btn-light:not(:disabled):not(.disabled).active, .btn-light:not(:disabled):not(.disabled):active, .show > .btn-light.dropdown-toggle {
    color: var(--primary-dark);
    background-color: #dae0e5;
    border-color: #d3d9df
}

.btn-light:not(:disabled):not(.disabled).active:focus, .btn-light:not(:disabled):not(.disabled):active:focus, .show > .btn-light.dropdown-toggle:focus {
    box-shadow: 0 0 0 .2rem rgba(216, 217, 219, .5)
}

main .btn_menu {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
}


.btn-sm {
    border-radius: .3rem;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-title) !important;
    margin-bottom: .5rem;
    font-weight: 500;
    line-height: 1.2
}

.h1, h1 {
    font-size: 1.5rem;
}

.h2, h2 {
    font-size: 1.3rem
}

.h3, h3 {
    font-size: 1.2rem
}

.h4, h4 {
    font-size: 1rem
}

.h5, h5 {
    font-size: 0.85rem
}

.h6, h6 {
    font-size: .75rem
}

/****************************************/
.sun-btn {
    display: flex;
    background: var(--primary);
    box-shadow: var(--box-shadow);
    border-radius: 20px;
    color: #fff;
    fill: #fff;
    padding: 1rem .25rem;
    width: 6rem;
    height: 7.25rem;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    margin: .5rem .4rem;
    font-size: .85rem;
    font-weight: 600;
}

.sun-btn svg {
    width: 3rem;
    height: 3rem;
}

/****************************************/
.scroll-vertical {
    display: flex;
    overflow-x: auto;
    padding: 1.5rem;
    margin: 0 -1.75rem;
}

/****************************************/
.sun-card {
    display: flex;
    fill: var(--secondary);
    border-radius: 20px;
    box-shadow: var(--box-shadow);
    padding: .75rem;
    /*min-width: 303px;*/
    /*min-width: 290px;*/
    max-width: 400px;
    margin: .75rem 0.5rem;
    text-align: justify;
}

.sun-card span {
    font-size: .9rem;
}

.sun-card svg {
    /*width: 6rem;*/
    width: 10rem;
    /*height: 5rem;*/
    height: 6rem;
    margin-left: .5rem;
}

/****************************************/
.sun-btn-max {
    display: flex;
    fill: #fff;
    background-color: var(--secondary);
    border-radius: 20px;
    box-shadow: var(--box-shadow);
    padding: .75rem;
    align-items: center;
    margin: 0 auto;
    max-width: 370px;
}

.sun-btn-max svg {
    width: 3rem;
    height: 3rem;
    margin-left: .5rem;
}

/****************************************/
.sun-slide {
    border-radius: 20px;
    box-shadow: var(--box-shadow);
}

.sun-slide .carousel-inner {
    border-radius: 20px;

}

/****************************************/
section {
    margin: 1rem 0;
}

section:first-child {
    margin-top: 1.5rem;
}

section.sv {
    margin: -.75rem 0;
}

/****************************************/
.newBox {
    width: 265px;
    height: 170px;
    color: var(--primary-dark);
    border-radius: 1rem;
    overflow: hidden;
    margin-left: 1rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--box-shadow);
}

.newBox img {
    width: 100%;
    height: 120px;
    background-image: url("/file/news/news.jpg");
    background-size: cover;
    border-radius: 1rem 1rem 0 0;
    overflow: hidden;
}

.newBox div {
    height: 50px;
    display: flex;
    align-items: center;
}

.newBox span {
    padding: 0.5rem 1rem;
    font-size: .8rem;
    text-align: right;

}

.news_line {
    width: 95%;
    height: 2px;
    border-radius: 100%;
    margin: auto;
}

/****************************************/
.card {
    border: 0;
    background: unset;
}

.neshaneBox {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
}

.neshaneBox img {
    width: 97px;
    border-radius: 1rem;
    box-shadow: var(--box-shadow);
    margin-left: 1rem;
}

/***************************************/
.loading_page {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    color: var(--text-color-light);
    font-size: 1.5rem;
    line-height: 3rem;
    font-weight: 600;
    text-align: center;
    z-index: 11;
    padding: 15% 5%;
    display: none;
    backdrop-filter: blur(40px);
    /*transition: all 1s ease-in;*/
}

.loading_page.show span {
    opacity: 0
}

.loading_page.show span {
    animation: fadeIn-base 2500ms ease-in;
    opacity: 1;
}

.loading_page.show {
    display: block;
    animation: fadeIn-base 200ms ease-in;
    opacity: 1;
}

.loading_page.hiding {
    display: block;
    opacity: 0;
    /*backdrop-filter: blur(0px);*/
    animation: fadeOut-base 500ms ease-in;
}

.loading_page.hiding span {
    opacity: 0;
    /*backdrop-filter: blur(0px);*/
    animation: fadeOut-base 200ms ease-in;
}

.loading_page.show.firstStart {
    /*background-color: #f8f8f8;*/
    /*backdrop-filter: blur(40px);*/
}

@keyframes fadeIn-base {
    0% {
        opacity: 0;
        /*backdrop-filter: blur(0px);*/
    }
    100% {
        opacity: 1;
        /*backdrop-filter: blur(40px);*/
    }
}

@keyframes fadeOut-base {
    0% {
        opacity: 1;
        backdrop-filter: blur(40px);
    }
    100% {
        opacity: 0;
        backdrop-filter: blur(5px);
    }
}


/**********************************************/

.more-page {
    /*transition: all 350ms ease-out;*/
    /*position: absolute;*/
    /*left: 0;*/
    /*right: 0;*/
    width: initial;
    /*padding-bottom: 4rem;*/
    overflow: visible;
    /*opacity: 0;*/
    display: none;
    /*min-height: calc(100vh + 20px);*/
}

.more-page.pagehide {
    /*animation: fadeOut-left 500ms ease-in;*/
    /*opacity: 0;*/
    display: none;
    /*z-index: -1;*/
}

.more-page.pageshow {
    /*animation: fadeIn-left 500ms ease-in;*/
    /*opacity: 1;*/
    /*z-index: 1;*/
    display: block;
    /*padding-bottom: 4rem*/
}

@keyframes fadeOut-left {
    0% {
        position: absolute;
        left: 0;
        right: 0;
        transform: translateX(0);
        opacity: 1;
    }
    50% {
        position: absolute;
        left: 0;
        right: 0;
        opacity: 0;
    }
    100% {
        position: absolute;
        left: 0;
        right: 0;
        transform: translateX(0px);
        opacity: 0;
    }
}

@keyframes fadeIn-left {
    0% {
        position: absolute;
        left: 0;
        right: 0;
        transform: translateX(0);
        opacity: 0;
    }
    /*20% {*/
    /*    position: absolute;*/
    /*    left: 0;*/
    /*    right: 0;*/
    /*    opacity: 0.1;*/
    /*}*/
    100% {
        position: absolute;
        left: 0;
        right: 0;
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn-base {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/*************************************/
.loading-container {
    position: relative;
}

.loading-container::after {
    content: "";
    position: absolute;
    top: calc(50% - 12px);
    left: 40%;
    right: 40%;
    transform: translate(-50%, -50%);
    width: 25px; /* اندازه دایره */
    height: 25px;
    border: 4px solid #7734db; /* رنگ خطوط */
    border-top: 4px solid transparent; /* رنگ بالاي دايره */
    border-radius: 50%;
    animation: spin 1s linear infinite; /* نام انیمیشن و زمان اجرای آن */
    z-index: 2;
}

.loading-container::before {
    content: "";
    position: absolute;
    background-color: #ffffffb0;
    top: -1px;
    bottom: -1px;
    left: -1px;
    right: -1px;
    z-index: 1;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

