@font-face {
    font-family: 'webIcons';
    src: url(/fonts/webIcons-Regular-v2.ttf?v=2) format('woff2');
    font-style: normal;
}

.myIcons {
    font-family: 'webIcons';
}

@font-face {
    font-family: 'RaviFaNum';
    src: url('/fonts/RaviFaNum-VF.woff2') format('woff2-variations');
    ;
    font-weight: 100 900;
}

@font-face {
    font-family: 'Ravi';
    src: url('/fonts/Ravi-VF.otf');
}

:root {
    --color1: #08554e;
    --color1Light: #5b9c96;
    --color2: #DBB00A;
    --color3: #9C7449;
    --color3Light: #f6f2ea;
    --pageBackground: #fdfcfa;
    --swiper-theme-color: var(--color2) !important;
    --topImageHeight: clamp(150px, 25vw, 300px);
    --menuShadow: 0 0 0.52083vw 0 rgba(0, 0, 0, .2);
    --darkGray: #444;
    --gray: #777;
    --lightGray: #ddd;

    &:has(header.stuck) {
        --headerHeight: 50px;
    }
}

@media (min-width: 1000px) {
    .notInDesktop {
        display: none !important;
    }
}

@media (max-width: 999px) {
    .notInMobile {
        display: none !important;
    }
}

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;

    box-sizing: border-box;
}

body {
    min-height: 100svh;
    margin: 0;
    background-color: var(--pageBackground);
    display: flex;
    flex-direction: column;
    width: 100%;
    --bodyFont: RaviFaNum;
    font-family: RaviFaNum;
    font-weight: 300;
    font-size: 14px;
}

body._fa,
body._ar {
    direction: rtl;
    --currency: ' Ã˜ÂªÃ™Ë†Ã™â€¦Ã˜Â§Ã™â€ ';
    line-height: 200%;
}

body._en {
    direction: ltr;
    --currency: ' \20AC';
    --bodyFont: Vazirmatn_en;
    font-family: Vazirmatn_en;
}

input,
select,
textarea,
button {
    font-family: var(--bodyFont);
    border: 1px solid gainsboro;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0);
    max-width: 100%;
    padding: 8px 15px;
    outline: none;
    accent-color: var(--color1);
    /* margin: 10px; */
}

button,
input[type=submit],
input[type=reset],
.button {
    background-color: var(--color1);
    color: white;
    white-space: nowrap;
    cursor: pointer;
    padding: 10px;
    margin-block: 10px;
    border-radius: 5px;
}

.button {
    display: inline-block;
}

button:hover,
input[type=submit]:hover,
input[type=reset]:hover,
.button:hover {
    background-color: var(--color2);
    color: white;

}

input[type=checkbox] {
    max-height: 25px;
}

main {
    flex-grow: 2;
}

p {
    text-align: justify;
    margin: 0;
}

a {
    cursor: pointer;
    text-decoration: none;
    color: black;
}

a.inline {
    text-decoration: underline;
    text-underline-offset: 0.5em;
    color: var(--color1);
}

a:hover {
    color: var(--color2);
}


input:user-invalid {
    border: 1px solid red;
}

select:user-invalid {
    border: 1px solid red;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
}

h2 {
    width: 100%;
    border-bottom: 1px solid gainsboro;
    margin-bottom: 20px;
    font-size: 18px;
    color: var(--color1);

}

small {
    color: gray !important;
    font-size: 80%;
}

.english {
    font-family: Arial, Helvetica, sans-serif;
}

.enNum {
    font-family: Arial;
}

._fa .onlyEn {
    display: none !important;
}

._en .onlyFa {
    display: none !important;
}

.col1Start {
    grid-column-start: 1;
}

.colToEnd {
    grid-column: auto / -1;
}

.colTotal {
    grid-column: 1 / -1;
}

@media print {
    .noPrint {
        display: none;
    }
}

.flexBreak {
    flex-basis: 100%;
    height: 0;
}

.w1200px {
    width: min(100%, 1200px);
    margin-inline: auto;
    padding-inline: 3vw;
}

.w100 {
    width: 100%;
    padding-inline: 3vw;
}


.cols-1-2 {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: start;
    margin-right: auto;
    margin-left: auto;
}

.cols-1-2> :first-child {
    flex-basis: 300px;
    flex-grow: 1;
}

.cols-1-2> :last-child {
    flex-basis: 600px;
    flex-grow: 1;
}


.floatLeft {
    float: left;
    margin-right: 45px;
    margin-bottom: 15;
    max-width: 100%;
}

.floatRight {
    float: right;
    margin-left: 45px;
    margin-bottom: 15;
    max-width: 100%;
}

.floatEnd {
    float: inline-end;
    margin-inline-start: 45px;
    margin-bottom: 15;
    max-width: 100%;
}

.floatStart {
    float: inline-start;
    margin-inline-end: 45px;
    margin-bottom: 15;
    max-width: 100%;
}

.rtlSpan {
    direction: rtl;
    unicode-bidi: bidi-override;
}

.ltrSpan {
    direction: ltr;
    unicode-bidi: bidi-override;
}

.topImage {
    width: 100%;
    object-fit: cover;
    height: var(--topImageHeight);
    margin-bottom: calc(var(--topImageHeight) * -0.35);
    /* margin-bottom: -105px; */
}

.w50 {
    width: 50%;
}

.w25 {
    width: 25%;
}

.w300px {
    width: 300px;
    max-width: 100%;
}

.imageBox,
.picturesRow div {
    text-align: center;
    font-size: 90%;
    line-height: 1.5em;
}

.imageBox img {
    display: block;
    width: 100%;
    margin-bottom: 15px;
}

.picturesRow {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-around;
    margin: 40px 0;
}

.picturesRow img {
    display: block;
    margin: 0 auto 15px;
    height: 300px;
}

.swiper-slide {
    cursor: grab
}

.floatLeft400px {
    float: left;
    margin-right: 45px;
    margin-bottom: 15;
    width: 400px;
}

.floatEnd400px {
    float: inline-end;
    margin-inline-start: 45px;
    margin-bottom: 15;
    width: 400px;
}

@media only screen and (max-width: 1000px) {

    .floatLeft400px,
    .floatEnd400px {
        float: none;
        display: block;
        margin-right: auto;
        margin-left: auto;
        max-width: 100%;
    }
}

.formGroup {
    width: 100%;
    background: #fff;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(450px, 100%), 1fr));
    ;
    border-radius: 5px;
    margin: 0 0 20px 0;
    box-shadow: 0 10px 30px -20px #000;
    gap: 20px;

    h2 {
        grid-column: 1 / -1;
    }

    input:not([type=checkbox], [type=radio], [type=submit]),
    textarea {
        width: 100%;
    }

    >div {
        label {
            display: block;
            font-size: 80%;
            margin-bottom: -0.3em;
        }
    }

    .optionGroup {
        display: flex;
        gap: 10px;
        align-items: center;
        flex-wrap: wrap;

        >div {
            display: flex;
            white-space: nowrap;
        }
    }
}

.buttons {
    width: 100%;
    display: flex;
    gap: 5px;
    justify-content: end;
}

.onImageTitle {
    color: white;
    text-shadow: 1px 1px 10px black, 3px 3px 3px black;
    margin-bottom: calc(var(--topImageHeight) *.35);
    font-size: 25px;
    font-weight: 900;
    margin-top: 0;
    line-height: 0;
    white-space: nowrap;
}

.‌centerImage {
    display: block;
    max-width: 100%;
    margin-inline: auto;
}

.message {
    color: red;
    padding: 15px;
    border-radius: 55px;

}

.message.OK {
    background: green;
}

dialog {
    border: 1px solid var(--color1);
    border-radius: 5px;
    box-shadow: 0 5px 25px -18px #000;
    max-width: min(1200px, 90svw);

    .closeBtn {
        cursor: pointer;
        font-family: webIcons;
        position: absolute;
        top: 5px;
        left: 10px;
        color: gray;

        &:hover {
            color: var(--color2);
        }

        &::before {
            content: 'close';
        }
    }
}

.tabLabels {
    display: flex;
    gap: 2px;

    >* {
        background: var(--color1);
        color: white;
        padding: 5px 10px;
        border-radius: 5px 2px 0 0;
        cursor: pointer;

        &:hover {
            background-color: var(--color2);
        }
    }
}

.tabRadio {
    display: none;
}

.tabRadio:not(:checked)+.tabPage {
    display: none;
}

.tabWrapper:has(.tabRadio:nth-of-type(1):checked) .tabLabels label:nth-of-type(1),
.tabWrapper:has(.tabRadio:nth-of-type(2):checked) .tabLabels label:nth-of-type(2),
.tabWrapper:has(.tabRadio:nth-of-type(3):checked) .tabLabels label:nth-of-type(3) {
    background-color: var(--color2);

}

.sectionTitle {
    text-align: start;
    font-weight: bold;
    font-size: 20px;
    margin-block: 40px;
    color: var(--color1);
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;

    &::after {
        content: '';
        flex: 1;
        height: 2px;
        background-color: var(--color1);
    }

    &:hover {
        color: var(--color2);
    }
}

.thumbsBarSwiper .swiper-wrapper {
    height: unset !important;
    padding: 10px;
}

.grayText {
    color: gray;
}

.pageMenu {
    position: sticky;
    top: var(--headerHeight);
    background-color: var(--color1Light);
    display: flex;
    gap: 25px;
    padding: 10px;
    margin-block: 10px;
    width: 100%;
    >* {
        color: white;
        border-bottom: 1px solid white;
        transition: 0.5s color;

        &:hover {
            border-color: var(--color2);
        }
    }



}

:target {
    scroll-margin-top: 180px;
}

.responsiveGrid {
    --colWidth: 250px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(var(--colWidth), 100%), 1fr));
    ;
    gap: 10px;
}

.serverMessage {
    background-color: var(--lightGray);
    text-align: center;

    &.success {
        color: green;
    }
}

.formComment {
    color: gray;
    font-size: 80%;
}

.password-eye-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    direction: ltr;

    input {
        width: 100%;
        padding-right: 12px !important;
        box-sizing: border-box;
    }

    .password-eye-btn {
        &::before{
            content: 'eye';
            font-family: webIcons;
            font-size: 1.1rem;
            color: gray;
        }
        display: block;
        place-content: center;
        position: absolute;
        top: 50%;
        right: 8px;
        transform: translateY(-50%);
        background: none;
        border: none;
        cursor: pointer;
        padding:0;
        margin:0;

        &:hover, &:focus {
            color: var(--color2);
        }

    }

    .eye-icon {
        display: block;
    }
}