@media (prefers-color-scheme: light) {
    :root {
        --primary-color: #002c1b;
        --bg-color: #fffbe0;
        --text-color: #111;
        --footer-bg-color: rgb(204, 164, 108);
        /*--footer-bg-color: rgba(129, 147, 120, .9);*/
        --cp-text-color: #000;
        --cp-link-color: #111;
        --box-bg-color: rgba(68, 138, 82, 0.5);
        --box-text-color: rgba(10, 10, 10, 1);
        --box-text-color-opp: rgba(240, 240, 240, 1);
        --btn-bg-color: #e35b11;
        --btn-bg-hover-color: rgba(202, 222, 78, 1);
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #002c1b;
        --bg-color: #282825;
        --text-color: #eee;
        /*--footer-bg-color: #00b36a;*/
        --footer-bg-color: rgb(106, 76, 34);
        --cp-text-color: #ddd;
        --cp-link-color: #CCC;
        --box-bg-color: rgba(50, 50, 50, .5);
        --box-text-color: rgba(240, 240, 240, 1);
        --box-text-color-opp: rgba(10, 10, 10, 1);
        --btn-bg-color: #dd5308;
        --btn-bg-hover-color: rgba(202, 222, 78, 1);
    }
}

body {
    /*font-family: 'DM Serif Text', 'Roboto', serif !important;*/
    /*font-family: 'Unna', serif !important;*/
    /*font-family: 'Lora', serif !important;*/
    font-family: 'Open Sans', sans-serif !important;
    /*font-family: 'Roboto', serif !important;*/

    background-color: var(--primary-color) !important;
    color: var(--text-color) !important;
    cursor: default;
}

body[dir='rtl'] {
    font-family: 'Vazirmatn', sans-serif !important;
}

/*h2 {*/
/*    font-family: 'Lora', serif !important;*/
/*}*/

/*h3 {*/
/*    font-family: 'Lora', serif !important;*/
/*}*/

/*h5 {*/
/*    font-family: 'Lora', serif !important;*/
/*}*/

p {
    line-height: 180%;
}

.page-container {
    /*width: 80%;*/
    padding-top: 20px;
    padding-bottom: 20px;
    margin: 0;
    background-color: var(--bg-color);
    min-height: calc(100vh);
}


/* Header */
.bg-dark-green {
    background-color: var(--primary-color) !important;
}

.logo-text {
    color: white;
    margin: 0;
    text-align: start !important;
    width: auto;
}

.top-home-news {
    background-color: skyblue;
    height: 40px;
    align-content: center;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: row;
}

.navbar-brand img {
    max-height: 40px;
    width: auto;
}

.header-end {
    font-family: "Open Sans", sans-serif;
}

.nav-item {
    border: 0;
    border-radius: 0 !important;
    margin-inline-start: 3px;
    margin-inline-end: 3px;
}

.language-nav-link {
    border-bottom: 0;
    color: #ffffffdd !important;
}

.language-nav-link:hover {
    border: 2px;
    border-radius: 2px #ffffffdd !important;
}

.nav-link {
    border-bottom: 2px solid #ffffff00 !important;
    color: #ffffffdd !important;
}

.nav-link.active {
    border-bottom: 2px solid #ffffffdd !important;
}

.nav-link:hover {
    border-bottom: 2px solid #ffff4466 !important;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.1);
}

.navbar-toggler-icon {
    filter: invert(1);
}

/* Languages */
.two-letter {
    background-color: #ffffffdd !important;
    color: #002c1b !important;
    margin-inline-end: 10px;
    font-size: 9pt;
    padding: 0.15rem 0.5rem;
    border-radius: 0.2rem;
    font-stretch: condensed;
    display: inline-block;
    width: 30px;
    text-align: center;
}

.login-user {
    width: 30px;
    text-align: center;
}

.lang-globe {
    width: 45px;
    text-align: center;
}

.language-dropdown {
    position: relative;
}

.language-box {
    background-color: #03492e !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.25);
    border: none;
    border-radius: 10px;
}

.dropdown-item {
    color: #efefef !important;
    font-family: "Open Sans", sans-serif;
    display: flex;
    align-items: center;
}

.dropdown-item:hover {
    color: #efefef;
    cursor: pointer;
    background-color: #24835e !important;
    /*border: 1px solid skyblue;*/
    border-radius: 5px;
}

.dropdown-item i {
    width: 30px;
    text-align: center;
    margin-right: 0.5rem;
}

.dropdown-column {
    width: 50%;
    padding: 0.5rem;
}

/* Footer */
.footer {
    font-family: "Open Sans", sans-serif;
    font-size: 11pt;
    /*background-color: var(--footer-bg-color);*/
    background-color: var(--bg-color);
}

/* Copyright */
.copyright p {
    margin: 0;
    color: var(--cp-text-color);
    font-size: 9pt;
}

.copyright p a {
    text-decoration: none;
    color: var(--cp-link-color);
    /*border-bottom: 1px solid #bbb;*/
}

.copyright p a:hover {
    cursor: pointer;
}

.dropdown-menu-end-rtl {
    right: 0;
    left: auto;
    margin-left: 0;
    margin-right: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.dropdown-menu-end {
    left: 0;
    right: auto;
    margin-left: 0;
    margin-right: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.dropdown-menu-end::after {
    /*content: "";*/
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 2px;
    background-color: #333;
    border-radius: 2px;
}

.dropdown-menu-end::before {
    /*content: "";*/
    position: absolute;
    top: 50%;
    width: 10px;
    height: 2px;
    background-color: #333;
    border-radius: 2px;
    transform: rotate(90deg);
}

.emoji-font {
    font-family: sans-serif;
}

.base-label {
    display: inline-block;
    border-radius: 5px;
    color: white;
    padding-right: 5px;
    padding-left: 5px;
    font-size: calc(100% - 10%);
}

.warning-label {
    background-color: orange;
}

.green-label {
    background-color: green;
}

.red-label {
    background-color: red;
}

.warning-text {
    color: orange;
}

.warning-bg-text {
    background-color: orange;
    color: black;
    border-radius: 1px;
    padding-right: 1px;
    padding-left: 1px;
}

.green-text {
    color: green;
}

.red-text {
    color: red;
}

.grid-div table {
    width: 100%;
    display: none;
    font-size: calc(100% - 5%);
}

.index-mid-container h3 {
    position: relative;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
}

img {
    width: 100%;
    border-radius: 15px;
}

.end-aligned {
    text-align: end !important;
}

.start-aligned {
    text-align: start !important;
}

.less-sharp-text {
    opacity: .5;
}

.area-link {
    text-decoration: none;
}

.relative-div {
    margin-top: 20px;
    border-radius: 15px;
    padding: 10px;
    background-color: var(--box-bg-color);
}

.locale-container {
    /*min-height: 200px;*/
    /*text-align: center;*/
    /*display: flex;*/
    /*align-content: center;*/
    /*align-items: center;*/
}

.locale-box {
    background-color: var(--box-bg-color);
    border-radius: 15px;
    padding: 50px;
}

.locale-box:hover {
    background-color: var(--footer-bg-color);
}

.page-container {
    width: 100%;
    padding: 20px 0;
    margin: 0;
}

.benefits-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    align-content: center;
    flex-direction: row;
}

.text-with-image {
    position: relative;
}

.text-with-image img {
    float: right;
    margin-left: 15px;
    margin-right: 0;
    margin-bottom: 10px;
    width: 40%;
    height: auto;
}

.benefits-container {
}

.benefits-container img {
    width: 25% !important;
}

.text-with-image p {
    /*text-align: justify;*/
}

.text-end {
    text-align: end;
}

.reverted-float img {
    float: left;
    margin-left: 0;
    margin-right: 15px;
}

.big-page-header {
    text-align: center;
    margin-bottom: 40px;
    font-weight: normal !important;
}

.underline-text {
    text-decoration: underline;
}

.btn-primary {
    background-color: var(--btn-bg-color) !important;
    border: none !important;
    color: white;
}

.btn-primary:hover {
    background-color: var(--btn-bg-hover-color) !important;
    border: none !important;
    color: black !important;
    /*box-shadow: 0 1rem 1.85rem 0.15rem rgba(0, 0, 0, 0.5);*/
}

.btn-primary:active,
.btn-primary:focus {
    border: none !important;
}

.circle-number {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: var(--box-bg-color);
    color: var(--box-text-color) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    line-height: 0 !important;
}

.header-pre-text {
    color: var(--box-text-color-opp);
    background-color: var(--box-text-color) !important;
    margin-right: 4px;
    padding-right: 2px;
    padding-left: 2px;
}

.text-with-shadow {
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.7);
}

.social-text {
    color: var(--box-text-color);
}

.benefits-img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}