:root {
    --green: #28a558;
    --gray100: #f5f5f5;
    --gray300: #e0e0e0;
    --gray500: #9e9e9e;
    --gray600: #757575;
    --gray800: #424242;
    --gray900: #212121;
    --purple: #5828a5;
    --white: #ffffff;
    --lightgray: #b9b9b9;
    --shadowgray: #7F7F7F;
}

* {
    margin: 0;
    padding: 0;
    direction: rtl;
    color: var(--gray900);
    font-size: 16px;
    line-height: 1.5em;
    box-sizing: border-box;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    font-family: Iransans;
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    -webkit-touch-callout: none;
}

*::-webkit-scrollbar {
    display: none !important;
}

html {
    scroll-behavior: smooth;
    height: 100%;
    width: 100%;
    background-color: var(--gray100);
}

body {
    height: 100%;
    width: 100%;
}

a:link, a:visited {
    text-decoration: none
}

button, .button {
    display: flex;
    padding: 10px 15px;
    justify-content: center;
    border-radius: .25em;
    cursor: pointer;
    color: var(--white);
    border: none;
    background-color: var(--green);
    font-family: Iransans400;
    outline: none;
    margin: 0 auto;
}

input[type=number] {
    -webkit-appearance: textfield;
}

input::-webkit-outer-spin-button, input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

textarea, input, select {
    border: none;
    outline: none;
    -moz-appearance: textfield;
}

label {
    color: var(--gray600);
    font-family: IRANSans;
}

.topbar {
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: var(--white);
    border-bottom-left-radius: .5rem;
    border-bottom-right-radius: .5rem;
}

.topbar a {
    text-align: center;
}

.menuimg {
    display: none;
    height: 20px;
    cursor: pointer;
}

.home {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3px;
    font-family: Iransans500;
    text-align: right;
    font-size: 18px !important;
}

.home img {
    width: 1.5em;
}

.install {
    color: var(--white);
    border-radius: 5px;
    padding: 5px 8px;
    cursor: pointer;
    border: none;
    background-color: var(--green);
    font-family: Iransans400;
}

.subtitle {
    grid-column: span 4;
    font-family: Iransans500;
    font-size: 1.5rem;
    margin: 2rem 5%;
    display: flex;
    flex-direction: row;
}

.subtitle span {
    flex: 1;
    font-family: Iransans500;
    font-size: 1.5rem;
}

.subtitle a {
    color: var(--purple);
}

.faqs {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 5%;
}

.faq {
    background-color: var(--white);
    border-radius: .5rem;
    cursor: pointer;
    overflow: auto;
}

.faqquestion {
    display: flex;
    flex-direction: row;
    gap: 5px;
    align-items: center;
    padding: 10px;
}

.faqquestion p {
    text-align: right;
}

.faqquestion span {
    flex: 1;
    height: 1px;
    border-bottom: 2px dotted var(--purple);
}

.faqquestion img {
    width: 20px;
}

.faqanswer {
    display: none;
    background-color: var(--white);
    padding: 10px;
}

.footer {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    background-color: var(--white);
    border-top-left-radius: .5rem;
    border-top-right-radius: .5rem;
}

.footer p {
    text-align: center;

}

.namads {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.namads a {
    flex: 1;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.namads a img {
    max-width: 100%;
    cursor: pointer;
}

.contentbox {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 1rem;
    padding: 10px;
    background-color: var(--white);
    border-radius: .5rem;
}

.contactbox {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.contactimgs {
    display: flex;
    flex-direction: row;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.contactimgs a img {
    width: 3rem;
}

.contentbox p {
    text-align: justify;
    text-justify: inter-word;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.contentbox p strong {
    font-family: Iransans500;
}

.body404 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

.text404 {
    text-align: center;
    margin: 15px 0;
    font-size: 1.3rem;
}

.img404 {
    width: 50%;
    margin: 0 25%;
}

.btns404 {
    margin-top: 5px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.btns404 a {
    padding: 10px;
    border-radius: 10px;
    color: var(--white);
    text-align: center;
    text-decoration: none;
    font-family: Iransans500;
}

.inputdiv {
    display: flex;
    position: relative;
    border-radius: .5rem;
    padding: 0 .75rem;
    border: 1px solid var(--gray600);
    height: 56px;
}

.inputdiv input {
    flex: 1;
    height: 100%;
    text-align: right;
    padding: 0;
    margin: 0;
    border-radius: unset;
    background: unset;
    z-index: 2;
    position: relative;
}

.inputdiv label {
    z-index: 2;
}

.inputlabel {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: .6rem;
    background-color: var(--white);
    transition: all .1s ease-in;
}

.inplabelfocusin {
    position: absolute;
    top: 0;
    transform: translateY(-50%);
    right: .6rem;
    background-color: var(--white);
    font-size: 12px;
    padding: 0 5px;
    transition: all .1s ease-in;
    color: var(--green);
}

h1 {
    width: 100%;
    text-align: center;
    font-family: Iransans500;
    font-size: 1.5rem;
    color: var(--purple);
}

.installbtns {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.installbtns a {
    margin: 0;
}

.turnminus90 {
    animation-name: turnminus90;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
}

.hidden {
    opacity: 0;
}

@keyframes turnminus90 {
    to {
        transform: rotate(-90deg);
    }
}

.turn0 {
    animation-name: turn0;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
}

@keyframes turn0 {
    from {
        transform: rotate(-90deg);
    }
    to {
        transform: rotate(0deg);
    }
}

.openfaq {
    animation-name: openfaq;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
    display: block;
}

@keyframes openfaq {
    from {
        max-height: 0;
    }
    to {
        max-height: 300px
    }
}

.closefaq {
    animation-name: closefaq;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
}

@keyframes closefaq {
    from {
        max-height: 300px;
    }
    to {
        max-height: 0
    }
}

@media (max-width: 480px) {
    .topbar {
        position: relative;
        padding: 10px;
        gap: 5px;
    }

    .topbar a {
        color: var(--white);
    }

    .home img {
        display: none;
    }

    .menuimg {
        display: block;
    }

    #leftmenu {
        flex-direction: column;
        gap: 15px;
        position: absolute;
        top: 100%;
        background-color: var(--purple);
        width: 50%;
        border-radius: .5rem 0 0 .5rem;
        padding: 10px;
        display: none;
        right: 0;
    }

    .footer {
        margin-top: 1rem;
    }

    .namads {
        gap: 10px;
        width: 50%;
    }

    .installbtns {
        flex-direction: column;
    }
}

@media (min-width: 480px) {
    .topbar {
        padding: 20px 5%;
        gap: 25px;
    }

    #leftmenu {
        display: flex;
        flex-direction: row;
        gap: 25px;
        align-items: center;
    }

    .footer {
        margin-top: 2rem;
    }

    .namads {
        gap: 25px;
        width: 20%;
    }

    .body404 {
        padding: 0 30%;
    }

    #unitcountinpdiv {
        width: 50%;
    }

    .installbtns {
        flex-direction: row;
    }
}

@font-face {
    font-family: Iransansbold;
    font-style: normal;
    font-weight: bold;
    src: url('font/iransans-bold.eot');
    src: url('font/iransans-bold.eot?#iefix') format('embedded-opentype'),
    url('font/iransans-bold.woff2') format('woff2'),
    url('font/iransans-bold.woff') format('woff'),
    url('font/iransans-bold.ttf') format('truetype');
}

@font-face {
    font-family: Iransans500;
    font-style: normal;
    font-weight: 500;
    src: url('font/iransans-medium.eot');
    src: url('font/iransans-medium.eot?#iefix') format('embedded-opentype'),
    url('font/iransans-medium.woff2') format('woff2'),
    url('font/iransans-medium.woff') format('woff'),
    url('font/iransans-medium.ttf') format('truetype');
}

@font-face {
    font-family: Iransans400;
    font-style: normal;
    font-weight: 400;
    src: url('font/iransans-medium.eot');
    src: url('font/iransans-medium.eot?#iefix') format('embedded-opentype'),
    url('font/iransans-medium.woff2') format('woff2'),
    url('font/iransans-medium.woff') format('woff'),
    url('font/iransans-medium.ttf') format('truetype');
}

@font-face {
    font-family: 'Iransans';
    font-style: normal;
    font-weight: normal;
    src: url('font/iransans.eot');
    src: url('font/iransans.eot?#iefix') format('embedded-opentype'),
    url('font/iransans.woff2') format('woff2'),
    url('font/iransans.woff') format('woff'),
    url('font/iransans.ttf') format('truetype');
}