@import url("https://fonts.googleapis.com/css?family=Varela+Round");

html,
body {
  margin: 0;
  padding: 0;
  background-repeat: no-repeat;
  background-size: cover;
  background: linear-gradient(180deg, #ffffff, #ececec);
  height: 100vh;
  overflow: hidden;
  user-select: none;
  font-family: "Berthold Akzidenz Grotesk BE", sans-serif;
}

/* ---- Disclaimer Styles ---- */
#disclaimerContainer {
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  display: none;
  position: absolute;
  top: 50%;
  left: 33.5%;
  height: 79.6vh;
  width: 720px;
  margin-left: 119px;
  transform: translate(-50%, -50%);
  z-index: 1000;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  background: #ffffff;
}

#disclaimerContainer a {
  color: #444;
}

#disclaimerContainer.visible-container {
  display: flex;
}

.disclaimer-box {
  background: transparent;
  padding: 30px;
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: none;
}

.disclaimer-box h2 {
  margin-top: 0;
  color: #333;
}

.disclaimer-box p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 25px;
  animation: disclaimerFadeIn 1s forwards;
}

@keyframes disclaimerFadeIn {
  0% {
    opacity: 0;
    transform: translateY(5px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

#proceedBtn {
  padding: 10px 14px;
  border: none;
  background: #858585;
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  border: 1px inset #303030;
  box-shadow: 0px 0px 10px 1px rgba(0, 0, 0, 0.26);
  transition: background-color 0.2s, color 0.2s;
  animation: proceedBtnAnimation 1s forwards;
}

@keyframes proceedBtnAnimation {
  0% {
    opacity: 0;
    transform: translateY(0);
  }

  100% {
    opacity: 1;
    transform: translateY(4px);
  }
}

#proceedBtn:hover {
  background: #424242;
  box-shadow: inset 0px 0px 10px 1px rgba(165, 165, 165, 0.623);
}

/* ---- Layout & Nav ---- */
.nav {
  width: 200px;
  background: linear-gradient(to right, black 0%, rgb(0, 0, 0) 100%);
  color: white;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.header-image {
  position: relative;
  top: 100px;
  left: 12.5%;
  height: auto;
  width: 150px;
  object-fit: cover;
  display: block;
  text-align: center;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.295);
  position: fixed;
  z-index: 2999;
  transform: translate(-50%, -50%);
}

.nav ul li {
  position: relative;
  list-style-type: none;
  text-align: center;
  margin-left: -40px;
}

@keyframes animatePadding {
  from {
    padding-top: 10px;
    filter: blur(20px);
  }

  to {
    padding-top: 30px;
  }
}

.nav ul li a {
  text-decoration: none;
  color: #fff;
  font-size: clamp(12px, 3.7vh, 24px);
  font-weight: bold;
  display: block;
  padding-top: 30px;
  transition: background 0.3s;
  cursor: pointer;
  position: relative;
  animation: animatePadding 1s ease-out;
}

.nav ul li a::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 54%;
  width: 5px;
  height: 0;
  background-color: #00a2ff;
  transition: height 0.6s ease, top 0.6s ease;
  box-shadow: 0 0 10px #9efcff;
}

.nav ul li a.active::before {
  height: 30px;
  top: 20%;
  margin-top: 15px;
}

.content {
  flex: 1;
  position: relative;
  overflow: hidden;
}

#disclaimer-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* --- Container Positioning --- */
#overlayContainer,
#overlayContainertwo,
#overlayContainerthree,
#overlayContainerfour {
  display: none;
  position: relative;
  height: 99.9%;
  width: 729px;
  z-index: 1000;
  left: 0px;
  border: 1px solid rgb(255, 255, 255);
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  background: #ffffff;
  background-color: rgba(0, 0, 0, 0);
}

/* --- Container Visibility --- */
.visible-container {
  display: block;
}

.center {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 80vh;
  width: 965px;
  transform: translate(-50%, -50%);
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.541);
  display: flex;
  z-index: 98;
  border-color: white;
}

p {
  font-size: 16px;
  color: black;
  font-weight: bold;
}

p2,
p3 {
  position: relative;
  color: black;
  font-weight: bold;
  text-align: center;
}

p2 {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8vw;
}

p3 {
  top: 45%;
  left: 0%;
  transform: translateX(-50%);
  font-size: 4vw;
}

footer {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 100%;
  background-color: #0000;
  color: #000;
  bottom: -10px;
  padding: 10px;
  font-size: 20px;
}

footer p {
  margin-bottom: 0px;
}

footer a {
  color: #000 !important;
  text-decoration: none;
  font-size: 0.8em;
}

.homepagetext {
  font-size: clamp(6px, 2vh, 13px);
  position: relative;
  top: -9px;
  color: white;
}

/* ---- Chat UI ---- */
#chat {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  user-select: text !important;
  box-sizing: border-box;
}

#chatHeader {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  font-weight: 700;
}

#chatHeaderTitle {
  display: flex;
  align-items: center;
  gap: 8px;
}

#chatControls {
  display: flex;
  gap: 8px;
  position: absolute;
  top: 10px;
  background: black;
}

#messages {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 95px;
  margin: 0 auto;
  width: 95.7%;
  padding: 16px;
  border-radius: 0 10px 0 0;
  overflow: auto;
  scroll-behavior: smooth;
  background: #ffffff;
  scrollbar-gutter: stable both-edges;
  --sb-track: transparent;
  --sb-thumb: #c9cdd3;
  --sb-thumb-hover: #a8afb9;
  --sb-thumb-active: #8f97a3;
}

#messages {
  scrollbar-width: thin;
  scrollbar-color: var(--sb-thumb) var(--sb-track);
}

#messages::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

#messages::-webkit-scrollbar-track {
  background: var(--sb-track);
}

#messages::-webkit-scrollbar-thumb {
  background-color: var(--sb-thumb);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: padding-box;
}

#messages::-webkit-scrollbar-thumb:hover {
  background-color: var(--sb-thumb-hover);
}

#messages::-webkit-scrollbar-thumb:active {
  background-color: var(--sb-thumb-active);
}

#messages::-webkit-scrollbar-corner {
  background: transparent;
}

@media (prefers-color-scheme: dark) {
  #messages {
    --sb-track: transparent;
    --sb-thumb: #3b3f46;
    --sb-thumb-hover: #4a4f57;
    --sb-thumb-active: #5a606a;
  }
}

#fadeOutBottom {
  position: absolute;
  bottom: 88px;
  left: 1%;
  right: 0;
  height: 30px;
  width: 98%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), white 80%);
  z-index: 9999;
}

#fadeOutTop {
  position: absolute;
  top: 0px;
  left: 1%;
  right: 0;
  height: 30px;
  width: 98%;
  background: linear-gradient(to top, rgba(255, 255, 255, 0), white 80%);
  z-index: 9999;
}

.msg {
  padding: 12px 14px;
  border-radius: 10px;
  margin: 8px 0;
  max-width: 92%;
  line-height: 1.2;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  animation: fadeInMessage 0.3s ease-in-out;
  background: #f2f2f3;
}

.meta {
  color: #555;
  font-size: 12px;
  margin-top: 6px;
  text-align: center;
  animation: fadeInMessage 0.3s ease-in-out;
}

#chatForm {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid #eee;
  background: #fff;
}

#chatInput {
  bottom: 10px;
  height: 50px;
  width: 525px;
  position: absolute;
  flex: 1;
  padding: 12px 14px;
  padding-right: calc(20% + 14px);
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 16px;
  transition: border-color 0.2s;
  background: #fff;
  word-break: break-word;
  overflow-wrap: anywhere;
  overflow-y: auto;
  resize: none;
  user-select: text !important;

  font-family: "akzidenz-grotesk", sans-serif;
}

/* Focus animated ring */
@property --ring-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

#chatInput:focus {
  outline: none;
  border: 1px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box,
    conic-gradient(from var(--ring-angle),
      #00ffff,
      #0026ff,
      #ffffff,
      #00bdb4,
      #00aeff,
      #003cff,
      #ffffff) border-box;
  animation: ring-rotate 2.2s linear infinite;
}

@keyframes ring-rotate {
  to {
    --ring-angle: 1turn;
  }
}

@media (prefers-reduced-motion: reduce) {
  #chatInput:focus {
    animation: none;
  }
}

#sendBtn {
  bottom: 15px;
  height: 65px;
  width: 100px;
  right: 20px;
  position: absolute;
  padding: 10px 14px;
  border: 1px inset #8cfbff;
  box-shadow: inset 0px 0px 4px 1px rgba(0, 0, 0, 0.26);
  background: #858585;
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

#sendBtn:hover {
  background: #424242;
  box-shadow: inset 0px 0px 10px 1px rgba(165, 165, 165, 0.623);
}

.secondary-btn {
  padding: 10px 14px;
  border: 1px solid #0a62ff;
  background: #fff;
  color: #0a62ff;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.secondary-btn:hover {
  background: #f0f0f0;
}

#sources {
  padding: 12px 16px;
  border-top: 1px dashed #eee;
  display: none;
  background: #fff;
}

#disclaimer {
  padding: 10px 16px;
  font-size: 12px;
  color: #444;
  background: #fff;
  border-top: 1px solid #eee;
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  top: -5px;
  gap: 4px;
  position: relative;
  padding: 0 15px;
}

.typing-indicator span {
  height: 12px;
  width: 12px;
  background: #9e9e9e;
  border-radius: 50%;
  display: inline-block;
  animation: bounce 1.2s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
  animation-delay: -1s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: -0.8s;
}

@keyframes bounce {

  0%,
  80%,
  100% {
    transform: scale(0);
  }

  40% {
    transform: scale(1);
  }
}

@keyframes fadeInMessage {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================= */
/* ===== BOT MESSAGE UI ==== */
/* ========================= */
:root {
  --ue-bot-bg: #ffffff;
  --ue-bot-film-1: rgba(41, 121, 255, 0.1);
  --ue-bot-film-2: rgba(0, 212, 255, 0.1);
  --ue-bot-border: rgba(0, 102, 255, 0.25);
  --ue-bot-shadow: 0 6px 22px rgba(0, 54, 142, 0.1);
  --ue-bot-accent: #0a62ff;
  --ue-muted: #5b6675;
  --ue-strong: #0c1015;
  --ue-code-bg: #0f172a;
  --ue-code-fg: #f1f5f9;
  --ue-inline-code-bg: rgba(15, 23, 42, 0.08);

  --ue-user-text: #ffffff;
  --ue-user-shadow: 0 4px 14px rgba(10, 98, 255, 0.25);
}

.msg.bot {
  position: relative;
  margin: 10px 0;
  padding: 18px 16px 10px 16px;
  /* tighter top/bottom padding */
  background: linear-gradient(180deg,
      var(--ue-bot-film-1),
      var(--ue-bot-film-2)),
    var(--ue-bot-bg);
  border: 1px solid var(--ue-bot-border);
  border-radius: 14px;
  border-bottom-left-radius: 0px;
  box-shadow: var(--ue-bot-shadow), inset 5px 0px 15px rgba(55, 58, 255, 0.418);
  color: var(--ue-strong);
  backdrop-filter: blur(3px);
  animation: ueBotPop 180ms ease-out;
  left: 2px;
  line-height: 1.18;
  /* global, slightly tighter */
}

.msg.bot::before {
  content: "";
  position: absolute;
  left: 0px;
  top: 5px;
  bottom: 0px;
  height: calc(100% - 10px);
  width: 8px;
  border-radius: 4px 0 0 4px;
  background: linear-gradient(to right,
      #4c79ff50,
      #00d5ff2c,
      rgba(255, 255, 255, 0));
  opacity: 0.9;
  filter: blur(5px);
}

.msg.bot::after {
  content: "";
  position: absolute;
  left: 12px;
  top: -8px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: transparent;
}

/* Headings: less space, tighter line-height */
.msg.bot h1,
.msg.bot h2,
.msg.bot h3,
.msg.bot h4,
.msg.bot h5,
.msg.bot h6 {
  margin: 4px 0 2px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--ue-strong);
}

.msg.bot h1 {
  font-size: 22px;
}

.msg.bot h2 {
  font-size: 18px;
}

.msg.bot h3 {
  font-size: 16px;
}

.msg.bot h4 {
  font-size: 15px;
}

/* Paragraphs and common blocks closer together */
.msg.bot p,
.msg.bot ul,
.msg.bot ol,
.msg.bot pre,
.msg.bot table,
.msg.bot blockquote {
  margin: 4px 0;
}

.msg.bot p {
  line-height: 1.22;
  color: var(--ue-strong);
}

/* Lists tighter */
.msg.bot ul,
.msg.bot ol {
  padding-left: 16px;
}

.msg.bot li {
  margin: 2px 0;
}

.msg.bot ul>li {
  list-style: none;
  position: relative;
  padding-left: 14px;
}

.msg.bot ul>li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--ue-bot-accent);
  transform: translateY(-50%);
}

/* Links */
.msg.bot a {
  color: var(--ue-bot-accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(10, 98, 255, 0.35);
  transition: color 0.15s, border-color 0.15s;
}

.msg.bot a:hover {
  color: #084dd1;
  border-bottom-color: #084dd1;
}

/* Inline code slightly tighter */
.msg.bot code {
  background: var(--ue-inline-code-bg);
  border: 1px solid rgba(15, 23, 42, 0.1);
  padding: 1px 4px;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Courier New", monospace;
  font-size: 0.92em;
}

/* Code blocks closer and tighter line-height */
.msg.bot pre {
  background: var(--ue-code-bg);
  color: var(--ue-code-fg);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  overflow: auto;
  white-space: pre;
  line-height: 1.38;
  margin: 6px 0 4px;
}

.msg.bot pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  border: 0;
}

/* Tables tighter */
.msg.bot table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 8px 0;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  overflow: hidden;
}

.msg.bot th,
.msg.bot td {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  text-align: left;
}

.msg.bot thead th {
  background: rgba(217, 231, 255, 0.411);
  font-weight: 700;
}

.msg.bot tbody tr:last-child td {
  border-bottom: none;
}

/* Trim extra bubble edges */
.msg.bot> :first-child {
  margin-top: 0 !important;
}

.msg.bot> :last-child {
  margin-bottom: 0 !important;
}

.msg.bot .meta,
.msg.bot small,
.msg.bot em {
  color: var(--ue-muted);
}

.msg.bot .msg-feedback {
  right: 10px;
  bottom: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(2px);
}

.msg.bot:hover .msg-feedback {
  transform: translateY(-2px);
}

.msg.bot .typing-indicator {
  padding: 2px 16px 0 16px;
}

.msg.bot .typing-indicator span {
  width: 10px;
  height: 10px;
  background: #a0a8b5;
  opacity: 0.9;
}

@keyframes ueBotPop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
    filter: saturate(0.9);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: saturate(1);
  }
}

/* ========================= */
/* ==== USER MESSAGE UI ==== */
/* ========================= */
.msg.me {
  position: relative;
  background: linear-gradient(135deg, #333333, #222222, #696969);
  color: var(--ue-user-text);
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 14px 14px 4px 14px;
  margin-left: auto;
  margin-right: 4px;
  padding: 12px 16px;
  max-width: 85%;
  box-shadow: var(--ue-user-shadow);
  animation: ueUserPop 180ms ease-out;
  font-weight: 500;
  line-height: 1.5;
  word-wrap: break-word;
}

.msg.me::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: transparent;
}

.msg.me a {
  color: #fff;
  text-decoration: underline;
  font-weight: 600;
}

.msg.me a:hover {
  text-decoration: none;
  opacity: 0.9;
}

@keyframes ueUserPop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Feedback controls (hidden by default unless hover) */
.msg .msg-feedback {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: flex;
  gap: 6px;
  align-items: center;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 2px 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  opacity: 0.85;
  transition: opacity 0.15s ease, transform 0.15s ease;
  display: none;
}

.msg:hover .msg-feedback {
  opacity: 1;
  transform: translateY(-1px);
}

.msg .thumb-btn {
  width: 26px;
  height: 26px;
  border: none;
  outline: none;
  background: transparent;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  display: none;
}

.msg .thumb-btn.selected {
  background: rgba(0, 0, 0, 0);
}

.msg .thumb-btn img.thumb-icon {
  width: 18px;
  height: 18px;
  display: block;
  opacity: 0.7;
  transition: opacity 0.15s ease, transform 0.15s ease;
  image-rendering: auto;
}

.msg .thumb-btn:hover img.thumb-icon {
  opacity: 0.5;
}

.msg .thumb-btn.selected img.thumb-icon {
  opacity: 1;
}

/* ========================= */
/* ======= MOBILE ========== */
/* ========================= */
@media (max-width: 1000px) {

  html,
  body {
    background: linear-gradient(180deg, #ffffff, #ffffff);
  }

  .homepagetext {
    font-size: clamp(4px, 2vw, 16px);
    top: -2vw;
  }

  .center {
    position: fixed;
    top: 45%;
    left: 50%;
    height: 80vh;
    width: 100%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.541);
    z-index: 98;
    border-radius: 0;
    border-color: white;
    overflow-x: block;
    flex-direction: column;
  }

  .nav {
    width: 101%;
    height: 10%;
    background: linear-gradient(to right, black 0%, rgb(0, 0, 0) 100%);
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: row;
    font-family: "akzidenz-grotesk", sans-serif;
    z-index: 1000;
  }

  .nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    top: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 4vw;
  }

  .nav ul li {
    margin: 0 1vw;
    text-align: center;
  }

  .nav ul li a {
    font-size: 3.5vw;
    padding: 5px;
    margin-top: 0;
    animation: animatePadding 1s ease-out;
  }

  @keyframes animatePadding {
    from {
      top: -35%;
      padding: 0;
      filter: blur(20px);
    }

    to {
      top: -20%;
      padding: 5px;
    }
  }

  .nav ul li a:hover {
    background: #363636;
    border-radius: 5px;
  }

  .nav ul li a::before {
    left: -7px;
    width: 2px;
  }

  .nav ul li a.active::before {
    height: 6.2vw;
    top: -30%;
    margin-top: 9px;
  }

  .header-image {
    top: 35px;
    left: 50%;
    margin-left: 0;
    width: 10vh;
    max-width: 100px;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0.295);
    position: relative;
    z-index: 1000;
  }

  #overlayContainerthree {
    top: 0%;
    left: 0%;
    height: 100%;
    width: 100%;
    margin-left: 0;
    background-color: #fff;
    text-align: center;
    color: #000;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    position: relative;
  }

  .nav {
    flex: 0 0 auto;
    height: clamp(56px, 8dvh, 80px);
    width: 100%;
    padding: 12px 16px;
  }

  #overlayContainerfour {
    top: 0%;
    left: 0%;
    height: 100%;
    width: 100%;
    margin-top: 0px;
    margin-left: 0;
    background-color: #fff;
    text-align: center;
    color: #000;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    position: relative;
  }

  #disclaimerContainer {
    position: relative;
    inset: 0;
    top: 0%;
    left: 0%;
    height: 100%;
    width: 100%;
    transform: none;
    margin: 0;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    background: #ffffff;
  }

  .disclaimer-box {
    max-width: min(560px, 90vw);
    padding: 20px;
  }

  #chatInput {
    bottom: 10px;
    height: 75px;
    width: 100%;
    position: absolute;
    left: 0;
    flex: 1;
    padding: 12px 25px;
    border-radius: 0px;
    border: 1px solid #ddd;
    font-size: 16px;
    transition: border-color 0.2s;
    background: #fff;
    word-break: break-word;
    overflow-wrap: anywhere;
    resize: none;
    user-select: text !important;
    font-family: "akzidenz-grotesk", sans-serif;
    padding-right: 20%;
    box-sizing: border-box;
  }

  #chatForm {
    left: 0;
    width: 100%;
    margin: 0;
  }

  #sendBtn {
    bottom: 15px;
    height: 65px;
    width: 100px;
    right: 5px;
    position: absolute;
    padding: 10px 14px;
    border: 1px inset #8cfbff;
    box-shadow: inset 0px 0px 4px 1px rgba(0, 0, 0, 0.26);
    background: #858585;
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
  }

  .msg.bot {
    position: relative;
    margin: 10px 0;
    padding: 18px 16px 10px 16px;
    background: linear-gradient(180deg,
        var(--ue-bot-film-1),
        var(--ue-bot-film-2)),
      var(--ue-bot-bg);
    border: 1px solid var(--ue-bot-border);
    border-radius: 14px;
    border-bottom-left-radius: 0px;
    box-shadow: var(--ue-bot-shadow), inset 5px 0px 15px rgba(55, 58, 255, 0.418);
    color: var(--ue-strong);
    backdrop-filter: blur(3px);
    animation: ueBotPop 180ms ease-out;
    margin-left: 0px;
    line-height: 1.18;
  }

  .msg.me {
    position: relative;
    background: linear-gradient(135deg, #333333, #222222, #696969);
    color: var(--ue-user-text);
    border: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: 14px 14px 4px 14px;
    margin-right: 0px;
    padding: 12px 16px;
    max-width: 85%;
    box-shadow: var(--ue-user-shadow);
    animation: ueUserPop 180ms ease-out;
    font-weight: 500;
    line-height: 1.5;
    word-wrap: break-word;
  }

  footer p {
    top: 0px;
    position: relative;
  }

  #fadeContainer {
    position: relative;
  }

  #fadeOutTop,
  #fadeOutBottom {
    display: none;
  }

  #fadeOutBottom {
    position: absolute;
    bottom: 90px;
    left: 0;
    right: 0;
    height: 30px;
    width: 110%;
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 0),
        rgb(255, 255, 255) 80%);
    z-index: 9999;
  }

  #fadeOutTop {
    position: absolute;
    top: 0px;
    left: 0%;
    right: 0;
    height: 30px;
    width: 110%;
    background: linear-gradient(to top,
        rgba(255, 255, 255, 0),
        rgb(255, 255, 255) 80%);
    z-index: 9999;
  }

  .show-fades #fadeOutTop,
  .show-fades #fadeOutBottom {
    display: block;
  }
}

@media (max-height: 790px) and (max-width: 1000px) {
  .header-image {
    display: none;
  }

  .nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    left: -10px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 5vw;
    position: relative;
  }

  .nav ul li {
    margin: 0 1vw;
    text-align: center;
    top: -30px;
  }

  #sendBtn {
    bottom: 15px;
    height: 65px;
    width: 100px;
    margin-right: 0px;
    position: absolute;
    padding: 10px 14px;
    border: 1px inset #8cfbff;
    box-shadow: inset 0px 0px 4px 1px rgba(0, 0, 0, 0.26);
    background: #858585;
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
  }

  .msg.bot {
    position: relative;
    margin: 10px 0;
    padding: 18px 16px 10px 16px;
    background: linear-gradient(180deg,
        var(--ue-bot-film-1),
        var(--ue-bot-film-2)),
      var(--ue-bot-bg);
    border: 1px solid var(--ue-bot-border);
    border-radius: 14px;
    border-bottom-left-radius: 0px;
    box-shadow: var(--ue-bot-shadow), inset 5px 0px 15px rgba(55, 58, 255, 0.418);
    color: var(--ue-strong);
    backdrop-filter: blur(3px);
    animation: ueBotPop 180ms ease-out;
    margin-left: -12px;
    line-height: 1.18;
  }

  .msg.me {
    position: relative;
    background: linear-gradient(135deg, #333333, #222222, #696969);
    color: var(--ue-user-text);
    border: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: 14px 14px 4px 14px;
    margin-left: auto;
    margin-right: 5px;
    padding: 12px 16px;
    max-width: 85%;
    box-shadow: var(--ue-user-shadow);
    animation: ueUserPop 180ms ease-out;
    font-weight: 500;
    line-height: 1.5;
    word-wrap: break-word;
  }
}

@media (max-width: 350px) {
  .header-image {
    display: none;
  }

  .msg.bot {
    position: relative;
    margin: 10px 0;
    padding: 18px 16px 10px 16px;
    background: linear-gradient(180deg,
        var(--ue-bot-film-1),
        var(--ue-bot-film-2)),
      var(--ue-bot-bg);
    border: 1px solid var(--ue-bot-border);
    border-radius: 14px;
    border-bottom-left-radius: 0px;
    box-shadow: var(--ue-bot-shadow), inset 5px 0px 15px rgba(55, 58, 255, 0.418);
    color: var(--ue-strong);
    backdrop-filter: blur(3px);
    animation: ueBotPop 180ms ease-out;
    margin-left: 0px;
    line-height: 1.18;
    max-width: 85%
  }

  .msg.me {
    position: relative;
    background: linear-gradient(135deg, #333333, #222222, #696969);
    color: var(--ue-user-text);
    border: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: 14px 14px 4px 14px;
    margin-left: auto;
    margin-right: 5px;
    padding: 12px 16px;
    max-width: 85%;
    box-shadow: var(--ue-user-shadow);
    animation: ueUserPop 180ms ease-out;
    font-weight: 500;
    line-height: 1.5;
    word-wrap: break-word;
  }

  #chatInput {
    bottom: 15px;
    height: 75px;
    width: 105%;
    position: absolute;
    flex: 1;
    padding: 12px 25px;
    border-radius: 0px;
    border: 1px solid #ddd;
    font-size: 16px;
    transition: border-color 0.2s;
    background: #fff;
    word-break: break-word;
    overflow-wrap: anywhere;
    resize: none;
    user-select: text !important;
    font-family: "akzidenz-grotesk", sans-serif;
    padding-right: 20%;
    box-sizing: border-box;
    left: -3px;
  }
    #sendBtn {
    bottom: 20px;
    height: 65px;
    width: 100px;
    margin-right: 0px;
    position: absolute;
    padding: 10px 14px;
    border: 1px inset #8cfbff;
    box-shadow: inset 0px 0px 4px 1px rgba(0, 0, 0, 0.26);
    background: #858585;
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
  }

}