body {
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #000;
  overflow: hidden;
}

#frame {
  width: 100%;
  height: calc(100vh - 60px);
  background: #f4f5f9;
}
@media screen and (max-width: 360px) {
  #frame {
  }
}

#frame .content {
  float: right;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}
@media screen and (max-width: 735px) {
  #frame .content {
  }
}
@media screen and (min-width: 900px) {
  #frame .content {
    width: calc(100%);
  }
}
#frame .content .contact-profile {
  width: 100%;
  height: 60px;
  line-height: 60px;
  background: #fff;
}
#frame .content .contact-profile img {
  width: 40px;
  border-radius: 50%;
  float: left;
  margin: 9px 12px 0 9px;
}
#frame .content .contact-profile p {
  float: none;
  margin-left: 0 !important;
  display: block;
  text-align: center;
}

#frame .content .messages {
  height: calc(100% - 140px);
  overflow-y: scroll;
  overflow-x: hidden;
}
@media screen and (max-width: 735px) {
  #frame .content .messages {
  }
}
#frame .content .messages::-webkit-scrollbar {
  width: 8px;
  background: transparent;
}
#frame .content .messages::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.3);
}
#frame .content .messages ul li {
  display: inline-block;
  clear: both;
  float: left;
  margin: 15px 15px 5px 15px;
  width: calc(100% - 25px);
  font-size: 0.9em;
}
#frame .content .messages ul li:nth-last-child(1) {
  margin-bottom: 20px;
}
#frame .content .messages ul li.sent img {
  margin: 6px 8px 0 0;
}
#frame .content .messages ul li.sent img.imgsentchat{
  max-width: 100%;
  border-radius:0;
  margin: 0;
  border-radius: 20px;
  width: auto;
}
#frame .content .messages ul li.sent img.icondoc{
  border-radius:0;
  width:50px;
  margin: 0 auto;
}
#frame .content .messages ul li.sent p {
  background: #1abc9c;
  color: #f5f5f5;
  position:relative;
}
#frame .content .messages ul li.sent p a{
  color:#fff;
}
#frame .content .messages ul li.sent p:before {
    width: 0;
    height: 0;
    content: "";
    top: 15px;
    right: -10px;
    position: absolute;
    border-style: solid;
    border-width: 0 13px 13px 0;
    border-color: transparent transparent #1abc9c transparent;
}
#frame .content .messages ul li.replies p{
  position:relative;
}
#frame .content .messages ul li.replies p:before {
	width: 0;
    height: 0;
    content: "";
    top: 15px;
    left: -10px;
    position: absolute;
    border-style: solid;
    border-width: 0 13px 13px 0;
    border-color: transparent #fff transparent transparent;
    
}
#frame .content .messages ul li .username{
  
display: block;
  
margin-bottom: 8px;
  
color: #aaa;
  
font-size: 12px;
}
#frame .content .messages ul li.sent .username{
  text-align:right;
}
#frame .content .messages ul li.replies img {
  float: right;
  margin: 6px 0 0 8px;
}
#frame .content .messages ul li.replies p {
  background: #fff;
}
#frame .content .messages ul li.sent p{
	float: right;
}
  
#frame .content .messages ul li.replies p a{
  color:#000;
}
#frame .content .messages ul li img {
  width: 22px;
  border-radius: 50%;
  float: left;
}
#frame .content .messages ul li p {
  display: inline-block;
  padding: 15px;
  border-radius: 20px;
  max-width: 205px;
  line-height: 130%;
  font-size: 14px;
}
#frame .content .messages ul li p .fa{
  display:block;
  text-align:center;
  font-size:30px;
  margin-bottom:10px;
}
#frame .content .messages ul li p span{
  position: absolute;
  left: 15px;
  bottom: 15px;
  width: 50px;
  padding-left: 5px;
  padding-right: 5px;
  text-align: center;
  font-size: 13px;
  text-transform: uppercase;
}
@media screen and (min-width: 735px) {
  #frame .content .messages ul li p {
    max-width: 300px;
  }
}
#frame .content .message-input {
  position: absolute;
  bottom: 0;
  width: 100%;
  z-index: 99;
}
#frame .content .message-input .wrap {
  position: relative;
}
#frame .content .message-input .wrap input {
  float: left;
  border: none;
  width: calc(100% - 50px);
  padding: 10px 10px 10px 15px;
  color: #32465a;
  height: 50px;
}
@media screen and (max-width: 735px) {
  #frame .content .message-input .wrap input {
  }
}
#frame .content .message-input .wrap input:focus {
  outline: none;
}
#frame .content .message-input .wrap .attachment {
  position: absolute;
  right: 60px;
  z-index: 4;
  margin-top: 10px;
  font-size: 1.1em;
  color: #435f7a;
  opacity: .5;
  cursor: pointer;
}
@media screen and (max-width: 735px) {
  #frame .content .message-input .wrap .attachment {
    margin-top: 17px;
    right: 65px;
  }
}
#frame .content .message-input .wrap .attachment:hover {
  opacity: 1;
}
#frame .content .message-input .wrap button {
  float: right;
  border: none;
  width: 50px;
  cursor: pointer;
  background: #1abc9c;
  color: #f5f5f5;
  height: 50px;
}
@media screen and (max-width: 735px) {
  #frame .content .message-input .wrap button {
    padding: 16px 0;
  }
}
#frame .content .message-input .wrap button:hover {
  background: #26dab6;
}
#frame .content .message-input .wrap button:focus {
  outline: none;
}
.upload-btn-wrapper {
  position: relative;
  overflow: hidden;
  display: inline-block;
  float: right;
}

#frame .content .message-input .wrap .upload-btn-wrapper button {
  border: 0;
  color: gray;
  background-color: #fff;
  font-size: 20px;
  width: 50px;
}

#frame .content .message-input .wrap .upload-btn-wrapper input[type=file] {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  width: 50px;
  cursor: pointer;
}

#loadingchat,
#errorchat{
	position:fixed;
	top:0;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	background:#fff;
	opacity:0.5;
}
#loadingchat:before,
#errorchat:before{
	content:"";
	position:absolute;
	left:30%;
	margin-left:30px;
	top:50%;
	margin-top:-50px;
	bottom:0;
	right:0;
	background:url('../images/loading.gif');
	background-size:top center;
	background-size:50%;
	background-repeat:no-repeat;
}
#errorchat:before{
  background:url('../images/error.png');
  background-size: 50%;
  background-repeat: no-repeat;
}