.custom-navbar { background-color: #820000 !important;} /* Ensures override of default Bootstrap styles */
#backgroundCornerImage {
    position: fixed;        /* Fixed position relative to the viewport */
    right: 0;               /* Align to the right side of the viewport */
    bottom: 50px;              /* Align to the bottom of the viewport */
    z-index: -1;            /* Set behind other content */
    width: 200px;           /* Specify a width, or 'auto' if preserving aspect ratio */
    height: auto;           /* Height can be auto to maintain aspect ratio */
    opacity: 0.8;           /* Optional: adjust opacity to ensure text readability */
}
#topCornerImage {
    position: fixed;
    left: 0;
    top: 50px;
    z-index: -1;
    width: 200px;
    height: auto;
    opacity: 0.8;
    transform: rotate(180deg); /* Rotates the image 180 degrees */
}
#backgroundCornerImage-kiosk {
  position: fixed;        /* Fixed position relative to the viewport */
  right: 0;               /* Align to the right side of the viewport */
  bottom: 0px;              /* Align to the bottom of the viewport */
  z-index: -1;            /* Set behind other content */
  width: 200px;           /* Specify a width, or 'auto' if preserving aspect ratio */
  height: auto;           /* Height can be auto to maintain aspect ratio */
  opacity: 0.8;           /* Optional: adjust opacity to ensure text readability */
}
#topCornerImage-kiosk {
  position: fixed;
  left: 0;
  top: 0px;
  z-index: -1;
  width: 200px;
  height: auto;
  opacity: 0.8;
  transform: rotate(180deg); /* Rotates the image 180 degrees */
}
.orbitron-font {
  font-family: "Orbitron", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}
h1, h2, h3, h4, h5, h6 {
  font-family: "Orbitron", sans-serif;
}
.persona {color: #0853A8;}
select.persona, input.persona, option.persona {
  background-color: #BFE1F6;
  color: #0853A8;
}
.audience {color: #13734B;}
select.audience, input.audience, option.audience {
  background-color: #D4EDBB;
  color: #13734B;
}
.posture {color: #5B3286;}
select.posture, input.posture, option.posture {
  background-color: #E6CFF3;
  color: #5B3286;
}
.limitations {color: #B10202;}
select.limitations, input.limitations, option.limitations {
  background-color: #FFCFC8;
  color: #B10202;
}
.process {color: #A65703;}
select.process, input.process, option.process {
  background-color: #FFE6C7;
  color: #A65703;
}
.slider-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: -10px;
}
.slider-label span {
  width: 50%;
}
.slider-label .left {
  text-align: left;
}
.slider-label .right {
  text-align: right;
}
#blocklyContainer {
  position: relative;
  width: 100%;
  height: 100vh;
}
#blocklyDiv {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
.highlight-blue {
  background-color: #BFE1F6;
  color: #0853A8;
  padding: 0 5px;
  border-radius: 3px;
}
.highlight-purple {
  background-color: #E6CFF3;
  color: #5B3286;
  padding: 0 5px;
  border-radius: 3px;
}
@media (min-width: 768px) {
  .prompt-list {
    max-height: 400px;
    overflow-y: auto;
  }
  .prompt-detail {
    max-height: 400px;
    overflow-y: auto;
  }
}
.download-container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

#download-status {
  border: solid 1px black;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -2px rgba(0, 0, 0, .05);
  padding: 10px;
  border-radius: 5px;
}

.chat-container {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.chat-box {
  overflow-y: auto;
  border: solid 1px #c3c3c3;
  padding: 10px;
  flex: 1;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  min-height: 400px;
}

#chat-messages {
  flex-grow: 1;
}

.chat-stats {
  background-color: #D3ECEB;
  flex: 0 0 auto;
  padding: 10px;
  font-size: 0.75rem;
}

.message-container {
  width: 100%;
  display: flex;
}

.message {
  padding: 10px;
  margin: 10px 0;
  border-radius: 10px;
  width: fit-content;
}

.message-container.user {
  justify-content: flex-end;
}

.message-container.assistant {
  justify-content: flex-start;
}

.message-container.user .message {
  background: #8C1515;
  color: #fff;
  border-radius: 15px 15px 0 15px;
}

.message-container.assistant .message {
  background: #f1f0f0;
  color: #333;
  border-radius: 15px 15px 15px 0;
}

.hidden {
  display: none;
}

.start-messages {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: auto;
}

.start-message {
  flex: 0 0 calc(50% - 10px);
  margin: 5px;
  padding: 10px;
  background-color: #f0f2f5;
  border-radius: 8px;
  cursor: pointer;
}

.chat-input {
  display: flex;
  margin-top: 20px;
}

.chat-input input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 20px;
  font-size: 16px;
}

.send-button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  font-size: 20px;
  margin-left: 10px;
}

.model-info {
  margin-top: 10px;
  font-size: 12px;
  color: #65676B;
}

#cached-models {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  padding: 0.5rem;
}

#cached-models h6 {
  margin-bottom: 0.5rem;
}

#cached-models-list li {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}
.current-document ins {
  background: lightgreen;
  text-decoration: none;
}

.current-document del {
  background: pink;
}

.system-generated del {
  visibility: hidden;
}

.system-generated ins {
  text-decoration: none;
}

.system-generated ins ~ del {
  display: none;
}

ins {
  background-color: #d4fcbc;
  text-decoration: none;
}

del {
  background-color: #fbb6c2;
  text-decoration: line-through;
}

.editor-container {
  display: flex;
  flex-direction: column;
  height: 100vh - 200px;
  padding: 20px;
  box-sizing: border-box;
}

.editor-title {
  margin-top: 0;
  margin-bottom: 10px;
}

.editor-message {
  margin-bottom: 10px;
}

.editor-form {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.trix-content {
  flex-grow: 1;
  overflow-y: auto;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 10px;
}

.save-button {
  margin-top: 10px;
  align-self: flex-start;
}

/* Trix toolbar modifications */
.trix-button-group {
  border-color: #bbb;
}

.trix-button {
  border-bottom: 1px solid #ccc;
}

/* Optional: Adjust Trix editor's internal spacing */
.trix-content {
  line-height: 1.5;
  padding: 10px;
}

.trix-content h1 {
  margin-top: 0;
}

img.chatbot-avatar {
  width: 35%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  margin: 20px auto;
  object-fit: cover;
  object-position: center;
  display: block;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  transition: box-shadow 0.3s ease;
}

.gallery-card{
  padding-top: 1.5em;
  border-radius: 2em;
  box-shadow: 0 5px 10px rgba(0,0,0,.2);
}
.gallery-card-title{
  font-weight: 700;
  font-size: 1.2em;
}
.gallery-btn{
  border-radius:2em;
  padding: .5em 1.5em;
}
.gallery-btn:hover {
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
.d-none {
  display: none !important;
}

/* Hide the default Trix editor toolbar */
.trix-button-group--file-tools {
  display: none !important;
}
.chat-sidebar {
  width: 20%;
  background-color: #f1f1f1;
  padding: 10px;
}

.chat-main {
  width: 80%;
  padding: 10px;
  display: flex;
  flex-direction: column;
}

#chat-window {
  flex-grow: 1;
  overflow-y: auto;
}

#chat-form {
  display: flex;
}

#chat-input {
  flex-grow: 1;
  padding: 10px;
}
.image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 250px; /* Adjust the height as needed */
  margin-top: 40px;
}

.keyboard-key {
  display: inline-block;
  padding: 3px 5px;
  font-size: 0.8em;
  line-height: 1;
  color: #333;
  background-color: #f7f7f7;
  border: 1px solid #ccc;
  border-radius: 3px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.2), inset 0 0 0 2px #fff;
  text-shadow: 0 1px 0 #fff;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes slideUpOut {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(-100%); opacity: 0; }
}

@keyframes popIn {
  0% { transform: scale(0); opacity: 0; }
  70% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.chatbot-card {
  max-width: 100%;
  margin: 0 auto;
}

.qr-code-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

.qr-code-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.qr-code-container svg {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
}

.content-row {
  height: 100%;
}

.chat-bubble {
  display: none;
  max-width: 70%;
  padding: 10px 15px;
  border-radius: 20px;
  margin-bottom: 15px;
  opacity: 0;
  font-size: 1.5em;
}

.user-bubble {
    background-color: #810200;
    color: white;    
    text-align: right;
    margin-left: auto;
    border-radius: 15px 15px 0 15px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.bot-bubble {
  background-color: #f0f0f0;
  color: black;
  margin-right: auto;
  border-radius: 15px 15px 15px 0;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.chat-container {
  margin-top: 20px;
}

.loading-circle {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #810200;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes gentle-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.qr-code-container {
  animation: gentle-bounce 3s ease-in-out infinite;
}

.control-button-container {
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}

.control-button {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: none;
  background-color: rgba(129, 2, 0, 0.8);
  color: white;
  border: none;
  cursor: pointer;
  overflow: hidden;
}

.control-button:hover {
  background-color: rgba(129, 2, 0, 1);
}

.progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.progress-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.progress-ring circle {
  fill: none;
  stroke: #dfdfdf;
  stroke-width: 4;
  stroke-dasharray: 175.92;
  stroke-dashoffset: 175.92;
  transition: stroke-dashoffset 0.1s linear;
}

.button-text {
  position: relative;
  z-index: 1;
}

.system-prompt-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.system-prompt-content {
  background-color: white;
  padding: 2rem;
  border-radius: 0.5rem;
  max-width: 80%;
  max-height: 80%;
  overflow-y: auto;
}

.curved-arrow {
  position: absolute;
  z-index: 1000;
  pointer-events: none;
  padding-right: 40px;
}

.curved-arrow svg {
  width: 200px;
  height: 100px;
}

.arrow-label {
  position: absolute;
  top: -30px;
  left: -40px;
  white-space: nowrap;
  font-weight: bold;
  font-size: 24px;
  color: magenta;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 2px 5px;
  border-radius: 3px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes popIn {
  0% { transform: scale(0); opacity: 0; }
  80% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.marketing-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.9);
}

.marketing-slide .card {
  width: 80%;
  max-width: 600px;
}