
/* CHAT BOX */
.chat-box{
  max-width: 300px;
  margin: 0 auto;
  height: 320px;
  overflow-y: auto;
  position: relative;
}

.compose-box{
  max-width: 300px;
  margin: 0 auto;
}

/* MESSAGE BOX */

.message-box{
  margin: 1px 0;
}

.message-box::after {
  content: "";
  clear: both;
  display: table;
}

.message-box > div{
  background-color: #fff;
  border-radius: 8px 8px 8px 0;
  padding: 8px 12px;
  max-width: 80%;
  float: left;
}

.typing-box{
  background-color: #fff;
  border-radius: 8px 8px 8px 0;
  padding: 4px 12px;
  width: 140px;
  margin-left: 10px;
}

.message-box-2 > div{
  background-color: #007bff;
  color: white;
  border-radius: 8px 8px 0 8px;
  float: right;
}

.message-box img{
  max-width: 100%;
  max-height: 300px;
}

.message-box video{
  max-width: 100%;
  max-height: 300px;
}

/* LOADER */
.lds-ripple {
  display: inline-block;
  position: relative;
  width: 110px;
  height: 80px;
}

.lds-ripple div {
  background-color: black;
  position: absolute;
  border: 4px solid #fff;
  opacity: 1;
  border-radius: 100%;
  animation: lds-ripple 2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.lds-ripple div:nth-child(2) {
  animation-delay: -0.15s;
}

@keyframes lds-ripple {

  0% {
    top: 38px;
    left: 38px;
    width: 0;
    height: 0;
    opacity: 55;
  }

  100% {
    top: -14px;
    left: -9px;
    width: 90px;
    height: 90px;
    opacity: 0;
  }

}

.lds-ellipsis {
  display: inline-block;
  position: relative;
  width: 50px;
  height: 20px;
}
.lds-ellipsis div {
  position: absolute;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: black;
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
.lds-ellipsis div:nth-child(1) {
  left: 8px;
  animation: lds-ellipsis1 0.6s infinite;
}
.lds-ellipsis div:nth-child(2) {
  left: 8px;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(3) {
  left: 32px;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(4) {
  left: 56px;
  animation: lds-ellipsis3 0.6s infinite;
}
@keyframes lds-ellipsis1 {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes lds-ellipsis3 {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}
@keyframes lds-ellipsis2 {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(24px, 0);
  }
}
