body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: linear-gradient(135deg, rgb(75, 75, 241), purple);
  color: #333;
}

.label {
  margin: auto 20;
}

h1,
h2 {
  color: #444;
}

label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
}

input[type="text"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
}

button {
  padding: 10px 20px;
  font-size: 16px;
  color: #fff;
  background-color: #007bff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

button:hover:not(:disabled) {
  background-color: #0056b3;
}

.info-container {
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 50%;
  height: 50%;
  background-color: #ffffff;
}

/* Main title style */
.main-title-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Instructions style */
.instructions-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  overflow-y: auto;
  padding: 0 1.5em 2em;
  text-align: justify;
}

/* General task style */

.task-title {
  font-size: 2em;
  margin-bottom: 0.5em;
}

.task-wrapper {
  width: 80%;
  height: 70%;
}

.task-container {
  width: 90%;
  height: 90%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
}

.task-instructions {
  width: 70%;
  height: 90%;
  text-align: justify;
  overflow-y: auto;
  padding-right: 1em;
}

.task-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 10%;
  gap: 20px;
  margin-bottom: 2%;
}

/* Wave animation style */

.waveform {
  width: 60%;
  height: 50%;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 10px;
  position: relative;
  margin: auto 2% 2% 2%;
  padding: 1em;
}

.bar {
  width: 5px;
  margin: 0 2px;
  background: #fff;
  border-radius: 5px;
  animation: bounce 0.5s infinite ease-in-out;
}

.bar:nth-child(odd) {
  animation-delay: 0.2s;
}

.bar:nth-child(even) {
  animation-delay: 0.4s;
}

@keyframes bounce {
  0%,
  100% {
    transform: scaleY(0.5);
  }
  50% {
    transform: scaleY(1);
  }
}

/* Voice task styles */
.voice-task-view {
  width: 70%;
  height: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.status {
  width: 50%;
  height: 10%;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  margin-bottom: auto;
  font-weight: bold;
  color: #afafaf;
}

.voice-log {
  max-height: 60%;
  width: 50%;
  height: 90%;
  background: #f9f9f9;
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 10px;
  overflow-y: auto;
  text-align: left;
  font-size: 14px;
  margin: auto 2%;
}

/* Chat task styles */

.chat-container {
  width: 60%;
  height: 80%;
  background-color: #ffffff;
  border-radius: 20px;
  /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2em 2em 2em;
  overflow: hidden;
}

.chat-view {
  width: 80%;
  height: 50%;
  background: #f9f9f9;
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 10px;
  overflow-y: auto;
  margin: auto 2%;
}

.chat-input {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 50%;
  gap: 10px;
  margin: 20px 0;
}

.chat-message {
  width: fit-content;
  min-width: 10%;
  max-width: 60%;
  padding: 15px;
  margin: 1rem 0;
  border-radius: 15px;
  font-size: 1em;
  word-break: break-word;
  white-space: pre-line;
  box-sizing: border-box;
  color: white;
}

.bot {
  background: #4b4bf1;
  margin-right: auto;
}

.user {
  background: #af46c1;
  margin-left: auto;
}

.error {
  background: #ff4b4b;
  margin-right: auto;
}
