html,
body {
  block-size: 100%;
}

body {
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #f1f6ff;
}

.header {
  margin-block-end: 30px;
  font-size: 1.8rem;
}

#conversation {
  max-inline-size: 800px;
  inline-size: 100%;
  block-size: 100%;
  max-block-size: 100%;
  overflow-y: scroll;
}

.message {
  margin-block-end: 10px;
  display: flex;
  flex-direction: row;
  align-items: baseline;
}

.message .content {
  background-color: #e8eaeb;
  padding: 6px 14px;
  border-radius: 8px;
  max-inline-size: 75%;
}

.message .user-icon {
  margin-inline-end: 10px;
  opacity: 0.7;
}

.message.patient {
  justify-content: end;
}

.message.patient .user-icon {
  margin-inline-end: 0;
  margin-inline-start: 10px;
}

.form-wrapper {
  margin-block-start: 20px;
  margin-block-end: 5px;
  display: flex;
  gap: 10px;
  flex-direction: column;

  /* keep the form at the bottom of the page or the bottom of the conversation, whichever is longer */
  position: sticky;
  top: 100%;
}

.form {
  display: flex;
  gap: 10px;
  padding-inline: 5px;
}

.input {
  flex: 1;
}

.bottom-buttons-wrapper {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-block-start: 10px;
}
