chat {
  display: flex;
  position: relative;
  border: 1px solid #CCC;
  border-radius: 5px;
  padding: 15px;
  flex-direction: column;
  width: 800px;
  margin-left: auto;
  margin-right: auto;
}
chat user {
  display: inline-block;
  border-radius: 80px;
  width: 80px;
  height: 80px;
  text-align: center;
  line-height: 75px;
  margin-bottom: 20px;
}
chat user[left] {
  position: relative;
  background-color: white;
  border: 1px solid lightgray;
}
chat user[right] {
  position: absolute;
  right: 15px;
  border: 1px solid #9DD2FD;
  background-color: #C9E7FF;
}
chat message {
  display: block;
  color: black;
  border-radius: 5px;
  padding: 10px;
  margin-top: 10px;
  max-width: 600px;
  min-width: 10px;
}
chat message[left] {
  background-color: white;
  border: 1px solid lightgray;
  margin-left: 0;
  margin-right: auto;
}
chat message[right] {
  background-color: #C9E7FF;
  border: 1px solid #9DD2FD;
  margin-left: auto;
  margin-right: 0;
}
chat desc {
  display: block;
  color: grey;
  padding: 10px;
  margin-top: 10px;
  font-style: italic;
}
chat desc[left] {
  margin-left: 0;
  margin-right: auto;
}
chat desc[right] {
  margin-left: auto;
  margin-right: 0;
}
