@keyframes ball {
  0% {
    margin-top: 0;
  }
  20% {
    margin-top: 3px;
  }
  80% {
    margin-top: -5px;
  }
}
@keyframes pop {
  0% {
    transform: scale(0.6);
  }
  30% {
    transform: scale(1.1);
  }
  60% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}
.mCSB_container {
  margin: 0 !important;
}

.mCSB_scrollTools {
  margin-right: -3px;
}

* {
  outline: none;
}

.alert {
  padding: 12px;
  background-color:#f5f9fb;
  color: black;
  width: 8%;
  border-radius: 20px;
  position: fixed;
  bottom: 75px;
  right: 70px;
  border: none;
  cursor: pointer; 
} 

.closebtn {
  margin-left: 15px;
  color:#001d67;
  font-weight: bold;
  float: right;
  font-size: 18px;
  line-height: 20px;
  cursor: pointer;
  transition: 0.3s;
}
.closebtn:hover {
  color: black;
}
.open-button {
  background-color: white; 
  border: none;
  cursor: pointer;
  position: fixed;
  bottom: 38px;
  right: 10px;
  
}
.chat {
  width: 300px;
  height: 425px;
  max-height: 500px;
  border-radius: 15px;
  background-color: rgba(0, 0, 0, 0.5);
  overflow: hidden;
  display: block;
  position: fixed;
  bottom: 120px;
  right: 20px;
  background-color:#212529;
  z-index: 20000;
  display: none;
}
 .chat-title {
  background-color: rgba(0, 0, 0, 0.233);
  width: 100%;
  height: 50px;
}
 .chat-title h2 {
  margin: 10px 0;
  padding: 0;
  color: #f0f0f0;
  font-weight: normal;
  font-size: 16px;
  display: inline-block;
  line-height: 30px;
}
 .chat-title .avatar {
  float: left;
  margin: 10px;
  padding: 0;
  width: 30px;
  height: 30px;
}
 .chat-title .avatar img {
  border-radius: 50%;
  width: 30px;
  height: 30px;
}
 .messages {
  width: 100%;
  height: calc(100% - 90px);
}
 .messages-content {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  box-sizing: border-box;
}
 .messages-content .message {
  max-width: calc(100% - 76px);
  padding: 8px;
  margin: 8px 0 8px 12px;
  border-radius: 5px;
  background-color: rgba(170, 187, 204, 0.1);
  color: #e3e3e3;
  float: left;
  font-size: 13px;
  position: relative;
  word-break: break-all;
  clear: both;
  animation: pop 0.3s forwards;
}
 .messages-content .message .timestamp {
  position: absolute;
  right: -40px;
  bottom: 0;
  font-size: 12px;
  color: #bababa;
} 
.messages-content .message.personal {
  float: right;
  margin: 8px 12px 8px 0;
}
 .messages-content .message.personal .timestamp {
  right: auto;
  left: -40px;
}
 .messages-content .message.typing {
  width: 30px;
  height: 16px;
}
 .messages-content .message.typing::after {
  content: "";
  border-radius: 50%;
  width: 3px;
  height: 3px;
  background-color: white;
  transform: translate(-50%, -50%);
  animation: ball 1.2s infinite linear;
}
 .messages-content .message.typing span {
  width: 3px;
  height: 3px;
  transform: translate(-50%, -50%);
}
 .messages-content .message.typing span::before, body .messages-content .message.typing span::after {
  content: "";
  border-radius: 50%;
  width: 3px;
  height: 3px;
  position: absolute;
  background-color: white;
  animation: ball 1.2s infinite linear;
}
 .messages-content .message.typing span::before {
  left: 8px;
  animation-delay: 0.3s;
}
.messages-content .message.typing span::after {
  right: 8px;
  animation-delay: -0.3s;
}

.action-box {
  background-color: rgba(0, 0, 0, 0.3);
  width: 100%;
  height: 40px;
}
 .action-box-input, .action-box-submit {
  box-sizing: border-box;
  border: 0;
  float: left;
}
 .action-box-input {
  width: calc(100% - 60px);
  height: 20px;
  background-color: transparent;
  resize: none;
  color: white;
  padding: 0 10px;
  line-height: 20px;
  font-size: 16px;
  letter-spacing: 1px;
  overflow: hidden;
}
.action-box-input::-webkit-input-placeholder {
  line-height: 20px;
  font-size: 13px;
  color:white;
}
 .action-box-submit {
  width: 60px;
  height: 40px;
  background-color: rgba(189, 195, 199, 0.2);
  color: white;
  cursor: pointer;
}
.action-box::after, body .chat-title::after {
  content: "";
  display: block;
  clear: both;
}
