body {
  font-family: Arial, sans-serif;
  background-color: #2c2c2c;
  /* Dark gray background */
  color: #e0e0e0;
  /* Light text color */
  transition: background-color 0.3s, color 0.3s;
}

a {
    color: #CCDEBB;
}

a:visited {
    color: #b2c1a3;
}

a:hover {
    color: #cadfb5;
}

pre {
  white-space: normal;
}

#reset-session {
  cursor: pointer;
}

.float-grandparent {
  position: relative;
  float: inline-end;
}

.float-parent {
  position: absolute;
}

#scroll-top {
  /* Do not set top / left! */
  position: fixed;
  padding: 0.65rem;
  /*border: 1px solid #555;*/
  background-color: #4e695d22;
  border-radius: 0.5rem 0.5rem 0.5rem 0.5rem;
  margin-left: -3.4rem;
  cursor: pointer;
  box-shadow: 2px 2px 5px #333;
  width: 1.5rem;
  height: 1.5rem;
  transition: background-color 0.3s;
  top: calc(40%);
}

#scroll-top:hover {
  background-color: #3b554ae5;
  /* Slightly darker on hover */
}

#hide-ui {
  /* Do not set top / left! */
  position: fixed;
  padding: 0.4rem 0.7rem 0.4rem;
  /*border: 1px solid #555;*/
  background-color: #4e695d22;
  color: #e0e0e033;
  border-radius: 0.5rem 0.5rem 0.5rem 0.5rem;
  margin-left: -3.4rem;
  cursor: pointer;
  box-shadow: 2px 2px 5px #333;
  font-size: x-large;
  transition: background-color 0.3s;
  top: calc(40% + 4rem);
}

#hide-ui:hover {
  background-color: #3b554ae5;
  /* Slightly darker on hover */
}

*:focus-visible {
  outline: 1px solid #777;
}

div:focus-visible {
  outline: 1px solid #777;
}

main {
  padding: 0.2rem;
}

#chat-header {
  padding: 0.2rem 0.5rem;
  margin: auto;
  border: 1px solid #555;
  background-color: #3a3a3a;
  border-radius: 0.5rem 0.5rem 0 0;
  display: flex;
  justify-content: space-between;
}

.title {
  font-size: 1.5rem;
  display: inline-block;
  margin-right: 0.5rem;
}

.info {
  font-size: 1rem;
  display: inline-block;
  margin-left: 0.5rem;
  line-break: anywhere;
}

.chat-container {
  max-width: 1440px;
  margin: auto;
  padding: 0;
  background-color: #3a3a3a;
  /* Slightly lighter dark background for the chat container */
}

h2,
h1 {
  color: #ffffff;
  /* White for headings */
}

.message {
  padding: 1rem;
  border-radius: 0.5rem;
  margin: 1rem 0;
  width: fit-content;
}

.user {
  background-color: #4b4b4b;
  /* Dark gray for user messages */
  color: #e0e0e0;
  /* Light text color for user messages */
  border-radius: 1rem 1rem 0 1rem;
  box-shadow: -2px 3px 5px #333;
  display: flex;
  justify-content: end;
  margin-left: auto;
}

.user-inner {
  text-align: left;
}

.bot {
  background-color: #4e695d;
  /* Soft green for bot messages */
  text-align: left;
  color: #ffffff;
  /* White text for bot messages */
  border-radius: 1rem 1rem 1rem 0;
  box-shadow: 2px 3px 5px #333;
}

#input-footer {
  position: fixed;
  bottom: 0;
  width: calc(100% - 2.5rem);
  display: flex;
  justify-content: space-between;
  border: 1px solid #555;
  background-color: #3a3a3a;
  border-radius: 0 0 0.5rem 0.5rem;
  padding: 0.5rem;
  max-width: calc(1440px - 1.1rem);
  margin-left: -0.56rem;
}

input[type="text"] {
  width: calc(100% - 6rem);
  /* Ensure the input takes most of the width */
  padding: 0.5rem;
  margin-right: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid #555;
  /* Subtle border */
  background-color: #3d3d3d;
  /* Input background */
  color: #e0e0e0;
  /* Text color for input */
  font-size: medium;
}

input:focus-visible {
  outline: 1px solid #777;
}

textarea {
  width: calc(100% - 5rem);
  /* Ensure the input takes most of the width */
  padding: 0.5rem;
  margin-right: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid #555;
  /* Subtle border */
  background-color: #3d3d3d;
  /* Input background */
  color: #e0e0e0;
  /* Text color for input */
  font-size: large;
  min-height: 1.2rem;
  height: 1.2rem;
  display: inline-block;
  box-shadow: -2px 3px 5px #333;
  font-family: Arial, sans-serif;
  scrollbar-width: thin;
  resize: none;
}

textarea:focus-visible {
  outline: 1px solid #777;
}

button {
  padding: 0.2rem 0.65rem 0.2rem 0.65rem;
  border: none;
  border-radius: 0.5rem;
  background-color: #4e695d;
  /* Soft green button */
  color: white;
  cursor: pointer;
  transition: background-color 0.3s;
  width: 3rem;
  font-size: medium;
  /*float: inline-end;*/
  margin-top: 0.2rem;
  display: inline-block;
  box-shadow: -2px 3px 5px #333;
  height: 2.5rem;
}

button:hover {
  background-color: #3b554a;
  /* Slightly darker on hover */
}

button:focus-visible {
  outline: 1px solid #777;
}

#form-button-icon {
  width: 2rem;
  margin-top: 20%;
}

#chat-box {
  /*height: calc(75vh - 2rem);*/
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid #555;
  /* Subtle border for the chat box */
  padding: 0.5rem;
  background-color: #3d3d3d;
  /* Dark background for the chat box */
  scrollbar-width: thin;
  margin-bottom: 5.35rem;
}

.center-child {
  margin: auto;
  padding: 1rem;
}

.loader-pig {
  border: 0.4rem solid #555;
  border-radius: 50% 50% 40% 40%;
  width: 4rem;
  height: 3rem;
  -webkit-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;
}

.loader-n1 {
  border: 0.2rem solid #555;
  border-radius: 50%;
  width: 1rem;
  height: 1rem;
  margin-left: 2.5rem;
  margin-top: 0.7rem;
  display: inline-box;
  background-color: #555;
}

.loader-n2 {
  border: 0.2rem solid #555;
  border-radius: 50%;
  width: 1rem;
  height: 1rem;
  margin-left: 0.1rem;
  margin-top: -1.3rem;
  display: inline-box;
  background-color: #555;
}

/* Safari */
@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

pre {
  border: 1px solid #999;
  page-break-inside: avoid;
  display: block;
  padding: 0.5rem;
  margin: 0 0 1rem;
  font-size: 0.8rem;
  line-height: 1rem;
  word-break: break-all;
  word-wrap: break-word;
  /*white-space: pre;
  white-space: pre-wrap;*/
  -webkit-border-radius: 0.4rem;
  -moz-border-radius: 0.4rem;
  border-radius: 0.4rem;
  font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
}

pre code {
  padding: 0;
  color: inherit;
  white-space: pre;
  white-space: pre-wrap;
  background-color: transparent;
  border: 0;
}

.flex-end {
  display: flex;
  justify-content: flex-end;
}

.copy-code-button {
  position: absolute;
  padding: 0.2rem 0.6rem;
  background-color: #3d3d3d77;
  font-size: 0.8rem;
  border-radius: 0.3rem;
  cursor: pointer;
  transition: background-color 0.3s;
  color: #ffffff88;
  width: max-content;
}

.copy-code-button:hover {
  background-color: #2c2c2c77;
}