* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.main-frame {
  display: flex;
  flex-direction: row;
  max-height: 100vh;
}

.left-pane {
  display: flex;
  flex-direction: column;
  /* width: 260px; */
  min-width: 260px;
  background-color: #eceff1;
  overflow-y: scroll;
}

.right-pane {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 10px;
  margin-bottom: 10px;
  gap: 1em;
}

.chat-pane {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  height: 100vh;
}

.message-history {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  padding-left: 10px;
  padding-right: 10px;
  padding-top: 1em;
  padding-bottom: 1em;
  height: 100%;
  /* 260px is the left pane width */
  width: min(768px, calc(100vw - 260px));
  min-width: 300px;
  gap: 1em;
  overflow-y: scroll;
  /* Instead of max-width here, the messages have a max-width with padding. */
}

.user-message {
  background-color: #e3f2fd;
  align-self: flex-end;
  /* max-width: 70%; */
  border-radius: 10px;
  /* Width intended to be max 0.7*768px = 537 px*/
  max-width: 537px;
  /* TODO margin approach doesn't work because the max-width effects the 100% and the vh used below. */
  /* Instead, need to put this message into yet another div that has full width. */
  /* R margin pushes message box to the correct location */
  margin-right: max(calc((1vh - 537px)/2), 0px);
  /* L margin ensures overall width s.t. parent scrollbar pushed out to edge of screen */
  margin-left: max(calc((1vh - 537px)/2), 0px);
}

.ai-message {
  background-color: #eceff1;
  max-width: 768px;
  border-radius: 10px;
}

.composer-message-box {
  flex-grow: 1;
  min-height: 75px;
  border-radius: 10px;
  width: 100%;
  padding: 10px;
}

.llm-models {
  display: flex 1;
  flex-direction: column;
  gap: 1em;
  margin-left: 10px;
  margin-top: 10px;
}

.llm-models-header {
  display: flex;
  justify-self: center;
}

.llm-model {
  display: flex;
}

.selected-llm-model {
  font-weight: bold;
  display: flex;
}