* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #F0F0F0;
}

header {
  position: absolute;
  top: 0;
  text-align: center;
  width: 100%;
  padding: 20px;
}

h1 {
  font-size: 2rem;
  color: #333;
  animation: fadeInDown 1s ease-in-out;
}

main {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

label {
  font-size: 1.2rem;
}

textarea {
  resize: none;
  padding: 10px;
  font-size: 1rem;
}

button {
  width: 100%;
  padding: 10px 15px;
  font-size: 1.2rem;
  border: none;
  background-color: #1C84F6;
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.3s;
}

button:hover {
  background-color: #0A63CE;
}

.is-loading {
  position: relative;
  background-color: #9cc4ff;
  pointer-events: none;
}

.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -0.5em;
  width: 1em;
  height: 1em;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #FFF;
  border-radius: 50%;
  animation: loadingSpinner 1s linear infinite;
}

.is-listening {
  position: relative;
  background-color: #FFD700;
  pointer-events: none;
}

@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes loadingSpinner {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive styles for mobile devices */
@media (max-width: 767px) {
  h1 {
    font-size: 1.5rem;
  }

  label {
    font-size: 1rem;
  }

  main {
    width: 90%;
  }

  textarea {
    width: 100%;
  }

  button {
    font-size: 1rem;
    width: 100%;
  }
}


.chat-container {
  width: 600px; /* Adjust width as needed */
  height: 300px; /* Adjust height as needed */
  border: 1px solid #ccc;
  overflow-y: auto;
  padding: 10px;
}

.message {
  margin-bottom: 10px;
  display: flex;
}

.message.left {
  justify-content: flex-start;
}

.message.right {
  justify-content: flex-end;
}

.message-content {
  padding: 8px 12px;
  border-radius: 5px;
  max-width: 70%;
}

.message.left .message-content {
  background-color: #fff; /* White for left messages */
}

.message.right .message-content {
  background-color: #d9fdd3; /* Light green for right messages */
}

/* Basic dropdown styling */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow:   
 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content   
 li {
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content li:hover {
  background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
  display:   
 block;
}