html,
body {
  max-height: 100%;
}

body {
  background-color: #f4f7f6;
  margin-top: 20px;
  overflow: hidden;
}

.full-height {
  height: 97vh;
}

.user-name {
  padding: 20px;
}

.remove-welcome {
  opacity: 0;
  visibility: hidden;
  transition: opacity 4s, visibility 4s;
}

.user-name > img {
  height: 2em;
}

.welcome-user {
  display: flex;
  justify-content: center;
  padding: 5px 20px;
  font-size: 1.5em;
  font-weight: 450;
  color: #1d8ecd;
}
.card {
  height: 80%;
  width: 60%;
  background: #fff;
  transition: 0.5s;
  border: 0;
  margin: 0 auto;
  border-radius: 0.55rem;
  position: relative;
  -webkit-box-shadow: 1px 1px 5px 1px rgba(200, 205, 208, 0.8);
  -moz-box-shadow: 1px 1px 5px 1px rgba(200, 205, 208, 0.8);
  box-shadow: 1px 1px 5px 1px rgba(200, 205, 208, 0.8);
}

.blur {
  -webkit-filter: blur(5px);
  -ms-filter: blur(5px);
  filter: blur(5px);
  background-color: #efefef;
  pointer-events: none;
}

.chat {
  height: 100%;
  background: white;
  display: flex;
  flex-direction: column;
}

.chat .chat-header {
  padding: 15px 20px;
  border-bottom: 2px solid #f4f7f6;
}

.chat .chat-header img {
  float: left;
  border-radius: 40px;
  width: 40px;
}

.chat .chat-header .chat-about {
  float: left;
  padding-left: 10px;
}

.chat .chat-history {
  min-height: 95%;
  overflow-y: scroll;
  padding: 20px;
  border-bottom: 2px solid #fff;
}

.chat .chat-history ul {
  padding: 0;
}

.chat .chat-history ul li {
  list-style: none;
  margin-bottom: 30px;
}

.chat .chat-history ul li:last-child {
  margin-bottom: 0;
}

.chat .chat-history .message-data {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

.chat .chat-history .message-data img {
  border-radius: 40px;
  width: 40px;
}

.chat .chat-history .message-data .user-name {
  color: #1d8ecd;
}

.chat .chat-history .message-data-time {
  color: #434651;
  padding-left: 6px;
}

.chat .chat-history .message {
  color: #444;
  padding: 1em 1.5em;
  line-height: 26px;
  font-size: 16px;
  border-radius: 7px;
  display: inline-block;
  position: relative;
  margin-top: 1em;
}

.chat .chat-history .message:after {
  bottom: 100%;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
  border: 10px solid transparent;
  border-bottom-color: #fff;
  margin-left: -2em;
}

.chat .chat-history .my-message {
  background: #90d4e3;
}

.chat .chat-history .my-message:after {
  bottom: 100%;
  right: 20px;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
  border: 10px solid transparent;
  border-bottom-color: #90d4e3;
}

.chat .chat-history .other-message {
  background: #e8f1f3;
  text-align: right;
}

.chat .chat-history .other-message:after {
  border-bottom-color: #e8f1f3;
  left: 55px;
}

.chat .chat-message {
  padding: 0 20px 20px;
  background: white;
}

.online,
.offline,
.me {
  margin-right: 2px;
  font-size: 8px;
  vertical-align: middle;
}

.online {
  color: #86c541;
}

.offline {
  color: #e47297;
}

.me {
  color: #1d8ecd;
}

.float-right {
  float: right;
}

.clearfix:after {
  visibility: hidden;
  display: block;
  font-size: 0;
  content: " ";
  clear: both;
  height: 0;
}

@media only screen and (max-width: 767px) {
  .chat-app .people-list {
    height: 465px;
    width: 100%;
    overflow-x: auto;
    background: #fff;
    left: -400px;
    display: none;
  }

  .chat-app .people-list.open {
    left: 0;
  }

  .chat-app .chat {
    margin: 0;
  }

  .chat-app .chat .chat-header {
    border-radius: 0.55rem 0.55rem 0 0;
  }

  .chat-app .chat-history {
    height: 300px;
    overflow-x: auto;
  }
}

@media only screen and (min-width: 768px) and (max-width: 992px) {
  .chat-app .chat-list {
    height: 650px;
    overflow-x: auto;
  }

  .chat-app .chat-history {
    height: 600px;
    overflow-x: auto;
  }
}

@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape) and (-webkit-min-device-pixel-ratio: 1) {
  .chat-app .chat-list {
    height: 480px;
    overflow-x: auto;
  }

  .chat-app .chat-history {
    height: calc(100vh - 350px);
    overflow-x: auto;
  }
}

