body {
  font-family: "Open Sans", sans-serif;
  background-color: #f7efe5;
}

#chat-window {
  width: 500px;
  margin: 0 auto;
  background: rgb(122,0,0);
  background: linear-gradient(90deg, rgba(122,0,0,0.6250875350140056) 12%, rgba(2,0,36,0.7651435574229692) 42%, rgba(25,204,241,1) 100%);
  padding: 20px;
  border-radius: 10px;
  margin-top: 50px;
}

#chat-messages {
  padding: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid #ccc;
  height: calc(100vh - 200px);
  max-height: calc(100vh - 200px);
  overflow: auto;
}

#chat-form {
  display: flex;
  align-items: center;
}

#chat-input {
  flex-grow: 1;
  padding: 10px;
  margin-right: 10px;
  border-radius: 10px;
  border: 1px solid #ccc;
}

.main-title {
  text-align: center;
  font-weight: bolder;
  color: #ccc;
}
button[type="submit"] {
  padding: 10px 20px;
  border-radius: 10px;
  background-color: #f7efe5;
  color: linear-gradient(to right, red , yellow);;
  border: none;
  font-size: 1rem;
  font-weight: bold;
}
.bot-message {
  font-family: "Roboto", sans-serif;
  background: rgb(152,246,131);
  background: linear-gradient(90deg, rgba(152,246,131,0.8155637254901961) 33%, rgba(25,204,241,0.8491771708683473) 100%);
  text-align: justify; /* keep it right-aligned */
  padding: 15px; /* added padding */
  margin-top: 10px; /* added margin-top to create a gap */
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  font-style: italic;
  border-radius: 5vh;
  color: black;
  font-weight: bolder;
}

.user-message {
  font-family: "Nunito", sans-serif;
  background-color: #f7efe5; /* light color */
  text-align: left; /* changed text align to left */
  padding: 15px; /* added padding */
  display: flex;
  align-items: center;
  font-style: initial;
  border-radius: 5vh;
  font-weight: bold;
}
.user-message img,
.bot-message img {
  width: 40px; /* adjust the width of the icon */
  height: 40px; /* adjust the height of the icon */
  margin-right: 20px; /* add some margin to separate the icon from the message */
}
* Styles for screens with a minimum width of 768px */
@media only screen and (min-width: 768px) {
  /* Adjust layout and font size for larger screens */
  body {
    font-size: 18px;
  }

  /* Example of adjusting specific elements for larger screens */
  .container {
    width: 80%;
    margin: 0 auto;
  }
}

/* Styles for screens with a maximum width of 767px */
@media only screen and (max-width: 767px) {
  /* Adjust layout and font size for medium-sized screens */
  body {
    font-size: 16px;
  }

  /* Example of adjusting specific elements for medium-sized screens */
  .container {
    width: 90%;
    margin: 0 auto;
  }
}

/* Styles for screens with a maximum width of 480px */
@media only screen and (max-width: 480px) {
  /* Further adjust layout and font size for smaller screens */
  body {
    font-size: 14px;
  }

  /* Example of adjusting specific elements for smaller screens */
  .container {
    width: 95%;
    margin: 0 auto;
  }
}