@font-face {
  font-family: Vazir;
  src: url(fonts/Vazir.ttf);
}
@font-face{
    font-family:Comfortaar;
    src: url('fonts/Comfortaa-Regular.ttf');
}
@font-face{
    font-family:Vazir-Code-Extra-Height-FD;
    src: url('fonts/Vazir-Code-Extra-Height-FD.ttf');
}
@font-face{
    font-family:F_yekan;
    src: url('fonts/F_yekan.ttf');
}
@font-face{
    font-family:UbuntuCondensed-Regular;
    src: url('fonts/UbuntuCondensed-Regular.ttf');
}
.fullcontent{
    width:100%;
    height: 100%;
    z-index:2;
    border-color:red;
    text-align:center;
}

.ma-row-maker{ clear:both; width:100%; }
.ma-col{width:100%; float:left;}
.ma-col-2sides{ float:right; width:49.9%;}
.middle-items{
    margin-top:20px;
    margin-bottom:50px;
    text-align:center;
}
.middle-items .cards .items{ margin-bottom:10px; }
.middle-items .cards .items button{
    font-size:22px;
    width:200px;
    font-family:Vazir;
    padding:5px 10px;
    border-radius:30px;
    cursor:pointer;
	background: #16a085;
}
.middle-items .cards .item1{text-align:left;}
.middle-items .cards .item1 button{margin-left:20px;}
.middle-items .cards .item2{text-align:right;}
.middle-items .cards .item2 button{margin-right:20px;}

/* chat part */
.ma-fullwidth{width: 100%;}
.ma-row:after,.ma-row:before{
    content:"";
    display:table;
    clear:both;
}

.chat-container { height:100%; }
.chat-container .contacts-part{
    overflow-y: scroll;
    overflow-x: hidden;
    scrollbar-width: none;
    float: right;
    width: 35%;
    height: 100%;
    background: #f8f8f8;
    box-shadow: -2px -2px 6px 1px rgba(0, 0, 0, 0.3);
    position: relative;
    /* z-index: 400; */
}
.chat-container .contacts-part .search-box{
    height:70px;
    background-color: #2e4da1;
    position: relative;
    box-shadow: 2.8px -1px 3px 2px rgba(0, 0, 0, 0.6);
    z-index: 400;
}
.chat-container .contacts-part .search-box input{
    direction: rtl !important;
    margin-top: 11px  !important;
    font-size: 16px  !important;
    font-family: 'Vazir'  !important ;
    padding: 7px 20px   !important;
    border:0;
    background-image: url(../image/search.png)  !important;
    background-position: 199px 7px  !important;
    background-repeat: no-repeat  !important;
    border-radius: 30px  !important;
    background-size: 26px 26px  !important;
}
.chat-container .contacts-part .search-box input:focus{
    background-image: none;
}
.chat-container .contacts-part  .users-c{ margin-top: 5px;}
.chat-container .contacts-part .users{
    height: auto;
    padding: 10px 0;
    margin-top:10px;
}
.chat-container .contacts-part .users .user-avatar{
    float: right;
    width: 15%;
}
.chat-container .contacts-part .users .user-avatar img{
    width: 60px;
    margin-right: 10px;
    border-radius: 50%;
    border:2px solid #3f9e41;
}
.chat-container .contacts-part .users .userName{
    text-align: right;
    float: right;
    width: 70%;
    margin-top: 5.5px;
    color:#fff;
}
.chat-container .contacts-part .users .userName p{ margin:0 10px 0 0 ;}
.chat-container .contacts-part .users .userName .username{ font-size: 15px; }
.chat-container .contacts-part .users .userName .latmessage{
    font-size: 13.5px;
    color: #b0b5b0;
}
.chat-container .contacts-part .users .unseenmessages{
    float: left;
    width: 15%;
    height:100%;
    margin-top: 20px;
    text-align:center;
    position: relative;
}
.chat-container .contacts-part .users .unseenmessages div{
    position: absolute;
    right: 0px;
    // background: linear-gradient(90deg, #006699 3%, #00ccff 100%);
    background: #00ccff ;
    font-size: 17.5px;
    padding: 3px 9px 0px 9px ;
    border-radius: 50%;
    font-family:Vazir-Code-Extra-Height-FD;
    color: #454545;
}
.users .spratorLine{
    width:80%;
    margin:auto;
    height:1.7px;
    background:#455565;
}
.users:nth-last-child(1) .spratorLine{
    display:none;
}
/* message part */
.chat-container .message-container{
    float: right;
    width: 65%;
    height: 100%;
    background: #4c5c68;
    z-index: 20;
}
.chat-container .message-container .message-header{
    height:60px;
    // background-color: #2e4da1;
    // background-color: #2a4591 ;
    background-color: #46494c;
    color: #fff;
    position: relative;
    z-index: 2000;
    box-shadow: 0px 2px 3px 0px rgba(0, 0, 0, 0.4);
}
.chat-container .message-container .message-header .right-side{
    float: right;
    width: 80%;
    height: inherit;
}

.chat-container .message-container .message-header .right-side .username{
    margin: 19px 15px 0 0;
    float: right;
    font-size: 17px;
}
.chat-container .message-container .message-header .right-side .user-avatar{
    margin: 4px 25px  0  0  ;
    float: right;
}
.chat-container .message-container .message-header .right-side .user-avatar img{
    width: 50px;
    height:50px;
    border-radius: 50%;
}
.chat-container .message-container .message-header .left-side{
    float: right;
    width: 20%;
    height: inherit;
}
.chat-container .message-container .message-header .left-side img{
    width: 24px;
    margin-top: 1px;
    cursor: pointer;
}
.chat-container .message-container .message-header .left-side .trash{
    float: left;
    margin: 15px 0 0 25px;
}
.chat-container .message-container .message-header .left-side .backbtn{
    float: left;
    margin: 18px 0 0 23px;
}
.chat-container .message-container img:active{transform:scale(0.96);}

.chat-container .message-container .message-body{
    height:calc(100% - 123px); 
    background-image: linear-gradient(to top, #fdcbf1 0%, #fdcbf1 1%, #e6dee9 100%);
    overflow-y: scroll;
    overflow-x: hidden;
    scrollbar-width: none;
}
.chat-container .message-container .message-composing{
    // position:relative;
    margin:0;
    padding:0;
    height: 3.5rem;
    background-color: #46494c;
    z-index: 1;
    box-shadow:0px -3px 6px 0px rgba(0,0,0,0.3);
    float:left;
    // bottom:0;
    position:relative;
}
.message-composing .emoji-qrcode {
    width:10%;
    text-align:center;
}
.emoji-qrcode img {
    cursor:pointer;
    margin-top:0.87rem;
    width:1.5rem;
    display:inline;
    justify-content: center;
    align-items: center;
}
.emoji-container-main{
    width: 330px;
    height: 300px;
    background: #2d2f30;
    padding:1px 0 0 0 ;
    position: absolute;
    top: -312px;
    right: 2.5%;
    border-radius:5px 5px  0 5px ;
}
.emoji-container-main::before{
    content: "";
    display: block;
    width: 33px;
    height: 33px;
    background: #262626;
    position: absolute;
    bottom: -16px;
    transform: rotate(45deg);
    right: 8px;
}
.emoji-container-main .em_nav{
    width: 100%;
    position: absolute;
    bottom: 0;
    height: 30px;
    background: #262626;
    text-align: center;
    padding-top: 4px;
}
.emoji-container-main .em_nav .emN_items{
    width: 11.11%;
    height: 100%;
    text-align: center;
    float: left;
}
.emoji-container-main .em_nav a{
    padding: 0px;
    margin: 0;
    color: #fff;;
    text-decoration: none;
}
.emoji-container-main .emoji-container{
    width: 100%;
    height: 89%;
    overflow-y: scroll;
    margin-left:0;
    scrollbar-width: thin;
}
.emoji-container .emoji-category .emoji-title{
    color:#9a9a9a;
    font-size: 14px ;
    font-family: Vazir;
}
.emoji-container .emoji-category .emoji-btns span{
    background: transparent;
    border: 0;
    cursor: pointer ;
    font-size:21px;
    padding:2px;
}
.emoji-container-main .emoji-container .emoji-category{
    direction: ltr  !important;
    text-align:left;
    margin-left: 4px;
    margin-top: 5px;
}
.message-composing .message-box{
    width:80%;
    float:left;
    text-align:center;
}
.message-box textarea {
    width:90%;
    height: 50px;
    margin: 5px;
    border: none;
    font-size: 1rem;
    font-family: Vazir;
    direction:rtl;
    text-align:right;
    scrollbar-width: thin;
    resize:none;
    border-radius: 5px;
    padding: 5px 10px;
    
}
.message-composing .btn-send {
    width:10%;
    height:100%;
    position:relative;
    text-align:center;
    float:left;
}
.btn-send img {
    cursor:pointer;
    margin-top:0.75rem;
    width:1.9rem;
}

/******************************************************/
@media only screen and (max-width: 1080px){
    .emoji-container-main{
        right: 1.6%;
    }
}
@media only screen and (max-width: 902px) {
    .chat-container .contacts-part{
        width: 100%;
    }
    .chat-container .message-container{
        width: 100%;
        display: none;        
    }
    .emoji-container-main{
        right: 19px;
    }
}
@media only screen and (max-width:770px) {
    .chat-container .message-container .message-body{
        height: calc(100% - 143px);
    }
    .emoji-container-main{
        width: 274px;
        right: 28px;
    }
}

@media only screen and (max-width: 768px) {
    .chat-container .message-container .message-body{
        height:calc(100% - 109px) !important; 
    }
    .chat-container .message-container .message-composing{
        height:3rem;
    }
    .message-composing .emoji-qrcode {
        margin:0 ;
    }
    .emoji-qrcode img {
        width:1.2rem;
    }
    .message-box textarea {
        width:80%;
        height:40px;
        margin-left: -20px;
        margin-top: 8px;
        font-size: 15px;
    }
    .message-composing .btn-send {
        margin:0 0 0 -15px;
    }
    .btn-send img {
        width:1.42rem;
        margin: 14px 0 00 0;
    }
    
}
@media only screen and (max-width: 702px){
    .chat-container .contacts-part .users .userName p{ margin:0 20px 0 0 ;}
    .chat-container .message-container .message-header .right-side{ width: 70%;}
    .chat-container .message-container .message-header .left-side{width: 30%;}
    .chat-container .message-container .message-composing .emojiQrcode img{
        margin-left: 21px;
    }
}
@media only screen and (max-width: 652px){
    .chat-container .message-container .message-header .right-side .user-avatar{
        margin: 4px 15px  0  0  ;
    }
}
@media only screen and (max-width: 602px){
    .chat-container .message-container .message-header .right-side{ width: 70%;}
    .chat-container .message-container .message-header .left-side{width: 30%;}
    .message-composing .composingSection .sendIcon img{
        width: 40px;
        margin: 30px 0 0 40px;
    }
}
@media only screen and (max-width: 600px) {
    .emoji-container-main{
        right: 20px;
    }
    .inputs-container input{
        width: 83%;
    }
    .img-c{ width:100% }
    .login-container{ margin-bottom:70px; }
    .login-container .inpt-container .btn-contnr button{  width:50%;  }
    .ma-col-2sides{float: right; width:100%;}
    .middle-items .cards .item1{text-align:center;}
    .middle-items .cards .item1 button{margin-left:0;}
    .middle-items .cards .item2{text-align:center;}
    .middle-items .cards .item2 button{margin-right:0;}
    .fs-extra{ font-size:24px;}
    
}
@media only screen and (max-width: 552px) {
    .chat-container .message-container .message-composing .emojiQrcode img{
        margin-left: 10px;
    }
    .chat-container .contacts-part .users .userName .username{ font-size: 16px; }
    .chat-container .contacts-part .users .userName .latmessage{ font-size: 11.5px;}
    .chat-container .contacts-part .users .userName p{ margin:1px 35px 0 0 ; }
    .chat-container .contacts-part .users .user-avatar img{
        width: 55px;
        margin-left: -18px !important;
        margin-top: 2px !important;
    }
    hr{
    width: 63%;
    margin-top: 3px;
    }
    .chat-container .contacts-part .users .unseenmessages div{
        font-size: 16px;
        margin-top: -3px;
    }
    .chat-container .contacts-part .search-box input{
        margin-top: 15px;
        font-size: 18px;
        background-position-x: 220px;
        background-position-y: 5px;
    }
    .chat-container .message-container .message-composing .emojiQrcode img{
        width: 35px;
        margin-top: 10px;
    }
    .message-composing .composingSection .t-container textarea{
        margin-left: 15px;
    }
}
@media only screen and (max-width: 414px){
    .chat-container .message-container .message-header{ height:55px !important;}
    .chat-container .message-container .message-header .right-side{ width: 60%;}
    .chat-container .message-container .message-header .left-side{width: 40%;}
    .chat-container .message-container .message-header .left-side img{ width:20px; }
    .chat-container .message-container .message-header .right-side .user-avatar img{
        width: 45px !important;
        margin-top: 5px;
        margin-right:-10px;
        height: 45px;
    }
    .chat-container .message-container .message-header .right-side .username{
        font-size: 15.5px;
        margin-top: 16px;
        margin-right: 7px;
    }
    .chat-container .message-container .message-header .left-side img{
        width: 21px !important;
        margin-left: -10px;
        margin-top: 2px !important;
    }
    .chat-container .message-container .message-composing .emojiQrcode img{
        width: 33px;
        margin-top:12px;
    }
    .fight-invite{
        width:15% !important;
        top: -4px;
    }
    .emoji-container-main{
        right: 10px;
    }
}