body {
  font-family: Calibri, sans-serif;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  height: 100vh;
  overflow: auto;
  padding: 0;
  margin: 0;
  background: #f9fafb;
}

button {
  background: #3b82f6;
  border-radius: 4px;
  color: white;
  border: none;
  outline: none;
  appearance: none;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 150ms ease;
}

button:hover {
  background: #2a68cc;
}

#app {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}

#loader {
  position: fixed;
  z-index: 999;
  inset: 0;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

#loader.hidden {
  display: none;
}

#load-model-button.hidden {
  display: none;
}

#load-text {
  display: none;
}

#loader.loading #load-text{
  display: unset;
}

#messages {
  margin: 12px auto 0;
  min-width: 500px;
  width: 70vw;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  overflow: auto;
  padding: 0 24px;
}

.message {
  display: flex;
  justify-content: center;
  flex-direction: column;
  margin-bottom: 30px;
  padding: 4px 20px;
  border: 1px solid #d3d4d6;
  border-radius: 6px;
  background: #fff; 
  max-width: calc(100% - 100px);
  min-width: 20px;
  opacity: 0;
}

.message:not(:empty) {
  opacity: 1;
}

.message-user {
  align-self: flex-end;
  background: #3b82f6;
  color: #f9fafb;
}

.message-assistant {
  align-self: flex-start;
}

#bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0;
}

#kerblio-face {
  display: flex;
  justify-content: center;
  font-size: 32px;
  font-family: Monaco, monospace;
}

#question-input {
  resize: none;
  border: 1px solid #000;
  min-width: 400px;
  padding: 12px;
  margin-top: 32px;
  overflow: hidden;
}

#question-input:disabled {
  background: rgba(0, 0, 0, 0.1);
}

.button-as-text {
  color: #3b82f6;
  background: none;
  padding: 0;
  border: none;
  cursor: pointer;
  margin-top: 12px;
}

.button-as-text:hover {
  background: none;
}