body {
  margin: 0;
  padding: 0;
  font-family: 'Courier New', monospace;
  background: black;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overscroll-behavior-y: contain;
}

iframe { width: 100%; height: 100%; }

/* Den Inhalt im Menü wieder normal ausrichten */
#side-menu-zwei > * {
    direction: ltr;
}

/* Dein neuer Listen-Button */
.liste {
    background: #220000 !important; /* !important verdrängt das Hintergrundbild */
    background-image: none !important; 
    color: #ff0000;
    border: 2px solid #0939ff;
    padding: 2px 10px !important; /* Schön schmal am Text */
    cursor: pointer;
    font-family: 'Courier New', monospace;
    width: 75% !important; /* Überschreibt die 159px */
    height: auto !important; /* Verhindert die 65px Höhe */
    display: inline-block;
}
/* Spezielle Korrektur für den Lösch-Button (X) */
#chat-list button:last-child {
    background: transparent !important;
    background-image: none !important;
    width: 20% !important; /* Schön schmal wie auf deiner Zeichnung */
    height: auto !important;
    border: 2px solid blue !important;
    padding: 2px !important;
}

.menu-container {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: #1a1a1a;
  border: 1px solid #0939ff; /* Red Queen Rot */
  min-width: 160px;
  z-index: 1;
}

.dropdown-content a {
  color: #0939ff; /* Terminal Grün */
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #330000;
}

.show { display: block; }

.modal {
    display: none; 
    position: fixed;
    z-index: 30000;
    left: 0; top: 0;
    width: 95%; height: 95%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    position: relative;
    margin: 5% auto;
    padding: 0px;
    width: 90%;
    height: 90%;
    border: 2px solid #0939ff;
    box-shadow: 0 0 20px #0939ff;
    background: #000;
}

.modal2 {
    display: none; 
    position: fixed;
    z-index: 30000;
    left: 0; top: 0;
    width: 85%; height: 85%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content2 {
    position: relative;
    margin: 5% auto;
    padding: 10px;
    width: 80%;
    height: 80%;
    border: 2px solid #0939ff;
    box-shadow: 0 0 20px #0939ff;
    background: #000;
}

.modal3 {
    display: none; 
    position: fixed;
    z-index: 30000;
    left: 0; top: 0;
    width: 85%; height: 85%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal3-content {
    position: relative;
    margin: 5% auto;
    padding: 10px;
    width: 80%;
    height: 80%;
    border: 2px solid #0939ff;
    box-shadow: 0 0 20px #0939ff;
    background: #000;
}

.modal4 {
    display: none; 
    position: fixed;
    z-index: 30000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal4-content {
    position: relative;
    margin: 0;
    padding: 0px;
    width: 100%;
    height: 100%;
    border: 2px solid #0939ff;
    box-shadow: 0 0 20px #0939ff;
    background: #000;
}

.close-button {
    position: absolute;
    right: 15px;
    top: 5px;
    color: #0939ff;
    font-size: 55px;
    font-weight: bold;
    text-shadow: 0 0 10px #0939ff;
    transition: 0.3s;
}

.close-button:hover {
    color: #ffffff;
    transform: scale(1.2);
    cursor: pointer;
}

.close-button2 {
    position: absolute;
    right: 15px;
    top: 5px;
    color: #0939ff;
    font-size: 55px;
    font-weight: bold;
    text-shadow: 0 0 10px #0939ff;
    transition: 0.3s;
}

.close-button2:hover {
    color: #ffffff;
    transform: scale(1.2);
    cursor: pointer;
}

.close-status {
    position: absolute;
    right: 15px;
    top: 5px;
    color: lime;
    font-size: 55px;
    font-weight: bold;
    text-shadow: 0 0 10px lime;
    transition: 0.3s;
}

.close-status:hover {
    color: #ffffff;
    transform: scale(1.2);
    cursor: pointer;
}

.close-button-drei {
    position: absolute;
    right: 15px;
    top: 5px;
    color: #0939ff;
    font-size: 55px;
    font-weight: bold;
    text-shadow: 0 0 10px #0939ff;
    transition: 0.3s;
}

.gothic-btn {
    background: #220000;
    color: #ff0000;
    border: 2px solid #0939ff;
    padding: 5px 15px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
}

.gothic-btn2 {
    background: #220000;
    color: #ff0000;
    border: 2px solid #0939ff;
    padding: 5px 15px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
}

.alert-box {
    width: 500px;
    height: auto;
    text-align: center;
    margin: 15% auto;
    padding: 20px;
    border: 3px solid #ff0000;
    box-shadow: 0 0 20px #ff0000;
}

.alert-box2 {
    width: 500px;
    height: auto;
    text-align: center;
    margin: 15% auto;
    padding: 20px;
    border: 3px solid #ff0000;
    box-shadow: 0 0 20px #ff0000;
}

.alert-box3 {
    width: 600px;
    height: 90%;
    text-align: center;
    margin: 5px;
    padding: 5px;
    border: 3px solid #ff0000;
    box-shadow: 0 0 20px #ff0000;
}

.file-preview {
  display: none; /* Standardmäßig komplett weg */
  width: 35px;   /* Micro-Version passend zum Button */
  height: 35px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #00ff00; /* Passend zum Resident Evil Style */
  margin-right: 5px;
}

.file-preview.active {
  display: block; /* Erscheint, sobald ein Bild geladen ist */
}

#matrix {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Schiebt es ganz nach hinten */
    background: #000;
}
.chat-container {
  width: 100%;
  max-width: 700px;
  padding: 3px;
}


h3 {
  text-align: center;
  color: #00ffd0;
  margin-bottom: 10px;
}

.chat-box {
  height: 300px; 
  max-height: 60vh;
  
  /* Wichtig für die Struktur */
  display: flex;
  flex-direction: column;
  gap: 1px; /* Abstand zwischen den Nachrichten */
  
  /* Scroll-Verhalten */
  overflow-y: auto;
  scrollbar-width: thin; /* Für Firefox */
  scrollbar-color: #08f83c #1a1a1a; /* Roter Balken auf dunklem Grund */

  /* Dein Design */
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('background.gif') no-repeat center center;
  background-size: cover;
  border: 4px solid #ff0000;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
  color: #00ff00;
  font-family: 'Courier New', monospace;
  padding: 10px; /* Etwas mehr Luft zum Rand */
  border-radius: 20px;
}

/* Scrollbar für Chrome/Edge/Safari (Webkit) */
.chat-box::-webkit-scrollbar {
  width: 8px;
}
.chat-box::-webkit-scrollbar-thumb {
  background: #ff0000;
  border-radius: 10px;
}
.chat-box::-webkit-scrollbar-track {
  background: #1a1a1a;
}

/* Normaler Modus */
.chat-box.normal-mode {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('ki-symbol.jpg') no-repeat center center;
  background-size: cover;
  border: 4px solid #0939ff;
  box-shadow: 0 0 15px rgba(0, 255, 208, 0.4);
  scrollbar-color: #08f83c;  scrollbar-color: #08f83c; 
}
.chat-box.normal-mode::-webkit-scrollbar-thumb {
  background: #0939ff;
}
/* Gemeinsame Basis für alle Nachrichten */
.message {
  max-width: 90%;
  padding: 3px 3px;
  margin-bottom: 9px;
  border-radius: 15px;
  line-height: 1.2;
  word-wrap: break-word;
}


/* Deine Nachricht (Rechts) */
.message.user {
  align-self: flex-end;
  background: rgba(0, 255, 0, 0.1);
  border: 3px solid #00ff00;
  border-bottom-right-radius: 3px; /* Eckige Kante unten rechts */
  color: #00ff00;
  text-align: right;
}

/* Red Queen Nachricht (Links) */
.message.red-queen {
  align-self: flex-start;
  background: rgba(77, 86, 214, 0.15);
  border: 4px solid #0939ff;
  border-bottom-left-radius: 4px; /* Eckige Kante unten links */
  color: #00ff00;
  text-align: left;
}

.copyright {
    margin: 0 !important;
    padding: 5px 0;
    line-height: 1.2;
}

/* Die Buttons unten */
button {
  /* Hintergrundbild statt Farbe */
  background: url('button.jpg') no-repeat center center;
  background-size: contain;
  
  /* Größe an deine Grafik anpassen */
  width: 159px; 
  height: 65px;
  
  /* Text-Styling */
  color: #eeffee;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  text-shadow: 0 0 5px #ff0000;
  
    /* Abstand zwischen den Buttons, wenn sie gestapelt werden */
  margin: 2px;
}

/* Effekt beim Drücken */
button:active {
  transform: scale(0.95);
  filter: brightness(1.2);
}

/* Spezielle Anpassung für Handys (Portrait/Hochkant) */
@media (max-width: 480px) {
  .input-group {
    display: flex;
    flex-direction: column; /* Buttons untereinander stapeln */
    align-items: center;    /* Mittig ausrichten */
  }
  
  /* Gilt für schmale Bildschirme ODER wenn das Handy flach liegt */
@media (max-width: 480px), (max-height: 480px) {
  h3 {
    display: none !important; /* Blendet die Überschrift aus */
  }

  .input-group {
    flex-direction: column;
    align-items: center;
  }
  

}

  button {
    width: 80%;            /* Buttons breiter für die Finger */
    max-width: 250px;
    height: 60px;          /* Etwas kompakter auf dem Handy */
    background-size: 100% 100%; /* Bild strecken, damit es den breiten Button füllt */
  }

  .typing-input {
    width: 90%;
    margin-bottom: 10px;
  }
}
/* Der Container für die Eingabe */
.input-group {
    display: flex;
    width: 100%;
    padding: 10px;
    
}

/* Das Textfeld krallt sich alles an Platz, was da ist */
.typing-field {
    flex-grow: 1; /* Das ist der Zauberbefehl für "breit machen" */
    background: white;
    border: 5px solid #ff0000;
    color: white;
    padding: 8px;
    margin-right: 5px;
}

pre {
  background: #111;
  padding: 10px;
  border-radius: 6px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  color: #0f0;
  margin-top: 10px;
}

.input-group {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.clip-upload {
  cursor: pointer;
  font-size: 32px !important; /* Schön groß */
  color: #00ff00;            /* Standardmäßig grün */
  user-select: none;
  transition: transform 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clip-upload:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}

/* Red Queen Modus: Klammer wird rot */
body:not(.normal-mode) .clip-upload {
  color: #ff0000;
}


/* Language Selector
================================================== */

.language-selector{
    width:260px; /*change width here*/
    margin:10px auto 0;
}
.language-selector-width {
  width:260px; /*change width here*/
}
.language-selector li {
    width: 260px;
    margin-bottom: 0px;
}
.dk_container {
  cursor: pointer;
  font-size: 14px;
  margin-bottom: 10px;
  outline: none; }

.dk_toggle {
  background-color: #ff0000; /*change background color here*/
  color: white;
  border-radius: 6px;
  overflow: hidden;
  padding: 11px 45px 11px 13px;
  text-decoration: none;
  white-space: nowrap;
  -webkit-transition: 0.25s;
  -moz-transition: 0.25s;
  -o-transition: 0.25s;
  transition: 0.25s;
  -webkit-backface-visibility: hidden; }
.dk_toggle:hover, .dk_toggle:focus, .dk_focus .dk_toggle {
    background-color: #ff0000;
    color: white;
    outline: none; }
  .dk_toggle:active {
    background-color: #ff0000;
    outline: none; }
    .dk_toggle:active .select-icon {
      border-left-color: transparent; }

.select-icon {
  background: #ff0000 url("language-selector-arrow.png") no-repeat right center;
  border-left: 2px solid rgba(52, 73, 94, 0.1);
  border-radius: 0 6px 6px 0;
  height: 80%;
  position: absolute;
  right: 0;
  top: 0;
  width: 42px;
  -webkit-transition: 0.25s;
  -moz-transition: 0.25s;
  -o-transition: 0.25s;
  transition: 0.25s;
  -webkit-backface-visibility: hidden; }

.dk_open {
  z-index: 10; }
 .dk_toggle {
    background-color: #ff0000; }
    .dk_open .dk_toggle .select-icon {
      background-color: #ff0000;
      border-left-color: transparent; }

.dk_options {
  padding-top: 14px; }
  .dk_options:before {
    content: "";
    border-style: solid;
    border-width: 0 9px 9px 9px;
    border-color: transparent transparent #01060b transparent;
    height: 0px;
    position: absolute;
    left: 15px;
    top: 5px;
    width: 0px;
    -webkit-transform: rotate(360deg); }
  .dk_options:before {
    left: auto;
    right: 12px; }
  .dk_options li {
    padding-bottom: 3px; }
  .dk_options a {
    border-radius: 3px;
    color: white;
    display: block;
    padding: 5px 9px;
    text-decoration: none;
    -webkit-transition: all .2s ease-in;
       -moz-transition: all .2s ease-in;
        -ms-transition: all .2s ease-in;
         -o-transition: all .2s ease-in;
            transition: all .2s ease-in; }
    .dk_options a:hover {
      background-color: #ff0000;
      color:#FFFFFF; }

.dk_option_current a, .dk_option_current a:hover {
  background-color: #ff0000;
      color:#FFFFFF; }

.dk_options_inner {
  background-color: #01060b;
  border-radius: 5px;
  margin: 0;
  max-height: 244px;
  padding: 3px 3px 0; }

.dk_touch .dk_options {
  max-height: 250px; }

.dk_container {
  display: none;
  position: relative;
  vertical-align: middle; }
  .dk_container.dk_shown {
    display: inline-block;
    zoom: 1;
    display: inline; }
  .dk_container[class*="span"] {
    float: none;
    margin-left: 0; }

.dk_toggle {
  display: block;
  position: relative; }

.dk_open {
  position: relative; }
  .dk_open .dk_options {
    margin-top: -1px;
    opacity: 1;
    z-index: 10;
    display: block\9; }
  .dk_open .dk_label {
    color: inherit; }

.dk_options {
  margin-top: -21px;
  position: absolute;
  left: 0;
  opacity: 0;
  width: 300px;
  z-index: -100;
  display: none\9;
  -webkit-transition: 0.3s ease-out;
  -moz-transition: 0.3s ease-out;
  -o-transition: 0.3s ease-out;
  transition: 0.3s ease-out;
  -webkit-backface-visibility: hidden; }
  .select-right .dk_options {
    left: auto;
    right: 0; }
  .dk_options a {
    display: block; }

.dk_options_inner {
  overflow: auto;
  outline: none;
  position: relative; }

/* Den gesamten Dropdown-Container und die Liste ansprechen */
.dk_container .dk_options_inner, 
.dk_shown .dk_options_inner,
#dk_container_herolist .dk_options_inner {
    scrollbar-color: #ff0000 #000000 !important; /* Für Firefox (Standard-Syntax) */
    scrollbar-width: thin !important;
}

/* Webkit-Zusatz für alle Fälle */
.dk_options_inner::-webkit-scrollbar,
.dk_container::-webkit-scrollbar {
    width: 10px !important;
    display: block !important;
}

.dk_options_inner::-webkit-scrollbar-thumb {
    background-color: #ff0000 !important;
    border: 1px solid #000 !important;
}

.dk_options_inner::-webkit-scrollbar-track {
    background: #000000 !important;
}

/* Prompt Container*/
.container {
  overflow-y: auto;
  padding: 32px 0 60px;
  height: calc(100vh - 127px);
  scrollbar-color: var(--scrollbar-color) transparent;
}

.container :where(.app-header, .prompt-wrapper) {
  position: relative;
  margin: 0 auto;
  width: 100%;
  padding: 0 20px;
  max-width: 990px;
}

.container .prompt-container {
  position: fixed;
  width: 100%;
  left: 0;
  bottom: 0;
  padding: 16px 0;
  background: var(--primary-color);
}

.container .app-header {
  margin-top: 3vh;
}

.app-header .heading {
  width: fit-content;
  font-size: 3rem;
  background: linear-gradient(to right, #1d7efd, #8f6fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.app-header .sub-heading {
  font-size: 2.6rem;
  margin-top: -5px;
  color: var(--subheading-color);
}

.prompt-container :where(.prompt-wrapper, .prompt-form, .prompt-actions) {
  display: flex;
  gap: 12px;
  height: 56px;
  align-items: center;
}

.prompt-container .prompt-form {
  height: 100%;
  width: 100%;
  border-radius: 130px;
  background: var(--secondary-color);
}

.prompt-form .prompt-input {
  width: 100%;
  height: 100%;
  background: none;
  outline: none;
  border: none;
  font-size: 1rem;
  color: var(--text-color);
  padding-left: 24px;
}


.prompt-form .prompt-input::placeholder {
  color: var(--placeholder-color);
}

.prompt-wrapper button {
  width: 56px;
  height: 100%;
  flex-shrink: 0;
  cursor: pointer;
  border-radius: 50%;
  font-size: 1.4rem;
  border: none;
  color: var(--text-color);
  background: var(--secondary-color);
  transition: 0.3s ease;
}

.prompt-wrapper :is(button:hover, #cancel-file-btn, .file-icon) {
  background: var(--secondary-hover-color);
}

.prompt-form .prompt-actions {
  gap: 5px;
  margin-right: 7px;
}

.prompt-wrapper .prompt-form :where(.file-upload-wrapper, button, img) {
  position: relative;
  height: 45px;
  width: 45px;
}

.prompt-form .prompt-actions #send-prompt-btn {
  color: #fff;
  display: none;
  background: #1d7efd;
}

.prompt-form .prompt-input:valid~.prompt-actions #send-prompt-btn {
  display: block;
}

.prompt-form #send-prompt-btn:hover {
  background: #0264e3;
}

.prompt-form .file-upload-wrapper :where(button, img) {
  display: none;
  border-radius: 50%;
  object-fit: cover;
  position: absolute;
}

.prompt-form .file-upload-wrapper.active #add-file-btn {
  display: none;
}

.prompt-form .file-upload-wrapper #add-file-btn,
.prompt-form .file-upload-wrapper.active.img-attached img,
.prompt-form .file-upload-wrapper.active.file-attached .file-icon,
.prompt-form .file-upload-wrapper.active:hover #cancel-file-btn {
  display: block;
}

.prompt-form :is(#stop-response-btn:hover, #cancel-file-btn) {
  color: #d62939;
}

.prompt-wrapper .prompt-form .file-icon {
  color: #1d7efd;
}

.prompt-form #stop-response-btn,
body.bot-responding .prompt-form .file-upload-wrapper {
  display: none;
}

body.bot-responding .prompt-form #stop-response-btn {
  display: block;
}

.prompt-container .disclaimer-text {
  font-size: 0.9rem;
  text-align: center;
  padding: 16px 20px 0;
  color: var(--placeholder-color);
}
