@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-VariableFont_slnt,wght.ttf");
  font-weight: 300 500;
}
:root {
  --html_size_ref: 16px;
  --body_font-size: 1.2rem;
  --font-size-text: 1.2rem;
  --font_family: "Inter", BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
    sans-serif;
  --gray: #494342;
  --white: #fff;
  --white-dim: #f8f8f8;
  --overlay: rgb(28 27 26 / 82%);
  --bg_admin: rgb(53 43 43 / 92%);
  --bg_form_login: rgb(69 69 69 / 70%);
  --bg_pop_up: rgb(23 23 23 / 64%);
  --border_black: #1a1a1a;
  --text-black: #2d2d2d;
  --text-color: #2c2c2c;
  --title-color: #423e3e;
  --background-color: #877f7c;
  --button-green: #4CAF50;
  --button-blue: #4285F4;
  --button-hover-green: #45a049;
  --button-hover-blue: #357ae8;
  --border-color: #b5b5b5;
  --border-radius: 6px;
  --bkg-user: #bfebff;
  --bkg-system: #dcffe0;
}
@media (max-width: 768px) {
  :root {
    --font-size-text: 1.1rem;
  }
}
html {
  background-color: var(--bg_admin);
  font-size: var(--html_size_ref);
  font-family: var(--font_family);
  box-sizing: border-box;
  font-optical-sizing: auto;
}
body {
  background-image: url("../img/grid.webp");
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
  font-size: var(--body_font-size);
}
@media all and (max-width: 450px) {
  body {
    background-image: url("../img/grid-min.webp");
  }
}
.bg_admin {
  background-color: var(--bg_admin);
  min-height: 100vh;
  background-blend-mode: color-dodge;
}
.pretty_text {
  text-wrap: pretty;
}
/*  some resets of custom css  */
.small {
  font-size: 1rem !important;
  font-weight: 400;
}
.medium {
  font-size: 1.2rem !important;
}
.text {
  font-size: 1.2rem !important;
}
.large {
  font-size: 1.4rem !important;
  font-weight: 350;
}
.xlarge {
  font-size: 1.8rem !important;
}
@media (max-width: 993px) {
  .modal-content {
    width: 95%;
  }
}
@media (max-width: 768px) {
  .small {
    font-size: 0.9rem !important;
  }
  .medium {
    font-size: 1.1rem !important;
  }
  .text {
    font-size: 1.1rem !important;
  }
  .large {
    font-size: 1.3rem !important;
  }
  .xlarge {
    font-size: 1.6rem !important;
  }
}
/* margin */
.margin-top {
  margin-top: 1rem !important;
}
.margin-bottom {
  margin-bottom: 1rem !important;
}
/* padding */
.padding-large {
  padding: 24px 24px !important;
}
.padding-small {
  padding: 0.2rem 0.5rem !important;
}
/* font weight */
.fw-100 {
  font-weight: 100;
}
.fw-300 {
  font-weight: 300;
}
.fw-400 {
  font-weight: 400;
}
.fw-500 {
  font-weight: 500;
}
.fw-600 {
  font-weight: 600;
}
/* colors custom.css */
.dark-grey,
.hover-dark-grey:hover,
.dark-gray,
.hover-dark-gray:hover {
  color: var(--white) !important;
  background-color: var(--gray) !important;
}
.border-black,
.hover-border-black:hover {
  border-color: var(--border_black) !important;
}
.text-white,
.hover-text-white:hover {
  color: var(--white) !important;
}
.text-black,
.hover-text-black:hover {
  color: var(--text-black) !important;
}
.blue, .hover-blue:hover {
  color: #fff !important;
  background-color: #0087ff !important;
}
a,
.underline {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover {
  text-decoration: none;
}
.hidden {
  display: none !important;
}
input,
textarea,
select {
  font-family: var(--font_family);
  color: var(--text-black);
  background: var(--white-dim);
  font-size: var(--font-size-text);
  border-radius: 4px;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
}
textarea {
  resize: vertical;
  width: 100%;
}
ul {
  margin: 0;
  padding: 0;
}
label {
  display: inline-block;
  margin: 0 0 0.4rem;
  color: var(--white);
  font-size: var(--font-size-text);
  font-weight: 350;
}
p {
  color: var(--white);
  margin: 1rem 0;
  font-weight: 350;
}
/* end some resets  */
#center_page {
  padding: 2rem 1rem 4rem;
}
#prez {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  margin-bottom: 3rem;
  align-content: center;
  justify-content: center;
}
h1#title_anaia {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 300;
  text-align: center;
  color: var(--white-dim);
  margin: 2rem auto;
  padding: 0;
  max-width: 900px;
  line-height: 1;
}
#prez p {
  margin: 0;
}
#prez img {
  width: min(60vw, 400px);
  margin: 0 auto;
}
#response_block.anaia_response {
  text-wrap-style: pretty;
  font-size: var(--font-size-text);
  color: var(--text-color);
  margin: 0 auto 2rem;
  padding: 0;
  overflow-y: scroll;
  overflow-x: hidden;
  min-height: inherit;
  max-height: 60vh;
  height: 100%;
  width: -webkit-fill-available;
  max-width: 900px;
}
#app.anaia_app {
  display: flex;
  flex-direction: column;
  text-align: left;
  flex-wrap: nowrap;
  gap: 1.5rem;
  margin: 0 auto;
  width: 100%;
  max-width: 900px;
}
.user-prompt, .system_response {
  padding: 10px 15px;
  border-radius: 10px;
  margin: 0 0 1rem;
  font-size: var(--font-size-text);
}
.user-prompt {
  background: var(--bkg-user);
}
.system_response.anaia_sys_response {
  background: var(--bkg-system);
}
/* AI LOADER */
#ai_loader {
  display: flex;
  margin: 1.8rem 0 0 0.5rem;
}
.dot {
  width: 0.8rem;
  height: 0.8rem;
  background-color: var(--white-dim);
  border-radius: 100%;
  margin-right: 0.4rem;
  animation: wave 1.4s infinite ease-in-out;
  box-shadow: -1px -2px 2px 0px #2f2c2c6e inset;
}
.dot:nth-child(1) {
  animation-delay: 0s;
}
.dot:nth-child(2) {
  animation-delay: 0.2s;
}
.dot:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes wave {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.85rem);
  }
}
.container_buttons_sources {
  padding: 0 15px;
}
.btn_sources {
  background-color: var(--white-dim);
  margin: 0 1rem 1rem 0;
  padding: 0.7rem 1.4rem;
  line-height: 1;
  color: var(--text-color);
}
.btn_sources:hover {
  background-color: var(--white);
}
.source_block {
  background-color: var(--bg_admin);
  color: var(--white-dim);
  padding: 10px 15px;
  margin: 0 0 1rem;
  border: 1px solid var(--white-dim);
  border-radius: 10px;
  overflow-wrap: break-word;
  text-wrap: pretty;
}
.source_block h3 {
  margin: 0 0 0.3rem;
  font-size: calc(var(--font-size-text) + 0.2rem);
  font-weight: 500;
}
.source_block a.source_url {
  display: inline-block;
  margin: 0 0 0.5rem 0;
}
#prompt_container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}
textarea#prompt {
  font-size: var(--font-size-text);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 15px;
  resize: vertical;
  color: var(--text-color);
  background-color: var(--white-dim);
  max-width: 900px;
  width: -webkit-fill-available;
}
/* SCROLL BAR */
#prompt::-webkit-scrollbar {
  width: 8px;
}
#prompt::-webkit-scrollbar-thumb {
  background: var(--title-color);
  border-radius: 2px;
  min-height: 20px;
  cursor: pointer;
}
#prompt::-webkit-scrollbar-track {
  background: var(--background-color);
}
#sendBtn {
  background-color: var(--button-blue);
  display: flex;
  flex-direction: row;
  gap: 0.7rem;
  align-items: center;
  justify-content: space-between;
  color: var(--white);
  padding: 0.5rem 1.1rem;
  font-weight: 350;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: var(--font-size-text);
  width: fit-content;
}
#footer {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  padding: 4rem;
}
#footer a {
  color: cyan;
}
/* Loader (animation de rotation) */
#loader {
  width: 1.4rem;
  height: 1.4rem;
  border: 2px solid var(--white);
  border-top: 2px solid transparent;
  border-radius: 52%;
  animation: spin 1.2s linear infinite;
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.spinner {
  display: none;
  margin: 0 0 0 0.25rem;
}
.spinner i {
  display: inline-block;
  -webkit-animation: 2s linear 0s infinite spin;
  animation: 1s linear 0s infinite spin;
}
@-webkit-keyframes spin {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}
/*  POP UP  */
#pop,
#modal {
  background: var(--bg_pop_up);
  z-index: 100;
}
#modal {
  z-index: 50;
}
#pop .modal-content {
  background: var(--white-dim);
  padding: 1vw;
  max-width: 45vw;
}
#pop.modal,
#modal.modal {
  opacity: 0;
  transition: 0.4s opacity linear;
  -webkit-transition: 0.4s opacity linear;
  -moz-transition: 0.4s opacity linear;
  -o-transition: 0.4s opacity linear;
}
#pop.modal.show,
#modal.modal.show {
  opacity: 1;
  transition: 1s opacity linear;
  -webkit-transition: 1s opacity linear;
  -moz-transition: 1s opacity linear;
  -o-transition: 1s opacity linear;
}
#pop_message {
  overflow-wrap: break-word;
  word-break: break-word;
}
#pop_message p {
  color: var(--text-black);
}
/* TO TOP BTN  */
#to_top {
  cursor: pointer;
  z-index: 15;
  left: -100px;
  bottom: 8px;
  position: fixed;
  border: 1px solid;
  border-radius: 4px;
  font-size: 1.4em;
  width: 44px;
  height: 42px;
  line-height: 1;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  align-content: center;
}
/* TO TOP BTN  */
/* PAGE SCROLL BAR */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-thumb {
  background: var(--background-color);
  border-radius: 2px;
  min-height: 40px;
  cursor: pointer;
}
::-webkit-scrollbar-track {
  background: var(--title-color);
}
