body {
  background-color: #fff;
  margin: 0;
  padding: 1rem;
}
a {
  color: rgb(0, 122, 255);
  text-decoration: none;
}
.chat {
  display: flex;
  align-items: flex-end;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.chat + .chat {
  margin-top: 1.5rem;
}
.chat.incoming:before {
  content: 'FB';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  background-color: rgb(142, 142, 147);
  border-radius: 50%;
  color: #fff;
  font-size: 0.7rem;
  margin-right: 0.6em;
}
.messages {
  max-width: 190px;
}
.messages > p {
  display: table;
  border-radius: 17px;
  font-size: 1rem;
  margin: 0;
  padding: 7px 12px;
  word-break: break-word;
  /*TODO: transition: all 1s ease-in-out;*/
}
.messages > p + p {
  margin: 0.2rem 0 0;
}
.chat.incoming .messages > p {
  background-color: rgb(229, 229, 234);
  color: #000;
}
.messages span {
  display: block;
  float: left;
  width: 12px;
  height: 12px;
  background-color: rgb(142, 142, 147);
  border-radius: 50%;
  margin: 6px 1px;
  opacity: 0.4;
}
.messages span:nth-of-type(1) {
  animation: 1s blink infinite 0.3333s;
}
.messages span:nth-of-type(2) {
  animation: 1s blink infinite 0.6666s;
}
.messages span:nth-of-type(3) {
  animation: 1s blink infinite 0.9999s;
}

@keyframes blink {
  50% {
    opacity: 1;
  }
}
