* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

.mainContainer {
    width: 100%;
    height: 100vh;
    background: #37393c;
    padding: 30px;
    position: relative;
}

.popContainer {
    position: absolute;
    width: 100%;
    height: 100vh;
    background: #777777;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0.7;
}

.screenContainer {
    position: absolute;
    width: 100%;
    height: 100vh;
    z-index: 2;
}

.btn {
    padding: 10px 20px;
    background: #fff;
    border: 0;
    outline: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: 400;
    border-radius: 30px;
}

.title {
    font-size: 18px;
    font-weight: 500;
}

.popup {
    width: 400px;
    background-color: #fff;
    border-radius: 6px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 0 30px 30px;
    color: #333;
}

.popup h2 {
    font-size: 24px;
    font-weight: 500;
    margin: 30px 0 10px;
}

.popup h3 {
    font-size: 18px;
    font-weight: 200;
}

.popup #clientNameSpan, #clientEmailSpan, #clientLanguageSpan {
    color: black;
    font-size: 18px;
    font-weight: 500;
}

.popup button {
    width: 100%;
    margin-top: 50px;
    padding: 10px 0;
    background: #6fd649;
    color: #fff;
    border: 0;
    outline: none;
    font-size: 18px;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
}

.userChatWindow {
    margin: 0;
    width: 100%;
    height: 100%;
    background: #a0a0a0;
    position: relative;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
}

.chatArea {
    margin: auto;
    width: 90%;
    height: 75%;
    outline: none;
    background: #fff;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
}

.messageInputArea {
    width: 90%;
    margin-left: 20px;
    margin-top: 10px;
    margin-bottom: 5px;
    outline: none;
    background: #fff;
    border-radius: 6px;
    display: flex;
    height: 40px;
}

.InfoArea {
    display: inline-block;
    width: 90%;
    height: 40px;
    margin-left: 20px;
    margin-top: 10px;
    margin-bottom: 5px;
    outline: none;
    background: #fff;
    border-radius: 6px;
}

.sendIcon {
    width: 21px;
    height: 21px;   
    margin-top: 10px;
    margin-left: 5px;
}

.messageInput {
    background-color: #e0e4e7;
    width: 90%;
    height: 30px;
    outline: none;
    border: none;
    box-shadow: none;
    border-radius: 4px;
    padding-left: 10px;
    margin-top: 5px;
    margin-left: 5px;
}

#windowInfo {
    font-size: 16px;
    font-weight: 500;
    margin-top: 12px;
    margin-left: 20px;
}

.chat {
  --rad: 20px;
  --rad-sm: 3px;
  font: 16px/1.5 sans-serif;
  display: flex;
  flex-direction: column;
  padding: 20px;
  width: 100%;
  max-width: 500px;
  overflow: scroll;
  padding-top: 30px;
}

.msg {
  position: relative;
  max-width: 75%;
  padding: 7px 15px;
  margin-bottom: 25px;
}

.msg.sent {
  border-radius: var(--rad) var(--rad-sm) var(--rad-sm) var(--rad);
  background: #42a5f5;
  color: #fff;
  /* moves it to the right */
  margin-left: auto;
}

.msg.rcvd {
  border-radius: var(--rad-sm) var(--rad) var(--rad) var(--rad-sm);
  background: #f1f1f1;
  color: #555;
  /* moves it to the left */
  margin-right: auto;
}

.msg.reactionsdiv {
  position: absolute;
  right: 20px;
  bottom: -20px;
  height: 20px;
  padding: 0px;
}

.msg.reactions {
  display: flex;
  flex-direction: row;
  padding-top: 15px;
}

.msg.typing {
  border-radius: var(--rad-sm) var(--rad) var(--rad) var(--rad-sm);
  background: #f1f1f1;
  color: #1aa698;
  /* moves it to the left */
  margin-right: auto;
  font-size: xx-small;
}

/* Improve radius for messages group */

.msg.sent:first-child,
.msg.rcvd+.msg.sent {
  border-top-right-radius: var(--rad);
}

.msg.rcvd:first-child,
.msg.sent+.msg.rcvd {
  border-top-left-radius: var(--rad);
}

/* time */

.msg::before {
  content: attr(data-time);
  font-size: 0.8rem;
  position: absolute;
  bottom: 100%;
  color: #888;
  white-space: nowrap;
  margin-top: 7px;
  /* Hidden by default */
  display: none;
}

.msg.sent::before {
  right: 15px;
}

.msg.rcvd::before {
  left: 15px;
}


/* Show time only for first message in group */

.msg:first-child::before,
.msg.sent+.msg.rcvd::before,
.msg.rcvd+.msg.sent::before {
  /* Show only for first message in group */
  display: block;
}