﻿body {
    margin: 0;
    font-family: fontman;
    overflow: hidden;
}
 
hed {
    display: block;
    position: fixed;
    width: calc(100% - 20px);
    top: 0;
    left: 0;
    padding: 5px 10px;
    background-color: white;
    z-index: 2;
    border-bottom: 1px solid #012f6d;
}

foot {
    display: none;
    z-index: 2;
    border-top: 1px solid #012f6d;
    background-color: white
}

mohtavar, mohtaval, ibo, eye {
    display: inline-block;
    vertical-align: middle;
}
.arms, search, .sabad, .newagahi, .save, .msg, .accont, clop, clops, clofil, txtfil {
    display: inline-block;
    vertical-align: middle;
    cursor: pointer;
}
.sabad, .newagahi, .save, .msg, .accont {
    text-decoration: none;
    color: #000000
}

.arms {
    background-image: url(../pic/bolangoo.png);
    height: 65px;
    width: 65px;
    background-size: 55px;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 5px
}

.sabad, .save, .msg, .accont {
    background-repeat: no-repeat;
    background-position: center left;
    margin-right: 15px;
    font-size: 13px;
}

    .save:before {
        content: 'ذخیره ها';
    }

    .sabad:before {
        content: 'سبد خرید';
    }

    .msg:before {
        content: 'پیام ها';
    }

    .accont:before {
        content: 'حساب من';
    }

.save {
    background-image: url(../pic/save.svg);
    width: 72px;
    background-size: 24px;
}

.sabad {
    background-image: url(../pic/shopping.svg);
    width: 80px;
    background-size: 24px;
}

.msg {
    background-image: url(../pic/msg.svg);
    width: 65px;
    background-size: 24px;
}

.accont {
    background-image: url(../pic/user.svg);
    width: 85px;
    background-size: 28px;
}

.newagahi {
    background-color: #012f6d;
    width: 110px;
    height: 25px;
    color: white;
    padding: 12px 15px;
    border-radius: 5px;
    font-weight: bold;
    margin-right: 15px;
}

    .newagahi:before {
        content: 'ثبت آگهی رایگان'
    }


search {
    border-radius: 5px;
    margin-right: 10px;
    display: inline-block;
    vertical-align: middle;
    background-color: white;
    width: calc(100% - 632px);
    outline: none;
    border: 1px solid #ccc;
}

    search input {
        border-radius: 5px;
        display: inline-block;
        vertical-align: middle;
        padding: 10px;
        outline: none;
        border: none;
        width: calc(100% - 240px);
        font: 14px fontman;
        color: #012f6d
    }

    search ostan, search daste {
        display: inline-block;
        vertical-align: middle;
        border: none;
        outline: none;
        border-right: 1px dashed #ccc;
        width: 80px;
        margin: 5px 0;
        padding: 0 10px;
        background-size: 22px;
        background-position: center left;
        background-repeat: no-repeat
    }

    search ostan {
        background-image: url(../pic/place.svg);
    }

        search ostan:before {
            content: 'انتخاب شهر';
            font: 14px fontman
        }

    search daste {
        background-image: url(../pic/group.svg);
    }

        search daste:before {
            content: 'دسته بندی';
            font: 14px fontman
        }

spci {
    width: 500px;
    max-height: 100%;
    max-width: 100%;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    display: none;
    z-index: 1001;
    -webkit-box-shadow: 0 0 30px 0 #ccc;
    background-color: white;
    overflow: hidden;
}

mohtava {
    padding: 5px;
    display: block;
    margin-top: 76px;
}

mohtavar, mohtaval {
    border: 1px solid #ccc;
    background-color: white;
    height: calc(100vh - 98px);
    overflow-x: hidden;
    overflow-y: auto;
    /* مخفی کردن نوار اسکرول در مرورگرهای مختلف */
    scrollbar-width: none; /* برای فایرفاکس */
    -ms-overflow-style: none; /* برای اینترنت اکسپلورر و Edge */
}
    /* مخفی کردن نوار اسکرول در کروم، سافاری و اپرا */
    mohtavar::-webkit-scrollbar, mohtaval::-webkit-scrollbar {
        display: none;
    }

mohtaval {
    margin: 3px 0 0 0;
    border: none;
    height: calc(100vh - 85px);
    width: calc(100% - 238px);
    margin-right: 0;
    position: relative;
}

mohtavar {
    margin: 5px 7px 5px 3px;
    width: 220px;
    user-select: none;
}

    mohtavar a {
        display: block;
        border-bottom: 1px solid #ccc;
        padding: 10px;
        text-decoration: none;
        color: black;
        cursor: pointer;
        text-align: right
    }

all {
    display: none;
    position: fixed;
    background-color: black;
    opacity: 0.3;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10
}


@media(max-width:1050px) {

    search ostan:before {
        content: 'شهر';
        font: 14px fontman
    }

    search daste:before {
        content: 'دسته';
        font: 14px fontman
    }

    search ostan {
        width: 40px;
    }

    search daste {
        width: 50px;
    }

    search input {
        width: calc(100% - 170px);
    }
}


 
@media(max-width:870px) {
  
    mohtava {
        margin-top: 53px;
        display: block;
        height: calc(100vh - 114px);
    }

    mohtaval {
        display: block;
        width: auto;
        height: 100%;
    }

    mohtavar {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        height: 100%;
        transform: scaleX(0);
        transform-origin: right;
        z-index: 11;
        margin: 0;
        width: 260px;
        max-width: 90%;
        border-top: none;
        border-bottom: none;
        border-right: none;
    }
    .sabad, .save, .msg, .accont, .newagahi {
        display: none
    }
    search {
        width: calc(100% - 80px);
        margin-right: 5px
    }

        search input {
            padding: 5px 10px;
        }


    hed {
        padding: 0 10px;
    }

    .arms {
        height: 55px;
        margin-right: 0
    }

    foot {
        display: flex;
        position: fixed;
        width: calc(100% - 20px);
        bottom: 0;
        left: 0;
        background-color: white;
        padding: 5px 10px;
        background-color: white;
    }

    .sp1, .sp2, .sp3, .sp4, .sp5 {
        display: inline-block;
        vertical-align: middle;
        width: 20%;
        text-align: center;
        font: bold 13px fontman;
        color: #012f6d;
        background-position: center 0;
        background-size: 24px;
        background-repeat: no-repeat;
        padding-top: 24px;
        transition: .5s;
        text-decoration: none;
    }

    .sp1 {
        background-image: url(../pic/filter.svg);
        background-size: 27px;
        position:relative;
    }
    confil {
        background-color: red;
        color: white;
        position: absolute;
        display: block;
        min-width: 15px;
        padding:0 5px;
        height: 25px;
        border-radius: 50% 50% 0 50%;
        text-align: center;
        top: -20px;
        left: calc(50% - 33px);
        font-size: 15px;
    }
    .sp2 {
        background-image: url(../pic/save.svg);
    }

    .sp3 {
        background-image: url(../pic/plus.svg);
    }

    .sp4 {
        background-image: url(../pic/shopping.svg);
    }

    .sp5 {
        background-image: url(../pic/user.svg);
    }

        .sp1:hover, .sp2:hover, .sp3:hover, .sp4:hover, .sp5:hover {
            transition: .5s
        }
}

@media(max-width:350px) {
    search ostan:before {
        content: '.';
        font-size: 1px
    }

    search daste:before {
        content: '.';
        font-size: 1px
    }

    search ostan {
        width: 10px;
    }

    search daste {
        width: 10px;
    }

    search input {
        width: calc(100% - 100px);
    }
}

@font-face {
    font-family: fontman;
    src: url(../font/Sahel.woff) format("woff");
}



#loader {
    display: table;
    width: 30px;
    height: 30px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 2s linear infinite, heart-beat 2s linear infinite;
    background-color: #fff;
    text-align: center;
    line-height: 140px;
    position: absolute;
    top: calc(50% - 20px);
    left: calc(50% - 20px);
    transform: translate(calc(-50% - 20px),calc(-50% - 20px))
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes heart-beat {
    55% {
        background-color: #fff;
    }

    60% {
        background-color: #3498db;
    }

    65% {
        background-color: #fff;
    }

    70% {
        background-color: #3498db;
    }

    100% {
        background-color: #fff;
    }
}

divser1 {
    display: block;
    padding: 10px 10px 0 10px;
    outline: none;
    border: 1px solid #ccc;
    border-top: none
}

    divser1 sbtn {
        display: block;
        padding: 10px;
        margin: 10px;
        outline: none;
        text-align: right;
        font-size: 14px
    }

    divser1 input {
        display: block;
        font: 14px fontman;
        padding: 8px;
        border: 1px solid #ccc;
        outline: none;
        text-align: right;
        margin: 10px 20px 20px 20px;
        width: calc(100% - 58px);
        border-radius: 10px
    }



divser2 {
    overflow-x: hidden;
    overflow-y: auto;
    display: block;
    height: 500px;
    max-height: calc(100% - 204px);
    border-right: 1px solid #ccc;
    border-left: 1px solid #ccc;
    outline: none;
}


divb, divbx {
    padding: 13px 15px 13px 0;
    margin: 0 20px;
    display: flex;
    border: none;
    outline: none;
    border-top: 1px solid #ccc;
    cursor: pointer;
    transition: .3s
}

    divb:hover, divbx:hover {
        background-color: #e8f0fb;
        transition: .3s
    }

    divb input, divbx input, divsr {
        display: inline-block;
        vertical-align: middle;
        width: 40px;
        cursor: pointer;
        text-align: center;
        color: #808080;
    }

divsr {
    margin-left: 3px
}

divs {
    display: inline-block;
    vertical-align: middle;
    width: calc(100% - 20px);
    font-size: 15px
}

.nobor {
    border: none;
}

.botbor {
    border: none;
    border-bottom: 1px solid #ccc;
}

clop {
    display: inline-block;
    vertical-align: middle;
    margin: 0 10px;
    color: maroon
}

divser3 {
    display: flex;
    direction: ltr;
    padding: 10px;
    outline: none;
    border: 1px solid #ccc;
    font-size: 14px;
    border-bottom: none
}

btnt, btne {
    display: inline-block;
    vertical-align: middle;
    width: calc(50% - 12px);
    margin: 0 5px;
    border: 1px solid #012f6d;
    border-radius: 5px;
    padding: 6px 0;
    text-align: center;
    cursor: pointer;
    transition: .5s
}

btnt {
    background-color: #012f6d;
    color: white;
    transition: .5s
}

btne {
    background-color: white;
    color: #012f6d;
}

sbtn {
    display: block;
}

cxu {
    display: block;
    margin: 6px 0 6px 0
}

tosbtn, tosbtn2, tosbtn3 {
    display: inline-block;
    background-color: #ffeae9;
    color: #012f6d;
    border: 1px solid red;
    padding: 2px 10px 3px 10px;
    margin-left: 5px;
    border-radius: 20px;
    cursor: pointer
}

    tosbtn sx, tosbtn3 sx, tosbtn closbtn, risbtn, tosbtn2, tosbtn3 closbtn {
        display: inline-block;
        vertical-align: middle;
    }

    tosbtn closbtn, tosbtn3 closbtn {
        font-size: 17px;
        margin-right: 10px;
        color: red
    }

tosbtn2 {
    width: 120px;
    border-radius: 0;
    margin: 2px 0 3px 0;
    text-align: center;
    padding: 2px 5px 3px 5px;
}

tosbtn3 {
    width: auto;
    margin: 3px;
    padding: 0px 10px 1px 10px;
    font-size: 14px
}

risbtn {
    width: calc(100% - 132px);
    text-align: center;
    padding: 3px 0
}

dova {
    display: block;
    padding: 10px
}

.delall {
    font-size: 13px;
    margin: 0;
    padding: 2px 0 0 0;
    width: 70px
}

.delallz {
    width: calc(100% - 72px);
}

loader {
    display: table;
    width: 30px;
    height: 30px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 2s linear infinite, heart-beat 2s linear infinite;
    background-color: #fff;
    text-align: center;
    line-height: 140px;
    position: absolute;
    top: calc(50% - 20px);
    left: calc(50% - 20px);
    transform: translate(calc(-50% - 20px),calc(-50% - 20px))
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes heart-beat {
    55% {
        background-color: #fff;
    }

    60% {
        background-color: #3498db;
    }

    65% {
        background-color: #fff;
    }

    70% {
        background-color: #3498db;
    }

    100% {
        background-color: #fff;
    }
}
/*posts*/
ptarefe {
    display: inline-block;
    width: 35px;
    height: 25px;
    position: absolute;
    left: 100px;
    top: 5px;
    background-color: red;
    background-size: 30px;
    background-image: url(../pic/urgent.svg);
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 0 5px 0 0;
}
posts, postsr, posts img, nullpic, xpics1, xpics2 {
    display: inline-block;
    vertical-align: middle;
    border: none;
    outline: none;
    cursor: pointer
}

posts {
    height: 130px;
    border: 1px solid #abcfff;
    margin: 5px;
    padding: 5px;
    border-radius: 5px;
    z-index: 1;
    position: relative;
}

ibo {
    width: calc(100% - 20px )
}

eye {
    background-image: url(../pic/eye.svg);
    height: 20px;
    width: 20px;
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: center;

}

@media(min-width:968px) {
    posts {
        width: calc(33% - 20px);
    }
}

@media(max-width:967px) and (min-width:600px) {
    posts {
        width: calc(50% - 22px);
    }
}

@media(max-width:699px) {
    posts {
        width: calc(100% - 22px);
    }
}


postsr {
    height: 130px;
    width: calc(100% - 135px);
    margin-left: 5px;
    text-align: right;
    font-size: 14px
}

posts img, nullpic {
    height: 130px;
    width: 130px;
    border-radius: 5px;
    object-fit: cover
}

nullpic {
    background-image: url(../pic/nullsmall.jpeg);
    background-position: center;
    background-size: cover
}


postsr1 {
    display: block;
    padding: 5px 5px 0 0;
    height: 50px;
    color: #012f6d;
    overflow: hidden
}

postsrz {
    display: block;
    padding: 5px 5px 0 0;
    height: 20px;
    color: #666666
}

neshanpor, neshannull {
    display: block;
    width: 26px;
    position: absolute;
    height: 26px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    left: 5px;
    top: 7px;
    z-index: 2;
}

neshanpor {
    background-image: url(../pic/neshanpor.svg);
}

neshannull {
    background-image: url(../pic/neshannull.svg);
}
/*posts*/
fils {
    display: block;
    padding: 3px 5px 5px 5px;
    margin: 5px;
    background-color: red;
    border-radius: 3px;
    font-size: 15px
}
clofil {
    background-color: white;
    color: maroon;
    height: 25px;
    width: 25px;
    border-radius: 50%;
    text-align: center;
}
txtfil {
    width: calc(100% - 25px);
    text-align: right;
    color: white;
}
notmohtava, Xfilte {
    display: block;
    background-color: antiquewhite;
    border: 1px dashed #012f6d;
    padding: 20px;
    margin: 20px 20px 70px 20px;
    text-align: center;
    font-size: 14px
}
Xfilte {
    display: table;
    background-color: #012f6d;
    color: white;
    border: none;
    padding: 5px 20px;border-radius:3px;
    margin: 25px auto 0 auto;cursor:pointer
}
