body {
  font-family: Arial, sans-serif;
  color: white;
  margin: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: #121212;
}

h1 {
  text-align: center;
  background: linear-gradient(to right, #22f 0%, #770088 50%, #ff0000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  filter: blur(0.5px);
}

h2 {
  text-align: center;
  font-size: 0.85em;
}

h3 {
  text-align: center;
  margin-top: -0.8em;
  font-size: 0.5em;
}

.select-container {
  display: flex;
  justify-content: center;
  margin: 0em 0;
}

select {
  text-align: center;
  color: white;
  font-size: 1.5em;
  border-radius: 15px;
  border: 2px solid #55c;
  background-color: #33a;
}

#output {
  flex: 1;
  padding: 1em;
  margin: 10px;
  overflow-y: auto;
  background: #222;
  border-radius: 30px;
}

.message {
  margin-bottom: 1em;
}

.user-label {
  color: #00bfff;
  font-weight: bold;
  margin-bottom: 0.25em;
}

.bot-label {
  color: #ff7f50;
  font-weight: bold;
  margin-bottom: 0.25em;
}

pre {
  background: #282828;
  padding: 1em;
  border-radius: 6px;
  min-height: 15px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: monospace;
  font-size: 12px;
  line-height: 1.4em;
  margin: 0.5em 0;
}

code {
  display: block;
  white-space: pre-wrap;
  background: #252525;
}

.input-bar {
  display: flex;
  align-items: center;
  padding: 0.5em;
  border-top: 1px solid #ccc;
  background: #222;
}

textarea {
  flex: 1;
  resize: none;
  overflow:auto;
  border: 1px solid #ccc;
  border-radius: 20px;
  padding: 0.5em 1em;
  font-family: sans-serif;
  font-size: 1.5em;
  height: 2rem;
  line-height: 1.4em;
  outline: none;
  background: #252525;
  color: #fff;
}

button {
  margin-left: 0.5em;
  padding: 0.5em 1em;
  border: none;
  border-radius: 20px;
  background: #007bff;
  color: white;
  font-size: 1.25em;
  cursor: pointer;
  text-shadow: 2px 2px black;
}

#settings {
  background: #444;
  position: absolute;
  right: 0.5rem;
  top: 0.5rem;
  font-size: 1.0em;
  text-shadow: 2px 2px black;
}

#resetchat {
  position: absolute;
  top: 0.5rem;
  left: 0rem;
  font-size: 1em;
  background: #444;
  color: black;
  text-shadow: 2px 2px black;
}

#resetchat:hover {
  scale: 1.2;
}

button:hover {
  background: #0056b3;
}

/* Processing Overlay */
#processing-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18,18,18,0.85);
  color: #fff;
  font-size: 2em;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  visibility: hidden;
}

/* Cookie consent banner */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.9);
  color: #fff;
  padding: 1em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10000;
}

#cookie-banner button {
  margin-left: 0.5em;
  padding: 0.5em 1em;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

#cookie-banner .accept-btn {
  background: #28a745;
  color: #fff;
}

#cookie-banner .decline-btn {
  background: #dc3545;
  color: #fff;
}

#settings-panel {
  position: absolute;
  display: none;
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: center;
  width: 80%;
  height: 30%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #333;
  border-radius: 20px;
  border: 3px solid #0f0e18;
  padding: 2rem;
  box-sizing: border-box;
  color: white;
}

#btnClose {
  position: absolute;
  height:2rem;
  font-size: 1em;
  top:4%;
  right:2.5%;
}

#btnCustomInstructions {
  height: 5rem;
  padding: 0 1.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 10px;
  border: none;
  background-color: #555;
  color: white;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

#voiceEnable {
  width: 1.2rem;
  height: 1.2rem;
  cursor: pointer;
}

label[for="voiceEnable"] {
  cursor: pointer;
  font-size: 2em;
}

footer a {
  font-size: .9em;
  font-weight: bold;
}