/* Styles for the navbar */
.nav {
  background-color: #333;
  overflow: hidden;
}

.nav a {
  float: left;
  color: #fff;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

.nav a:hover {
  background-color: #ddd;
  color: #333;
}

/* Styles for the chat container */
.chat-container {
  background-color: #f2f2f2;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-top: 20px;
  padding: 20px;
  height: 400px; /* Set a fixed height for the chat container */
  overflow-y: scroll; /* Enable vertical scrolling */
}

/* Styles for the chat messages */
#chat-messages {
  display: flex;
  flex-direction: column-reverse; /* Reverse the order of messages */
}

.message {
  margin-bottom: 10px;
  background-color: #fff;
  padding: 10px;
  border-radius: 4px;
}

.message-text {
  font-weight: bold;
}

.message-time {
  color: #888;
  font-size: 0.8em;
}

/* Styles for the chat input */
.chat-input {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px;
  background-color: #f2f2f2;
}

.chat-input form {
  display: flex;
  justify-content: space-between;
}

.chat-input input[type="text"] {
  flex-grow: 1;
  margin-right: 10px;
}

.chat-input button {
  padding: 8px 16px;
  background-color: #333;
  color: #fff;
  border: none;
  cursor: pointer;
}

.chat-input button:hover {
  background-color: #555;
}

/* Styles for responsive design */
/* Styles for responsive design */
@media screen and (max-width: 432px) {
  /* Navbar */
  .nav a {
    padding: 10px;
  }

  /* Chat Container */
  .chat-container {
    height: calc(100vh - 220px); /* Adjust the height based on your needs */
    margin-top: 0;
    padding: 10px;
    overflow-y: auto; /* Enable vertical scrolling */
  }

  .message {
    padding: 5px;
  }

  /* Chat Input */
  .chat-input {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background-color: #f2f2f2;
  }

  .chat-input form {
    display: flex;
    align-items: center; /* Center items vertically */
  }

  .chat-input input[type="text"] {
    flex-grow: 1;
    padding: 8px; /* Adjust the padding for better appearance */
    border-radius: 20px; /* Add border radius for rounded input */
    font-size: 14px; /* Adjust the font size for better readability */
  }

  .chat-input button {
    padding: 10px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 50%; /* Add border radius for a circular button */
    cursor: pointer;
  }
}

