/* Import Google font - Poppins */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --text-color: #FFFFFF;
  --icon-color: #cfcff7;
  --icon-hover-bg: #000000;
  --placeholder-color: #dcdcdc;
  --outgoing-chat-bg: #122232;
  --incoming-chat-bg: #122131;
  --outgoing-chat-border: #122232;
  --incoming-chat-border: #122131;
}
.light-mode {
  --text-color: #343541;
  --icon-color: #a9a9bc;
  --icon-hover-bg: #f1f1f3;
  --placeholder-color: #6c6c6c;
  --outgoing-chat-bg: #FFFFFF;
  --incoming-chat-bg: #F7F7F8;
  --outgoing-chat-border: #FFFFFF;
  --incoming-chat-border: #D9D9E3;
}
body {
  background: var(--outgoing-chat-bg);
}
body {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: none;
  color: #fff;
}
h1,h2,h3,h4,h5,h6 {
      font-family: 'Inter', sans-serif;
      font-weight:bold;
}
img {
  height: auto;
  max-width: 100%;
}
/* Chats container styling */
.chat-container {
    height: auto;
}
:where(.chat-container, textarea)::-webkit-scrollbar {
  width: 6px;
}
:where(.chat-container, textarea)::-webkit-scrollbar-track {
  background: var(--incoming-chat-bg);
  border-radius: 25px;
}
:where(.chat-container, textarea)::-webkit-scrollbar-thumb {
  background: var(--icon-color);
  border-radius: 25px;
}
.default-text {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: 70vh;
  padding: 0 10px;
  text-align: center;
  color: var(--text-color);
}
.default-text h1 {
  font-size: 3.3rem;
}
.default-text p {
  margin-top: 10px;
  font-size: 1.1rem;
}
.chat-container .chat {
}
ol ,  ul{
  margin-top: 20px;
}
ol {
  list-style:decimal-leading-zero;
}
ul {
  list-style:square;
}
ol li , ul li {
  padding-bottom: 1em;
}
.chat-container .chat.outgoing {
  padding: 10px;
}
.chat-container .chat.incoming {
 
}
.chat .chat-content {
 
}
span.material-symbols-rounded {
  user-select: none;
  cursor: pointer;
}
.chat .chat-content span.copy-message {
  
position: absolute;
  
top: 5px;
  
right: -5px;
}
.chat .chat-content span {
  cursor: pointer;
  font-size: 1.3rem;
  color: var(--icon-color);
  visibility: hidden;
}
.chat:hover .chat-content:not(:has(.typing-animation), :has(.error)) span {
  visibility: visible;
}
.chat .chat-details {
  display: flex;
  align-items: center;
}
.chat .chat-details img {
  width: 35px;
  height: 35px;
  align-self: flex-start;
  object-fit: cover;
  border-radius: 2px;
}
.chat .chat-details p {
  white-space: pre-wrap;
  margin-bottom: 0;
}
.chat .chat-details p.error {
  color: #e55865;
}
.chat .typing-animation {
  padding-left: 25px;
  display: inline-flex;
}
.typing-animation .typing-dot {
  height: 7px;
  width: 7px;
  border-radius: 50%;
  margin: 0 3px;
  opacity: 0.7;
  background: #122232;
  animation: animateDots 1.5s var(--delay) ease-in-out infinite;
}
.typing-animation .typing-dot:first-child {
  margin-left: 0;
}
@keyframes animateDots {
  0%,44% {
    transform: translateY(0px);
  }
  28% {
    opacity: 0.4;
    transform: translateY(-6px);
  }
  44% {
    opacity: 0.2;
  }
}

/* Typing container styling */
.typing-container {
 
width: 100%;
 
display: flex;
 
justify-content: center;
 
padding: 20px;
}
.typing-container .typing-content {
  display: flex;
  max-width: 950px;
  width: 100%;
  align-items: flex-end;
}
.typing-container .typing-textarea {
  width: 100%;
  display: flex;
  position: relative;
}
.typing-textarea textarea {
  resize: none;
  height: 55px;
  width: 100%;
  border: none;
  padding: 15px 45px 15px 20px;
  color: var(--text-color);
  font-size: 1rem;
  border-radius: 4px;
  max-height: 250px;
  overflow-y: auto;
  background: var(--incoming-chat-bg);
  outline: 1px solid var(--incoming-chat-border);
}
.typing-textarea textarea::placeholder {
  color: var(--placeholder-color);
}
.typing-content span {
  width: 55px;
  height: 55px;
  display: flex;
  border-radius: 4px;
  font-size: 1.35rem;
  align-items: center;
  justify-content: center;
  color: var(--icon-color);
}
.typing-textarea span {
  position: absolute;
  right: 0;
  bottom: 0;
}
.typing-textarea textarea:valid ~ span {
  visibility: visible;
}
.typing-controls {
  display: flex;
}
.typing-controls span {
  margin-left: 7px;
  font-size: 1.4rem;
  background: var(--incoming-chat-bg);
  outline: 1px solid var(--incoming-chat-border);
}
.typing-controls span:hover {
  background: var(--icon-hover-bg);
}

/* Reponsive Media Query */
@media screen and (max-width: 600px) {
  .default-text h1 {
    font-size: 2.3rem;
  }
  :where(.default-text p, textarea, .chat p) {
  }
  .chat-container .chat {
    padding: 10px 0;
  }
  .avatar-img img {
    height: 32px;
    width: 32px;
  }
  .chat-container .chat p {
  }
  .chat .chat-content:not(:has(.typing-animation), :has(.error)) span {
    visibility: visible;
  }
  .typing-container {
    padding: 15px 10px;
  }
  .typing-textarea textarea {
    height: 50px;
    padding: 10px 40px 10px 10px;
  }
  .typing-content span {
    height: 50px;
    width: 45px;
    margin-left: 5px;
  }
  span.material-symbols-rounded {
    font-size: 1.25rem!important;
  }
}
/* Sidebar Styles */
.chat-history-sidebar {
  position: fixed;
  left: -250px; /* Start off-screen to the left */
  top: 0;
  height: 100%;
  width: 250px; /* Adjust as needed */
  background-color: #f3f3f3; /* Adjust background color */
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
  transition: left 0.3s ease;
  z-index: 2; /* Ensure sidebar is above other elements */
}

.chat-history-sidebar.open {
  left: 0; /* Slide in */
}

#sidebar-toggle {
  position: fixed;
  top: 20px;
  left: 0; /* Position the toggle button */
  cursor: pointer;
  font-size: 1.3rem;
  color: var(--icon-color);
  z-index: 3;
  transition: left 0.3s ease;
}

#sidebar-toggle.open {
  left: 250px; /* Move with the sidebar */
}

/* Responsive adjustments */
@media screen and (max-width: 600px) {
  .chat-history-sidebar {
      width: 100%;
      left: -100%;
  }
  #sidebar-toggle.open {
      left: 100%;
  }
}


header {
  padding:15px;
}
.logo-image {
align-items: center;
  display: flex;
  justify-content: center;
}
.logo-image img {
  max-width: 300px;
}
.ai-intro {
      margin-top: 40px;
      margin-bottom: 40px;
}
.ai-intro-container {
display: block;
  padding-bottom: 5px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 10px;   
}
.ai-intro h2 {
  font-weight:normal;
}
.introbox {
  display: flex;
}
.introboxleft {
  padding: 0 20px;
  max-width: 180px;
}
.intro-avatar {
  border-radius: 50%;
  max-width: 140px;
  margin: 0 auto;
  display: block;
}
.introboxright {
  width: auto;
  padding: 10px;
}
.intro-section-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: #ffffff;
  border-radius: 50px;
  max-width: 620px;
  margin: 40px auto;
  color: #000;
}
body.current-chat-active .chatbox-inner  {height: 500px;}
.intro-section-bottom h2 {
  display: inline;
  line-height: 1;
  margin-bottom: 0;
  font-size: 2em;
  color: #000;
}
.intro-section-bottom span {
  padding: 0 10px;
  line-height: 1.2;
  font-size: 0.8em;
}
.featurebox .usersuggest  {
  width: 100%;
  border: 0;
  color: #fff;
  font-weight: normal;
  padding: 35px 10px;
  line-height: 1.2;
  background: #cbac5f !important;
  font-size: 17px;
  min-height: 132px;
  border-radius: 5px;
  text-align: center;
  cursor: pointer;
  font-weight: bold;
}
.featurebox  {
  padding: 10px;
}
.intro-section-bottom svg {
  
max-width: 20px;
}
.avatar-img img {
  max-width: 48px;
  border-radius:50%;
}
.chat.incoming .chat-content {
  display: flex;
  column-gap: 5px;
  padding-right: 50px;
  position: relative;
}

.chat.outgoing .chat-content  {
  display: flex;
  align-items: center;
  grid-template-columns: 21fr 0fr;
  column-gap: 5px;
  font-size: 14px;
  margin-right: 0px;
  min-width: 5%;
  max-width: 100%;
  padding-left: 50px;
  flex-direction: row-reverse;
}


.chat.incoming .chat-details {
  padding: 1em;
  border-inline: 1.1em solid #0000;
  border-radius: calc(1em + 1.1em)/1em;
  mask: radial-gradient(100% 100% at 0em 1.1em, #0000 99%, #000 102%) 0% 0% /1.1em 1.1em no-repeat,
      linear-gradient(#000 0 0) padding-box;
  background: #f6f1e4;
  color: #000;
  border-top-left-radius: 0 0;
  place-self: start;
  min-width: auto;
  /* width: 100%; */
}

.chat.outgoing .chat-details {
  padding: 1em;
  border-inline: 1.5em solid #0000;
  border-radius: calc(1em + 1.5em)/1em;
  mask:
      radial-gradient(100% 100% at 1.5em 1.5em, #0000 99%, #000 102%) 100% 0% /1.5em 1.5em no-repeat,
      linear-gradient(#000 0 0) padding-box;
  background: #eff2f3;
  color: #000;
  border-top-right-radius: 0 0;
  place-self: start;
  float: right;
  min-width: 100px;
}
.slick-dots li {
      margin: 0;
}
.slick-dotted.slick-slider {
  margin-bottom: 35px;
}
.slick-dots li.slick-active button:before {
  opacity: .75;
  color: #fff;
}
.slick-dots li button:before {
color: #fff;   
    font-size: 10px;
}
.chatbox-content {background: #FFF;border-radius: 10px;box-shadow: 5px 10px 20px #00000045;max-width: 800px;margin: 40px  auto;}
.chatbox-inner {
      display: grid;
      height: 300px;
      scroll-behavior: smooth;
      overflow-y: scroll;
      margin-right: auto;
      margin-left: auto;
      -ms-overflow-style: none;
      scrollbar-width: none;
      border-radius: 45px;
      padding: 35px;
     
}

body.current-chat-active .ready-talk-section  {

display: none;
}
body.current-chat-active .featureslide-section {}

textarea::-webkit-scrollbar {
display: none;
}
.chatinput-group textarea::placeholder, .chatinput-group textarea::-webkit-input-placeholder {
   font-weight:normal;
  font-size:17px;

}
.btnsubmit {
  border-radius: 10px;
  width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-weight: bold;
  background: #032a40;
}
button.btnsubmit:hover {background: #000;}
.chatinput-group svg {
  
max-width: 26px;
  
height: auto;
}
.intro-section-bottom .s1 {
      fill: #000;
}
.clearchatform {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 0;
}
.clearchatform svg {
  max-width: 27px;
  height: auto;
}
button.clearchatbtn, button.clearchatbtn:hover, button.clearchatbtn:active  {
      margin-right: auto;
      margin-left: auto;
      background-color: #cbac5f;
      color: white;
      border-radius: 50px;
      padding: 15px 25px;
      font-weight: normal;
      font-size: 18px;
      font-weight: bold;
      align-items: center;
      display: flex;
      gap: 5px;
}

footer {
  background: #cbac5f;
  padding: 15px 0;
  text-align: center;
}
.footer-bottom-img img {
  max-width: 90px;
}
/* START TOOLTIP STYLES */
[tooltip] {
  position: relative; /* opinion 1 */
}

/* Applies to all tooltips */
[tooltip]::before,
[tooltip]::after {
  text-transform: none; /* opinion 2 */
  font-size: 11px; /* opinion 3 */
  line-height: 1;
  user-select: none;
  pointer-events: none;
  position: absolute;
  display: none;
  opacity: 0;
}
[tooltip]::before {
  content: '';
  border: 5px solid transparent; /* opinion 4 */
  z-index: 1001; /* absurdity 1 */
}
[tooltip]::after {
  content: attr(tooltip); /* magic! */
  
  /* most of the rest of this is opinion */
  text-align: center;
  
  /* 
    Let the content set the size of the tooltips 
    but this will also keep them from being obnoxious
    */
  min-width: 3em;
  max-width: 21em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 1ch 1.5ch;
  border-radius: .3ch;
  box-shadow: 0 1em 2em -.5em rgba(0, 0, 0, 0.35);
  background: #333;
  color: #fff;
  z-index: 1000; /* absurdity 2 */
}

/* Make the tooltips respond to hover */
[tooltip]:hover::before,
[tooltip]:hover::after {
  display: block;
}

/* don't show empty tooltips */
[tooltip='']::before,
[tooltip='']::after {
  display: none !important;
}

/* FLOW: UP */
[tooltip]:not([flow])::before,
[tooltip][flow^="up"]::before {
  bottom: 100%;
  border-bottom-width: 0;
  border-top-color: #333;
}
[tooltip]:not([flow])::after,
[tooltip][flow^="up"]::after {
  bottom: calc(100% + 5px);
}
[tooltip]:not([flow])::before,
[tooltip]:not([flow])::after,
[tooltip][flow^="up"]::before,
[tooltip][flow^="up"]::after {
  left: 50%;
  transform: translate(-50%, -.5em);
}

/* FLOW: DOWN */
[tooltip][flow^="down"]::before {
  top: 100%;
  border-top-width: 0;
  border-bottom-color: #333;
}
[tooltip][flow^="down"]::after {
  top: calc(100% + 5px);
}
[tooltip][flow^="down"]::before,
[tooltip][flow^="down"]::after {
  left: 50%;
  transform: translate(-50%, .5em);
}

/* FLOW: LEFT */
[tooltip][flow^="left"]::before {
  top: 50%;
  border-right-width: 0;
  border-left-color: #333;
  left: calc(0em - 5px);
  transform: translate(-.5em, -50%);
}
[tooltip][flow^="left"]::after {
  top: 50%;
  right: calc(100% + 5px);
  transform: translate(-.5em, -50%);
}

/* FLOW: RIGHT */
[tooltip][flow^="right"]::before {
  top: 50%;
  border-left-width: 0;
  border-right-color: #333;
  right: calc(0em - 5px);
  transform: translate(.5em, -50%);
}
[tooltip][flow^="right"]::after {
  top: 50%;
  left: calc(100% + 5px);
  transform: translate(.5em, -50%);
}

/* KEYFRAMES */
@keyframes tooltips-vert {
  to {
    opacity: .9;
    transform: translate(-50%, 0);
  }
}

@keyframes tooltips-horz {
  to {
    opacity: .9;
    transform: translate(0, -50%);
  }
}

/* FX All The Things */ 
[tooltip]:not([flow]):hover::before,
[tooltip]:not([flow]):hover::after,
[tooltip][flow^="up"]:hover::before,
[tooltip][flow^="up"]:hover::after,
[tooltip][flow^="down"]:hover::before,
[tooltip][flow^="down"]:hover::after {
  animation: tooltips-vert 300ms ease-out forwards;
}

[tooltip][flow^="left"]:hover::before,
[tooltip][flow^="left"]:hover::after,
[tooltip][flow^="right"]:hover::before,
[tooltip][flow^="right"]:hover::after {
  animation: tooltips-horz 300ms ease-out forwards;
}


.chat-bubble {
background-color:#f6f1e4;
padding:16px 28px;
-webkit-border-radius: 20px;
-webkit-border-bottom-left-radius: 2px;
-moz-border-radius: 20px;
-moz-border-radius-bottomleft: 2px;
border-radius: 20px;
border-bottom-left-radius: 2px;
display:inline-block;
max-width: 100px;
height: 50px;
display: none;
}
.typing {
align-items: center;
display: flex;
height: 17px;
}

.typing .dot {
animation: mercuryTypingAnimation 1.8s infinite ease-in-out;
background-color: #cbac5f  ; //rgb(203 172 95 / 70%);
border-radius: 50%;
height: 7px;
margin-right: 4px;
vertical-align: middle;
width: 7px;
display: inline-block;
}
.typing .dot:nth-child(1) {
animation-delay: 200ms;
}
.typing .dot:nth-child(2) {
animation-delay: 300ms;
}
.typing .dot:nth-child(3) {
animation-delay: 400ms;
}
.typing .dot:last-child {
margin-right: 0;
}

@keyframes mercuryTypingAnimation {
0% {
  transform: translateY(0px);
  background-color:#dac58f; // rgba(203 172 95,.7);
}
28% {
  transform: translateY(-7px);
  background-color:#eadebf; //rgba(203 172 95,.4);
}
44% {
  transform: translateY(0px);
  background-color: #f5eedf; //rgba(203 172 95,.2);
}
}
@media all and (max-width: 720px) {
.introbox {
      display: block;
      text-align: center;
  }
  .introboxleft {
      margin: 0 auto;
  }
  .intro-section-bottom {
      display: flex;
      text-align: center;
      margin: 0 10px;
      border-radius: 100px;
      flex-direction: column;
      gap: 5px;
      padding: 15px 15px 10px 15px;
      margin-bottom: 30px;
  }
  .intro-section-bottom h2 {
      font-size: 1.6em;
  }
  .intro-section-bottom svg {
      max-width: 15px;
      height: auto;
  }
  .ai-intro {
  margin-top: 30px;
  margin-bottom: 10px;
}
.chatbox-inner {padding: 10px;}
.ai-textarea-input {
  padding: 10px;
}
.chatinput-group textarea {
  font-size: 18px;
  line-height: 1.2;
}
.chat.incoming .chat-content {
  padding-right: 0;
  font-size: 14px;
}
  .chat.outgoing .chat-content {
    padding-left:0px
  }
  .chat .chat-content span.copy-message {
    display: none;
  }
.user-question {
padding-left: 0;

}
.featurebox {
max-width: 280px;
}
.btnsubmit {
  width: 85px;
}
.btnsubmit span {
  display: none;
}

body.current-chat-active .ai-intro {}
body.current-chat-active .chatbox-inner  {
height: calc(100vh - 180px);
}
  body.current-chat-active .ready-talk-section {
    display: block;
}
  body.current-chat-active .featureslide-section {
    height: auto;
  }
}