body {
  font-family: 'Poppins', sans-serif;
  background-color: #F9F5F4;
  color: #333;
  margin: 0;
  padding: 0;
  text-align: center;
  overflow: hidden; /* Prevent scrolling */
}

/* Hide scrollbar for Chrome, Safari and Opera */
::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
html {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

header {
  padding: 20px;
  position: relative;
}

.logo {
  position: absolute;
  top: 20px;
  left: 40px;
  width: 109px;
  height: 46px;
}

.back-btn {
  position: absolute;
  top: 50px;
  left: 10px;
  font-size: 50px;
  border: none;
  background: none;
  cursor: pointer;
  color: #B22222;
}

h1 {
  color: #B22222;
  font-size: 50px;
  font-weight: unset;
  font-family: "Poppins";
  margin-bottom: 5px;
}

header p {
  font-size: 32px;
  font-weight: bold;
  color: #B22222;
}

/* Chat container styles */
.chat-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 100px);
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.message {
  max-width: 70%;
  padding: 15px;
  border-radius: 10px;
  position: relative;
  word-wrap: break-word;
}

.user-message {
  align-self: flex-end;
  background-color: var(--preferredColor);
  color: white;
  border-top-right-radius: 0;
}

.bot-message {
  align-self: flex-start;
  background-color: #e9e9e9;
  color: #333;
  border-top-left-radius: 0;
}

.chat-input-container {
  display: flex;
  padding: 20px;
  background-color: rgb(248, 245, 244);
  border-top: 1px solid #ddd;
  position: sticky;
  bottom: 0;
}

.chat-input {
  flex: 1;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 25px;
  font-size: 16px;
  outline: none;
  font-family: 'Poppins', sans-serif;
}

.send-btn {
  background-color: var(--preferredColor);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  margin-left: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.send-btn:hover {
  opacity: 0.9;
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  background-color: #e9e9e9;
  border-radius: 10px;
  width: fit-content;
  margin-top: 5px;
}

.typing-indicator span {
  height: 8px;
  width: 8px;
  background-color: #666;
  border-radius: 50%;
  display: inline-block;
  margin: 0 2px;
  animation: typing 1.4s infinite both;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .chat-container {
    padding: 10px;
  }

  .message {
    max-width: 85%;
  }
}
