@import "https://fonts.googleapis.com/css?family=Noto+Sans";
* {
  box-sizing: border-box;
}

/* body {
  background: black;
  font: 12px/16px "Mulish", sans-serif;
} */

.floating-chat {
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  color: white;
  position: fixed;
  top: 40%;
  left: 10%;
  width: 55px;
  height: 800px;
  transform: translate(-50%, -50%)!important;
  transition: all 250ms ease-out;
  border-radius: 50%;
  opacity: 0;
  /* background: -moz-linear-gradient(
    -45deg,
    #183850 0,
    #183850 25%,
    #192c46 50%,
    #22254c 75%,
    #22254c 100%
  );
  background: -webkit-linear-gradient(
    -45deg,
    #183850 0,
    #183850 25%,
    #192c46 50%,
    #22254c 75%,
    #22254c 100%
  ); */
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.floating-chat.enter:hover {
  /* box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23); */
  opacity: 1;
}
.floating-chat.enter {
  transform: translateY(0);
  opacity: 0.6;
  /* box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.12), 0px 1px 2px rgba(0, 0, 0, 0.14); */
}
.floating-chat.expand {
  width: 369px;
  max-height: 500px;
  height: 800px;
  border-radius: 5px;
  cursor: auto;
  opacity: 1;
}
.floating-chat :focus {
  outline: 0;
  /* box-shadow: 0 0 3pt 2pt rgba(14, 200, 121, 0.3); */
}
.floating-chat button {
  background: transparent;
  border: 0;
  color: white;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
}
.floating-chat .chat {
  display: flex;
  flex-direction: column;
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  border-radius: 50%;
  transition: all 250ms ease-out;
  margin: auto;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
.floating-chat .chat.enter {
  opacity: 1;
  border-radius: 0;
  margin: 10px;
  width: 30vw;
  height: 70vh;
}
.floating-chat .chat .header {
  flex-shrink: 0;
  padding-bottom: 10px;
  padding: 20px;
  display: flex;
  background: transparent;
}
.floating-chat .chat .header .title {
  flex-grow: 1;
  flex-shrink: 1;
  padding: 0 5px;
  font-weight: 900;
  display: flex;
}
.floating-chat .chat .header button {
  flex-shrink: 0;
}
.floating-chat .chat .messages {
  padding: 30px;
  margin: 0;
  list-style: none;
  overflow-y: scroll;
  overflow-x: hidden;
  flex-grow: 1;
  border-radius: 4px;
  background: transparent;
}
.floating-chat .chat .messages::-webkit-scrollbar {
  width: 5px;
}
.floating-chat .chat .messages::-webkit-scrollbar-track {
  border-radius: 5px;
  background-color: rgba(25, 147, 147, 0.1);
}
.floating-chat .chat .messages::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background-color: rgba(25, 147, 147, 0.2);
}
.floating-chat .chat .messages li {
  position: relative;
  clear: both;
  display: inline-block;
  padding: 14px;
  margin: 0 0 20px 0;
  font: 14px/16px "Mulish", sans-serif;
  border-radius: 10px;
  /* thiennguyen background color of message */
  /* background-color: rgba(25, 147, 147, 0.2); */
  word-wrap: break-word;
  max-width: 81%;
}

/* thiennguyen customized message for human */
.floating-chat .chat .messages li.human {
  background-color: #3e4042;
}

/* thiennguyen customized message for AI */
.floating-chat .chat .messages li.ai {
  background-color: #0084ff;
}

.floating-chat .chat .messages li:before {
  position: absolute;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 20px;
  content: "";
  background-size: cover;
}
.floating-chat .chat .messages li:after {
  position: absolute;
  top: 20px;
  content: "";
  width: 0;
  height: 0;
  border-top: 10px solid rgba(25, 147, 147, 0.2);
}
.floating-chat .chat .messages li.human {
  animation: show-chat-odd 0.15s 1 ease-in;
  -moz-animation: show-chat-odd 0.15s 1 ease-in;
  -webkit-animation: show-chat-odd 0.15s 1 ease-in;
  float: right;
  /* margin-right: 45px; */
  /* color: #0ad5c1; */
}
/* .floating-chat .chat .messages li.human:before {
  right: -45px;
  background-image: url(https://github.com/Thatkookooguy.png);
}
.floating-chat .chat .messages li.human:after {
  border-right: 10px solid transparent;
  right: -10px;
} */
.floating-chat .chat .messages li.ai {
  animation: show-chat-even 0.15s 1 ease-in;
  -moz-animation: show-chat-even 0.15s 1 ease-in;
  -webkit-animation: show-chat-even 0.15s 1 ease-in;
  float: left;
  margin-left: 45px;
  /* thiennguyen: message text color */
  /* color: #0ec879;  */
}
.floating-chat .chat .messages li.ai:before {
  left: -55px;
  background-image: url(https://res.cloudinary.com/duoacapcy/image/upload/v1711905860/avatars/ypmwlpiibeeitvtsluxd.png);
}
.floating-chat .chat .messages li.ai:after {
  border-left: 10px solid transparent;
  left: -10px;
}
.floating-chat .chat .footer {
  flex-shrink: 0;
  display: flex;
  padding-top: 10px;
  /* max-height: 90px; */
  background: transparent;
}
.floating-chat .chat .footer .text-box {
  border-radius: 3px;
  background: #ffffff4e;
  min-height: 100%;
  width: 100%;
  /* margin-right: 5px; */
  color: #fff;
  font-weight: 600;
  overflow-y: auto;
  padding: 10px 10px;
  text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;

}
.floating-chat .chat .footer .text-box::-webkit-scrollbar {
  width: 5px;
}
.floating-chat .chat .footer .text-box::-webkit-scrollbar-track {
  border-radius: 5px;
  background-color: rgba(25, 147, 147, 0.1);
}
.floating-chat .chat .footer .text-box::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background-color: rgba(25, 147, 147, 0.2);
}

.floating-chat .fa-comments {
  font-size: 25px;
}

#sendMessage {
  margin-left: 10px;
}

.button-container {
  position: relative;
  display: inline-block;
  width: 50px; /* Adjust to the button's size */
  height: 50px; /* Adjust to the button's size */
  border-radius: 50%; /* Make it circular */
  overflow: hidden; /* Ensure the fill doesn't overflow */
  opacity: 1;
  transition: opacity 0.5s ease; /* Smooth fade-out transition */
}

.button-container.hidden {
  opacity: 0;
}

.button-container .fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(255, 0, 0); /* Adjust the color and transparency */
  border-radius: 50%; /* Match the circular shape */
  pointer-events: none; /* Ensure it doesn't block button clicks */
  transform: scale(0);
  transition: transform 0.4s ease-in 0.1s; /* Smooth transition when not hovered */
}

.button-container:hover .fill {
  transform: scale(0.8);
  transition: transform 0.4s ease-in; /* Add delay for the transition to grow */
}

.button-container img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%; /* Match the circular shape */
  position: relative; /* Ensure it stays above the fill */
  z-index: 1; /* Ensure it stays above the fill */
}



@keyframes show-chat-even {
  0% {
    margin-left: -480px;
  }
  100% {
    margin-left: 0;
  }
}
@-moz-keyframes show-chat-even {
  0% {
    margin-left: -480px;
  }
  100% {
    margin-left: 0;
  }
}
@-webkit-keyframes show-chat-even {
  0% {
    margin-left: -480px;
  }
  100% {
    margin-left: 0;
  }
}
@keyframes show-chat-odd {
  0% {
    margin-right: -480px;
  }
  100% {
    margin-right: 0;
  }
}
@-moz-keyframes show-chat-odd {
  0% {
    margin-right: -480px;
  }
  100% {
    margin-right: 0;
  }
}
@-webkit-keyframes show-chat-odd {
  0% {
    margin-right: -480px;
  }
  100% {
    margin-right: 0;
  }
}

@media screen and (max-width: 27em) {
  .floating-chat .chat.enter {
    opacity: 1;
    border-radius: 0;
    margin: auto;
    margin-top: 40vh;
    width: 100vw;
    height: 40vh;

  }
}

.three-canvas {
  padding-bottom: 10vh;
  mask-image: linear-gradient(to bottom, transparent, black 50%, black 90%, transparent); /* Apply gradient mask */
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 50%, black 90%, transparent); /* Support for WebKit browsers */
  
  }
  #fluid, #distortion-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100000;
  }