html {
  box-sizing: border-box;
  height: 100%;
}
body {
  height: 95dvh;
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  background-color: #f4f4f4;
}
ai-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height:99%;
  max-height: 100%;
  margin: 0.1rem auto;
  padding: 1rem;
  background-color: #fff;
  background-color: #f4f4f4;
  border-radius: 15px;
  max-width: 900px;
}
ai-output {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 141px;
  max-height: 63DVH;
  overflow-y: auto;
  scrollbar-width: thin;
  border-radius: 4px;
  margin-bottom: 1rem;
  padding: 0.1rem;
  white-space: pre-wrap;
  scrollbar-color: lightgray;
}
ai-form {
  display: flex;
  flex-direction: column;
}
ai-textarea,
ai-input-level,
ai-input-topic {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}
ai-input-topic {
  align-self: flex-end;
}
ai-input-level {
  align-self: flex-end;
}
#level-topic-wrapper{
  display: flex;
  justify-content: space-between;
  max-height: 50px;
  position:relative;
}
ai-textarea label,
ai-input-level label,
ai-input-topic label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
}
ai-textarea textarea,
ai-input-level input,
ai-input-topic input {
  border: 0.125rem solid #ebebeb;
  border-radius: 10px;
  padding: 0.5rem;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s ease;
  resize: none;
}
ai-textarea textarea:focus,
ai-input-level input:focus,
ai-input-topic input:focus {
  border: 0.125rem solid #70bfff !important;
}
ai-submit {
  display: flex;
  justify-content: flex-end;
}
ai-submit button {
  background-color: #6200ee;
  background-color: #202020;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  height: min-content;
  font-family: "open sans", sans-serif;
}
ai-submit button:hover {
  background-color: #3700b3;
  background-color: #494949;
}
.user-message,
.assistant-message {
  max-width: 84%;
  padding: 10px;
  border-radius: 8px;
  margin: 5px;
  white-space: pre-wrap;
  color:#353535;
  font-family: 'Sora';
    font-size: 0.875rem;
}
.user-message {
  background-color: #f0f0f0;
  background-color: #C0E4FF;
  background-color: white;
  align-self: flex-end;
  text-align: left;
}
.assistant-message {
  background-color: #C0E4FF;
  background-color:  #dcf0ff;
  align-self: flex-start;
  text-align: left;
  line-height: 1.44rem;
}
#messageInput::placeholder {
  color: #999;
}
#messageInput::-moz-placeholder {
  color: #999;
}
#messageInput:-ms-input-placeholder {
  color: #999;
}
#messageInput::-ms-input-placeholder {
  color: #999;
}
#levelInput::placeholder {
  color: #999;
}
#levelInput::-moz-placeholder {
  color: #999;
}
#levelInput:-ms-input-placeholder {
  color: #999;
}
#levelInput::-ms-input-placeholder {
  color: #999;
}
#topicInput::placeholder {
  color: #999;
}
#topicInput::-moz-placeholder {
  color: #999;
}
#topicInput:-ms-input-placeholder {
  color: #999;
}
#topicInput::-ms-input-placeholder {
  color: #999;
}
.assistant-wrapper {
  display: flex;
  align-items: center;
  max-width: 94%;
  border-radius: 8px;
}
.assistant-message {
  flex-grow: 1;
  white-space: pre-wrap;
}
.use-button {
  color: white;
  margin-left: 10px;
  padding: 4px 8px;
  font-size: 0.8rem;
  background: none;
  background-color: #f1f1f1;
  background-color: #659B8D;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.use-button:hover {
  background-color: #eaeaea;
  background-color: #408171;
}
#ai-clearBtn {
  background-color: transparent;
  color: brown;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  transition: border-color 0.2s ease;
  max-width: fit-content;
  align-self: flex-end;
  font-family: 'Outfit';
    letter-spacing: 0.03em;
}
#ai-title{
  color: #333;
  align-self: center;
  font-family: 'Outfit', sans-serif;
}
label[for="messageInput"] {
  font-family: 'inter', sans-serif;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.03em;
  font-weight: 200;
  color: #333;
}
.material-symbols-outlined {
  font-variation-settings:
  'FILL' 0,
  'wght' 400,
  'GRAD' 0,
  'opsz' 48;
  color:#6200ee;
}
input[type="text"] {
  font-family: 'inter', sans-serif;
  font-family: 'Outfit', sans-serif;
  font-family: 'Sora';
  font-size: 14px;
  font-weight: 300;
  letter-spacing: -0.03em;
  color: #333;
}
textarea {
  font-family: 'inter', sans-serif;
  font-family: 'Outfit', sans-serif;
  font-family: 'Sora';
  font-size: 15px;
  font-weight: 300;
  color: #1a1919;
}
#ai-description{
  font-family: 'inter', sans-serif;
  font-family: 'Outfit', sans-serif;
  font-family: 'Sora';
  font-size: 15px;
  font-weight: 300;
  color: #1a1919;
  line-height: 1.5rem;
}
#ai-description img {
  width: 15px;
  height: 15px;
}
.choice-btn {
  color:black;
  padding: 6px 14px;
  border: 1px solid #ccc;
  border-radius: 20px;
  background: transparent;
  cursor: pointer;
  user-select: none;
  align-items: center;
  margin-right: 10px;
  position: relative;
  font-family: 'Open Sans';
}
.choice-btn::before {
  visibility:hidden;
  content: "";
  width: 20px;
  margin-right: 6px;
}
.choice-btn.active::before {
  visibility: visible;
  content: "✓";
  font-weight: 600;
  color: #279c03;
}
.choice-btn.active {
  color: #333;
  border-color: #0056b3;
  border-color: #279c03;
}
#promptChoice {
  display: flex  ;
  justify-content: space-between;
  min-width: 50%;
}
.clear-area {
  display: flex;
  align-items: center;
  position: relative;
  justify-content: end;
}
.question-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #e0e0e0;
  color: #606060;
  font-size: 13px;
  font-family: 'Sora';
  font-weight: 300;
  margin-right: 8px;
  cursor: help;
  position: relative;
}
#ai-clear-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 10px;
  background-color: #333;
  color: white;
  font-size: 12px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 100;
  margin-bottom: 8px;
  pointer-events: none;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
}
#ai-clear-tooltip:after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}
.tippy-box[data-theme~='myCustomTheme'] {
  max-width: 300px;
  width: max-content;
  white-space: normal;
  overflow-wrap: break-word;
  letter-spacing: 0.03em;
}
.tippy-box[data-theme~='myCustomTheme'] .tippy-arrow {
}
#loader {
  position: absolute;
  top: -214%;
  left: 50%;
  z-index: 20000;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent;
}
#loader,
#loader img {
  background: none !important;
  background-color: transparent;
  width: 1.5625rem;
}
.choice-btn:hover {
  background: #eeeeee;
}
@media (min-width:1919px) {
  .assistant-message{
    font-size: 1rem;
  }
}
@media (max-width: 1024px) {
  ai-output {max-height: 55DVH;}
  #ai-description{
    font-size: 14px;
  }
  #topicInput,
  #levelInput{
    font-size: 12px;
  }
}
@media (max-width: 824px) {
  body {
    margin-right: 3rem;
  }
  ai-container {
    box-shadow: none;
  }
}
@media (max-width: 524px) {
  #level-topic-wrapper{
  flex-wrap: wrap;
}
}
