html,
body {
  width: 100vw;
  height: 100vh;
  margin: 0;
  border: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  -webkit-box-sizing: inherit;
  -moz-box-sizing: inherit;
  box-sizing: inherit;
}
:root {
  --text-color: #ececec;
  --icon-color: #acacbe;
  --icon-hover-bg: #282828;
  --placeholder-color: #dcdcdc;
  --outgoing-chat-bg: #282828;
  --incoming-chat-bg: #363636;
  --outgoing-chat-border: #343541;
  --incoming-chat-border: #444654;
  font-family: 'Open Sans', sans-serif;
}
.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;
}
.resizable-x,
.resizable-y {
  display: flex;
  overflow: hidden;
}

.resizable-x {
  height: 100%;
}

.resizable-y {
  flex-direction: column;
}

.resizer-x,
.resizer-y {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #555353;
  padding: 1px;
}

.resizer-x {
  z-index: 2;
  cursor: col-resize;
}
.resizer-x::before,
.resizer-x::after {
  content: '';
  width: 2px;
  height: 16px;
  margin: 0px;
  background: lightgray;
}
.resizer-y:active,
.resizer-x:active {
  background-color: #329bfc;
}
.resizer-y {
  z-index: 1;
  cursor: row-resize;
  flex-direction: column;
}
.resizer-y::before,
.resizer-y::after {
  content: '';
  width: 16px;
  height: 2px;
  margin: 0px;
  background: lightgray;
}

.div0,
.div1,
.div2,
.div3 {
  overflow: hidden;
}

.div0 {
  background: #222222;
  overflow: hidden;
}

.div1 {
  background: #222222;
}

.div2 {
  background: #222222;
}
.div3 {
  background: #222222;
  border-left: 5px solid #555353;
}
.div0 p,
.div1 p,
.div2 p,
.div3 p {
  font-size: 2rem;
  margin-left: 1em;
  /* text-transform: uppercase; */
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.textar1 {
  display: inline-flex;
  position: relative;
  gap: 10px;
  padding-top: 20px;
  background-color: #323232;
  border-radius: 2px;
  line-height: 21px;
  overflow-y: hidden;
  height: 100%;
  width: 100%;
}

.line-numbers {
  width: 50px;
  text-align: right;
  overflow: hidden;
  height: auto;
}
.line-numbers::-webkit-scrollbar {
  display: none;
}
.line-numbers span {
  counter-increment: linenumber;
}

.line-numbers span::before {
  content: counter(linenumber);
  display: block;
  font-size: 16px;
  color: #ececec;
}
.textara2 {
  position: absolute;
  z-index: 1;
  line-height: 21px;
  width: calc(100% - 60px);
  left: 60px;
  height: inherit;
  overflow-y: auto;
  padding: 0;
  background: #222222;
  color: #707070;
  font-size: 16px;
  font-family: 'Cascadia Code', sans-serif;
  border: none;
  outline: none;
  resize: none;
}
.textara {
  position: absolute;
  z-index: 2;
  line-height: 21px;
  width: calc(100% - 60px);
  left: 60px;
  height: 100%;
  overflow-y: auto;
  padding: 0;
  background: transparent;
  color: #ececec;
  font-size: 16px;
  font-family: 'Cascadia Code', sans-serif;
  border: none;
  outline: none;
  resize: none;
}
::-webkit-scrollbar {
  height: 100%;
}

/* Track */
::-webkit-scrollbar-track {
  width: 20px;
  background: #222222;
  border-left: 2px solid #000;
  background: #1c1b1b;
  box-shadow: 0px 5px 10px 12px rgba(98, 93, 93, 0.65) inset;
}
/* Handle */
::-webkit-scrollbar-thumb {
  position: absolute;
  width: 17px;
  margin-left: 3px;
  background: #626262;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}
.div0 {
  position: relative;
}
.div1 {
  position: relative;
}
.chat-container {
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 85%;
  margin-bottom: 100px;
}
/* :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 {
  padding: 25px 10px;
  display: flex;
  justify-content: center;
  color: var(--text-color);
}
.chat-container .chat.outgoing {
  background: var(--outgoing-chat-bg);
  border: 1px solid var(--outgoing-chat-border);
}
.chat-container .chat.incoming {
  background: var(--incoming-chat-bg);
  border: 1px solid var(--incoming-chat-border);
}
.chat .chat-content {
  display: flex;
  max-width: 1200px;
  width: 100%;
  align-items: flex-start;
  justify-content: space-between;
}
span.material-symbols-rounded {
  user-select: none;
  cursor: pointer;
}
.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;
  font-size: 1.05rem;
  padding: 0 50px 0 25px;
  color: var(--text-color);
  word-break: break-word;
}
.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: var(--text-color);
  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 {
  position: absolute;
  bottom: 0;
  width: 100%;
  display: flex;
  padding: 20px 10px;
  justify-content: center;
  background: #282828;
  border-top: 1px solid var(--incoming-chat-border);
}
.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: #1c1b1b;
  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;
  visibility: hidden;
}
.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) {
    font-size: 0.95rem !important;
  }
  .chat-container .chat {
    padding: 20px 10px;
  }
  .chat-container .chat img {
    height: 32px;
    width: 32px;
  }
  .chat-container .chat p {
    padding: 0 20px;
  }
  .chat .chat-content:not(:has(.typing-animation), :has(.error)) span {
    visibility: visible;
  }
  .typing-container {
    padding: 15px 10px;
  }
  .typing-textarea textarea {
    height: 45px;
    padding: 10px 40px 10px 10px;
  }
  .typing-content span {
    height: 45px;
    width: 45px;
    margin-left: 5px;
  }
  span.material-symbols-rounded {
    font-size: 1.25rem !important;
  }
}
select {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  margin: auto;
  max-width: 250px;
  width: auto;
  margin-top: 50px;
  padding: 10px;
  font-size: 21px;

  -webkit-appearance: none; /* Remove the default arrow in WebKit browsers */
  -moz-appearance: none; /* Remove the default arrow in Firefox */
  appearance: none; /* Remove the default arrow in other browsers */
  background-image: none; /* Remove the background arrow image */
  background-color: var(
    --incoming-chat-bg
  ); /* Set the background color for the pseudo-select element */
  color: var(--text-color);
  background-repeat: no-repeat;
  border: 1px solid #ccc;
  border-radius: 5px;
  outline: none;
  text-align: center;
}
.btn_scrolld {
  position: absolute;
  width: 35px;
  height: 35px;
  z-index: 2;
  margin-bottom: 20px;
  top: 0;
  margin-top: -50px;
  margin-right: 40px;
  right: 0;
}
.scroll-button {
  width: 35px;
  height: 35px;
  position: relative;
  align-items: center;
  justify-content: center;
  background-color: #010101;
  border-radius: 50%;
  display: none;
}

.scroll-button svg {
  width: 18px;
  height: 18px;
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.div5 {
  background-color: #141414;
}
