.wrapper {
  display: flex;
  align-items: flex-start;
}

.wrapper:hover .edit {
  visibility: visible;
}

.wrapper:hover .trash {
  visibility: visible;
}

.messageContent {
  width: 100%;
}

.avatar {
  margin-right: 0.5em;
}

.message {
  display: flex;
  align-items: baseline;
  margin-bottom: 0.3em;
}

.name {
  font-weight: 600;
  margin-right: 0.5em;
}

.date {
  font-size: 0.8em;
  color: var(--grey-color-dark);
  margin-right: 0.2em;
}

.modified {
  font-size: 0.8em;
  color: var(--grey-color-dark);
  margin-right: 0.4em;
}

.edit {
  color: var(--grey-color-dark);
  visibility: hidden;
}

.edit:hover {
  color: var(--primary-color-dark);
  cursor: pointer;
}

.trash {
  color: var(--grey-color-dark);
  visibility: hidden;
  margin-left: 0.5em;
}

.trash:hover {
  color: var(--error-color);
  cursor: pointer;
}

.editInput {
  flex-shrink: 0;
  display: flex;
}

.editInput button {
  margin-left: 0.5em;
}

.previewMessageDelete {
  margin-top: 2em;
}

@media only screen and (max-width: 480px) {
  .message {
    flex-direction: column;
  }
}
