body.withimg{
    background-image: url("/static/img/background.webp");
    background-size: cover;
    font-size: 23px;
}
body.pwpattern{background-image: url("/static/img/pwork-pattern.png");}

*{font-family: "Shabnam";}

#header{
    padding-top: 10px;
    overflow-x: hidden;
}
#header > h4{
    top: 11px;
    left: 20px;
}
#menu-list-icon>*{
    width: 100%;
    margin: 2px 0;
    height: 8px;
    border-radius: 5px;
    background-color: #222;
}

#frame{
    height: 32vw;
}
#frame>div{
    width: 99%;
    height: 99%;
    padding-top: 3%;
    overflow: hidden;
}
#frame>div>img{
    width: 100%;
    height: 100%;
    transition: opacity .4s ease-in-out;
    border-radius: 7%;
}
#frame>div>img._1{opacity: 0;}
#frame>div>img._2{opacity: 1;}
#frame>div>img._3{position:absolute;height:91%;}

#frame ._frame_{
    position: absolute;
    width: 100%;
    height: 100%;
}

/*///////////////// Mega menu /////////////////*/
#mega-menu>*{
    font-size: 18px;
    width: 8rem;
    height: 8rem;
    margin: 0.8rem;
    display: block;
    border-radius: 5px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
}
#mega-menu *{transition: all .2s linear;}
#mega-menu>*:hover>*{transform: scale(1.1, 1.1);}
#mega-menu>*:hover{border-radius: 30px 10px;}
#mega-menu>*>:nth-child(1){
    width: 100%;
    height: 6rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
#mega-menu>*>:nth-child(2){
    width: 100%;
    height: 2rem;
}
#mega-menu>*:nth-child(1){background-color: #C35D4B;}
#mega-menu>*:nth-child(2){background-color: #6B4DA0;}
#mega-menu>*:nth-child(3){background-color: #1F7365;}
#mega-menu>*:nth-child(4){background-color: #752026;}
/* #mega-menu>*:nth-child(5){background-color: #122656;transform: rotate(45deg) translate(6px, 13px);width:6rem;height:6rem;}
#mega-menu>*:nth-child(5)>*{transform: rotate(-45deg);display: block;} */

#mega-menu>*:nth-child(1)>:nth-child(1){background-image: url("/static/img/mega1.webp");}
#mega-menu>*:nth-child(2)>:nth-child(1){background-image: url("/static/img/mega2.webp");}
#mega-menu>*:nth-child(3)>:nth-child(1){background-image: url("/static/img/mega3.webp");}
#mega-menu>*:nth-child(4)>:nth-child(1){background-image: url("/static/img/mega4.webp");}

/*/////////////////////////////////////////////*/

#header > ._logo_{
    position: absolute;
    top: 124px;
    right: 23px;
    z-index: 2;
}

@media screen and (max-width: 1500px){
    #header > ._logo_{
        display: none;
    }
}

@media screen and (min-width: 1050px) {
    #menu-list-icon{display: none !important;}
    #menu{
        margin-right: 3%;
    }
    #menu > *{
        color: #111;
        font-size: 1.1rem;
        font-weight: bold;
        text-decoration: none;
        margin: 0 8px;
    }
}

@media screen and (max-width: 1050px) {
    #menu-list-icon{
        display: block;
        cursor: pointer;
        width: 40px;
        z-index: 3;
    }
    #menu{
        position: absolute;
        top: 60px;
        transition: .3s all ease-in-out;
        background-color: #cfeadb;
        height: calc(100vh - 60px);
        padding: 10px 30px;
        z-index: 2;
    }
    #menu:not(.menu-show){
        right: -200px;
    }
    #menu.menu-show{
        right: 0;
    }
    #menu > *{
        color: #111;
        font-size: 1.1rem;
        font-weight: bold;
        text-decoration: none;
        margin: 6px 0;
        display: block;
    }
}

@media screen and (max-width: 900px) {
    :root{
        font-size: 13px;
    }
    #header > ._logo_{
        display: none;
    }
}

/********* Footer *********/

#footer {
    position: relative;
    background-image: url('/static/img/footer2.jpg');
    width: 100%;
    height: 300px;
    margin: 0;
    margin-top: 30px;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    font-size: 18px;
}
#footer > img{
    width: 100%;
}
#footer > [a=zp-logo]{
    position: absolute;
    top: 39px;
    left: 180px;
}
#footer > [a=zp-logo] img{
    position: absolute;
    top: 40px;
    width: 80px;
}
#footer > [alt=zarinpal]{
    position: absolute;
    top: 100px;
    left: 100px;
    border-radius: 5px;
}
#footer > [bottom] {
    position: absolute;
    bottom: 20px;
    width: 100%;
    right: 50%;
    text-align: center;
    transform: translateX(50%);
    color: #999;
    font-weight: bold;
    font-size: 0.9em;
}
#footer > [bottom] > a {
    color: #24a3ed;
}
#footer-contact-info{
    position: absolute;
    right: 30px;
    top: 25px;
    margin: 20px auto;
    width: 240px;
    display: grid;
    grid-template-columns: 30px 120px 130px;
    row-gap: 6px;
}

#footer-contact-info>span{
    color: white;
}
#footer-contact-info>*{
    margin: 7px 0;
}
@media screen and (max-width: 700px) {
    #footer-contact-info{
        grid-template-columns: 30px 90px 110px;
    }
    #footer > [a=zp-logo]{
        left: 90px;
    }
}