/* Reset some default styles to ensure consistency */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Set a background color for the body */
body {
  background-color: #f0f0f0;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

#chat-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center; /* Center the content horizontally */
  height: 100vh;
  max-height: 100%;
  text-align: center; /* Center the text inside the message container */
}

/* Style the chat container */
#message-container {
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  overflow-y: auto;
  padding: 20px;
  flex-grow: 1;
  width: 100%; /* Set the width to 100% to center the content */
  max-width: 800px; /* Limit the maximum width */
  text-align: left; /* Align text inside the message container to the left */
}

/* Style the chat messages */
#message-container div {
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 5px;
}

/* Style the user's messages */
#message-container div:nth-child(odd) {
  background-color: #007bff;
  color: #fff;
  text-align: right;
}

/* Style the other user's messages */
#message-container div:nth-child(even) {
  background-color: #eee;
  color: #333;
  text-align: left;
}

/* Style the input field and send button */
#send-container {
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding: 10px;
  position: sticky;
  bottom: 0;
  width: 100%;
}

#message-input {
  flex-grow: 1;
  border: none;
  padding: 10px;
  border-radius: 3px;
  margin-right: 10px;
  font-size: 15px;
}

#send-button {
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 3px;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 14px;
}

#send-button:hover {
  background-color: #0056b3;
}
