@import url("https://fonts.googleapis.com/css?family=Lato");
* {
  box-sizing: border-box;
}
body {
  font-family: 'Lato', sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #ffe9ef;
}
h1 {
  margin: 0;
}
.status {
  font-size: 100px;
  left: 50%;
  top: 50%;
  color: #fed9e4;
  text-shadow: 0 0 5px #fec8d8;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .status {
    font-size: 200px;
    transform: translate(-50%, -50%) rotate(-90deg) translate(0, -140px) translate(0, -50%);
    position: absolute;
  }
}
.chat {
  border-radius: 15px;
  box-shadow: 0 0 20px #e0bbe4;
  background: #fff;
  width: 280px;
  height: 250px;
  display: flex;
  justify-content: flex-end;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  padding: 0 15px;
}
@media (min-width: 768px) {
  .chat {
    width: 280px;
    height: 400px;
  }
}
.chat__header {
  position: absolute;
  top: 0;
  left: 0;
}
.header {
  align-items: center;
  border-radius: 15px 15px 0 0;
  background: #8a9197;
  color: #fff;
  display: flex;
  height: 60px;
  padding: 20px;
  width: 100%;
  text-transform: uppercase;
  z-index: 2;
  transform: translate(0, 0);
}
.header__members {
  display: flex;
  align-items: center;
  padding-left: 15px;
}
.header__member {
  height: 30px;
  width: 30px;
  border-radius: 100%;
  background: linear-gradient(25deg, #624545, #fff);
  background-image: url("https://tse3.mm.bing.net/th/id/OIP.JJXLEDgvZ3cbszo7TNJxJQHaJQ?rs=1&pid=ImgDetMain");
  background-size: cover;
  margin-right: 4px;
}
.header__member--server {
  background-image: url("https://www.mouse-sensitivity.com/uploads/monthly_2020_06/imported-photo-67287.jpeg.ad3da5c911468b99370b56a3c729a44c.jpeg");
}
.message {
  display: none;
  flex: 0 0 auto;
  margin-bottom: 5px;
}
.message--browser {
  justify-content: flex-start;
}
.message--browser .message__content {
  background: #eee;
}
.message--server {
  justify-content: flex-end;
}
.message--server .message__content {
  background: #c1b8c2;
  color: #fff;
  justify-content: flex-end;
  text-align: right;
}
.message__content {
  border-radius: 15px;
  min-height: 50px;
  align-items: center;
  display: inline-flex;
  background: #fff;
  padding: 10px;
}
.message--left {
  justify-content: center;
}
.message--left .message__content {
  background: #fff;
  color: #ccc;
}
.message--typing .message__content div {
  -webkit-animation: wave 0.5s ease infinite;
          animation: wave 0.5s ease infinite;
  border-radius: 100%;
  height: 8px;
  width: 8px;
  background: #b3b3b3;
  margin: 2px;
}
.message--typing .message__content div:nth-of-type(1) {
  -webkit-animation-delay: 0.1s;
          animation-delay: 0.1s;
}
.message--typing .message__content div:nth-of-type(2) {
  -webkit-animation-delay: 0.2s;
          animation-delay: 0.2s;
}
.message--typing .message__content div:nth-of-type(3) {
  -webkit-animation-delay: 0.3s;
          animation-delay: 0.3s;
}
@-webkit-keyframes wave {
  50% {
    transform: translate(0, -150%);
  }
}
@keyframes wave {
  50% {
    transform: translate(0, -150%);
  }
}