.message-icon {
  //position: absolute;
  // bottom: 0rem;
  color: whitesmoke;
  border: #000000;
  position: absolute;
  margin: 0 0.1rem;
  bottom: 0.1rem;
  right: 0.3rem;

  z-index: 5;
}

.chat {
  flex: 1;
  //width: 300px;
  //border: solid 1px #eee;
  display: flex;
  flex-direction: column;
  margin: 0.8rem 0rem;
}

.messages {
  //margin-top: 30px;
  display: flex;
  flex-direction: column;
}

.message {
  border-radius: 20px;
  padding: 0.25rem 0.8rem;
  //margin-top: 5px;
  // margin-bottom: 5px;
  //display: inline-block;

  .message-img {
    max-width: 10rem;
    max-height: 10rem;
    object-fit: contain;
    margin: 0.2rem;
  }
}

.yours {
  align-items: flex-start;
}
.msgmargin {
  margin-top: 0.1rem;
  margin-bottom: 0.1rem;
}

.yours .message {
  margin-right: 20%;
  background-color: #eee;
  position: relative;
}

.yours .message.last:before {
  content: "";
  position: absolute;
  z-index: 0;
  bottom: 0;
  left: -7px;
  height: 20px;
  width: 20px;
  background: #eee;
  border-bottom-right-radius: 15px;
}
.yours .message.last:after {
  content: "";
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: -10px;
  width: 10px;
  height: 20px;
  background: white;
  border-bottom-right-radius: 10px;
}

.mine {
  align-items: flex-end;
}

.mine .message {
  color: white;
  margin-left: 25%;
  background: linear-gradient(to bottom, #00d0ea 0%, #0085d1 100%);
  background-attachment: fixed;
  position: relative;
  padding-bottom: 0.6rem;
}

.mine .message.last:before {
  content: "";
  position: absolute;
  z-index: 0;
  bottom: 0;
  right: -8px;
  height: 20px;
  width: 20px;
  background: linear-gradient(to bottom, #00d0ea 0%, #0085d1 100%);
  background-attachment: fixed;
  border-bottom-left-radius: 15px;
}

.mine .message.last:after {
  content: "";
  position: absolute;
  z-index: 1;
  bottom: 0;
  right: -10px;
  width: 10px;
  height: 20px;
  background: white;
  border-bottom-left-radius: 10px;
}
