/* chatbot css */
.chat-button {
  position: fixed;
  bottom: 1.25rem;
  right: 2rem;
  background-color: white;
  color: white;
  border: none;
  border-radius: 50%;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0px 15px 7px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

/* Define fade-out animation */
@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes fadeIn {
  0% {
    transform: translateY(0px);
    opacity: 0;
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
    opacity: 1;
  }
}

/* Tooltip text */
.tooltiptext {
  visibility: visible;
  background-color: white;
  color: #000;
  text-align: center;
  padding: 5px 5px;
  border-radius: 6px;
  border: 2px solid rgb(54, 146, 199);
  box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.1);
  position: fixed;
  bottom: 5.5rem;
  right: 10px;
  z-index: 1;
  opacity: 0;
  /* Ensure the tooltip is initially visible */
  transition: opacity 3s ease-in-out;
  /* Smooth transition */
}

.tooltip-text::before {
  content: "";
  position: fixed;
  transform: rotate(45deg);
  background-color: #000;
  padding: 5px;
  z-index: 1;
}

.tooltiptext.fade-out {
  animation: fadeOut 3s forwards;
  /* Apply fade-out animation */
}

.tooltiptext.fade-in {
  animation: fadeIn 2s forwards;
  /* Fade in over 1 second */
}

#resizable {

  background-color: lightgray;
  position: relative;
  display: inline-block;
}

.resize-handle {
  position: absolute;
}

.resize-handle.left {
  width: 10px;
  height: 100%;
  left: 0;
  top: 0;
  z-index: 1000;
  cursor: ew-resize;
}

.resize-handle.bottom {
  height: 10px;
  width: 100%;
  bottom: 0;
  left: 0;
  cursor: ns-resize;
}

.chat-container {
  /* resize:both; */
  width: 450px;
  height: 700px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: fixed;
  bottom: 20px;
  right: 7rem;
  display: none;
}

.chat-header > p {
  float: left;
  margin: 0;
  font-size: 18px;
}

.chat-header {
  background: #006098;
  padding: 15px;
  color: white;
  text-align: center;
  cursor: grab;
  position: relative;
  border-image: linear-gradient(90.3deg, rgb(52, 20, 120) 0%, rgb(118, 56, 250) 33.33%, rgb(62, 141, 255) 66.67%, rgb(187, 248, 255) 100%) 1 / 1 / 0 stretch;
  border-bottom: 4px solid transparent;
}

.beta-button {
  font-size: 0.7rem;
  color: #222222;
  border-radius: 0.3rem;
  box-sizing: border-box;
  padding: 0.2rem;
  background-color: #ffcc33;
  -webkit-align-items: center;
  vertical-align: middle;
  line-height: 1;
  letter-spacing: .2px;
  height: 18px;
  max-height: 18px;
  align-items: center;
  display: inline-flex;
  margin-left: .1rem
}

.chat-header button {
  background: none;
  border: none;
  color: white;
}

.btn-relative {
  position: relative;
  line-height: 1.25rem;
  align-items: center;
  border-radius: 1000px;
  justify-content: center;
}

.icon-sm {
  height: 1rem;
  width: 1rem;
}

.flex {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: .155rem;
}

.chat-body {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
}

.chat-footer {
  display: block;
  align-items: center;
  padding: 0.7rem;
  background-color: #f9f9f9;
  /* Light background color */
  border-top: 1px solid #ddd;
  /* Light border color */
}

.input-characters-message {
  padding-block-start: 0px;
  padding-block-end: 0px;
  margin: 0 0 0 0 !important;
  font-size: 14px !important;
  font-weight: 400;
}

#notice {
  padding-block-start: 4px;
  padding-block-end: 8px;
  margin: 0 0 0 0 !important;
  font-size: 12px !important;
  font-weight: 400;
  text-align: center;
  line-height: 14px;
}

.input-group {
  display: flex;
  flex-grow: 1;
  align-items: center;
  background-color: #fff;
  /* White background for input group */
  border: 1px solid #687078;
  /* Light border color for input group */
  border-radius: 8px;
}

.input-group:focus-within {
  border-color: rgb(0, 115, 187)
}

.input-group-text {
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: #888;
  /* Grey color for icons */
  cursor: pointer;
  transition: color 0.3s, background-color 0.3s;
  /* Add transition for smooth color change */
}

.input-group-text.active > i {
  color: #007bff;
  /* White icon color when active */
}

.input-group textarea::-webkit-scrollbar {
  display: none;
}

.input-group textarea {
  flex-grow: 1;
  border: none;
  background: none;
  color: #333;
  /* Dark text color */
  padding: 10px;
  border-radius: 25px;
  outline: none;
  box-shadow: none !important;
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
  resize: none;
}

.input-group-text i.fa-paper-plane {
  color: #888;
  /* Grey color for icons */
}

.input-group-text .loader {
  border: 2px solid #f3f3f3;
  /* Light grey */
  border-top: 2px solid #555;
  /* Dark grey */
  border-radius: 50%;
  width: 12px;
  height: 12px;
  animation: spin 1s linear infinite;
}

.fas.fa-paper-plane:hover {
  color: #007bff;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}


.chat-body {
  position: relative;
  flex-grow: 1;
  overflow-y: auto;
  padding-bottom: 40px;
  /* Add some padding to avoid overlap with the button */
}

#new-conversation-button {
  position: relative;
  display: none;
  text-align: center;
  color: #007bff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: underline;
}

#new-conversation-button:hover {
  color: #003670;
}

/* Style the code header */
.code-header {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  padding: 0.25rem;
  background: rgba(0, 0, 0, 0.6);
  /* Semi-transparent background */
  border-bottom-left-radius: 0.375rem;
  border-top-right-radius: 1em;
}

/* Style the language label */
.language-label {
  text-transform: uppercase;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  color: white;
  box-sizing: border-box;
  border: 0 solid #e5e7eb;
}

/* Style the copy button */
.copy-button {
  background-color: transparent;
  border: none;
  margin-left: 0.5em;
  cursor: pointer;
}

/* Style the copy image */
.copy-img {
  width: 20px;
  opacity: 0.7;
  -webkit-transform: scaleX(-1);
  transform: scaleX(-1);
}

.copy-img:hover {
  opacity: 1;
}

.chat-button img {
  max-width: 110%;
}

.disclosureMessage a {
  color: #007bff;
  text-decoration: none;
}

/* Container for the iframe */
.iframe-container {
  margin-top: 1em;
  width: 100%;
  max-width: 100%;
  height: 400px;
  /* Adjust height as needed */
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

/* Styling for the iframe */
.chat-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.disclosureMessage a:hover {
  text-decoration: underline;
}

.message.assistant > div.text > pre,
.message.assistant > div.text > ul > li > pre,
.message.assistant > div.text > ol > li > pre {
  position: relative !important;
  white-space: pre-wrap !important;
  margin-bottom: 1em !important;
  margin-top: 0.5em !important;
  box-shadow: 0px 0px 12px 0px #000000 !important;
  border-radius: 1em !important;
  border-color: transparent !important;
}

.message.assistant > div.text > ol > li > pre > code,
.message.assistant > div.text > ul > li > pre > code {
  white-space: pre-wrap !important;
  border-radius: 1em !important;
  border-color: transparent !important;
}

.message.assistant > div.text > ul > li > * > li {
  padding: 5px !important;
  list-style: circle !important;
}

.message.assistant > div.text > ul > li > ul,
.message.assistant > div.text > ul > li > ol {
  padding-left: 10px !important;
  display: grid;
}

.message.assistant > div.text > ul > li {
  padding: 5px !important;
  list-style: disc !important;
  line-height: 22px;
}

.message.assistant > div.text > ul > li > p {
  margin: 0 0 0 !important;
}

p.noticeMessage {
  margin: 0 0 0 !important;
  border: 1px solid #16191f;
  border-radius: 5px;
  width: fit-content;
  padding: 5px;
}

pre code.hljs {
  white-space: pre-wrap;
  display: block;
  background: #282c34;
  padding: 1em;
  border-radius: 1em;
  border-color: transparent;
  box-shadow: 0px 0px 12px 0px #000000 !important;
}

.message.assistant > div.text > pre > code,
.message.assistant > div.text > * > pre > code {
  background: #282c34;
  padding: 1em;
  border-radius: 1em;
  border-color: transparent;
}

.message.assistant > div.text > p > code {
  text-wrap: balance;
  overflow: visible;
  background: #fcfcfd;
}

.message.assistant > div.text > ul > li,
.message.assistant > div.text > ol > li {
  font-size: 14px;
  line-height: 22px;
}

.message.assistant > div.text > ul > li > p,
.message.assistant > div.text > ol > li > p {
  font-size: 14px;
  margin: 0 0 5px;
}

.message.assistant > div.text > ul,
.message.assistant > div.text > ol {
  padding: 5px;
  display: grid;
}

.message.assistant > div.text > h3,
.message.assistant > div.text > h2 {
  margin-bottom: 0px;
}

.message.assistant > div.text > h2 {
  font-size: 20px;
}

.message.assistant th {
  border: 1px solid;
  padding: 5px;
  font-size: 0.8rem;
}

.message.assistant .text table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  word-wrap: break-word;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  margin-left: auto;
  margin-right: auto;
  hyphens: auto;
}

.message.assistant td {
  border: 1px solid;
  padding: 5px;
  font-size: 0.9rem;
}

.chat-header {
  display: grid;
  grid-template-columns: max-content auto min-content;
  /* Three columns */
  padding: 10px;
  color: white;
}

.chat-header p {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
  align-content: center;
  line-height: 1;
}

/* Share button styling */
#share-conversation-button {
  background: none;
  color: white;
  font-size: 0.875rem;
  cursor: pointer;
  justify-self: end;
  border: 1px solid hsla(0, 0%, 100%, .15);
  padding: .25rem .4rem;
}

#share-conversation-button:hover {
  background: #0972d3;
}

/* Chevron button styling */
.chat-header button:last-child {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  margin-left: 10px;
  /* Space between the buttons */
  justify-self: end;
}

/* Icon styling */
.chat-header button i {
  font-size: 20px;
}

.message.assistant > div.text > h1 {
  font-size: 18px;
}

.message.assistant > div.text > h3 {
  font-size: 16px;
}

.message.assistant > div.text > h4 {
  font-size: 14px;
  margin-top: 10px;
}

.message {
  margin-bottom: 15px;
  display: flex;
  /* align-items: flex-end; */
  flex-direction: column;
}

.chat-ref {
  border: 2px solid #b7b3b3;
  width: fit-content;
  width: -moz-fit-content;
  margin-top: 5px;
  font-size: 13px;
  border-radius: 5px;
  padding: 5px;
  color: #3475cf;
}

.chat-ref:after {
  font-family: FontAwesome;
  content: "\f08e";
  color: #b3b3b3;
  vertical-align: super;
  font-size: 60%;
  margin: 0 .2em;
}

.chat-ref:hover {
  border: 2px solid rgb(54, 146, 199);
  width: fit-content;
  margin-top: 5px;
  cursor: pointer;
  color: #0a4ba5;
}

.message.user {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.message.user .text {
  background: #0972d3;
  color: white;
  order: 1;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.square {
  height: 40px;
  width: 40px;
}

.welcome {
  display: block;
}

.welcomeMessage {
  display: flex;
  gap: 12px;
  align-items: center;
}

.welcomeText {
  font-weight: 700;
  font-size: 18px;
  line-height: 22px;
  color: #16191f;
}

.suggestionWrapper,
.disclosureMessage,
.noticeMessage {
  font-size: 14px;
  line-height: 22px;
  color: #16191f;
  font-weight: 400;
  margin: 0 0 5px
}

.questionWrapper {
  padding: 4px 0;
}

.questionWrapperButton {
  border: 1px solid;
  padding: 12px;
  background: #f1faff;
  text-align: left;
  border-radius: 8px;
  color: #0073bb;
  border-color: #99cbe4;
}

.questionWrapperButton:hover {
  cursor: pointer;
  background-color: #ffffff;
}

.questionWrapperButton > p {
  font-weight: 400;
  color: #16191f;
  font-size: 14px;
  line-height: 22px;
  margin: 0px !important;
}

.headerText {
  font-weight: 700;
  color: #545b64;
  font-size: 14px;
  line-height: 22px;
  margin: 0px !important;
}

.introductionMessage {
  font-weight: 400;
  color: #16191f;
  font-size: 14px;
  line-height: 22px;
  margin: 0px !important;
}

.first-time-convo {
  display: flex;
  flex-direction: column;
  row-gap: 15px;
}

.message.assistant .text {
  background: #f1f1f1;
  color: #333;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.message .text {
  padding: 10px 15px;
  border-radius: 10px;
  max-width: fit-content;
  word-wrap: break-word;
}

.message .avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 10px;
}

.message.user > div.text > p {
  word-break: break-word;
  font-weight: normal;
  font-size: 14px;
  line-height: 22px;
  margin: 0;
  padding-bottom: 0rem;
  padding-top: 0rem;
}

.message > div.text > p {
  word-break: break-word;
  font-weight: normal;
  font-size: 14px;
  line-height: 22px;
  margin: 0;
  padding-bottom: 0.5rem;
  padding-top: 0.5rem;
}

.message.user .avatar {
  order: 2;
  margin-left: 10px;
  margin-right: 0;
}

i.fa-stop:hover {
  color: black;
}

div.loading-indicators {
  margin-left: 0.75rem;
}

div.text & > ul & > li & > strong {
  font-size: 14px
}

/* Rotation Animation */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Parallax Animation */
@keyframes parallax {
  0% {
    transform: translateY(6rem) rotate(0deg);
  }

  50% {
    transform: translateY(-1rem) rotate(180deg);
  }

  100% {
    transform: translateY(0em) rotate(360deg);
  }
}

/* Define AOS Animations */
[data-aos="rotate"] {
  animation: rotate 360s linear forwards;
}

[data-aos="parallax"] {
  @media screen and (min-width: 768px) {
    animation: parallax 1s linear forwards;
  }
}

/**
 * ==============================================
 * Dot Elastic
 * ==============================================
 */
.dot-elastic {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background-color: #80a2ff;
  color: #80a2ff;
  animation: dot-elastic 1s infinite linear;
}

.dot-elastic::before,
.dot-elastic::after {
  content: "";
  display: inline-block;
  position: absolute;
  top: 0;
}

.dot-elastic::before {
  left: -15px;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background-color: #80a2ff;
  color: #80a2ff;
  animation: dot-elastic-before 1s infinite linear;
}

.dot-elastic::after {
  left: 15px;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background-color: #80a2ff;
  color: #80a2ff;
  animation: dot-elastic-after 1s infinite linear;
}

@keyframes dot-elastic-before {
  0% {
    transform: scale(1, 1);
  }

  25% {
    transform: scale(1, 1.5);
  }

  50% {
    transform: scale(1, 0.67);
  }

  75% {
    transform: scale(1, 1);
  }

  100% {
    transform: scale(1, 1);
  }
}

@keyframes dot-elastic {
  0% {
    transform: scale(1, 1);
  }

  25% {
    transform: scale(1, 1);
  }

  50% {
    transform: scale(1, 1.5);
  }

  75% {
    transform: scale(1, 1);
  }

  100% {
    transform: scale(1, 1);
  }
}

@keyframes dot-elastic-after {
  0% {
    transform: scale(1, 1);
  }

  25% {
    transform: scale(1, 1);
  }

  50% {
    transform: scale(1, 0.67);
  }

  75% {
    transform: scale(1, 1.5);
  }

  100% {
    transform: scale(1, 1);
  }
}