:root {
  --main-bg-color: #202124;
  --prompt-bg-color: #494b59;
  --prompt-color: #ccc;
  --chat-color: #fff;
}

*{
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/* configure scrollbar */
::-webkit-scrollbar { width: 8px; height: 3px;}
::-webkit-scrollbar-track {  background-color: #646464;}
::-webkit-scrollbar-track-piece { background-color: var(--main-bg-color);}
::-webkit-scrollbar-thumb { height: 50px; background-color: #666; border-radius: 3px;}
::-webkit-scrollbar-corner { background-color: #646464;}}
::-webkit-resizer { background-color: #666;}

body{
  width: 100%;
  height: 100vh;
  background-color: var(--main-bg-color);
  text-size-adjust: 100%;
  font-family: "Open Sans", ui-sans-serif, sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-feature-settings: normal;
  font-variation-settings: normal;
  font-size: 1rem;
  line-height: 1.5rem;
  tab-size: 4;
}

/* chat bubbles */
.chat{
  display: flex;
  gap: 1rem;
  min-height: 80px;
  padding: 1rem;
  color: var(--chat-color);
  font-size: 1rem;
}

.chat img{
  width: 35px;
  height: 35px;
}

.response{
  /*background-color: var(--prompt-bg-color);;*/
}

.hidden{
  display: none;
}

/* login message */
.login-container {
  height: calc(80vh - 10rem);
  width: 70vw;
  min-width: 500px;
  padding: 5px;
  margin: 0 auto;
}

/* autoscrollable message container */
.autoscrollable-container {
  height: calc(100vh - 10rem);
  width: 70vw;
  min-width: 500px;
  padding: 5px;
  margin: 0 auto;
}

.autoscrollable-wrapper {
  overflow-y: hidden;
  height: 100%;
  padding-right: 16px;
  display: flex;
  flex-direction: column-reverse;
}

/* scrollbar auto hidding */
.autoscrollable-wrapper:hover {
    overflow-y: scroll;
    /*overflow-y: auto; */
    padding-right: 8px;
}

.autoscrollable-content div {
  vertical-align: bottom;
  padding-right: 0px;
}

/* The Modal (background) */
.modal-container {
  position: fixed; /* Stay in place */
  z-index: 1000; /* Sit on top */
  left: 0;
  top: 0;
  width: 100vw; /* Full width */
  height: 100vh; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
  position: relative;
  background-color: var(--main-bg-color);
  color: var(--chat-color);
  margin: auto;
  top: 50%;
  transform: translate(0%, -50%);
  width: 450px;
  padding: 25px;
  border: 1px solid var(--prompt-bg-color);
  border-radius: 10px;
  font-size: 1rem;
}

.modal-content textarea::placeholder{
  color: var(--prompt-color);
}

/* Modal reportissue */
.reportissue select{
  width: 100%;
  font-size: 1rem;
  background-color: var(--prompt-bg-color);
  color: var(--chat-color);
  border: 1px solid var(--prompt-bg-color);
  border-radius: 5px;
  padding: .5rem .75rem;
  line-height: 1.25rem;
  margin-bottom: 1rem;
}

.reportissue textarea{
  height: 4rem;
  width: 100%;
  font-size: 1rem;
  background-color: var(--prompt-bg-color);
  color: var(--chat-color);
  border: 1px solid var(--prompt-bg-color);
  border-radius: 5px;
  outline: none;
  resize: none;
  padding: .5rem .75rem;
  line-height: 1.25rem;
  margin-bottom: 0.5rem;
}

.reportissue button{
  margin-top: 0.5rem;
  font-size: 1rem;
  background-color: var(--prompt-bg-color);
  color: var(--chat-color);
  border: 1px solid var(--prompt-bg-color);
  border-radius: 5px;
  padding: .5rem .75rem;
  line-height: 1.25rem;
}

.reportissue button.cancel{
  background-color: var(--main-bg-color);
  margin-right: 10px;
}

/* menu panel */
.menu-panel {
  position: absolute;
  bottom: 8.5rem;
  width: 100%;
  height: 0;
  z-index: 1000;
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  justify-content: flex-end;
  flex-direction: column;
}

.menu-expanded {
  height: 300px;
}

.menu-wrapper {
  background-color: var(--main-bg-color);
  color: var(--chat-color);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
  margin-top: 0;
  top: 0;
  height: 6rem;
  width: 70vw;
  min-width: 500px;
  padding: 15px;
  border: 1px solid var(--prompt-bg-color);
  border-radius: 5px;
  display: flex;
  flex-direction: column;
}

/* rotate button */
.menu-button {
  transition: all 0.3s;
}

.butt-rot180 {
  transform: rotate(180deg);
}

/* prompt templates panel */
.template-table {
  margin: auto;
  margin-top: -1rem;
}

.template-bubble {
  border: 1px solid var(--prompt-bg-color);
  color: var(--chat-color);
  border-radius: 1rem;
  padding: 5px;
  font-size: 0.9rem;
}

.template-bubble span{
  padding: 15px;
}

.template-bubble:hover {
  border: 1px solid white;
  cursor: pointer;
}

.template-bubble .title {
  font-weight: 600;
}

.template-bubble .description {
  opacity: 70%;
}

/* user prompt message bar */
.messagebar{
  position: fixed;
  bottom: 0;
  left: 0;
  height: 10rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--prompt-bg-color);
  background-color: var(--main-bg-color);
}

.messagebar .bar-wrapper{
  background-color: var(--prompt-bg-color);
  border-radius: 5px;
  margin-bottom: 1rem;
  height: 6rem;
  width: 70vw;
  min-width: 500px;
  padding: 5px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bar-wrapper input{
  width: 100%;
  padding: 5px;
  border: none;
  outline: none;
  font-size: 1rem;
  background: none;
  color: var(--prompt-color);
}

.bar-wrapper input::placeholder{
  color: var(--prompt-color);
}

.bar-wrapper textarea::placeholder{
  color: var(--prompt-color);
}

.bar-wrapper textarea:disabled {
  opacity: 12%;
}

.user-prompt {
  height:80%;
  width: 100%;
  margin-top: 0px;
  padding: 5px;
  border: none;
  outline: none;
  font-size: 1rem;
  background: none;
  color: var(--prompt-color);
  resize: none;
}

.messagebar button{
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--chat-color);
  cursor: pointer;
}

.bar-buttons {
    height: 100%;
    padding: 0px;
    justify-content: space-between;
    display: flex;
    flex-direction: column;
}

/* footer */
.messagefooter {
    position: absolute;
    margin-left: auto;
    margin-right: auto;
    bottom: 0.5rem;
    font-size: 10px;
    color: var(--prompt-color);
}

/* position top-right */
.top-right {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
}

/* icon hover background */
.icon-wrap {
  /* don't take the whole line */
  display: inline-block;
  /* transition the background change */
  transition: background-color 0.25s;
  /* space between the icon and the background edge */
  padding: 0.25em;
  /* make it rounded */
  border-radius: 50%;
}

.icon-wrap:hover {
  /* add a background on hover */
  background-color: rgba(255, 255, 255, .15);
  /* pointer cursor on hover */
  cursor: pointer;
}

/* mirror icon */
.icon-flipped {
    transform: scaleX(-1);
    -moz-transform: scaleX(-1);
    -webkit-transform: scaleX(-1);
    -ms-transform: scaleX(-1);
}

/* Bars loading... */
.lds-bars {
  display: inline-block;
  position: relative;
  width: 40px;
  height: 40px;
}
.lds-bars div {
  display: inline-block;
  position: absolute;
  left: 4px;
  width: 8px;
  background: #fed;
  animation: lds-bars 1.8s cubic-bezier(0, 0.5, 0.5, 1) infinite;
}
.lds-bars div:nth-child(1) {
  left: 4px;
  animation-delay: -0.24s;
}
.lds-bars div:nth-child(2) {
  left: 16px;
  animation-delay: -0.12s;
}
.lds-bars div:nth-child(3) {
  left: 28px;
  animation-delay: 0;
}
@keyframes lds-bars {
  0% {
    top: 4px;
    height: 32px;
  }
  50%, 100% {
    top: 12px;
    height: 16px;
  }
}

/* Circle loading... */
.lds-circle {
  display: inline-block;
  transform: translateZ(1px);
}
.lds-circle > div {
  display: inline-block;
  width: 32px;
  height: 32px;
  margin: 4px;
  border-radius: 50%;
  background: #fed;
  animation: lds-circle 2.4s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}
@keyframes lds-circle {
  0%, 100% {
    animation-timing-function: cubic-bezier(0.5, 0, 1, 0.5);
  }
  0% {
    transform: rotateY(0deg);
  }
  50% {
    transform: rotateY(1800deg);
    animation-timing-function: cubic-bezier(0, 0.5, 0.5, 1);
  }
  100% {
    transform: rotateY(3600deg);
  }
}

/* Grid loading... */
.lds-grid {
  display: inline-block;
  position: relative;
  width: 40px;
  height: 40px;
}
.lds-grid div {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fed;
  animation: lds-grid 1.8s linear infinite;
}
.lds-grid div:nth-child(1) {
  top: 4px;
  left: 4px;
  animation-delay: 0s;
}
.lds-grid div:nth-child(2) {
  top: 4px;
  left: 16px;
  animation-delay: -0.4s;
}
.lds-grid div:nth-child(3) {
  top: 4px;
  left: 28px;
  animation-delay: -0.8s;
}
.lds-grid div:nth-child(4) {
  top: 16px;
  left: 4px;
  animation-delay: -0.4s;
}
.lds-grid div:nth-child(5) {
  top: 16px;
  left: 16px;
  animation-delay: -0.8s;
}
.lds-grid div:nth-child(6) {
  top: 16px;
  left: 28px;
  animation-delay: -1.2s;
}
.lds-grid div:nth-child(7) {
  top: 28px;
  left: 4px;
  animation-delay: -0.8s;
}
.lds-grid div:nth-child(8) {
  top: 28px;
  left: 16px;
  animation-delay: -1.2s;
}
.lds-grid div:nth-child(9) {
  top: 28px;
  left: 28px;
  animation-delay: -1.6s;
}
@keyframes lds-grid {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
