.chat{
    margin-top: auto;
    margin-bottom: auto;
    left: 10px;
}
.card2{
    height: 500px;
    border-radius: 15px !important;
    /* background-color: rgba(0,0,0,0.4) !important; */
}
.contacts_body{
    padding:  0.75rem 0 !important;
    overflow-y: auto;
    white-space: nowrap;
}
.msg_card2_body{
    overflow-y: auto;    
    height: 364px;
    padding: 20px;
    background: #c1a7a7;
}
.card2-header{
    border-radius: 10px 10px 0 0;
    background: #866767;
    border-bottom: 0 !important;
    height: 100px;
    padding: 8px;
}
.card2-footer{
    background: #866767;
    border-top: 0 !important;
    height: 135px;
    padding: 8px;
}
.type_msg{
    /* background-color: rgba(0,0,0,0.3) !important; */
    border:0 !important;
    color:#030303 !important;
    height: 60px !important;
    overflow-y: auto;
}
    .type_msg:focus{
     box-shadow:none !important;
   outline:0px !important;
}
.attach_btn{
border-radius: 15px 0 0 15px !important;
background-color: rgba(0,0,0,0.3) !important;
    border:0 !important;
    color: #000000 !important;
    cursor: pointer;
}
.send_btn{
border-radius: 0 15px 15px 0 !important;
/* background-color: rgba(0,0,0,0.3) !important; */
    border:0 !important;
    color: white !important;
    cursor: pointer;
}
.search_btn{
    border-radius: 0 15px 15px 0 !important;
    background-color: rgba(0,0,0,0.3) !important;
    border:0 !important;
    color: white !important;
    cursor: pointer;
}
.contacts{
    list-style: none;
    padding: 0;
}
.contacts li{
    width: 100% !important;
    padding: 5px 10px;
    margin-bottom: 15px !important;
}
/* .active{
    background-color: rgba(0,0,0,0.3);
} */
.user_img{
    height: 70px;
    width: 70px;
    border:1.5px solid #f5f6fa;

}
.user_img_msg{
    height: 40px;
    width: 40px;
    border:1.5px solid #f5f6fa;

}
.img_cont{
    position: relative;
    height: 70px;
    width: 70px;
}
.img_cont_msg{
    height: 40px;
    width: 40px;
}
.online_icon{
position: absolute;
height: 15px;
width:15px;
background-color: #4cd137;
border-radius: 50%;
bottom: 0.2em;
right: 0.4em;
border:1.5px solid white;
}
.offline{
background-color: #c23616 !important;
}
.user_info{
margin-top: auto;
margin-bottom: auto;
margin-left: 15px;
}
.user_info span{
font-size: 20px;
color: #000000;
}
.user_info p{
font-size: 10px;
color: #000000;
}

.msg_cotainer{
margin-top: auto;
width: 100%;
margin-bottom: auto;
margin-left: 10px;
border-radius: 25px;
background-color: #82ccdd;
padding: 10px;
position: relative;
}
.msg_cotainer_send{
width: 100%;
margin-top: auto;
margin-bottom: auto;
margin-right: 10px;
border-radius: 25px;
background-color: #78e08f;
padding: 10px;
position: relative;
}
.msg_time{
position: absolute;
left: 0;
bottom: -15px;
color: #000000;
font-size: 10px;
}
.msg_time_send{
position: absolute;
right:0;
bottom: -15px;
color: #000000;
font-size: 10px;
}
.msg_head{
position: relative;
}
#action_menu_btn{
position: absolute;
right: 10px;
top: 10px;
color: #000000;
cursor: pointer;
font-size: 20px;
}
.action_menu{
z-index: 1;
position: absolute;
padding: 15px 0;
background-color: rgba(0,0,0,0.5);
color: white;
border-radius: 15px;
top: 30px;
right: 15px;
display: none;
}
.action_menu ul{
list-style: none;
padding: 0;
margin: 0;
}
.action_menu ul li{
width: 100%;
padding: 10px 15px;
margin-bottom: 5px;
}
.action_menu ul li i{
padding-right: 10px;

}
.action_menu ul li:hover{
cursor: pointer;
background-color: rgba(0,0,0,0.2);
}
@media(max-width: 576px){
.contacts_card2{
margin-bottom: 15px !important;
}
}

.open-button {
background-color: #8207f3;
color: white;
padding: 16px 6px;
border: none;
cursor: pointer;
opacity: 0.8;
position: fixed;
bottom: 23px;
right: 28px;
width: 53px;
border-radius: 41px;
}
.open-button:hover{
box-shadow:0 5px 1px rgba(0,0,0,0.2);
}
/* The popup chat - hidden by default */
.chat-popup {
display: none;
position: fixed;
bottom: 0;
right: 15px;
/* border: 3px solid #f1f1f1; */
z-index: 13;
}

/* Add styles to the form container */
.form-container {
max-width: 334px;
/* padding: 10px; */
border-radius: 20px 20px 0 0;
padding-top: 10px;
/* background-color: white; */
}

/* Full-width textarea */
.form-container textarea {
width: 100%;
padding: 15px;
margin: 5px 0 22px 0;
border: none;
background: #f1f1f1;
resize: none;
min-height: 100%;
}

/* When the textarea gets focus, do something */
.form-container textarea:focus {
background-color: #ddd;
outline: none;
}

/* Set a style for the submit/send button */
.form-container .btn {
background-color: #4CAF50;
border: none;
color: white;
padding: 2px 8px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 13px;
margin: 4px 2px;
cursor: pointer;
float: right;
}

/* Add a red background color to the cancel button */
.form-container .cancel {
background-color: red;
}

/* Add some hover effects to buttons */
.form-container .btn:hover, .open-button:hover {
opacity: 1;
}