body,
html {
  height: 100%;
  margin: 0;
  font-family: Arial, sans-serif;
}



button {
  user-select: none;
  touch-action: none;
}

#chat-container {
  flex-direction: column;
  height: 100%;
}



#chat-window {
  width: 99vw;
  height: 50vh;
  padding: 20px;
  overflow-y: scroll;
  border: 1px solid #ccc;
  margin-bottom: 10px;
}

#apiKeyInput {
  width: 80%;
  height: 3em;
}

#user-input {
  width: 99vw;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  height: 200px;
}

#record-button {
  height: 50px;
  width: 15vw;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
}

#send-button {
  height: 50px;
  width: 15vw;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
}

#tts-button {
  height: 50px;

  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  width: 20vw;
}

#voice-button {
  height: 50px;

  cursor: pointer;
  background-color: black;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;

  width: 40vw;
}

#ttsAudio {
  width: 99vw;
}

.message {
  margin: 5px;
  padding: 10px;
  border-radius: 10px;
  background-color: #f1f1f1;
}

/* ... (The rest of your CSS) */

/* Floating button style */
#settings-button {
  position: fixed;
  bottom: 10vh;
  right: 20px;
  padding: 10px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* Modal styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0, 0, 0); /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
}

.close-button {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close-button:hover,
.close-button:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* ... (The rest of your CSS) */
