@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

*, *:before, *:after {
    box-sizing: border-box;
  }
  
  :root {
    --white: #fff;
    --black: #000;
    --bg: #f8f8f8;
    --grey: #999;
    --dark: #1a1a1a;
    --light: #e6e6e6;
    --wrapper: 100%;
    --yellow: #fed97e;
  }

  html
  {
      height:100%;
  }

  img
  {
    max-width:100%;
    height:auto;
  }
 ul
 {
     margin:0px;
     padding:0px;
     list-style: none;
 }
  body {
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    background-size: cover;
    background-repeat: none;
    height: 100%;
    margin:0px;
  }
  
  .wrapper {
    position: relative;
    left: 50%;
    width: var(--wrapper);
    height: 100%;
    -webkit-transform: translate(-50%, 0);
            transform: translate(-50%, 0);
  }
  
  .container {
    position: relative;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    -webkit-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
  }
  .container .left {
    float: left;
    width: 17.6%;
    height: 100%;
    border: 1px solid var(--light);
    background-color: var(--white);
    background:#f5f5f5;
  }
  .container .left .top {
	position: relative;
	width: 100%;
	height: 46px;
	padding: 10px 20px;
}
  .container .left .top:after {
    position: absolute;
    bottom: 0;
    left: 50%;
    display: block;
    width: 80%;
    height: 1px;
    content: '';
    background-color: var(--light);
    -webkit-transform: translate(-50%, 0);
            transform: translate(-50%, 0);
  }
  .container .left input {
    float: left;
    width: 188px;
    height: 42px;
    padding: 0 15px;
    border: 1px solid var(--light);
    background-color: #eceff1;
    border-radius: 21px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
  }
  .container .left input:focus {
    outline: none;
  }
  .container .left a.search {
    display: block;
    float: left;
    width: 42px;
    height: 42px;
    margin-left: 10px;
    border: 1px solid var(--light);
    background-color: var(--yellow);
    background-image: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/382994/name-type.png");
    background-repeat: no-repeat;
    background-position: top 12px left 14px;
    border-radius: 50%;
  }
  .container .left .people {
	margin-left: -1px;
	border-right: 1px solid var(--light);
	border-left: 1px solid var(--light);
	width: calc(100% + 0px);
	height:calc(100% - 46px);
	overflow-y: auto;
	overflow-x: hidden;
}
  .container .left .people .person {
    position: relative;
    width: 100%;
    padding:10% 5%;
    cursor: pointer;
    background-color: var(--white);
  }
  .container .left .people .person:after {
    position: absolute;
    bottom: 0;
    left: 50%;
    display: block;
    width: 100%;
    height: 1px;
    content: '';
    background-color: var(--light);
    -webkit-transform: translate(-50%, 0);
            transform: translate(-50%, 0);
  }
  .container .left .people .person img {
    float: left;
    width: 50px;
    height: 50px;
    margin-right: 12px;
    border-radius: 50%;
    object-fit:cover;
    border:#f5f5f5 solid 3px;
    display:block;
  }
  .container .left .people .person .name {
    font-size: 19px;
    line-height: 22px;
    color: var(--dark);
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
  }
  .container .left .people .person .time {
    font-size: 14px;
    position: absolute;
    top: 16px;
    right: 10%;
    padding: 0 0 5px 5px;
    color: var(--grey);
    background-color: var(--white);
  }
  .container .left .people .person .preview {
    font-size: 14px;
    display: inline-block;
    overflow: hidden !important;
    width: 70%;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--grey);
  }
  .container .left .people .person.active, .container .left .people .person:hover {
    /* margin-top: -1px;
    margin-left: -1px; */
    /* padding-top: 13px; */
    border: 0;
    background-color: var(--yellow);
    width: calc(100% + 0px);
  }
  .container .left .people .person.active span, .container .left .people .person:hover span {
    /* color: var(--white); */
    background: transparent;
  }
  .container .left .people .person.active:after, .container .left .people .person:hover:after {
    display: none;
  }
  .container .chat-scroll {
    position: relative;
    float: left;
    width: 62.4%;
    height: 100%;
  }
  .container .chat-scroll .top {
    width: 100%;
    height: 47px;
    padding: 7px 29px;
    background-color: #eceff1;
    
  }
  .container .chat-scroll .top span {
    font-size: 15px;
    color: var(--grey);
  }
  .container .chat-scroll .top span .name {
    color: var(--dark);
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 20px;
  }
  .container .chat-scroll .chat {
    position: relative;
    display: none;
    overflow: auto;
    padding: 0 35px 92px;
    border-width: 1px 1px 1px 0;
    border-style: solid;
    border-color: var(--light);
    height: calc(100% - 96px);
    -webkit-box-pack: end;
            /* justify-content: flex-end; */
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
            flex-direction: column;
            padding-top: 20px;
  }
  .container .chat-scroll .chat.active-chat {
    display: block;
    display: -webkit-box;
    display: flex;
  }
  .container .chat-scroll .chat.active-chat .bubble {
    -webkit-transition-timing-function: cubic-bezier(0.4, -0.04, 1, 1);
            transition-timing-function: cubic-bezier(0.4, -0.04, 1, 1);
  }
  .container .chat-scroll .chat.active-chat .bubble:nth-of-type(1) {
    -webkit-animation-duration: 0.15s;
            animation-duration: 0.15s;
  }
  .container .chat-scroll .chat.active-chat .bubble:nth-of-type(2) {
    -webkit-animation-duration: 0.3s;
            animation-duration: 0.3s;
  }
  .container .chat-scroll .chat.active-chat .bubble:nth-of-type(3) {
    -webkit-animation-duration: 0.45s;
            animation-duration: 0.45s;
  }
  .container .chat-scroll .chat.active-chat .bubble:nth-of-type(4) {
    -webkit-animation-duration: 0.6s;
            animation-duration: 0.6s;
  }
  .container .chat-scroll .chat.active-chat .bubble:nth-of-type(5) {
    -webkit-animation-duration: 0.75s;
            animation-duration: 0.75s;
  }
  .container .chat-scroll .chat.active-chat .bubble:nth-of-type(6) {
    -webkit-animation-duration: 0.9s;
            animation-duration: 0.9s;
  }
  .container .chat-scroll .chat.active-chat .bubble:nth-of-type(7) {
    -webkit-animation-duration: 1.05s;
            animation-duration: 1.05s;
  }
  .container .chat-scroll .chat.active-chat .bubble:nth-of-type(8) {
    -webkit-animation-duration: 1.2s;
            animation-duration: 1.2s;
  }
  .container .chat-scroll .chat.active-chat .bubble:nth-of-type(9) {
    -webkit-animation-duration: 1.35s;
            animation-duration: 1.35s;
  }
  .container .chat-scroll .chat.active-chat .bubble:nth-of-type(10) {
    -webkit-animation-duration: 1.5s;
            animation-duration: 1.5s;
  }
  .container .chat-scroll .write {
    position: absolute;
    bottom: 1px;
    left: 0;
    /* height: 50px; */
    padding-left: 0px;
    border: 1px solid var(--light);
    background-color: #eceff1;
    width: calc(100%);
    border-radius: 0;
    /* display: flex; */
  }
  .container .chat-scroll .write input {
    font-size: 16px;
    float: left;
    width: 88%;
    height: 40px;
    padding: 0 10px;
    color: var(--dark);
    border: 0;
    outline: none;
    background-color: #eceff1;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
  }
  .container .chat-scroll .write .write-link.attach::before {
    display: inline-block;
    float: left;
    width: 50px;
    height: 50px;
    content: '';
    background-image: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/382994/attachment.png");
    background-repeat: no-repeat;
    background-position: center;
    background-color: #222;
  }
  .container .chat-scroll .write .write-link.smiley:before {
    display: inline-block;
    float: left;
    width: 20px;
    height: 42px;
    content: '';
    background-image: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/382994/smiley.png");
    background-repeat: no-repeat;
    background-position: center;
  }
  .container .chat-scroll .write .write-link.send:before {
    display: inline-block;
    float: left;
    width: 50px;
    height: 50px;
    margin-left: 0px;
    content: '';
    background-image: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/382994/send.png");
    background-repeat: no-repeat;
    background-position: center;
    background-color: #001e28;
  }
  .send
  {
    margin:0px;
    width: 50px;
    height: 50px;
    padding:0px;
    cursor: pointer;
    border:none;
    position: absolute;
    right: 0px;
  }
  .container .chat-scroll .bubble {
    font-size: 15px;
    position: relative;
    display: inline-block;
    clear: both;
    margin-bottom: 8px;
    padding: 13px 14px;
    vertical-align: top;
    border-radius: 5px;
    font-weight:300;
  }
  .container .chat-scroll .bubble:before {
    position: absolute;
    top: 19px;
    display: block;
    width: 8px;
    height: 6px;
    content: '\00a0';
    -webkit-transform: rotate(29deg) skew(-35deg);
            transform: rotate(29deg) skew(-35deg);
  }
  .container .chat-scroll  .chat-bubble-container .bubble.you {
    float: left;
    color: var(--dark);
    background-color: #f5f5f5;
    align-self: flex-start;
  }
  .container .chat-scroll .bubble.you:before {
    /* left: -3px;
    background-color: var(--yellow); */
  }
  .container .chat-scroll .bubble.me {
    float: right;
    color: var(--dark);
    background-color: #eceff1;
    align-self: flex-end;
    -webkit-animation-name: slideFromRight;
            animation-name: slideFromRight;
  }
  .container .chat-scroll .bubble.me:before {
    /* right: -3px;
    background-color: #eceff1; */
  }
  .container .chat-scroll .conversation-start {
    position: relative;
    width: 100%;
    margin-bottom: 27px;
    text-align: center;
  }
  .container .chat-scroll .conversation-start span {
    font-size: 14px;
    display: inline-block;
    color: var(--grey);
  }
  .container .chat-scroll .conversation-start span:before, .container .chat-scroll .conversation-start span:after {
    position: absolute;
    top: 10px;
    display: inline-block;
    width: 30%;
    height: 1px;
    content: '';
    background-color: var(--light);
  }
  .container .chat-scroll .conversation-start span:before {
    left: 0;
  }
  .container .chat-scroll .conversation-start span:after {
    right: 0;
  }

  .right
  {
    float: left;
    width: 20%;
    height: 100%;
    border: 1px solid var(--light);
    background-color: var(--white);
  }
  
  /* @keyframes slideFromLeft {
    0% {
      margin-left: -200px;
      opacity: 0;
    }
    100% {
      margin-left: 0;
      opacity: 1;
    }
  }
  @-webkit-keyframes slideFromLeft {
    0% {
      margin-left: -200px;
      opacity: 0;
    }
    100% {
      margin-left: 0;
      opacity: 1;
    }
  }
  @keyframes slideFromRight {
    0% {
      margin-right: -200px;
      opacity: 0;
    }
    100% {
      margin-right: 0;
      opacity: 1;
    }
  }
  @-webkit-keyframes slideFromRight {
    0% {
      margin-right: -200px;
      opacity: 0;
    }
    100% {
      margin-right: 0;
      opacity: 1;
    }
  }
   */

.chat-bubble-container{
    margin-bottom:10px;
  }

  .chat-member-name
  {
      font-size:15px;
  }

  .msg-time
  {
      font-size:13px;
      color: #a8aab1;
      font-weight: 300;
  }

  .chat-bubble-container.me
  {
      text-align: right;
  }

  .chat-scroll .top img
  {
      float: left;
      margin-right:10px;
  }

  .container .right .top {
	position: relative;
	width: 100%;
	height: 46px;
    padding:10px 10%;
    background:#001e28;
    color:#ffffff;
}


.container .right .online-people {
	margin-left: -1px;
	border-right: 1px solid var(--light);
	border-left: 1px solid var(--light);
	width: calc(100% + 2px);
	height: calc(100% - 46px);
	overflow-y: auto;
    overflow-x: hidden;
    background:#002531;
    color: var(--white);
}

.container .right .online-people li
{
    padding:20px 10%;
    white-space: nowrap; 
  width: 50px; 
  overflow: hidden;
  text-overflow: ellipsis;
  width:100%;
}

.container .right .online-people li span
{
    width:10px;
    height:10px;
    border-radius:50%;
    display:inline-block;
    margin-right:5px;
}


.container .right .online-people li.active span
{
    background:#00c851;
}

.container .right .online-people li.ideal span
{
   
    background:#e0a016;
}

.container .right .online-people li.busy span
{
   
    background:#e70717;
}

.attach
{
  background:#222;
}

.person {
	overflow: hidden;
	display: inline-flex;
}
.no-msg{
  align-items: center;
  justify-content: center;
  overflow: hidden !important;
  padding-bottom: 0px !important;
}


.typing-text {
	position: fixed;
	 bottom: 50px; 
	color: #909090;
	font-size: 12px;
	font-style: italic;
	z-index: 999;
  background: #ffffff;
  padding:0px 10px;
}

.mobile-group-name
{
  display: none;
}

.chat-scroll .top .name {
	font-size: 19px !important;
	color: #222222 !important;
}
.char-prev
{
  font-size:24px !important;
  margin-right:25px;
}

.group-members
{
  border-left: #ffffff solid 1px;
  margin-left:15px;
}

.group-members a
{
  font-size:24px !important;
  font-size:22px;
  padding:0px 0px 0px 15px;
}

.close-btn a
{
  color: #ffffff;
  font-size: 22px;
}

.char-prev, .group-members, .close-btn
{
  display: none;
}

.msg-came-time {
	font-size: 13px;
	color: #a8aab1;
	font-weight: 300;
}
.message-count {
	text-align: right;
}
.msg-count {
	width: 34px;
	height: 34px;
	background: #001e28;
	border-radius: 50%;
	display: block;
	text-align: center;
	color: #ffffff;
	line-height: 32px;
	float: right;
	margin-top: 2px;
}

.message-count
{
  display:none;
}

.bubble img, .bubble video
{
  width:500px; 
  display: block;
}

.text-field{
  width: 100%;
  float: left;
  background: #eceff1;
}
.attach-image {
  padding-top: 10px;
  padding-left: 10px;
  width: 100%;
  float: left;
  border-bottom: 1px solid #ccc;
}
.attach-image img, .selected-file, .attach-image video{
  width: 110px;
  height: 110px;
  object-fit: cover;
  float: left;
  background: #ccc;
  margin-bottom: 10px;
}
.selected-file{
  margin-right: 10px;
  position: relative;
}
.selected-file i{
  position: absolute;
  right: 10px;
  top: 10px;
  color: #fff;
}
/* Responsive */

@media (max-width: 575.98px) {

.container .left {
    width: 100%;
  }

  .container .left .people .person {
    padding: 2% 5%;
    display:flex;
    align-items: center;
  }

  .container .left .people .person .name {
    font-size: 20px;
    font-weight: 400;
  }

  .container .chat-scroll {
    width: 100%;
    display: none;
  }

.right {
    width: 49%;
    display: none;
    float: right;
    position: absolute;
    right: 0px;
  }

  .username
  {
    display: none;
  }

  .mobile-group-name
  {
    font-weight:500;
    font-size:22px;
    display: block;
  }

.chat-icon
{
  display: none;
}

.container .chat-scroll .top {
	width: 100%;
	height: auto;
	display: flex;
	align-items: center;
}

.right .top
{
  display: flex;
  justify-content: space-between;
}

.char-prev, .group-members, .close-btn
{
  display: block;
}

.container .left .people .person .name
{
  overflow: hidden !important;
  /* width: 70%; */
  white-space: nowrap;
  text-overflow: ellipsis;
}
.message-count
{
  display:block;
}

.bubble img, .bubble video
{
  width:300px; 
}
.attach-image img, .selected-file, video {
  width: 90px;
  height: 90px;
}

 }

@media (min-width: 576px) and (max-width: 767.98px) { 

  .container .left {
    width: 100%;
  }

  .container .left .people .person {
    padding: 2% 5%;
    display:flex;
    align-items: center;
  }

  .container .left .people .person .name {
    font-size: 20px;
    font-weight: 400;
  }

  .container .chat-scroll {
    width: 100%;
    display: none;
  }

.right {
    width: 49%;
    display: none;
    float: right;
    position: absolute;
    right: 0px;
  }

  .username
  {
    display: none;
  }

  .mobile-group-name
  {
    font-weight:500;
    font-size:22px;
    display: block;
  }

.chat-icon
{
  display: none;
}

.container .chat-scroll .top {
	width: 100%;
	height: auto;
	display: flex;
	align-items: center;
}

.right .top
{
  display: flex;
  justify-content: space-between;
}

.char-prev, .group-members, .close-btn
{
  display: block;
}



.message-count {
	text-align: right;
	position: absolute;
	right: 40px;
}

.message-count
{
  display:block;
}

.bubble img, .bubble video
{
  width:350px; 
}
.attach-image img, .selected-file, video {
  width: 130px;
  height: 130px;
}

 }

@media (min-width: 768px) and (max-width: 991.98px) { 

  .person {
  
    display: block;
  }

  .container .left .people .person 
  {
    text-align: center;
  }

  .container .left .people .person img {
    float: none;
    display: inline-block;
    margin-right:0px;
  }

  .container .left .people .person .name {
    font-size: 15px;
    width:100%;
    text-align: center;
    display: block;
    font-weight:500;
  }

  .container .chat-scroll .top {
    height: auto;
  }

  .bubble img, .bubble video
{
  width:300px; 
}
.attach-image img, .selected-file, video {
  width: 83px;
  height: 83px;
}


 }

@media (min-width: 992px) and (max-width: 1199.98px) { 


  .container .left .people .person .name {
    font-size: 16px;
  }
  .container .left .people .person img {
    width: 45px;
    height: 45px;
    margin-right:5px;
  }

  .container .chat-scroll .top {
    height: auto;
  }
  .attach-image img, .selected-file, video {
    width: 115px;
    height: 115px;
  }


 }

@media (min-width: 1200px) {  }