﻿@font-face {
    font-family: Vazirmatn FD;
    src: url('fonts/webfonts/Vazirmatn-FD-Thin.woff2') format('woff2');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn FD;
    src: url('fonts/webfonts/Vazirmatn-FD-ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn FD;
    src: url('fonts/webfonts/Vazirmatn-FD-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn FD;
    src: url('fonts/webfonts/Vazirmatn-FD-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn FD;
    src: url('fonts/webfonts/Vazirmatn-FD-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn FD;
    src: url('fonts/webfonts/Vazirmatn-FD-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn FD;
    src: url('fonts/webfonts/Vazirmatn-FD-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn FD;
    src: url('fonts/webfonts/Vazirmatn-FD-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn FD;
    src: url('fonts/webfonts/Vazirmatn-FD-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}


@-ms-viewport {
    width: device-width;
}

html {
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: border-box;
    direction: rtl;
}

html {
    font-size: 16pt;
}

@media screen and (max-width: 1680px) {

    html {
        font-size: 14pt;
    }
}

@media screen and (max-width: 736px) {

    html {
        font-size: 12pt;
    }
}

@media screen and (max-width: 360px) {

    html {
        font-size: 10pt;
    }
}

:root {
    --white: #FFFFFF;
    --light: #BFCCAF;
    --txt: #101010;
    --dark: #26593F;
    --attract: #FFBF00;
    --alert: #DE3430;
    --nav: #36596F;
    --bg: #EFE8DE;
}

.dark-mode {
}

body, input, select, textarea, button, .top-bar, .bottom-bar {
    color: var(--txt);
    font-family: 'Vazirmatn FD', "Source Sans Pro", sans-serif;
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
    display: inline-block;
    font-family: 'Vazirmatn FD', "Source Sans Pro", sans-serif;
    font-weight: 900;
    margin: 0;
}

h5, h6 {
    margin: 0;
    font-size: 1.1rem;
}

h1 {
    font-size: 1.5rem;
}

h2 {
    font-size: .7rem;
    font-weight: 600;
}

form {
    margin: 0;
    padding: 0;
    display: flex;
    flex-flow: column nowrap;
    justify-content: space-between;
    min-height: 100vh;
    width: 100%;
    background: #F6F6F6;
}

main {
    margin: 0;
    padding: 0;
    display: flex;
    flex-flow: column nowrap;
    justify-content: space-between;
    flex-grow: 1;
    transition: all 1s ease-out;
}

body {
    margin: 0;
    padding: 0;
    background: var(--white);
    background-position: bottom left;
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
}

.input-group {
    display: flex;
    flex-flow: row nowrap;
    gap: 0;
}

.input-group, .input {
    border: 1px solid rgba(0,0,0,0.2);
    border-top: 1px solid rgba(0,0,0,0.5);
    border-radius: 5px;
}

    .input:focus, .input-group:focus-within {
        background: #FFFFFFCF;
    }

    .input-group > input, .append, .prepend, .input {
        padding: .25rem .5rem;
    }

    .input-group > input, .append, .prepend {
        margin: 0;
        border: none;
        outline: none;
        background: transparent;
        box-shadow: none;
    }

.append, .prepend {
    display: flex;
    justify-content: center;
    align-items: center;
}

.append {
    border-right: none;
    padding-right: 0
}

.prepend {
    border-left: none;
    padding-left: 0;
}

#logo {
    height: 3rem;
    width: 3rem;
    margin-left: 1rem;
}

.avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 100px;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .avatar > img {
        max-width: 100%;
        max-height: 100%;
    }

.box {
    box-shadow: 0 3px 6px hsla(0,0%,40%,.3);
    border-radius: 6px;
}

.main {
    margin: 2rem;
    padding: 1rem 3rem;
}

.box.main {
    align-self: center;
    width: 100%;
    max-width: 60rem;
    flex-grow: 1;
    display: flex;
    flex-flow: column nowrap;
    margin: 1rem 3rem;
    padding: 1rem;
    background: #FFFFFF;
}

.loc-select .map {
    height: -webkit-fill-available;
}

.map {
    width: 100%;
    position: relative;
    flex-grow: 1;
    text-align: center;
}

footer {
    background-image: url('pattern.png');
    background-repeat: repeat;
    background-color: var(--nav);
    color: var(--bg);
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 3rem 1rem 2rem 1rem;
    font-size: .8rem;
}


hr {
    border: none;
    margin: 0 1rem;
}

.alert {
    color: #900;
    font-weight: 900;
    font-size: .9rem;
}

.success {
    color: #090;
    font-weight: 900;
    font-size: .9rem;
}

.m-1 {
    margin: 0.5rem 3rem;
}

.m-2 {
    margin: .5rem 20%;
}

.mb {
    margin-bottom: 2rem;
}

.mt {
    margin-top: 2rem;
}


nav {
    position: sticky;
    top: -4rem;
    z-index: 100;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    font-weight: 600;
    width: calc(100% - 6rem);
    gap: 1rem 0;
    background: #fff;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 3px 6px hsla(0,0%,40%,.15);
    margin: 1rem 3rem;
    height: 7rem;
}

#nav-toggle {
    display: none;
}

.nav-sec, .nav-row, .user-area {
    display: flex;
    flex-flow: row nowrap;
    padding: 0;
    margin: 0;
    align-self: flex-end;
}

    .nav-sec.button-box {
        position: absolute;
        top: 1rem;
        left: 1rem;
        gap: .5rem;
    }

.pad {
    padding: 1rem 2rem;
}

.nav-row {
    width: 100%;
    justify-content: center;
    align-items: center;
    font-size: .9rem;
    font-weight: 400;
    gap: .5rem;
}

.drop-content > a, .drop > a, .nav-item {
    padding: .75rem .5rem;
    text-decoration: none;
    background: transparent;
    border: none;
    outline: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: var(--dark);
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    gap: 4px;
}

.drop-content > a, .drop > a {
    justify-content: flex-start;
}

    .nav-item > i{
        font-size: 1.2rem;
    }

.nav-sec > .nav-item {
    border-left: 1px solid #EEEEEE;
}

    .nav-sec > .nav-item:last-child {
        border-left: none;
    }


.nav-item:hover {
    color: var(--txt);
    position: relative;
    box-shadow: 0 3px 6px 0 rgba(0,0,0,.15);
    border-radius: 0;
}

.menu-item > img {
    height: 3rem;
    width: 3rem;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 0 5px #000;
}


.drop {
    position: relative;
    display: flex;
    flex-flow: column nowrap;
}

nav a, nav button, .user-area button, .user-area a {
    color: var(--dark);
    text-decoration: none;
}

.drop-content {
    display: none;
    flex-flow: column nowrap;
    gap: 0;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 100%;
    min-width: 100%;
    width: max-content;
    z-index: 100;
    background: var(--white);
    border-radius: 0 0 6px 6px;
    box-shadow: 0 3px 6px 0 rgba(0,0,0,.15);
}

.child-content {
    right: 100%;
    top: 0;
    z-index: 200;
}


.drop:hover > .drop-content {
    display: flex;
    filter: brightness(95%);
}

.drop:hover > a {
    backdrop-filter: brightness(95%);
}

.drop-content > a:hover {
    backdrop-filter: brightness(95%);
}

@keyframes shadow {
    0% {
        box-shadow: 0 4px 8px 0 rgba(0,0,0,.3);
    }

    25% {
        box-shadow: 4px 0px 8px 0 rgba(0,0,0,.3);
    }

    50% {
        box-shadow: 0 -4px 8px 0 rgba(0,0,0,.3);
    }

    75% {
        box-shadow: -4px 0 8px 0 rgba(0,0,0,.3);
    }

    100% {
        box-shadow: 0 4px 8px 0 rgba(0,0,0,.3);
    }
}

@keyframes ripple {
    0% {
        box-shadow: inset 0 0 0 5rem #fff0, inset 0 0 0 8rem #fff0, inset 0 0 0 14rem #fff0, inset 0 0 0 18rem #fff0;
    }

    80% {
        box-shadow: inset -10rem 0 0 5rem #fff0, inset -10rem 0 0 8rem #fff0, inset -10rem 0 0 14rem #fff0, inset -10rem 0 0 18rem #fff0;
    }

    90% {
        box-shadow: inset 0 0 0 0rem #fff2, inset 0 0 0 5rem #fff2, inset 0 0 0 8rem #fff2, inset 0 0 0 14rem #fff2;
    }

    100% {
        box-shadow: inset 10rem 0 0 5rem #fff0, inset 10rem 0 0 8rem #fff0, inset 10rem 0 0 14rem #fff0, inset 10rem 0 0 18rem #fff0;
    }
}

.btn {
    background: var(--light);
    font-weight: 600;
    font-size: .75rem;
    border: none;
    border-radius: 5px;
    padding: 0.5rem 0.75rem;
    transition: all .3s linear;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: var(--dark);
    text-decoration: none;
    box-shadow: 0 3px 6px 0 rgba(0,0,0,.15);
}

    .btn:hover {
        box-shadow: inset 0 3px 6px 0 rgba(0,0,0,.15);
    }

    .btn.btn-lg {
        height: 3rem;
        font-size: 1rem;
    }

    .btn.cta-btn {
        background: var(--nav);
        color: var(--attract);
        padding: 0.5rem 1rem;
    }

        .btn.cta-btn:hover {
            box-shadow: inset 0 3px 6px 0 rgba(255,255,255,.3);
        }

    .btn .la {
        font-size: 1.2rem;
    }

.inline-btn {
    background: none;
    border: none;
    border-radius: 6px;
    box-shadow: 0 3px 6px 0 rgba(0,0,0,.15);
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
}

.nav-toggle {
    display: none;
}

.inline-btn:hover {
    box-shadow: inset 0 3px 6px 0 rgba(0,0,0,.15);
}

.actions {
    display: flex;
    width: 100%;
    flex-flow: row wrap;
    gap: 2rem;
    margin: 1rem .5rem 0 .5rem;
}

.cta {
    display: flex;
    align-items: center;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-name: shadow;
    background: var(--attract);
    color: var(--nav);
    padding: 0.5rem 1.5rem;
    text-align: center;
    text-decoration: none;
    position: relative;
    font-weight: 900;
    border-radius: 6px;
    border: none;
    justify-content: center;
    gap: 5px;
    margin: .5rem auto;
    cursor: pointer;
}

    .cta > .la {
        font-size: 1.5rem;
    }


    .cta:hover {
        animation: none;
        box-shadow: inset 0 3px 6px 0 rgba(0,0,0,.3);
    }

.nav-show {
    display: none;
}

.logo-container {
    display: flex;
    align-items: center;
    height: 3rem;
    margin: 5px;
    position: absolute;
    right: 0;
    top: 0;
}

.logo-link {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

    .logo-link > img {
        width: auto;
        height: 100%
    }

.site-title {
    text-decoration: none;
    color: var(--dark);
    padding-right: .5rem;
}


.user-area {
    display: none;
}


.propval-table {
    border: none;
    min-width: 10rem;
}

    .propval-table tr {
        padding: 0;
        margin: 0;
    }

        .propval-table tr:nth-child(2n) {
            background: #CFFFDF;
        }

        .propval-table tr:nth-child(2n+1) {
            background: #BFEFCF;
        }

    .propval-table td {
        margin: 0;
        padding: .5rem 1rem;
    }

        .propval-table td:first-child {
            font-weight: 600;
            border-left: 1px solid #0003;
        }




.gallery {
    display: flex;
    flex-flow: row wrap;
    gap: 2rem 1rem;
    justify-content: space-between;
    padding: 10px;
    align-self: center;
}

.gallery.col {
    flex-flow: column nowrap;
    height: 100%;
}

    .gallery > .gal-item {
        padding: 0;
        margin: 0;
        display: flex;
        flex-flow: column;
        gap: 1rem;
        width: 100px;
        align-items: center;
        justify-content: flex-start;
    }

.gal-item > a {
    width: 100px;
    height: 100px;
    color: var(--dark);
    text-decoration: none;
    display: flex;
    flex-flow: column;
}

.gal-item > * {
    width: fit-content;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.gal-item > a > img, .gal-item > a > i {
    height: 100%;
    width: 100%;
    object-fit: contain;
    transition: all .2s linear;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gal-item > a > span {
    font-weight: 500;
}

.gal-item img:hover, .gal-item > a > i:hover {
    transform: scale(1.1);
    border-radius: 1rem;
    box-shadow: 0 0 6px 2px var(--dark);
}

.gal-item.selected:before {
    content: 'تصویل اصلی';
    font-size: 12px;
    padding: 2px;
    border-radius: 3px;
    background: var(--attract);
}


.col-stretch {
    display: flex;
    flex-flow: column nowrap;
    align-items: stretch;
}

.col-center {
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
}

.txt-sm {
    font-size: .7rem;
}

.fl-row-bet {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
}

.fl-row-wrap {
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
}

.fl-row-wrap > h4.form-title {
    margin: 0;
}

.fl-row-grow {
    display: flex;
    flex-flow: row wrap;
    justify-content: stretch;
    gap: 1rem;
}

    .fl-row-grow > div {
        flex-grow: 1;
    }

    .fl-row-grow > hr, .fl-row-bet > hr {
        justify-self: stretch;
        border: 1px dashed #AC91DB6C;
        margin: 2rem 1rem !important;
    }

.just-bet {
    justify-content: space-between !important;
}

.gp-1 {
    gap: 1rem;
}

.box.main > article {
    padding: 1rem;
}

.main.box > .head-row {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
}

.box.main > h4 {
    padding: .5rem 1rem;
    margin: 2rem 0 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.3);
}

.box.main > hr {
    width: 100%;
    margin: 1rem 0;
}

.modal-bg {
    display: none;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,.2);
    backdrop-filter: blur(2px);
    position: fixed;
    top: 0;
    right: 0;
    z-index: 2002;
    padding: 1rem;
}

    .modal-bg:not(.modal-fade) {
        background: transparent;
        backdrop-filter: blur(2px) brightness(0.7);
        justify-content: flex-start;
        padding-top: 3rem;
    }

.modal-header {
    width: 100%;
    margin: 0;
    position: absolute;
    top: 0;
    height: 2rem;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    font-weight: 800;
    padding-right: 1.5rem;
    color: var(--bg);
    right: 0;
    background: var(--dark);
    border-radius: 6px;
}

.dialog-modal {
    z-index: 2020;
}

.ok-dialog-modal {
    z-index: 2010;
}

.modal-bg.show {
    display: flex;
}

.modal-main {
    width: calc(100% - 6rem);
    margin: 2rem 3rem;
    background: var(--white);
    border-radius: 6px;
    position: relative;
    padding: 3rem 1rem 2rem 1rem;
    display: flex;
    overflow-y: auto;
    max-height: 100%;
}

.modal-body {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    overflow-y: auto;
}

.dialog-main, .ok-dialog-main {
    background: var(--bg);
    position: relative;
    padding: 2rem 1rem;
    border-radius: 6px;
    border-bottom: 2px solid var(--dark);
    box-shadow: 0 0 5px var(--txt);
}

.dialog-title, .ok-dialog-title {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    font-weight: 900;
}

.dialog-main.success > .dialog-title {
    color: #006600;
}

.dialog-main.fail > .dialog-title {
    color: #AA0000;
}

.modal-close {
    z-index:10;
    border-radius: 6px;
    position: absolute;
    top: 0;
    left: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: center;
    border: none;
    outline: none;
    background: var(--light);
    box-shadow: inset 0 3px 6px 0 rgba(0,0,0,.15);
}

    .modal-close:hover {
        box-shadow: inset 0 6px 9px 0 rgba(0,0,0,.25);
    }



.tab-panel {
    width: 100%;
    display: flex;
    flex-flow: row nowrap;
    gap: 1px;
    margin: 0 -1rem;
    height: 2rem;
    position: absolute;
    bottom: 0;
}

    .tab-panel > .tab {
        flex-grow: 1;
        display: flex;
        flex-flow: row nowrap;
        align-items: center;
        justify-content: center;
        border-bottom-right-radius: 5px;
        border-bottom-left-radius: 5px;
        border: none;
        border-top: 1px solid rgba(0,0,0,.2);
        background: var(--light);
        box-shadow: inset 0 -3px 6px 0 rgba(0,0,0,.15);
    }

        .tab-panel > .tab.active {
            border-top: none;
            background: var(--white);
        }

.tab-form:not(.active), .step-form:not(.active), .case-form:not(.active) {
    display: none;
}


.tab-form {
    padding-bottom: 2rem;
}

.form, .data-form {
    display: flex;
    flex-flow: row wrap;
    gap: 1rem 0;
    align-content: flex-start;
}

    .form.col {
        flex-flow: column nowrap;
        height: fit-content;
    }

    .modal-main > .form {
        width: 100%;
    }

.data-form {
    gap: 10px 2rem;
}

.data-title {
}

.h-form {
    flex-flow: column nowrap;
    flex-grow: 1;
}

    .h-form > .btn {
        margin: 0 .5rem;
    }


@keyframes rotate {
    0% {
        transform: rotate(-10deg);
    }

    50% {
        transform: rotate(10deg);
    }

    100% {
        transform: rotate(-10deg);
    }
}

.temp {
    animation: rotate 3s ease infinite;
}


.text {
    align-self: center;
    max-width: 40rem;
    width: 100%;
    padding: .5rem 1rem;
}

    .text p {
        margin: 0;
        text-align: justify;
    }

        .text p:not(:last-child) {
            margin-bottom: .5rem;
        }

.form > hr, .data-form > hr {
    width: 100%;
    border: 1px dashed #AC91DB6C;
    margin: 0 1rem;
}

.form.h-form > hr {
    margin: .5rem 0;
}

.form > span {
    line-height: 3rem;
    margin: 0 1rem;
}

.form-title {
    margin-bottom: 1rem;
    align-self: center;
    padding: 0.5rem;
    margin-top: 0;
    border-bottom: 1px solid rgba(0,0,0,.2);
    text-align: center;
}

.detail-row {
    display: flex;
    width: 100%;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: space-between;
    font-size: .8rem;
    color: var(--dark);
    background: var(--bg);
    padding: 3px;
    border-radius: 5px;
}

    .detail-row > * {
        width: 25%;
        flex-grow: 1;
        text-align: center;
    }

        .detail-row > *:empty {
            width: 0;
            flex-grow: 0;
        }

.form-group {
    display: flex;
    flex-flow: column-reverse nowrap;
    width: 33%;
    padding: 0 .5rem;
    position: relative;
    min-width: 18rem;
    flex-grow: 1;
    justify-content: flex-end;
}

.h-form > .form-group {
    flex-grow: 0;
    width: 100%;
}

.form-group > .btn {
    height: 3rem;
}

.form-group.min-form {
    width: 3rem;
}

.form > h5 {
    width: 100%;
}

.data-form > span {
    display: inline-flex;
    flex-flow: row nowrap;
    gap: 5px;
}

::placeholder {
    color: transparent;
}


.form-input, .select2, .switch, .radio, .file, .key-switch {
    height: 3rem;
    padding: 5px 13px 0 13px;
    border: none;
    outline: none;
    background: transparent;
    border-bottom: 2px solid var(--dark);
    box-shadow: inset 0 0 2px var(--dark);
    border-radius: 5px;
}

.select2-container {
    max-width: 100%;
}

/*.form-input:valid:not(:placeholder-shown) {
        border-bottom-color: #74DB62;
    }

.alert ~ input {
    border-bottom-color: var(--alert);
}*/

textarea.form-input {
    padding: .675rem 13px;
    height: 10rem;
}

.form-group > .form-input:active, .form-group > .form-input:focus {
    background: var(--white);
}

.form-group > label {
    margin-bottom: -3rem;
    z-index: 1;
    height: 3rem;
    padding-right: 13px;
    transition: all .3s linear;
    display: inline-flex;
    align-items: center;
}

.form-group.show-placeholder > label, .form-group.float > input:not(:placeholder-shown) + label, .form-group.float > textarea:not(:placeholder-shown) + label, select.opened ~ label, select.selected ~ label, .file.selected + label, .form-group.lbl label {
    transform-origin: right;
    transform: translateY(-1.1rem) scale(.65);
    font-weight: 500;
}

.form-group.show-placeholder > input::placeholder {
    color: #999;
}

.w-50 {
    width: calc(50% - 3rem);
}

.w-100 {
    width: 100% !important;
}

.h-100 {
    height: 100%;
}

.w-50 > span {
    text-align: center;
}


.select2-selection {
    height: 100% !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
}

.select2-selection__arrow {
    height: 3rem !important;
    left: 1px !important;
    right: unset !important;
}

.select2.select2-container--open {
}

.select2-dropdown {
    padding: 0 0.5rem;
    border: none;
    outline: none;
    backdrop-filter: blur(3px) brightness(130%);
    background: #AC91DB6C;
}

    .select2-dropdown input {
        background: transparent !important;
        border: none !important;
        outline: none !important;
        box-shadow: inset 0 0 3px 1px #fff
    }

.select2-selection__rendered {
    height: 100%;
    padding: 0 0.5rem !important;
    display: inline-flex !important;
    align-items: center;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    margin-top: 15px !important;
}

.select2-results__options > li:empty {
    display: none;
}


select ~ label {
    pointer-events: none;
}



.file {
    margin-bottom: 0 !important;
}

.key-switch {
    padding: 0 !important;
    margin-bottom: 0 !important;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    gap: 0;
    border: none;
    box-shadow: none;
    font-size: .8rem
}

    .key-switch > input {
        display: none;
    }

    .key-switch > label {
        border: 2px solid var(--light);
        background: var(--white);
        border-radius: 5px;
        padding: 0 .5rem;
        display: inline-flex;
        align-items: center;
    }

    .key-switch > input:checked + label {
        color: var(--attract);
        border-color: var(--attract);
        background: var(--dark);
        font-weight: 500;
    }

        .key-switch > input:checked + label:before {
            content: '✓';
            font-size: 1rem;
        }

.switch, .radio {
    position: relative;
    cursor: pointer;
    transition: .7s;
    width: 15rem;
    padding: 0 !important;
    margin-bottom: 0 !important;
}

    .switch input, .radio input {
        display: none;
    }

.switch-bg {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 60px;
    border-radius: 80px;
    transition: all .7s ease-in-out;
    padding: .5rem;
}

.indicator {
    position: absolute;
    left: 1px;
    top: 1px;
    width: calc(3rem - 1px);
    height: calc(3rem - 3px);
    background: rgb(153,176,255);
    transition: .7s;
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
    background: #A8D8B8;
    border-radius: 5px;
}

.switch .indicator:before {
    content: '\f295';
    font-weight: 900;
}

.on-label {
    display: none;
}

.switch input:checked ~ .indicator {
    left: calc(calc(100% - 3rem) - 1px);
}

    .switch input:checked ~ .indicator:before {
        content: '\f14a';
    }

.switch input:checked ~ .switch-bg {
    padding-right: 75px;
}

    .switch input:checked ~ .switch-bg > .off-label {
        display: none;
    }

    .switch input:checked ~ .switch-bg > .on-label {
        display: block;
    }

.radio input:not(:checked) ~ .indicator {
    background: #fff;
}


    .radio input:not(:checked) ~ .indicator:before {
        content: '✗';
    }

.radio input:checked ~ .indicator:before {
    content: '✓';
}

.radio span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-right: 5px;
    height: 100%;
}


.range-slider {
    position: relative;
    width: 100%;
    height: 3rem;
    text-align: center;
}

    .range-slider input[type=range] {
        pointer-events: none;
        position: absolute;
        -webkit-appearance: none;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
        border: none;
        background: #F1EFEF;
        box-shadow: inset 0 1px 0 0 #cdc6c6, inset 0 -1px 0 0 #d9d4d4;
        -webkit-box-shadow: inset 0 1px 0 0 #cdc6c6, inset 0 -1px 0 0 #d9d4d4;
        left: 0;
        bottom: 15px;
        width: 100%;
        outline: none;
        height: 1px;
        margin: 0;
        padding: 0;
        overflow: visible;
    }

        .range-slider input[type=range]::-webkit-slider-thumb {
            pointer-events: all;
            position: relative;
            z-index: 1;
            outline: 0;
            -webkit-appearance: none;
            width: 30px;
            height: 30px;
            background: #D7D0ED;
        }

            .range-slider input[type=range]::-webkit-slider-thumb:hover {
                background: #9C81AB;
            }

        .range-slider input[type=range]:focus::-webkit-slider-thumb {
            background: var(--dark);
        }

        .range-slider input[type=range]::-moz-range-thumb {
            pointer-events: all;
            position: relative;
            z-index: 10;
            -moz-appearance: none;
            width: 30px;
            height: 30px;
            background: #D7D0ED;
        }

            .range-slider input[type=range]::-moz-range-thumb:hover {
                background: #9C81AB;
            }

        .range-slider input[type=range]:focus::-moz-range-thumb {
            background: var(--dark);
        }

        .range-slider input[type=range]::-ms-thumb {
            pointer-events: all;
            position: relative;
            z-index: 10;
            -ms-appearance: none;
            width: 30px;
            height: 30px;
            background: #D7D0ED;
        }

            .range-slider input[type=range]::-ms-thumb:hover {
                background: #9C81AB;
            }

        .range-slider input[type=range]:focus::-ms-thumb {
            background: var(--dark);
        }

        .range-slider input[type=range]::-moz-range-track {
            position: relative;
            z-index: -1;
            background-color: black;
            border: 0;
        }

        .range-slider input[type=range]:last-of-type::-moz-range-track {
            -moz-appearance: none;
            background: none transparent;
            border: 0;
        }

        .range-slider input[type=range]::-moz-focus-outer {
            border: 0;
        }






.deactive {
    pointer-events: none;
    opacity: .5;
}

.file input, input[type=file] {
    display: none;
}



.hashtag {
    display: inline-flex;
    text-decoration: none;
    border: 1px solid #fff;
    border-radius: 4px;
    padding: 3px 10px;
    background: var(--nav);
    color: #fff;
    align-items: center;
}

    .hashtag:hover {
        border-color: var(--nav);
    }

    .hashtag:before {
        content: '#';
        margin-left: 5px;
        font-weight: 900;
    }

    .hashtag:hover:before {
        color: var(--attract);
        transform: scale(1.2);
    }



.form-result {
    display: none;
    flex-flow: column nowrap;
    width: 100%;
}

    .form-result > .result-row {
        display: flex;
        flex-flow: row nowrap;
        gap: 1rem;
    }

.result-row > span:first-child {
    font-weight: 500;
}

.btn:disabled, input:disabled + label.btn {
    box-shadow: inset 0 0 2rem;
}

    .btn.wait:disabled:after, input:disabled + label.btn.wait:after {
        content: " ";
        display: block;
        width: 1rem;
        height: 1rem;
        border-radius: 50%;
        border: 3px solid #fff;
        border-color: var(--dark) transparent var(--dark) transparent;
        animation: lds-dual-ring 1.2s linear infinite;
    }

@keyframes lds-dual-ring {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

input:disabled {
    background: var(--bg);
}

    input:disabled + label {
        color: var(--light);
    }

.drop-content:not(:has(.drop)) {
    max-height: min(70vh, 20rem);
    overflow-y: auto;
}


@media screen and (max-width: 720px) {

    .drop-content:not(:has(.drop)) {
        max-height: unset;
    }

    .nav-toggle {
        display: flex;
    }

    main {
        width: 100%;
        padding: 0 1rem;
    }

    .box.main {
        margin: 1rem;
    }

    nav {
        padding-top: 1rem;
        position: fixed;
        height: 100vh;
        flex-flow: column nowrap;
        width: 0;
        overflow: hidden;
        background: var(--nav);
        justify-content: flex-start;
        top: 0;
        color: #fff;
        margin: 0;
        transition: all 1s ease-out;
        gap: 2rem;
    }

    .nav-item, .drop-content > a, .drop > a {
        color: var(--bg);
        border-left: none;
        width: 100%;
        justify-content: flex-start;
        
        border-radius: 0;
        padding: 1rem;
    }

    .nav-sec.menu a {
        color: var(--bg) !important;
        
        border-radius: 0;
    }

    .nav-item:hover {
        color: #FFF;
    }


    nav a, nav button {
        color: #FFF;
    }

    nav .inline-btn {
        box-shadow: 0 -3px 6px 0 rgba(255,255,255,.15)
    }

    .logo-container {
        position: static;
        height: auto;
    }

        .logo-container img {
            padding-right: .5rem;
            height: 3rem;
        }

    .site-title {
        color: #FFF;
    }


    .nav-sec {
        flex-flow: column nowrap;
        padding: 0;
        margin: 0;
        align-items: flex-start;
        align-self: normal;
    }

        .nav-sec.menu {
            overflow-y: auto;
        }

        .nav-sec.button-box {
            flex-flow: row wrap;
        }

    .nav-show {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        padding: .5rem;
        margin: 5px;
        z-index: 10;
        border-radius: 5px;
        background: var(--light);
    }


    #nav-toggle:checked ~ nav {
        width: 18rem;
    }

    #nav-toggle:checked + .nav-show {
        display: none;
    }

    #nav-toggle:checked ~ main {
        padding-right: 18rem;
    }


    .drop-content:before, .nav-show:hover:before, .nav-sec > a:hover:before, .nav-sec > button:hover:before, .drop:hover > a:before, .drop:hover > button:before {
        content: none;
    }

    .drop {
        align-items: flex-start;
        width: 100%;
    }

    .drop-content > a, .drop > a {
        width: 100%;
        justify-content: stretch;
    }

    .drop:hover > a {
        backdrop-filter: none;
    }

    .drop-content {
        width: 100%;
        position: initial;
        background: none;
        align-items: flex-start;
        margin-right: 1rem;
        border-right: 2px solid var(--light);
        border-radius: 0;
    }

    .user-area {
        display: flex;
        position: absolute;
        top: 1px;
        left: 1rem;
    }

    hr {
        margin-bottom: 2rem;
    }

    .w-50 {
        width: 100%;
    }

    .fl-row-grow > hr {
        display: none;
    }

    .form {
        flex-flow: column nowrap;
    }
    .modal-main {
        margin: 0;
        padding: 5px;
        width: 100%;
    }

    .tab-panel {
        margin: 0 -5px;
    }

    .form-group {
        width: 100%;
        min-width: unset;
    }
}

@media screen and (max-width: 640px) {
    #nav-toggle:checked ~ nav {
        width: 100%;
    }

    form {
        overflow-x: hidden;
    }
}



.hidden {
    display: none !important;
}

.fixed-marker {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    margin: auto;
    transform: translateY(-100%);
    z-index: 2000;
    text-shadow: 1px 1px 3px var(--txt);
    color: var(--alert);
}

    .fixed-marker:before {
        position: relative;
        top: 3px;
    }



.top-bar, .bottom-bar {
    position: absolute;
    z-index: 1001;
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-start;
    align-items: stretch;
    gap: 3px;
    width: 100%;
    background: #CCBFAF99;
    padding: 3px;
}

.leaflet-top.leaflet-left {
    z-index: 1010;
}

.bottom-bar {
    bottom: 0;
    width: 100%;
    justify-content: space-between;
}

.bar-btn {
    border-radius: 2rem;
    border: 1px solid var(--dark);
    outline: none;
    background: var(--dark);
    color: var(--white);
    padding: 5px 1rem;
    cursor: pointer;
    transition: all .3s linear;
}

    .bar-btn:hover {
        background: var(--white);
        color: var(--dark);
    }

.modal-bg.image-modal {
    padding-top: 0;
    justify-content: center;
}

.image-modal-main {
    max-width: 98%;
    max-height: 98%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.image-modal img {
    max-width: 100%;
    max-height: 100%;
    cursor: zoom-in;
}

    .image-modal img.zoomed {
        cursor: zoom-out;
        max-width: none;
        max-height: none;
    }



.legend {
    display: flex;
    height: 2.25rem;
    flex-flow: row nowrap;
    gap: 11px;
    align-items: center;
}


.legend-check {
    height: 100%;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: .7s;
    padding: 0 !important;
    margin-bottom: 0 !important;
    font-size: .8rem;
    gap: 3px;
}

    .legend-check input {
        display: none;
    }

    .legend-check .bullet {
        display: inline-block;
        height: 1rem;
        width: 1rem;
        border-radius: 3px;
        border: 2px solid;
        background-color: var(--attract);
        border-color: var(--attract);
    }

    .legend-check input:not(:checked) ~ .bullet {
        background: none !important;
        border-color: #666 !important;
    }

    .legend-check span {
        display: inline-flex;
        align-items: center;
        height: 100%;
    }


.top-bar .input-group {
    width: calc(100% - 10.5rem);
    min-width: 14rem;
    margin-left: 48px;
}

    .top-bar .input-group input {
        width: calc(100% - 2rem);
    }

.input-group ::placeholder {
    color: #666;
}


.column-right {
    display: flex;
    flex-flow: column nowrap;
    align-items: flex-start;
    gap: 0;
}

.img-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

.prof-link {
    text-align: center;
    text-decoration: none;
    color: var(--nav);
    font-weight: 300;
}

    .img-link:hover > img {
        box-shadow: inset 0 3px 6px 0 rgba(0,0,0,.15);
    }


.link-list, .item-list {
    display: flex;
    flex-flow: column nowrap;
    list-style: none;
    padding: 0;
    margin: 1rem;
    max-width: 40rem;
    align-self: center;
}

    .link-list li, .item-list li {
        display: flex;
        flex-flow: row nowrap;
        align-items: center;
        border-bottom: 1px solid var(--bg);
        gap: 0.5rem;
        padding: 0 0 0 1rem;
        transition: all .3s ease-out;
    }

        .item-list li .img-link {
            height: 4rem;
            width: 4rem;
        }

    .item-list img {
        max-height: 100%;
        max-width: 100%;
    }

    .link-list li:hover {
        box-shadow: 0 0 10px 0 #00000099;
    }

    .link-list li:last-child {
        border-bottom: 1px solid transparent;
    }

    .link-list li > * {
        display: inline-flex;
        text-decoration: none;
        align-items: center;
    }

    .link-list li a.item-link {
        padding: 1rem;
        flex-grow: 1;
        color: var(--txt);
        font-weight: 500;
    }

        .link-list li a.item-link:hover {
            text-shadow: 0 0 1px var(--attract);
        }



.grid-item {
    width: 18rem;
    display: flex;
    flex-flow: column;
    align-items: stretch;
    overflow: hidden;
}

.grid-item:hover {
    box-shadow: 0 0 7px 2px var(--attract);
}

    .grid-item .item-header {
        background-color: var(--light);
        padding: 1rem;
        color: #000;
        flex-grow: 1;
        text-decoration: none;
    }

        .grid-item .item-header h2 {
            font-size: 1rem;
        }
    .grid-item .item-body {
        text-decoration: none;
    }
    .grid-item .item-body .h-form {
        gap: 0;
        align-items: center;
        background-image: url('/Content/pattern.png');
        background-color: var(--dark);
        font-weight: 500;
        color: #FFF;
        font-size: 1.5rem;
        padding-top: 10px;
    }

    .grid-item .item-footer {
        padding: 10px 1rem;
    }


.popup-menu {
    position: fixed;
    bottom: 5px;
    right: 0;
    left: 0;
    z-index: 10000;
    background: transparentke;
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: center;
    gap: .5rem 2rem;
}