@font-face {
  font-display: swap;
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: 400;
  src: url('material-icons-v142-latin-regular.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Material Icons Round';
  font-style: normal;
  font-weight: 400;
  src: url('material-icons-round-v108-latin-regular.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Material Symbols Rounded';
  font-style: normal;
  font-weight: 400;
  src: url('material-symbols-rounded-v194-latin-regular.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  src: url('poppins-v21-latin-regular.woff2') format('woff2');
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

:root {
  --text-color: #FFFFFF;
  --icon-color: #e3e3eb;
  --icon-hover-bg: #5b5e71;
  --placeholder-color: #f5f5f5;
  --outgoing-chat-bg: rgba(105, 145, 135, 1);
  --incoming-chat-bg: rgba(85, 142, 129, 1);
  --outgoing-chat-border: rgba(85, 142, 129, 0.6);
	--nav-color: #eee;
	--incoming-text-color: #f1f1e9;
	--outgoing-text-color: rgb(230, 230, 230);
	--menu-text-color: rgba(230, 230, 230, 1);
	--menu-text-color-hover: rgba(230, 230, 230, 0.5);
}

.light-mode {
  --text-color: #343541;
  --icon-color: #a9a9bc;
  --icon-hover-bg: #f1f1f3;
  --placeholder-color: #6c6c6c;
  --outgoing-chat-bg: #FFFFFF;
  --incoming-chat-bg: #f3f3f3;
  --outgoing-chat-border: #FFFFFF;
  --incoming-chat-border: #D9D9E3;
	--nav-color: #898989;
	--incoming-text-color: #343541;
	--outgoing-text-color: #343541;
	--menu-text-color: rgba(30, 30, 30, 1);
	--menu-text-color-hover: rgba(30, 30, 30, 0.5);
}

html {
  height: 100%;
}

body {
  background: var(--outgoing-chat-bg);
  height: 100%;
  min-height: 100%;
  position: relative;
  font-size: 0.95rem;
}

img {
  width: auto;
  max-width: 100%;
}

h2, h3, p {
  margin-bottom: 1em;
}

hr {
  border-top: 1px solid rgb(228, 222, 222);
}

.qa {
  color: rgb(82, 75, 75);
}

a, a:focus, a:active, a:visited {
  color: rgb(202, 202, 168);
}

a:hover {
  color: #fff;
}

li {
  margin-left: 1em;
}

/* -------- */

.loginleft {
  position: relative;
  width: 60%;
  float: left;
  height: 100vh;
}

.loginright {
  position: relative;
  width: 40%;
  float: right;
  min-height: 100%;
  height: 100vh;
  background: var(--incoming-chat-bg);
}

form {
  height: auto;
  width: 300px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 40px rgba(8, 7, 16, 0.6);
  padding: 20px 35px 40px 35px;
}

form * {
  font-family: inherit;
  color: #333;
  letter-spacing: 0.5px;
  outline: none;
  border: none;
}

form.loginform {
  margin: 5em auto 0 auto;
}

form h3 {
  font-weight: 500;
  line-height: 42px;
  text-align: center;
}

label {
  display: block;
  margin-top: 30px;
  font-weight: 500;
}

input {
  display: block;
  height: 50px;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 3px;
  padding: 0 10px;
  margin-top: 8px;
  font-weight: 300;
}

::placeholder {
    color: #555;
}

input[type=submit].login {
  margin-top: 50px;
  width: 100%;
  background-color: #333;
  color: #fff;
  padding: 15px 0;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  -webkit-transition: color .2s, background .2s, height .2s;
	-moz-transition: color .2s, background .2s, height .2s;
	-o-transition: color .2s, background .2s, height .2s;
	-ms-transition: color .2s, background .2s, height .2s;
	transition: color .2s, background .2s, height .2s;
}

input[type=submit].login:hover {
  background-color: #aaa;
  color: #333;
}

.index-logo {
  width: 100%;
  text-align: center;
  margin-top: 2em;
}

span.msg {
  color: rgb(123, 22, 22);
  font-size: 0.7rem;
}

.select-wrapper {
  width: auto;
  max-width: 300px;
  position: relative;
  display: none;
}

.select-wrapper::before {
  font-family: 'Material Icons';
  content: "\e313";
  font-size: 26px;
  position: absolute;
  right: 10px;
  top: 5px;
  color: #111;
  pointer-events: none;
}

select {
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  border: none;
}

select::-ms-expand {
  display: none;
}

select {
  width: 909%;
  -moz-padding-start: calc(10px - 3px);
  padding: 6px 10px 6px 10px;
  background: #f2f0d9;
  color: #333;
  font-family: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  border-radius: 3px;
  outline: none;
}

option {
  padding: 10px 10px;
  background: #fff;
}

select:focus::-ms-value {
  background-color: transparent;
}

/* ----------- */

.clear {
	clear: both;
}

.clear:after {
	content: ".";
	visibility: hidden;
	display: block;
	height: 0;
	clear: both;
}


/* Chats container styling */
.chat-container {
  overflow-y: auto;
  max-height: 100vh;
  padding-bottom: 150px;
}

: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: 3rem;
}

.default-text p {
  margin-top: 10px;
  font-size: 0.9rem;
}

.chat-container .chat {
  padding: 25px 0 15px 50px;
  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: 0px solid var(--incoming-chat-border);
	color: var(--incoming-text-color);
}

.chat-container .chat.incoming:last-child {
  padding-bottom: 70px;
}

.chat .chat-content {
  display: flex;
  max-width: 1350px;
  width: 100%;
  align-items: flex-start;
  justify-content: space-between;
  margin: 0 4em;
}

span.material-symbols-rounded {
  user-select: none;
  cursor: pointer;
  font-family: 'Material Symbols Rounded';
}

#send-btn {
  font-family: 'Material Symbols Rounded';
}

.chat .chat-content span {
  cursor: pointer;
  font-size: 1rem;
  color: var(--icon-color);
  visibility: hidden;
}

.chat .chat-content span.material-symbols-rounded {
  visibility: visible;
  font-size: 24px;
  color: rgb(248, 144, 9);
}

.chat:hover .chat-content:not(:has(.typing-animation), :has(.error)) span {
  visibility: visible;
}

.chat .chat-details {
  display: flex;
  align-items: center;
}

.chat .chat-incoming .chat-details {
  display: flex;
  align-items: center;
	margin-bottom: 2em;
}

.chat .chat-details.quest {
	margin-bottom: 0;
}

.chat .chat-content span.chats {
  cursor: default;
	align-self: flex-start;
  object-fit: cover;
}

.chat .chat-details img {
  width: 35px;
  height: 35px;
  align-self: flex-start;
  object-fit: cover;
  border-radius: 2px;
}

.chat .chat-details p,
.chat .chat-details div.output {
  white-space: pre-wrap;
  font-size: 0.95rem;
  padding: 0 50px 0 25px;
  color: var(--text-color);
  word-break: break-word;
}

.chat .chat-details p.error {
  color: #e55865;
}

.chat .chat-details table,
.archive table {
	width: 100%;
  min-width: 800px;
	table-layout: fixed; 
	border-collapse: collapse;
	border-spacing: 0;
  background: rgba(255, 255, 255, 0.9);
  font-size: inherit;
}

.chat .chat-details table td,
.archive table td {
  border: solid thin #ccc;
	vertical-align: top;
  text-align: left;
	padding: 4px 10px;
  color: #333;
}

.chat .chat-details table tr:nth-child(even),
.archive table tr:nth-child(even) {
  background-color: rgba(225, 225, 225, 0.9);
}

.tablewrap {
  overflow-x: auto;
}

.incoming p {
	color: var(--incoming-text-color) !important;
}

.outgoing p {
	color: var(--outgoing-text-color) !important;
}

.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;
}

#standard {
	text-align: center;
	width: 100%;
	position: fixed;
	bottom: 90px;
	left: 0;
	background: transparent;
}
	
.enterIt {
	color: #333;
	display: inline-block;
	margin-right: 1em;
	background: #f2f0d9;
	border-radius: 6px;
	padding: 6px 10px;
	cursor: pointer;
	font-size: 0.8rem;
}
	
.enterIt[data-title] {
  position: relative;
}
	
.enterIt[data-title]:after {
  position: absolute;
  top: -2.5em;
  background-color: #fff;
  border: 1px solid #c0c0c0;
	border-radius: 6px;
  padding: 0.2em;
  line-height: 1.2em;
  content: attr(data-title);
  display: none;
  width: 17.7em;
  color: #484848;
	z-index: 200;
	font-size: 0.8rem;
}

.enterIt[data-title]:focus:after,
.enterIt[data-title]:hover:after {
  display: block;
}

.sugg {
	color: #555;
	margin-right: 1em;
  font-size: 0.8rem;
}

.archive {
  color: var(--incoming-text-color);
  max-width: 1500px;
  margin: 40px auto 200px auto;
  padding: 0 120px;
}

.archive-menu {
  padding: 1em 1em;
	background: rgba(20, 20, 20, 0.1);
  border-top: solid 1px #ccc;
  border-bottom: solid 1px #ccc;
}

.archive-menu ul {
  list-style: none;
}

.archive-menu ul li {
  display: inline-block;
  margin-right: 1em;
}

.archive-menu ul li a,
.archive-menu ul li a:focus,
.archive-menu ul li a:visited {
  color: var(--menu-text-color);
}

.archive-menu ul li a:hover {
  color: var(--menu-text-color-hover);
}

.my-auto {
	padding-bottom: 120px;
}

.key {
  font-weight: bold;
  font-size: 110%;
  color: #e7dacb;
  margin-top: 2em;
  margin-bottom: 1em;
}

.answers {
  color: var(--incoming-text-color);
  margin-bottom: 1em;
}

#experience {
  margin-bottom: 200px;
}

.italic {
  font-style: italic;
}

.x {
  position: absolute;
  left: 0;
  top: 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: fixed;
  bottom: 0;
  width: 99.95%;
  display: flex;
  padding: 70px 10px 20px 10px;
  justify-content: center;
  background: #fff;
  height: 180px;
}

.usrarchive {
  height: 90px;
}

.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: 0.8rem;
  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;
  visibility: hidden;
}

.typing-textarea textarea:valid ~ span {
  visibility: visible;
}

.typing-controls {
  display: flex;
}

.typing-controls span {
  margin-left: 7px;
  font-size: 1rem;
  background: var(--incoming-chat-bg);
  outline: 1px solid var(--incoming-chat-border);
}

.typing-controls span:hover {
  background: var(--icon-hover-bg);
}

.mobilehead {
  display: none;
}

.here {
  font-weight: bold;
  text-decoration: none;
  opacity: 0.9;
  letter-spacing: 0.1em;
}

/* ----- */

#menuToggle {
  display: block;
  position: relative;
  top: 24px;
  left: 24px;  
  z-index: 200;  
  -webkit-user-select: none;
  user-select: none;
}

#menuToggle a {
  text-decoration: none;
  color: #232323;  
  transition: color 0.3s ease;
}

#menuToggle a:hover {
  color: tomato;
}

#menuToggle input {
  display: block;
  width: 40px;
  height: 32px;
  position: absolute;
  top: -7px;
  left: -5px;  
  cursor: pointer;  
  opacity: 0; /* hide this */
  z-index: 300; /* and place it over the hamburger */  
  -webkit-touch-callout: none;
}

#menuToggle span {
  display: block;
  width: 33px;
  height: 4px;
  margin-bottom: 5px;
  position: relative;  
  background: var(--nav-color);
  border-radius: 3px;  
  z-index: 1;  
  transform-origin: 4px 0px;  
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
  background 0.5s cubic-bezier(0.77,0.2,0.05,1.0), opacity 0.55s ease;
}

#menuToggle span:first-child {
  transform-origin: 0% 0%;
}

#menuToggle span:nth-last-child(2) {
  transform-origin: 0% 100%;
}

#menuToggle input:checked ~ span {
  opacity: 1;
  transform: rotate(45deg) translate(-2px, -1px);
  background: #232323;
}

#menuToggle input:checked ~ span:nth-last-child(3) {
  opacity: 0;
  transform: rotate(0deg) scale(0.2, 0.2);
}

#menuToggle input:checked ~ span:nth-last-child(2) {
  transform: rotate(-45deg) translate(0, -1px);
}

#menu {
  position: fixed;
  width: 280px;
  margin: -100px 0 0 -50px;
  padding: 40px;
  padding-top: 125px;  
  background: #ededed;
  list-style-type: none;
  -webkit-font-smoothing: antialiased;
  /* to stop flickering of text in safari */  
  transform-origin: 0% 0%;
  transform: translate(-100%, 0);  
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
}

#menu li {
  padding: 10px 0 0 30px;
  font-size: 1rem;
}

#menuToggle input:checked ~ ul {
  transform: none;
}

/* --- */

.logo {
  position: fixed;
  top: 80px;
  left: 22px;
}

/* back to top button */

.back-to-top {
  background: rgba(0, 0, 0, 0.8);
  border-radius: 100%;
  position: fixed;
  bottom: 80px;
  right: 20px;
  padding: 20px 20px;
  z-index: 100;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
}

.back-to-top:hover {
  background: rgba(128, 0, 0, 1);
  color: #fff;
}

.back-to-top i,
.back-to-top span {
  font-size: 2em;
  font-weight: thin;
}


/* Reponsive Media Query */

@media screen and (max-width: 1700px) {
  .logo {
    width: 80px;
  }
}

@media screen and (max-width: 800px) {
  
  .loginleft {
    display: none;
  }

  .loginright {
    width: 100%;
  }

  .mobilehead {
    display: block;
  }

  .logo {
    width: 80px;
  }

  .archive {
    padding: 0 1.2em;
    margin-top: 1em;
    padding-left: 120px;
  }

  .answers:last-child {
    padding-bottom: 12px;
  }
  
  .default-text h1 {
    font-size: 2.3rem;
  }

  :where(.default-text p, textarea, .chat p) {
    font-size: 0.95rem!important;
  }

  .chat-container {
    margin-top: 0;
    border: none;
  }

  .chat-container .chat {
    padding: 20px 0 10px 40px;
    margin: 0;
  }

  .chat-container .chat img {
    height: 32px;
    width: 32px;
  }

  .chat-container .chat p {
    padding: 0 0 0 30px;
  }

  .chat .chat-content {
    margin-right: 0;
  }

  .chat .chat-content:not(:has(.typing-animation), :has(.error)) span {
    visibility: visible;
  }

  .chat-container .chat.outgoing,
  .chat-container .chat.incoming {
    border: none;
  }

  .prompts-wrapper {
    display: none;
  }

  .select-wrapper {
    display: inline-block;
    width: 90%;
  }

  select {
    max-width: 300px;
  }

  .typing-container {
    padding: 15px 10px;
    height: 150px;
  }

  .usrarchive {
    height: 80px;
  }

  .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;
    font-family: 'Material Symbols Rounded';
  }
}

/* ----- */