html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f2f2f2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.chat-container {
  width: 100%;
  max-width: 700px;
  height: 100%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.header {
  display: flex;
  align-items: center;
  padding: 20px;
  background-color: #ec7d0f;
}

.volume-icon {
  margin-right: auto;
  cursor: pointer;
}

.profile-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 70px;
  height: 70px;
  overflow: hidden;
  border-radius: 50%;
  border: 2px solid #ffffff;
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.profile-image-container.spin .profile-image {
  animation: spin 0.5s ease-in-out;
}

.chat-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 10px;
  overflow-y: auto;
  background-color: #f9f9f9;
}

.message-container {
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  height: 100%;
  overflow-y: auto;
}

.system-message, .chat-message, .user-message {
  color: #ffffff;
  padding: 10px;
  border-radius: 12px;
  margin-bottom: 10px;
  max-width: 75%;
  word-wrap: break-word;
}

.system-message {
  background-color: #ff9939;
  align-self: center;
  width:100%;
  text-align: center;
}

.chat-message {
  background-color: #ed510e;
  margin-left: 20px;
}

.user-message {
  background-color: #feb52e;
  align-self: flex-end;
  margin-right: 20px;
}

.input-area {
  padding: 10px;
  background-color: #ffffff;
  border-top: 1px solid #e0e0e0;
}

.activity-message {
  width: 100%;
  text-align: left;
  font-size: 12px;
  color: grey;
  padding: 0px 0px 5px 15px;
  visibility: hidden;
}

.activity-message p {
  margin: 0px;
}

.activity-message.is-visible {
  visibility: visible;
}

@keyframes wave {
  0%, 40%, 100% {
    transform: translateY(0);
  }
  20% {
    transform: translateY(-3px);
  }
}

.activity-message p span {
  display: inline-block;
  animation: wave 1.5s infinite;
}

.input-group {
  display: flex;
  align-items: center;
}

.text-entry {
  flex: 1;
  font-size: 16px;
  padding: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 12px 0 0 12px;
}

.text-entry:focus {
  border-color: #ec7d0f;
  outline: none;
}

.enter-button {
  font-size: 16px;
  padding: 10px;
  background-color: #ec7d0f;
  border: 1px solid #ec7d0f;
  border-radius: 0 12px 12px 0;
  color: white;
  cursor: pointer;
}

.enter-button:hover {
  background-color: #ed510e;
  border-color: #ed510e;
}

.enter-button:active {
  background-color: #ef110c;
  border-color: #ef110c;
}

@media only screen and (max-width: 1000px) {
  .chat-container {
    min-width: 100%;
    min-height: 100%;
    border-radius: 0;
  }

  .profile-image-container {
    width: 60px;
    height: 60px;
  }

  .chat-box {
    padding: 5px;
  }

  .input-area {
    padding: 10px 20px 20px 20px;
  }

  .text-entry {
    padding: 8px;
  }

  .enter-button {
    padding: 8px;
  }
}
