@font-face {
    font-family: yekan;
    src: url(../font/yekan.ttf) format('truetype'),
        url(../font/Yekan.woff) format('woff');
}

@media screen and (max-width: 576px) {
    body {
        direction: rtl;
        margin: 0;
        padding: 0;
        font-family: 'yekan';
        direction: rtl;
    }

    .firstvideo {
        width: 100%;
        margin: 15px 0;
    }

    .firstvideo>video {
        width: 100%;
    }

    .mymap {
        position: relative;
        width: 100%;
        /* height: 2vh; */
        margin-bottom: 15px;
    }

    .mymap iframe {
        height: 15vh;
    }

    .btnmap {
        position: absolute;
        width: 35%;
        top: 50%;
        left: 0;
        right: 32.5%;
        z-index: 2;
    }

    .transparentemap {
        width: 100%;
        height: 100%;
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        background-image: linear-gradient(#9d1c3112, #9d1c3170);
        z-index: 1;
    }

    .btnmap form button {
        background-color: black;
        color: white;
        font-size: .5em;
        font-weight: bold;
        width: 100%;
        border-radius: 50px;
        font-family: 'yekan';
    }

    .btnmap button:hover {
        cursor: pointer;
    }

    .bashgah {
        background-image: url(../image/discount_bg.png);
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
        text-align: center;
        color: #fff;
        padding: 5px 0 40px;
        position: relative;
    }

    .bashgah h1 {
        font-size: 1.1em;
    }

    .bashgah pre {
        padding: 0;
        margin: 0;
        font-size: .5em;
        font-weight: bold;
    }

    .wb {
        position: absolute;
        left: 0;
        right: 0;
        bottom: -5px;
        margin: 0 auto;
        width: 215px;

    }

    .bashgahw {
        width: 100%;
        height: 5px;
        background: white;
    }

    .bashgahb {
        width: 100%;
        height: 5px;
        background: #9d1c30;
    }

    .bashgahw h2 {
        padding: 0;
        margin: 0;
    }

    .bashgahb h2 {
        padding: 0;
        margin: 0;
    }

    .branch {
        /* display: flex; */
        /* position: relative; */
        width: 100%;
        margin: 20px auto;
    }

    .branch div:first-child {
        display: none;
    }

    .branch div:last-child {
        display: none;
    }

    .branch div {
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
        text-align: center;
        font-weight: bold;
        font-size: 1.1em;
        padding: 60px 0 60px;
        margin: 2px;
        /* position: relative; */
        cursor: pointer;
    }

    .branch div a {
        text-decoration: none;
        color: #fff;
    }

    .branch div:nth-child(2) {
        background-image: url(../image/tehranv3.jpg);
    }

    .branch div:nth-child(3) {
        background-image: url(../image/mashhadv3.jpg);
    }

    .branch div:nth-child(4) {
        background-image: url(../image/othersv3.jpg);
    }

    .products {
        text-align: center;
        margin-bottom: 50px;
    }

    .products h1 {
        color: #9d1c30;
        font-size: 2em;
    }

    .productspic {
        width: 95%;
        margin: 0 auto;
    }

    .productspic>div {
        margin: 2px;
        width: 100%;
        height: 30vh;
    }


    .parentdiv1 {
        position: relative;
        overflow: hidden;

    }

    .childdiv1 {
        position: absolute;
        right: 8%;
        bottom: 0;
        color: white;
    }

    .parentdiv1 img {
        position: absolute;
        top: -150%;
        left: 0;

    }

    .parentdiv2 {
        position: relative;
        overflow: hidden;
    }

    .childdiv2 {
        position: absolute;
        right: 8%;
        bottom: 0;
        color: white;
    }

    .parentdiv2 img {
        position: absolute;
        top: -40%;
        left: 0;

    }

    .parentdiv3 {
        position: relative;
        overflow: hidden;
    }

    .childdiv3 {
        position: absolute;
        right: 8%;
        bottom: 0;
        color: white;
    }

    .parentdiv3 img {
        position: absolute;
        top: 0%;
        left: 0;

    }

    .parentdiv4 {
        position: relative;
        overflow: hidden;
    }

    .childdiv4 {
        position: absolute;
        right: 8%;
        bottom: 0;
        color: white;
    }

    .parentdiv4 img {
        position: absolute;
        top: -50%;
        left: 0;

    }

    .parentdiv5 {
        position: relative;
        overflow: hidden;
    }

    .childdiv5 {
        position: absolute;
        right: 8%;
        bottom: 0;
        color: white;
    }

    .parentdiv5 img {
        position: absolute;
        top: 0%;
        left: 0;

    }

    .productspic div img {
        width: 100%;
    }

    footer {
        width: 90%;
        margin-bottom: 2%;
    }

    footer table {
        margin-right: 8%;
        width: 100%;
        font-size: .35em;
    }

    footer table tr td:nth-child(2n-1) {
        text-align: left;
        padding-left: 1%;
    }

    footer table tr:nth-child(2) td {
        text-align: right;
    }

    .footerimg {
        width: 35px;
        transform: scale(.5,.5);
    }

    .chat {
        display: none;
    }

}

@media screen and (min-width: 576px) and (max-width:992px) {
    body {
        direction: rtl;
        margin: 0;
        padding: 0;
        font-family: 'yekan';
        direction: rtl;
    }

    .firstvideo {
        width: 100%;
        margin: 15px 0;
    }

    .firstvideo>video {
        width: 100%;
    }

    .mymap {
        position: relative;
        width: 100%;
        /* height: 2vh; */
        margin-bottom: 15px;
    }

    .mymap iframe {
        height: 15vh;
    }

    .btnmap {
        position: absolute;
        width: 15%;
        top: 50%;
        left: 0;
        right: 42.5%;
        z-index: 2;
    }

    .transparentemap {
        width: 100%;
        height: 100%;
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        background-image: linear-gradient(#9d1c3112, #9d1c3170);
        z-index: 1;
    }

    .btnmap form button {
        background-color: black;
        color: white;
        font-size: .5em;
        font-weight: bold;
        width: 100%;
        border-radius: 50px;
        font-family: 'yekan';
    }

    .btnmap button:hover {
        cursor: pointer;
    }

    .bashgah {
        background-image: url(../image/discount_bg.png);
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
        text-align: center;
        color: #fff;
        padding: 5px 0 40px;
        position: relative;
    }

    .bashgah h1 {
        font-size: 1.1em;
    }

    .bashgah pre {
        padding: 0;
        margin: 0;
        font-size: .5em;
        font-weight: bold;
    }

    .wb {
        position: absolute;
        left: 0;
        right: 0;
        bottom: -5px;
        margin: 0 auto;
        width: 215px;

    }

    .bashgahw {
        width: 100%;
        height: 5px;
        background: white;
    }

    .bashgahb {
        width: 100%;
        height: 5px;
        background: #9d1c30;
    }

    .bashgahw h2 {
        padding: 0;
        margin: 0;
    }

    .bashgahb h2 {
        padding: 0;
        margin: 0;
    }

    .branch {
        /* display: flex; */
        /* position: relative; */
        width: 100%;
        margin: 20px auto;
    }

    .branch div:first-child {
        display: none;
    }

    .branch div:last-child {
        display: none;
    }

    .branch div {
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
        text-align: center;
        font-weight: bold;
        font-size: 1.1em;
        padding: 60px 0 60px;
        margin: 2px;
        /* position: relative; */
        cursor: pointer;
    }

    .branch div a {
        text-decoration: none;
        color: #fff;
    }

    .branch div:nth-child(2) {
        background-image: url(../image/tehranv3.jpg);
    }

    .branch div:nth-child(3) {
        background-image: url(../image/mashhadv3.jpg);
    }

    .branch div:nth-child(4) {
        background-image: url(../image/othersv3.jpg);
    }

    .products {
        text-align: center;
        margin-bottom: 50px;
    }

    .products h1 {
        color: #9d1c30;
        font-size: 2em;
    }

    .productspic {
        width: 95%;
        margin: 0 auto;
    }

    .productspic>div {
        margin: 2px;
        width: 100%;
        height: 45vh;
    }


    .parentdiv1 {
        position: relative;
        overflow: hidden;

    }

    .childdiv1 {
        position: absolute;
        right: 8%;
        bottom: 0;
        color: white;
    }

    .parentdiv1 img {
        position: absolute;
        top: -250%;
        left: 0;

    }

    .parentdiv2 {
        position: relative;
        overflow: hidden;
    }

    .childdiv2 {
        position: absolute;
        right: 8%;
        bottom: 0;
        color: white;
    }

    .parentdiv2 img {
        position: absolute;
        top: -40%;
        left: 0;

    }

    .parentdiv3 {
        position: relative;
        overflow: hidden;
    }

    .childdiv3 {
        position: absolute;
        right: 8%;
        bottom: 0;
        color: white;
    }

    .parentdiv3 img {
        position: absolute;
        top: 0%;
        left: 0;

    }

    .parentdiv4 {
        position: relative;
        overflow: hidden;
    }

    .childdiv4 {
        position: absolute;
        right: 8%;
        bottom: 0;
        color: white;
    }

    .parentdiv4 img {
        position: absolute;
        top: -70%;
        left: 0;

    }

    .parentdiv5 {
        position: relative;
        overflow: hidden;
    }

    .childdiv5 {
        position: absolute;
        right: 8%;
        bottom: 0;
        color: white;
    }

    .parentdiv5 img {
        position: absolute;
        top: 0%;
        left: 0;

    }

    .productspic div img {
        width: 100%;
    }

    footer {
        width: 90%;
        margin-bottom: 2%;
    }

    footer table {
        margin-right: 8%;
        width: 100%;
        font-size: .8em;
    }

    footer table tr td:nth-child(2n-1) {
        text-align: left;
        padding-left: 1%;
    }

    footer table tr:nth-child(2) td {
        text-align: right;
    }

    .footerimg {
        width: 35px;
        transform: scale(.7 , .7);
    }

    .chat {
        display: none;
    }

}

@media screen and (min-width: 992px) {
    body {
        direction: rtl;
        margin: 0;
        padding: 0;
        font-family: 'yekan';
        direction: rtl;
    }

    .firstvideo {
        width: 100%;
        margin: 15px 0;
    }

    .firstvideo>video {
        width: 100%;
    }

    .mymap {
        position: relative;
        width: 100%;
        margin-bottom: 15px;
    }

    .btnmap {
        position: absolute;
        width: 35%;
        top: 50%;
        left: 0;
        right: 32.5%;
        z-index: 2;
    }

    .transparentemap {
        width: 100%;
        height: 100%;
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        background-image: linear-gradient(#9d1c3112, #9d1c3170);
        z-index: 1;
    }

    .btnmap form button {
        background-color: black;
        color: white;
        font-size: 2em;
        font-weight: bold;
        width: 100%;
        border-radius: 50px;
        font-family: 'yekan';
    }

    .btnmap button:hover {
        cursor: pointer;
    }

    .bashgah {
        background-image: url(../image/discount_bg.png);
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
        text-align: center;
        color: #fff;
        padding: 5px 0 40px;
        position: relative;
    }

    .bashgah h1 {
        font-size: 3.5em;
    }

    .bashgah pre {
        padding: 0;
        margin: 0;
        font-size: 2em;
        font-weight: bold;
    }

    .wb {
        position: absolute;
        left: 0;
        right: 0;
        bottom: -15px;
        margin: 0 auto;
        width: 860px;

    }

    .bashgahw {
        width: 100%;
        height: 15px;
        background: white;
    }

    .bashgahb {
        width: 100%;
        height: 15px;
        background: #9d1c30;
    }

    .bashgahw h2 {
        padding: 0;
        margin: 0;
    }

    .bashgahb h2 {
        padding: 0;
        margin: 0;
    }

    .branch {
        display: flex;
        position: relative;
        width: 100%;
        margin: 100px auto;
    }

    .branch div {
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
        text-align: center;
        font-weight: bold;
        font-size: 2em;
        padding: 120px 0 120px;
        margin: 2px;
        position: relative;
        cursor: pointer;
    }

    .branch div a {
        text-decoration: none;
        color: #fff;
    }

    .branch div:nth-child(2) {
        background-image: url(../image/tehranv3.jpg);
    }

    .branch div:nth-child(3) {
        background-image: url(../image/mashhadv3.jpg);
    }

    .branch div:nth-child(4) {
        background-image: url(../image/othersv3.jpg);
    }

    .products {
        text-align: center;
        margin-bottom: 50px;

    }

    .products h1 {
        color: #9d1c30;
        font-size: 3em;
    }

    .productspic {
        width: 95%;
        height: 80vh;
    }

    .productspic div {
        margin: 2px;
    }

    .productspic>div:first-child {
        float: left;
        width: 23.7%;
        height: 80.5vh;
        cursor: pointer;
        transition: all 500ms;
    }

    .parentdiv1 {
        position: relative;
    }

    .childdiv1 {
        position: absolute;
        right: 4%;
        bottom: 0;
        color: white;
    }

    .productspic>div:nth-child(2) {
        float: left;
        width: 23.7%;
        height: 40vh;
        cursor: pointer;
        transition: all 500ms;
    }

    .parentdiv2 {
        position: relative;
    }

    .childdiv2 {
        position: absolute;
        right: 4%;
        bottom: 0;
        color: white;
    }

    .productspic>div:nth-child(3) {
        float: left;
        width: 47.45%;
        height: 40vh;
        cursor: pointer;
        transition: all 500ms;
    }

    .parentdiv3 {
        position: relative;
    }

    .childdiv3 {
        position: absolute;
        right: 2%;
        bottom: 0;
        color: white;
    }

    .productspic>div:nth-child(4) {
        float: right;
        width: 23.7%;
        height: 40vh;
        margin-right: 4.4%;
        cursor: pointer;
        transition: all 500ms;
    }

    .parentdiv4 {
        position: relative;
    }

    .childdiv4 {
        position: absolute;
        right: 2%;
        bottom: 0;
        color: white;
    }

    .productspic>div:last-child {
        float: right;
        width: 47%;
        height: 40vh;
        cursor: pointer;
        transition: all 500ms;
        background-color: #9d1c30;
    }

    .parentdiv5 {
        position: relative;
    }

    .childdiv5 {
        position: absolute;
        right: 2%;
        bottom: 0;
        color: white;
    }

    .productspic div:not(:first-child) img {
        width: 100%;
        height: 40vh;
    }

    .productspic div:first-child img {
        width: 100%;
        height: 80.5vh;
    }

    .productspic:hover div {
        filter: brightness(60%) grayscale(20%);
    }

    .productspic div:hover {
        filter: brightness(100%);
    }

    footer {
        width: 90%;
        margin-bottom: 2%;
    }

    footer table {
        margin-right: 8%;
        width: 100%;
    }

    footer table tr td:nth-child(2n-1) {
        text-align: left;
        padding-left: 1%;
    }

    footer table tr:nth-child(2) td {
        text-align: right;
    }

    .footerimg {
        width: 35px;
    }

    .chat div {
        position: fixed;
        right: 2%;
        bottom: 5%;
        width: 70px;
        height: 70px;
        z-index: 1000;
        border-radius: 50px;
        background-color: rgb(16, 197, 37);
        cursor: pointer;
    }

    .chat div img {
        transform: scale(1.4, 1.4);
        position: fixed;
        right: 3.1%;
        bottom: 6.9%;
        z-index: 1001;
    }
}
