*{
    margin: 0;;
    padding: 0;
    box-sizing: border-box;
}
body{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(#009688 0%,#009688 130px,#d9dbd5 130px,#d9dbd5 100%);
}
.container{
    position: relative;
    width: 1396px;
    max-width: 100%;
    height: calc(100vh - 40px);
    background: #ffffff;
    box-shadow: 0 1px 1px 0 rgba(0,0,0,0.06),0 2px 5px 0 rgba(0,0,0,0.06);
    display: flex;
}
.container .leftSide{
    position: relative;
    flex:30%;
    background: #fff;
    border-right: 1px solid rgba(0,0,0,0.2);
}
.container .rightSide{
    position: relative;
    flex:70%;
    background: #e5ddd5;
}
.container .rightSide::before{
    content: '';
    position: absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: url(images/bg-chat.png);
}
.header{
    position: relative;
    width:100%;
    height: 60px;
    background: #ededed;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}
.userimg{
    position: relative;
    width: 40px;
    height: 40px;
    overflow: hidden;
    border-radius: 50%;
}
.cover{
    position: absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    object-fit: cover;
    cursor: pointer;
}
.nav_icons{
    display: flex;
}
.nav_icons li{
    display: flex;
    list-style: none;
    cursor: pointer;
    font-size: 1.5em;
    margin-left: 22px;
}
.search_chat{
    position: relative;
    width:100%;
    height:50px;
    background: #f6f6f6;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 15px;
}
.search_chat div{
    width: 100%;
}
.search_chat div input{
    width:100%;
    outline: none;
    border: none;
    background: #fff;
    padding: 6px;
    height:38px;
    border-radius: 30px;
    font-size:14px;
    padding-left: 40px;
}
.search_chat div input::placeholder{
    color:#bbb
}
.search_chat div img{
    position:absolute;
    left:30px;
    top: 14px;
    font-size:1.2em;
}
.chatlist{
    position: relative;
    height: calc(100% - 110px);
    overflow-y:auto ;
}
.chatlist .block{
    position: relative;
    width:100%;
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    cursor: pointer;
}
.chatlist .block.active{
    background: #ebebeb;
}
.chatlist .block:hover{
    background: #f5f5f5;
}

.chatlist .block .imgbx{
    position: relative;
    min-width: 45px;
    height: 45px;
    overflow: hidden;
    border-radius: 50%;
    margin-right: 10px;
}
.chatlist .block .details{
    position: relative;
    width:100%;
}
.chatlist .block .details .listHead{
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}
.chatlist .block .details .listHead h4{
    font-size: 1.1em;
    font-weight: 600;
    color: #111;
}
.chatlist .block .details .listHead .time{
    font:0.75em;
    color:#aaa;
}
.chatlist .block .details .listHead .time{
    color:#111;
}
.chatlist .block.unread .details .listHead .time{
    color:#06d755;
}
.chatlist .block.unactive .details .listHead .time{
    color:#aaa;
}
.message_p{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.message_p p{
    color: #aaa;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    font-size:0.9em;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow:ellipsis;
}
.message_p b{
    background-color: #06d755;
    box-shadow: 0 1px 1px 0 rgba(0,0,0,0.06),0 2px 5px 0 rgba(0,0,0,0.06);;
    color:#fff;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.75em;

}
.imgText{
position: relative;
display: flex;
justify-content: center;
align-items: center;
}
.imgText h4{
    font-weight: 500;
    line-height: 1.2em;
    margin-left: 15px;
}
.imgText h4 span{
    font-size:0.8em;
    color: #555;
}

/* RIGHT-CHAT */

 .chatBox{

    position:relative;
    width: 100%;
    height: calc(100% - 120px);
    padding: 50px;
    overflow-y: auto;

    overflow-x: hidden;
    overflow: scroll;
    background-repeat: repeat;
}

.message{
    position: relative;
    display: flex;
    width: 100%;
    margin: 15px 20px;
    
}
.message p{
    position: relative;
    right: 0;
    text-align: right;
    max-width: 65%;
    padding: 12px;
    background: #dcf8c6;
    border-radius: 10px;
    font-size: 0.9em;
}
.message p::before{
    content: '';
    position: absolute;
    top:0;
    right:-12px;
    width:20px;
    height:20px;
    background: linear-gradient(135deg,#dcf8c6 0%,#dcf8c6 50%,transparent 50%,transparent);
}
.message p span{
    display: block;
    margin-top: 5px;
    font-size: 0.85em;
    opacity: 0.5;
}
.my_message{
    display: flex;
    justify-content: flex-end;
    position: relative;
    right: 50px;   
}
.my_message span img{
    position: relative;
    top: 40px;
    right:15px;

}
.frnd_message {
    justify-content: flex-start;
}
.frnd_message p{
    background: #fff;
    text-align: left;
}
.message.frnd_message p::before{
    content: '';
    position: absolute;
    top:0;
    left:-12px;
    width:20px;
    height:20px;
    background: linear-gradient(225deg, #fff 0%, #fff 50%,transparent 50%,transparent);
}
.type-message-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    background: var(--type-message-bar);
    padding: 1rem 2rem;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
}
  
.type-message-bar img {
    cursor: pointer;
}
  
.type-message-bar-left img:nth-of-type(2) {
    margin: 0 2rem;
}
  
.type-message-bar-center {
    flex: 1;
}
  
.type-message-bar-center input {
    width: 100%;
    outline: none;
    border: none;
    padding: 1rem 1rem 1rem 2rem;
    flex: 1;
    border-radius: 2rem;
    font-family: "Segoe UI";
}
  
.type-message-bar-center input::-webkit-input-placeholder {
    font-size: 1.5rem;
}
  
.type-message-bar-right {
    margin-left: 2rem;
}