*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Open Sans', sans-serif;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(#009584 0%, #069689 130px, #d9d9d7 130px, #d9d9d8 100%);
}

.container {
  position: relative;
  width: 1396px;
  max-width: 100%;
  height: calc(100vh - 40px);
  background: #fff;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.06),0 2px 5px 0 rgba(0, 0, 0, 0.06);
  display: flex;
  overflow-y: hidden;
}

.container .LeftSide{
  position: relative;
  flex: 30%;
  background-color: white;
  border-right: 1px solid rgba(0, 0, 0, 0.2);
}

.header{
  position: relative;
  width: 100%;
  height: 60px;
  background: #ededed;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
}

/* Main User */

.userimg {
  position: relative;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 50%;
}

.cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header h4 {
  position: absolute;
  left: 70px;
}

.nav_icons {
  display: flex;
}

.nav_icons li {
  display: flex;
  list-style: none;
  cursor: pointer;
  color: #b0b0b0;
  font-size: 1.5rem;
  margin-left: 22px;
}

/* Notifications */

.notifications {
  position: relative;
  width: 100%;
  height: 80px;
  background: #8edafc;
  display: flex;
  align-items: center;
  padding: 0 15px;
  cursor: pointer;
}

.notifications_icon {
  color: #8edafc;
  background-color: white;
  padding: 10px;
  border-radius: 50%;
  font-size: 1.5rem;
  margin-right: 10px;
}

.notifications_text h5 {
  text-decoration: underline;
  color: #7d7d7d;
}

/* Search Chat  */

.search_chat {
  position: relative;
  width: 100%;
  height: 50px;
  background: #fafafa;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 15px;
}

.search_chat div {
width: 100%;
}

.search_chat div input{
  width: 100%;
  outline: none;
  border: none;
  background: white;
  padding: 6px;
  height: 38px;
  border-radius: 30px;
  padding-left: 40px;
}

.search_chat div input::placeholder {
color: #b0b0b0;
}

.search_chat div i {
  position: absolute;
  left: 30px;
  top: 14px;
  font-size: 1.2rem;
  color: #b0b0b0;
}

/* Chat List */

.chatList {
  position: relative;
  height: calc(100% - 110px);
  overflow-y: auto;
}

.chatList .contact {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  cursor: pointer;
}

.active {
  background: #ebebeb;
}

.chatList .contact:hover {
  background: #f5f5f5;
}

.chatList .contact .imgList {
  position: relative;
  min-width: 45px;
  height: 45px;
  overflow: hidden;
  border-radius: 50%;
  margin-right: 10px;
}

.chatList .contact .infoList {
  position: relative;
  width: 100%;
}

.chatList .contact .infoList .headList {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.chatList .contact .infoList .headList h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #111;
}

.chatList .contact .infoList .headList .time {
  font-size: 0.75rem;
  color: #aaa;
}

.message_p_list {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.message_p_list p {
  color: #aaa;
  display: -webkit-box; -webkit-line-clamp: 1;
  font-size: 0.5rem;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Chat Box */

.container .RightSide {
  position: relative;
  flex: 70%;
  background-color: #e6ddd8;
}

.container .RightSide::before {
  content: '' ;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url(img/background.png);
}

.imgChatBox {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.imgChatBox h4 {
  font-weight: 500;
  line-height: 1.2rem;
  margin-left: 15px;
}

.imgChatBox h4 span{
  font-size: 0.8rem;
  color: #555;
}

.chatBox {
  position: relative;
  width: 100%;
  height: calc(100% - 120px);
  padding: 50px;
  overflow-y: auto;
}

.message {
  position: relative;
  display: flex;
  width: 100%;
  margin: 5px 0;
}

.message p {
  position: relative;
  right: 0;
  text-align: right;
  max-width: 65%;
  padding: 12px;
  background: #dcf8c6;
  border-radius: 10px;
  font-size: 0.9rem;
}

.message p span {
  display: block;
  margin-top: 5px;
  font-size: 0.85rem;
  opacity: 0.5;
}

.sent {
  justify-content: flex-end;
}

.message.sent ::before {
  content: '';
  position: absolute;
  top: 0;
  right: -12px;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #dcf8c6 0%, #dcf8c6 50%, transparent 50%, transparent);
}

.received {
  justify-content: flex-start;
}

.received p {
  background: #fff;
  text-align: left;
}

.message.received ::before {
  content: '';
  position: absolute;
  top: 0;
  left: -12px;
  width: 20px;
  height: 20px;
  background: linear-gradient(225deg, #fff 0%, #fff 50%, transparent 50%, transparent);
}

/* Chat Input */

.chatBox_Input{
  position: relative;
  width: 100%;
  height: 60px;
  background: #f0f0f0;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatBox_Input i{
  cursor: pointer;
  font-size: 1.8rem;
  color: #51585c;
}

.chatBox_Input input {
  position: relative;
  width: 90%;
  margin: 0 20px;
  padding: 10px 20px;
  border: none;
  outline: none;
  border-radius: 30px;
  font-size: 1rem;
}