body {
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  width: 100vw;
  font-family: Arial, sans-serif;
  background-image: url('marble-texture.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-blend-mode: overlay;
  margin: auto;
  font-size: 16px;
}

#playhtVoiceEngine {
color: white;
z-index: 99999;
}


@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}


h1,
#header {
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding-left: 8%;
}

/* Media query for smaller screens */
@media (max-width: 768px) {
  h1 {
    display: none;
  }
}

/* Media query for smaller screens */
@media (max-width: 468px) {
  h1 {
    display: none;
  }
}

h2,
#appTitle {
  color: white;
  font-size: 16px;
  font-weight: lighter;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: auto;
  margin-bottom: auto;
  flex-grow: 1;
  left: 50%;
}



#api-key-status {
  text-align: center;
  margin-top: 85px;
  margin-bottom: 5px;
  font-weight: lighter;
  color: lime;
  top: 10px;
  position: fixed;
  font-size: 15px;
}


#resultContainer {
  height: 70%;
  color: #d03cd3;
  width: 90vw;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1em;
  padding: 1em;
  background-color: black;
  border-radius: 5px;
  border: 1px solid #383838;
  top: 150px;
  margin-bottom: 20px;
  position: fixed;
  z-index: 1;
  box-shadow: 0 0 10px rgb(255, 255, 255, 0.5);
}

#generatedTextTitleContent {
display: flex;
width: 100%;
flex-direction: row;
top: 0px;
justify-content: left;
align-items: center;
  color: #d03cd3;
  font-size: 0.9em;
  margin-bottom: 0;
  gap: 20px;
}

#generatedTextTitleContent i {
font-size: 25px;
}


#detectedLang {
  color: #0a0a0a;
  font-size: 12px;
  font-weight: lighter;
}

#mp3Container {
  width: auto;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
}

#audioIcon {
  z-index: 5;
  width: 50px;
  height: 50px;
}

#downloadMP3 {
  z-index: 5;
  width: 50px;
  height: 50px;
}



#output {
  white-space: pre-line;
  height: 500px;
  /* adjust as needed */
  overflow: auto;
  color: white;
}

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

#messageForm {
  flex-direction: column;
  justify-content: center;
  z-index: 999999;
  align-items: center;
  position: fixed;
  width: 100%;
}

#promptButtons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  gap: 10px;
  position: fixed;
  top: 170px;
  z-index: 1000000;
}

#promptButtons button {
  background: linear-gradient(45deg, #8d0281, #000000, #673AB7);
  background-size: 400% 400%;
  animation: gradientAnimation 8s ease-in-out infinite;
  color: white;
  width: 100%;
  height: 40px;
  margin: auto;
  padding: 0.5em;
  border-radius: 5px;
  border: 1px solid white;
  cursor: pointer;  
  transition: all 0.3s ease;
}

#promptButtons button:hover {
  background: linear-gradient(45deg, #c59655, #ffcc00, #ffd700);
  background-size: 400% 400%;
  animation: gradientAnimation 8s ease-in-out infinite;
  border: 1px solid #c59655;
  transform: scale(1.05);
  color: #000000;
  font-weight: bold;
}

#promptInput {
  position: fixed;
  top: 230px;
  left: 0;
  right: 0;
  font-size: 16px;
  text-align: left;
  word-wrap: break-word;
  width: 90vw;
  height: 300px;
  border-radius: 2px;
  color: white;
  background: linear-gradient(45deg, #8d0281, #000000, #673AB7);
  background-size: 400% 400%;
  animation: gradientAnimation 8s ease-in-out infinite;
  margin: 0 auto 10px;
  border: 1px dashed white;
  margin-bottom: 30px;
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 20px;
  font-family: Arial, sans-serif;
  box-shadow: 0 0 10px rgb(255, 255, 255, 0.8);
  line-height: 2;
}

#send-button {
  position: fixed;
  top: 580px;
  left: 0;
  right: 0;
  background: linear-gradient(45deg, #8d0281, #000000, #673AB7);
  background-size: 400% 400%;
  animation: gradientAnimation 8s ease-in-out infinite;
  color: white;
  width: 92vw;
  height: 50px;
  margin: auto;
  padding: 0.5em;
  border-radius: 2px;
  border: 1px solid white;
  cursor: pointer;

}



.textarea-container {
  position: relative;
  width: 100%;
}

.clear-icon {
  position: absolute;
  right: 10px;
  top: 10px;
  cursor: pointer;
  color: #888;
  font-size: 18px;
  z-index: 999999;
}

.clear-icon:hover {
  color: #fff;
}

#userInput {
  position: fixed;
  bottom: -10px;
  left: 0;
  right: 0;
  font-size: 16px;
  text-align: left;
  word-wrap: break-word;
  width: 90vw;
  height: 40px;
  border-radius: 2px;
  color: white;
  background: linear-gradient(45deg, #050505, #000000, #673AB7);
  background-size: 400% 400%;
  animation: gradientAnimation 8s ease-in-out infinite;
  margin: 0 auto 10px;
  border: 1px dashed white;
  margin-bottom: 30px;
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 20px;
  font-family: Arial, sans-serif;
  box-shadow: 0 0 10px rgb(255, 255, 255, 0.8);
}

#modelSelector {
  position: fixed;
  bottom: 70px;
  left: 0;
  right: 0;
  font-size: 16px;
  word-wrap: break-word;
  width: 90vw;
  height: 50px;
  border-radius: 2px;
  color: white;
  background: linear-gradient(45deg, #050505, #000000, #673AB7);
  background-size: 400% 400%;
  animation: gradientAnimation 8s ease-in-out infinite;
  margin: 0 auto 10px;
  border: 1px dashed white;
  margin-bottom: 30px;
  padding-left: 20px;
  padding-right: 20px;
  
  font-family: Arial, sans-serif;
  box-shadow: 0 0 10px rgb(255, 255, 255, 0.8);
  text-align: center;
}

#kiDenkt {
  position: fixed;
  bottom: 320px;
  left: 0;
  right: 0;
  font-size: 25px;
  text-align: center;
  word-wrap: break-word;
  width: 100vw;
z-index: 99999;
  font-family: Arial, sans-serif;
  display: none;
}

.icon-controls-container {
  position: fixed;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  gap: 15px;
  z-index: 999999999999999999999999;
  padding: 10px;
  margin-bottom: 10px;
  top: 0px;
  left: 0;
  right: 0;
  font-size: 16px;
  word-wrap: break-word;
  width: 90vw;
  height: 120px;
  border-radius: 2px;
  color: white;
  background: linear-gradient(45deg, #050505, #000000, #673AB7);
  background-size: 400% 400%;
  animation: gradientAnimation 8s ease-in-out infinite;
  margin: 0 auto 10px;
  border: 1px dashed white;
  margin-bottom: 30px;
  padding-left: 20px;
  padding-right: 20px;

  font-family: Arial, sans-serif;
  box-shadow: 0 0 10px rgb(255, 255, 255, 0.8);
  text-align: center;
}

.icon-controls-container i {
  font-size: 30px;
  color: white;
  cursor: pointer;
  transition: color 0.3s ease;
}

.icon-controls-container i:hover {
  color: #d03cd3;
}

#fileinput {
  margin-bottom: 10px;
  z-index: 99;
  text-align: center;
  top: 0;
  position: fixed;
}

#languageSelector {
position: fixed;
top: 10px;
left: 2%;
  color: white;
  padding: 10px;
  background-color: transparent;
border: none;
cursor: pointer;
font-size: 20px;
box-shadow: 0 0 10px rgb(250, 249, 250, 0.8);
  border-radius: 5px;
  z-index: 1001;
}

#languageSelector option,
#languageSelector optgroup {
background-color: black;
color: white;
}

.dropdown-container {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  outline: none;
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);

  width: 90%;
  max-width: 1200px; /* Adjust this value as needed */

  z-index: 9999999999;
  overflow-y: auto;
}


.dropdown-container select {
  margin-bottom: 10px;
  background: linear-gradient(45deg, #8d0281, #000000, #673AB7);
  background-size: 400% 400%;
  animation: gradientAnimation 8s ease-in-out infinite;
  border-radius: 5px;
  padding: 5px;
  border: none;
  z-index: 99999;
  text-align: center;
  color: white;
  width: 100%; 
  height: auto;
  font-size: 16px;
  outline: none;
}

select {
  text-align: center;
  text-align-last: center;
}
select option,
select optgroup {
  text-align: center;
}

.dropdown-container select option,
.dropdown-container select optgroup { 
  background-color: #d03cd3;
  color: white;
}

#select_translation_style {
font-size: 16px;
}

#select_language option,
#select_target_language option,
#select_translation_style option {
  background: #610061;
  color: white;
}
#select_language option:hover,
#select_target_language option:hover,
#select_translation_style option:hover {
  background: black;
  color: #940094;
}


#select_translation_style optgroup {
  background: black;
  color: #cc00cc;
}





#uploadIcon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  right: 10%;
  position: fixed;
  bottom: 8px;
}

#heybro {
  width: 42px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  left: 10%;
  position: fixed;
  bottom: 8px;
  z-index: 9999;
  border: 1px solid white;
}

#heybro:hover {  
 background-color: purple; 
  border: 1px solid lime; 
    }



footer {
  position: fixed;
  top: 140px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 100%;
  z-index: 999;
}

footer p {
  font-size: 14px;
  color: purple;
}

#buttonContainer {
  margin-top: 10px;
  height: 50px;
}

#install-button {
  position: fixed;
  top: 10px;
  right: 10px;
  display: block;
  width: 70px;
  height: 30px;
  padding: 5px;
  background-color: black;
  border: 1px solid #4f4f4f;
  color: white;
  border-radius: 5px;
  font-size: 14px;
  font-weight: lighter;
  cursor: pointer;
  justify-content: center;
}

#install-button:hover {
  background-color: #fff;
  border: 1px solid #fff;
  color: black;
}

#waiting-gif {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  position: fixed;
  width: 250px;
  height: 250px;
  z-index: 999;
}


.audioControlsContainer {
padding-left: 10px;
padding-right: 10px;
}

#dropdownContainer {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0;
}

.tooltip {
  position: relative;
}

.tooltip select {
  width: 100%;
  height: 30px;
}



.user-message {
  color: #d03cd3;
 border: none;
  /* Color for the user's text */
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: lighter;
  text-align: left;
  word-wrap: break-word;
  background-color: #101010;
   border-radius: 5px;
  left: 0;
  right: 0;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 10px;
  padding-right: 10px;
  box-shadow: 0 0 10px rgb(255, 255, 255, 0.1);
}

.ai-message {
  color: white;
  border: none;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: lighter;
  text-align: left;
  word-wrap: break-word;
  background-color: #101010;
  border-radius: 5px;
  left: 0;
  right: 0;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 10px;
  padding-right: 10px;
  box-shadow: 0 0 10px rgb(255, 255, 255, 0.1);
}

.conversation {
  margin-bottom: 50px;
}

audio {
  width: 200px;
  height: 20px;

}


/* Modal Styles */


.modal-content {
  position: fixed;
  justify-content: center;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #000;
  width: 80vw;
  height: auto;
  max-width: 90vw;
  border-radius: 4px;
  padding: 20px;
  padding-bottom: 50px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  z-index: 999999;
  text-align: center;
  border: 2px solid #c59655;

}

.close-button {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 24px;
  font-weight: bold;
  color: #c59655;
  cursor: pointer;
}

.close-button:hover {
  color: white;
}

input[type="text"] {
  display: block;
  padding: 10px;
  border: none;
  border-radius: 4px;
  margin-bottom: 10px;
}

button[type="submit"] {
  background-color: #008cba;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
}

.modal-content input[type="text"] {
  border: 2px solid #c59655;
  background-color: #212121;
  color: white;
  width: 250px;
  box-sizing: border-box;
  font-size: 16px;
  display: block;
  margin: 0 auto;
  margin-bottom: 10px;
}



 #search_style {
            margin: 0;
            width: 30%;
            padding: 8px 15px;
            height: 25px;
            position: fixed;
            left: 50%;
            transform: translateX(-50%);
            top: 5px;
            background: black;
            border: 2px solid purple;
            outline: none;
            color: white;
            border-radius: 10px;
            z-index: 1002;
        }

#clear_style_search {
  top: -15px;
  cursor: pointer;
  right: 10px;
  width: 30%;
  text-align: left;
  color: white;
  height: 30px;
  margin-top: 20px;
  margin-bottom: 20px;
  padding-left: 20px;
  padding-right: 20px;
  background-color: transparent;
  }



#langButtons {
  position: fixed;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;  
}

#langButtons button { 
  background-color: #212121;
  color: white;
  width: 100px;
  cursor: pointer;
  border: 1px solid #4f4f4f;
  height: 40px;
  border-radius: 5px;

}
#langButtons button:hover {
  background-color: purple; 
}

#textarea-mic {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* ── Vision drop hint label ───────────────────────────────────────────────── */
#visionDropHint {
  position: fixed;
  top: 534px;
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;
  text-align: right;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
  z-index: 1000001;
  letter-spacing: 0.03em;
}
#visionDropHint i {
  margin-right: 4px;
}

/* ── Multi-Image Vision Modal ─────────────────────────────────────────────── */

#visionOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1100000;
  backdrop-filter: blur(4px);
}

#visionModal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1100001;
  width: min(92vw, 640px);
  max-height: 88vh;
  overflow-y: auto;
  background: linear-gradient(160deg, #0d0d0d, #1a0a2e, #0d0d0d);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 28px 24px 24px;
  box-shadow: 0 0 40px rgba(141, 2, 129, 0.5), 0 0 80px rgba(103, 58, 183, 0.2);
  color: white;
  font-family: Arial, sans-serif;
}

#visionModalClose {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 20px;
  cursor: pointer;
  transition: color 0.2s;
}
#visionModalClose:hover { color: white; }

#visionModalTitle {
  font-size: 17px;
  font-weight: bold;
  margin: 0 0 20px;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Per-image rows ── */
#visionImageList {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.vision-image-row {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 14px 16px;
}

.vision-image-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.vision-image-icon {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.2);
  flex-shrink: 0;
}

.vision-image-name {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.vision-image-status {
  font-size: 12px;
  font-weight: bold;
  flex-shrink: 0;
}
.vision-image-status.waiting  { color: rgba(255,255,255,0.35); }
.vision-image-status.loading  { color: #f0c040; }
.vision-image-status.done     { color: #4cff91; }
.vision-image-status.error    { color: #ff5555; }

.vision-progress-track {
  width: 100%;
  height: 5px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
}

.vision-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #8d0281, #673AB7);
  transition: width 0.4s ease;
}
.vision-progress-bar.indeterminate {
  width: 40%;
  animation: visionIndeterminate 1.2s ease-in-out infinite;
}
@keyframes visionIndeterminate {
  0%   { margin-left: -40%; }
  100% { margin-left: 100%; }
}
.vision-progress-bar.complete {
  width: 100%;
  background: linear-gradient(90deg, #00c97a, #4cff91);
  animation: none;
}
.vision-progress-bar.errored {
  width: 100%;
  background: #ff5555;
  animation: none;
}

/* ── Result section ── */
#visionResultSection {
  display: none;
  flex-direction: column;
  gap: 10px;
}

#visionResultLabel {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

#visionResultText {
  width: 100%;
  min-height: 140px;
  max-height: 260px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: white;
  font-size: 14px;
  font-family: Arial, sans-serif;
  padding: 12px;
  resize: vertical;
  box-sizing: border-box;
  line-height: 1.6;
}
#visionResultText:focus { outline: none; border-color: rgba(255,255,255,0.3); }

#visionSendToInput {
  align-self: flex-end;
  background: linear-gradient(45deg, #8d0281, #000000, #673AB7);
  background-size: 400% 400%;
  animation: gradientAnimation 8s ease-in-out infinite;
  color: white;
  border: 1px solid white;
  border-radius: 6px;
  padding: 10px 22px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}
#visionSendToInput:hover {
  transform: scale(1.03);
  box-shadow: 0 0 12px rgba(255,255,255,0.3);
}

/* ── Thumbnail strip below promptInput ── */
#visionThumbnailStrip {
  display: none;
  position: fixed;
  top: 534px;
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  z-index: 1000001;
  padding: 8px 0 4px;
}

.vision-thumb {
  width: 36px;
  height: 36px;
  border-radius: 5px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.35);
  opacity: 0.85;
}

/* ──────────────────────────────────────────────────────────────────────────── */
