/* fonts */
@font-face {
    font-family: iransans;
    src: url(../fonts/IRANSansX-Thin.woff2);
    font-weight: 100;
}

@font-face {
    font-family: iransans;
    src: url(../fonts/IRANSansX-Light.woff2);
    font-weight: 200;
}

@font-face {
    font-family: iransans;
    src: url(../fonts/IRANSansX-Regular.woff2);
    font-weight: 300;
}

@font-face {
    font-family: iransans;
    src: url(../fonts/IRANSansX-Medium.woff2);
    font-weight: 400;
}

@font-face {
    font-family: iransans;
    src: url(../fonts/IRANSansX-Bold.woff2);
    font-weight: 500;
}

@font-face {
    font-family: iransans;
    src: url(../fonts/IRANSansX-ExtraBold.woff2);
    font-weight: 600;
}

/* general styles */
* {
    font-family: iransans;
}

body,
html {
    padding: 0;
    margin: 0;
    overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    margin: 0;
    color: #363131;
}

h1 {
    font-size: 34px;
}

h2 {
    font-size: 30px;
}

h3 {
    font-size: 24px;
}

h4 {
    font-size: 20px;
}

h5 {
    font-size: 18px;
}

h6 {
    font-size: 16px;
}

p {
    margin: 0;
}

a {
    text-decoration: none;
}

ul,
ol {
    padding: 0;
    margin: 0;
    list-style-type: none;
}

.container {
    width: 450px;
    margin: auto;
}

.theme-color {
    color: #DE474D;
}

.white-color {
    color: #ffffff;
}

/* loading */
.loading-state {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 9999999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: .5s;
}

.loading {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 10px solid #ddd;
    border-top-color: #DE474D;
    animation: loading 1s linear infinite;
}

@keyframes loading {
    to {
        transform: rotate(360deg);
    }
}

/* motion */
.motion-main {
    position: relative;
    height: 400px;
    margin-top: 3.5rem;
    overflow: hidden;
}

.motion-container {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    transition: .3s;
}

.layer-1,
.layer-2,
.layer-3 {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
}

.layer-1 {
    z-index: 1006;
    animation: 1s layer1 forwards 1s;
}

.layer-2 {
    z-index: 1005;
    animation: 1s layer2 forwards 2s;
}

.layer-3 {
    z-index: 1004;
}

@keyframes layer1 {
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes layer2 {
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

.layer-1 img,
.layer-2 img,
.layer-3 img,
.layer-4 img {
    width: 100%;
}

.layer-4 {
    position: relative;
    background-color: #102c4c;
}

.layer-4 img {
    position: absolute;
    top: -30px;
    left: 0;
    z-index: 1000;
}

.layer-4 img:nth-child(1) {
    z-index: 1003;
}

.layer-4 img:nth-child(2) {
    z-index: 1002;
}

.layer-4 img:nth-child(2) {
    transform: translateY(1200px);
    animation: 1s layer4 forwards 3s;
}

@keyframes layer4 {
    100% {
        transform: translateY(0);
    }
}

.layer-5 img:nth-child(1) {
    width: 125px;
    position: absolute;
    top: 30px;
    left: 10px;
    z-index: 1007;
    animation: 2s layer6 forwards 4s;
    transform: translate(-1000px, -1000px);
}

.layer-5 img:nth-child(2) {
    width: 225px;
    position: absolute;
    top: 45px;
    right: 0px;
    z-index: 1008;
    animation: 2s layer5 forwards 4s;
    transform: translateX(1000px);
}

@keyframes layer5 {
    100% {
        transform: translateX(0);
    }
}

@keyframes layer6 {
    100% {
        transform: translate(0, 0);
    }
}

.layer-6 img {
    position: absolute;
    width: 98px;
    top: 60%;
    left: 50%;
    transform: translate(-1000px, -50%);
    animation: 2s layer7 forwards 5s;
    z-index: 1010;
}

@keyframes layer7 {
    100% {
        transform: translate(-50%, -50%);
    }
}

/* header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: white;
    display: flex;
    justify-content: space-between;
    z-index: 999;
}

header a {
    display: flex;
    align-items: center;
}

.header-logo,
.menu-header img {
    width: 63px;
}

.header-logo-container img {
    margin-top: .5rem;
}

.dropdown-submenu-container {
    max-height: 24px;
    transition: max-height 1s cubic-bezier(0, 1, 0, 1);
    overflow: hidden;
}

.dropdown-submenu {
    display: block;
}

.dropdown-submenu-container.open {
    max-height: 1500px;
    transition: max-height 1s ease-in-out;
}

.dropdown {
    margin: 1.5rem 0 .5rem 0 !important;
}

.dropdown li {
    margin: .5rem 0 !important;
}

.dropdown-content {
    display: flex;
    justify-content: space-between;
}

.menu ul li {
    margin: 1.2rem 0;
}

.menu ul li a {
    color: #808184;
    font-size: 14px;
}

.profile-button-container {
    padding: .5rem .5rem 0 .5rem;
}

.menu-container {
    position: relative;
}

.menu-container nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    background-color: white;
    padding: 0 1rem;
    border-radius: 20px 0 0 20px;
    box-shadow: 0px 0px 5px 1px #c0c0c0;
    width: 0;
    opacity: 0;
    visibility: hidden;
    transition: 1s;
    overflow: auto;
}

.header-nav {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    visibility: hidden;
    transition: .3s;
}

.menu-item-text {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.contact-number {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    color: #3F3F3F;
    padding: 1.5rem 0;
    border-top: 1px solid #CBCBCB;
}

.contact-number a {
    color: #3F3F3F;
}

.menu-header {
    position: relative;
    text-align: center;
    padding: 1rem 0;
    border-bottom: 1px solid #CBCBCB;
}

.lang-switch {
    position: absolute;
    left: 10px;
    top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: black;
    background-color: #F4F1F1;
    border-radius: .5rem;
    width: 44px;
    height: 44px;
    font-weight: 500;
}

.close-menu {
    position: absolute;
    right: 10px;
    top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: black;
    background-color: #F4F1F1;
    border-radius: .5rem;
    width: 44px;
    height: 44px;
    font-weight: 500;
}

.close-menu svg {
    width: 25px;
    height: 25px;
}

/* main */
main {
    width: 100%;
    margin-top: 4rem;
}

.floating-logo {
    position: absolute;
    width: 80px;
    transition: 1s;
    z-index: 6;
    opacity: 0;
    visibility: hidden;
    transition: .5s;
}

.stable-logo {
    opacity: 0;
    visibility: 0;
}

.top-content-container {
    position: relative;
}

.top-bg-mobile {
    position: absolute;
    top: 0;
    width: 100%;
}

.top-content-inner-container {
    position: relative;
    padding: 1rem 1rem 0 1rem;
    z-index: 2;
}

.top-content-container h2 {
    font-size: 19px;
}

.top-description {
    line-height: 32px;
    text-align: justify;
    margin-top: 1rem;
    color: #666666;
}

.top-content-header {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.top-content-header h2 {
    margin-bottom: 1rem;
}

.top-content-header img {
    width: 80px;
}

.modem-buttons-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 3rem 0 5rem 0;
}

.modem-buttons-container a {
    font-size: 14px;
}

.modem-request-button {
    background-color: #DE474D;
    border: 1px solid white;
    color: white;
    border-radius: .8rem;
    padding: .6rem 1.5rem;
    transition: .3s;
}

.modem-request-button:hover {
    background-color: white;
    border: 1px solid #DE474D;
    color: #DE474D;
}

.modem-receive-button {
    background-color: white;
    border: 1px solid #DE474D;
    border-radius: .8rem;
    padding: .6rem 1.5rem;
    transition: .3s;
}

.modem-receive-button:hover {
    background-color: #DE474D;
    border: 1px solid white;
    color: white;
}

.three-divs-container {
    position: relative;
    padding: 0 2rem;
    z-index: 2;
}

.three-divs {
    background-color: white;
    box-shadow: 0px 7px 25px 5px #efefef;
    border-radius: 2rem;
    margin-bottom: 4rem;
    text-align: center;
}

.three-divs-header {
    margin-bottom: 3rem;
}

.three-divs img {
    width: 300px;
}

.three-divs div {
    margin-top: -110px;
}

.three-divs h5 {
    margin-bottom: 1.5rem;
}

.three-divs p {
    font-size: 13px;
    text-align: justify;
    line-height: 26px;
    padding: 0 2.5rem 2rem 2.5rem;
}

.first-section img,
.second-section img,
.third-section img {
    width: 100%;
}

.questions-container {
    position: relative;
    margin-bottom: 3rem;
}

.modem-request {
    position: absolute;
    top: 10rem;
    padding: 0 4.5rem;
}

.modem-request h6 {
    text-align: center;
    margin-bottom: 1rem;
}

.modem-request p {
    color: white;
    font-weight: 200;
    text-align: justify;
    font-size: 13px;
    line-height: 25px;
}

.questions-mobile {
    width: 100%;
}

.iotourist-div {
    position: relative;
    z-index: 2;
}

.iotourist-bg-mobile {
    position: absolute;
    top: 50px;
    width: calc(100% - 2rem);
}

.iotourist-container {
    position: relative;
    padding: 0 1rem 6rem 1rem;
}

.iotourist-inner-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.iotourist-container .iotourist-modem-mini {
    width: 67px;
}

.iotourist-container p {
    text-align: justify;
    line-height: 32px;
}

.iotourist-polygons {
    position: absolute;
    left: -10px;
    bottom: -155px;
}

.iotourist-polygons img {
    width: 200px;
}

/* footer */
footer {
    position: relative;
    background-image: linear-gradient(to top, #DE474D 40%, white 98%);
    margin-top: 5rem;
}

.back-to-top {
    position: absolute;
    left: 0px;
    top: -20px;
    z-index: 3;
    width: 100px;
}

.back-to-top img {
    width: 100%;
}

.back-to-top span,
.back-to-top a {
    display: block;
}

.back-to-top span {
    position: absolute;
    left: 27px;
    top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
    background-color: #DE474D;
    color: white;
    width: 45px;
    height: 45px;
}

.footer-right {
    position: absolute;
    right: 20px;
    top: -25px;
}

.footer-logo {
    display: block;
    width: 45px;
    height: 45px;
}

.footer-logo img:nth-child(1),
.footer-logo img:nth-child(2) {
    position: absolute;
}

.footer-logo img:nth-child(1) {
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 80px;
    z-index: 3;
}

.footer-logo img:nth-child(2) {
    left: 50%;
    top: 30px;
    transform: translateX(-50%);
    width: 35px;
    z-index: 4;
}

.footer-linkgroup {
    display: flex;
}

.footer-dashed-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.footer-bg-mobile {
    position: absolute;
    top: 100px;
    width: 100%;
    left: 0;
    opacity: .1;
}

.footer-content {
    position: relative;
    z-index: 2;
}

.footer-red-line-container {
    text-align: center;
}

.footer-red-line {
    width: 60%;
}

.footer-red-rectangle {
    position: absolute;
    top: 7.5px;
    left: 50%;
    transform: translateX(-50%);
    width: 15px;
}

.footer-lists {
    padding: 0 1rem;
    margin: 3rem 0;
}

.enamads {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.enamads img {
    width: 99px;
}

.important-parts {
    margin-top: .5rem;
}

.important-parts ul {
    width: 80px;
    margin: auto;
}

.important-parts ul li {
    margin-bottom: 1rem;
}

.important-parts ul li a {
    color: black;
}

.footer-email-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-email-container:nth-child(1) {
    margin: 1.5rem 0;
}

.footer-email-container a {
    color: black;
}

.footer-numbers-container a {
    display: block;
    color: black;
}

.footer-address {
    line-height: 35px;
    text-align: justify;
}

.footer-lists-header {
    text-align: center;
}

.footer-underline {
    width: 45%;
}

.footer-socialmedia {
    display: flex;
    justify-content: center;
    gap: .6rem;
    text-align: center;
    margin-top: .5rem;
}

.copyright {
    position: relative;
    text-align: center;
    padding: 0 0 .6rem 0;
}

.copyright-line {
    width: 60%;
}

.copyright-rectangle {
    position: absolute;
    top: .5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 15px;
}

.copyright p {
    color: white;
    font-weight: 200;
}

@media only screen and (min-width: 800px) {
    .footer-bg-mobile {
        width: 50%;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media only screen and (max-width: 455px) {
    .container {
        width: 100%;
    }
}

@media only screen and (max-width: 340px) {
    .iotourist-polygons {
        position: absolute;
        left: -10px;
        bottom: -180px;
    }

    .footer-socialmedia a svg {
        width: 30px;
    }

    .enamads {
        gap: 1rem;
    }

    .enamads img {
        width: 70px;
    }
}