/* Apply dark mode styles */
body.dark-mode {
    background-color: #121212;
    color: #ffffff;
  font-family: 'Patrick Hand', cursive;
}

/* Container styles */
.container {
    max-width: auto;
    margin: 0 auto;
    padding: 30px;
    text-align: center;
}

/* Heading styles */
h1 {
    text-align: center;
}

#manyVoicesButton {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid white;
  cursor: pointer;
}

#manyVoicesButto:hover {
  width: 55px;
  height: 55px;
}

/* Voice selection styles */
.voice-selection {
    margin-bottom: 20px;
    text-align: center;
}

/* Style the label */
.voice-selection label {
  display: inline-block;
  margin-right: 10px;
  font-weight: bold;
  text-align: center;
  width: 100%;
}

#voiceSelect,select {
  width: 90%;
  height: 40px;
  background-color: #1c1c1c;
  border: 1px solid #555;
  color: #fff;
  text-align: center;
  font-size: 16px;
  margin-bottom: 10px;
}

#translationSelect {
  width: 90%;
  height: 40px;
  background-color: #1c1c1c;
  border: 1px solid #555;
  color: #fff;
  text-align: center;
  font-size: 16px;
  margin-bottom: 10px;
}

/* Chat box styles */
.chat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 90%;
  margin: auto;
  margin-bottom: 20px;
}

label {
  font-weight: bold;
  margin-bottom: 5px;
  color: purple;
}

.chat-messages {
    padding: 20px;
    overflow-y: auto;
    max-height: 400px;
   z-index: 99999;
  }

  .user-message, .bot-message {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 10px;
  }

  .user-message {
    font-size: 16px;
    background-color: purple;
    align-self: flex-start;
    color: white;
    margin-bottom: 20px;
     padding-left: 20px;
     padding-right: 20px;
     padding-top: 20px;
     padding-bottom: 20px;  
  }

  .bot-message {
     font-size: 16px;
    background-color: #222;
    align-self: flex-end;
    color: white;
    cursor: pointer;
    margin-bottom: 20px;
     padding-left: 20px;
     padding-right: 20px;
     padding-top: 20px;
     padding-bottom: 20px;  
  }

#userInput {
    width: 100%;
    height: 100px;

    font-size: 16px;
    background-color: #000000;
    color: white;
    border: 1px dashed white;
    border-radius: 3px;
    margin-bottom: 10px;
    z-index: 9999;
    padding-top: 20px;
  padding-left: 20px;
    animation: color-animation 8s infinite;
}


/* Define the keyframes for the color animation */
@keyframes color-animation {
  0% {
    border: 2px solid #FF0000;
    color: #FF0000;
  }
  25% {
    border: 2px solid #00FF00;
    color: #00FF00;
  }
  50% {
    border: 2px solid #0000FF;
    color: #0000FF;
  }
  75% {
    border: 2px solid #FFFF00;
    color: #FFFF00;
  }
  100% {
    border: 2px solid #FF0000;
    color: #FF0000;
  }
}

/* Controls styles */
.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
   align-self: center; 
   margin: auto;
   width: 90%; 
}

.extras {
    display: flex;
    justify-content: space-between;
    align-items: center;
   align-self: center; 
   margin: auto;
   width: 100%;
  margin-top: 20px;
}

.extras button {
  background-color: #3d3d3d;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  width: 100%;
  height: 40px;
  margin-bottom: 20px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  border: 1px solid #555;
}
.extras button:hover {
  background-color: #9c02bb;
  color: white;

}


/* Button styles */
button {
    cursor: pointer;
    background: none;
    border: none;
    margin: 0; 
  text-align: center;
}

/* Button icon styles */
img {
    width: 40px;
    height: 40px;
}

/* AI response styles */
.ai-response {
    background-color: #333;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
}




footer {
  position: relative;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 100%;
  margin-top: 20px;
}


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

#addVoice {
  width: 40px;
  height: 40px;
  cursor: pointer;
}

#resize {
  position: fixed;
  top: 5%;
  left: 5%;
  z-index: 50;
  width: 30px;
  height: 30px;
  cursor: pointer;
}

#addVoice {
  position: fixed;
  top: 13%;
  left: 5%;
  z-index: 50;
  width: 30px;
  height: 30px;
  cursor: pointer;
}

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

#api-icon {
   position: fixed;
   top: 2%;
   right: 3%;
  font-size: 18px;
   cursor: pointer;
   z-index: 400;
  color: white;
 }

#eleven-icon {
   position: fixed;
   top: 8%;
  right: 3%;
  font-size: 18px;
   cursor: pointer;
   z-index: 400;
  color: white;
 }

#userName,
h3 {
  font-size: 18px;
  color: yellow;
  width: 100vw;
  text-align: center;
  margin-top: 10px;
}

#loader {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
}

#processingStatus {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  z-index: 999999999;
  color: lime;
  width: 100vw;
  display: block;
}