body, html {
    height: 100%;
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: #FFCD05;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

.navbar {
    background-color: #FFFFFF;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#logo {
    width: auto;
    height: 50px;
}

#chat-container {
    width: 850px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    justify-content: space-between; /* This will ensure that the input container is pushed to the bottom */
    height: 75%; /* You might need to set a specific height or 100% */
}

.message-wrapper {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.assistant-name {
  order: 2; /* name appears under the icon */
  font-size: 0.8em;
  font-weight: bold;
  color: #000;
  margin-top: 2px; /* space between icon and name */
}

/* Icon and name container */
.icon-and-name-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.message-container {
  flex-grow: 1;
  background-color: #F2F2F2; /* bot message background color */
  color: black;
  border: 1px #D1D1D1 solid;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 15px;
}

.bot-wrapper .message-text-container{
  flex-grow: 1;
  background-color: #F2F2F2; /* bot message background color */
  color: black;
  border: 1px #D1D1D1 solid;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 15px;
}


.bot-message .message-icon {
    width: 40px; /* Adjust the size of the icon as needed */
    height: 40px; /* Adjust the size of the icon as needed */
}

.user-message .message-icon {
    width: 40px; /* Adjust the size of the icon as needed */
    height: 40px; /* Adjust the size of the icon as needed */
}


.user-wrapper {
  flex-direction: row-reverse;
}

.bot-message {
    margin-left: 0; /* Adjust as needed */
}

.user-message {
    margin-right: 0; /* Adjust as needed */
}

.user-wrapper .message-container {
  background-color: #ffffff; /* user message background color */
  color: #2d2a2a;
  align-self: flex-end;
}

.navbar {
  justify-content: space-between; /* Adjusts space between logo and toggler */
}

/*.navbar-toggler {
  margin-right: 15px; /* Adjust as needed for spacing
}*/


.message {
  display: flex;
  align-items: flex-start; /* Align items to the top */
  flex-wrap: wrap; /* Allow items to wrap */
  margin-bottom: 15px;
  padding: 10px;
  background-color: #e0e0e0;
  border-radius: 10px;
}

.user-message {
  background-color: #ffffff;
  color: #2d2a2a;
  border: 1px #D1D1D1 solid;
}

.bot-message {
  background-color: #F2F2F2;
  color: black;
  border: 1px #D1D1D1 solid;
}

.chat-input-container {
  display: flex;
  padding: 10px;
  background-color: #fff;
  border-radius: 10px;
  border: 1px #D1D1D1 solid;
margin-top: auto; /* This will push the input container to the bottom */
}

#chat-input {
  flex-grow: 1;
  border: none;
  padding: 10px;
  font-family: Arial, sans-serif;
  font-size: 16px;
}

#chat-input:focus {
  outline: none;
}

#chat-action {
  background-color: #FFD700;
  border: none;
  padding: 10px 20px;
  margin-left: 10px;
  border-radius: 15px;
  cursor: pointer;
}

#chat-action:hover {
  background-color: darken(#FFD700, 40%);
}

.typing-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  margin: 10px 0;
}

.typing-indicator .dot {
  height: 10px;
  width: 10px;
  margin: 0 4px;
  background-color: #333;
  border-radius: 50%;
  display: inline-block;
  animation: typing-blink 1.4s infinite;
}

.typing-indicator .dot:nth-child(1) {
animation-delay: 0s;
}

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

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

@keyframes typing-blink {
0%, 100% {
  transform: scale(0.4);
  opacity: 0.5;
}
50% {
  transform: scale(1);
  opacity: 1;
}
}

#messages {
  max-height: 500px;
  overflow-y: auto;
  scrollbar-width: none; /* for Firefox */
  -ms-overflow-style: none; /* for Internet Explorer and Edge */
}

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

.chat-header h2 {
  font-size: 28px;
  text-align: center;
  padding-bottom: 10px;
  padding-left: 40px;
}


/* Rounded border */
hr.rounded {
  border-top: 2px solid #d6d6d6;
  border-radius: 5px;
}

/* Rest of your CSS */

@media (max-width: 845px) {
    #chat-container {
        width: 95%;
        margin: 10px auto;
      height: 80%; /* You might need to set a specific height or 100% */
    }

  .navbar {
    justify-content: space-between; /* Adjusts space between logo and toggler */
  }

  /* Ensure the navbar toggler is aligned to the right */
  .navbar-toggler {
      margin-left: auto; /* This will push the toggler to the right */
  }


.message {
    display: flex;
    align-items: flex-start; /* Align items to the top */
    flex-wrap: wrap; /* Allow items to wrap */
    margin-bottom: 15px;
    padding: 10px;
    background-color: #e0e0e0;
    border-radius: 10px;
}

.user-message {
    background-color: #ffffff;
    color: #2d2a2a;
    border: 1px #D1D1D1 solid;
}

.bot-message {
    background-color: #F2F2F2;
    color: black;
    border: 1px #D1D1D1 solid;
}

.chat-input-container {
    display: flex;
    padding: 10px;
    background-color: #fff;
    border-radius: 10px;
    border: 1px #D1D1D1 solid;
  margin-top: auto; /* This will push the input container to the bottom */
}

#chat-input {
    flex-grow: 1;
    border: none;
    padding: 10px;
    font-family: Arial, sans-serif;
    font-size: 16px;
}

#chat-input:focus {
    outline: none;
}

#chat-action {
    background-color: #FFD700;
    border: none;
    padding: 10px 20px;
    margin-left: 10px;
    border-radius: 15px;
    cursor: pointer;
}

#chat-action:hover {
    background-color: darken(#FFD700, 40%);
}

.typing-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    margin: 10px 0;
}

.typing-indicator .dot {
    height: 10px;
    width: 10px;
    margin: 0 4px;
    background-color: #333;
    border-radius: 50%;
    display: inline-block;
    animation: typing-blink 1.4s infinite;
}

.typing-indicator .dot:nth-child(1) {
  animation-delay: 0s;
}

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

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

@keyframes typing-blink {
  0%, 100% {
    transform: scale(0.4);
    opacity: 0.5;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
}

#messages {
    max-height: 500px;
    overflow-y: auto;
    scrollbar-width: none; /* for Firefox */
    -ms-overflow-style: none; /* for Internet Explorer and Edge */
}

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


.message-text {
    flex: 1; /* Allow the message text to fill the remaining space */
    order: 3; /* Ensure text comes after the name */
}

  /* You may need to adjust the padding or margin of the navbar-nav as well */
  .navbar-nav {
      padding-left: 0;
  }

  .navbar-brand {
      margin-left: 0; /* Aligns the logo to the left */
      margin-right: auto; /* Pushes everything else to the right */
  }

  /* Reset margins for navbar collapse to align items properly */
  .navbar-collapse {
      margin-left: 0;
  }

  /* Adjust the logo image size if necessary */
  #logo {
      height: auto; /* maintain aspect ratio */
      max-height: 50px; /* adjust as per your design */
      width: auto; /* maintain aspect ratio */
  }

  .chat-header  h2 {
    font-size: 20px;
    padding-bottom: 10px;
    text-align: center;
    padding-top:15px;
    padding-left: 0px !important;
  }

}