html {
  -webkit-text-size-adjust: 100%;
}
input,
textarea,
select,
button {
  font-size: 16px !important;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body, html { height: 100%; font-family: Arial, sans-serif; background: #f5f5f5; }

a {
  text-decoration: none;
  color: white;
  transition: all 0.3s ease;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  display: flex;
  flex-direction: column;
  height: 100vh;
}

#app {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.header {
  background-color: #0088cc;
  color: white;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}


.app-name {
  font-size: 18px;
}

.menu-btn {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

.menu-tj {
  background-color: red;
  margin-right: 10px;
}

#chat {
  flex-grow: 1;
  padding: 10px;
  overflow-y: auto;
  background-color: #ffffff;
  border-bottom: 1px solid #ddd;
  border-top: 1px solid #ddd;
}


#form {
  display: flex;
  padding: 10px;
  background-color: #ffffff;
  border-top: 1px solid #ddd;
  justify-content: space-between;
  align-items: center;
}


#input {
  width: 80%;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid #ccc;
  font-size: 14px;
}

#sendBtn {
  background-color: #0088cc;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  margin-left: 10px;
}


.message {
  display: flex;
  margin-bottom: 10px;
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
  position: relative;
  max-width: 70%;
  word-wrap: break-word;
  justify-content: space-between;
  /* Ensure text is on the left and image on the right */
}


.message .text {
  max-width: 80%;
  word-wrap: break-word;
  display: inline-block;
}

.message .image {
  max-width: 70px;
  max-height: 70px;
  margin-left: 10px;
  border-radius: 5px;
  object-fit: cover;
  flex-shrink: 0;
}


.message.user {
  background-color: #0088cc;
  color: white;
  align-self: flex-end;
  /* Align user message to the right */
  flex-direction: row-reverse;
  margin-left: 20%
}


.message.bot {
  background-color: #e0e0e0;
  align-self: flex-start;
  /* Align bot message to the left */
  flex-direction: row;
  margin-right: 20%;
  text-decoration: none;
  color: black
}

.message .title {
  font-weight: bold;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.message .desc {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
}

.message-time {
  font-size: 12px;
  color: #888;
  position: absolute;
  bottom: -18px;
  right: 5px;
}


.copy-btn {
  background-color: #e0e0e0;
  color: #333;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.2s;
}

.copy-btn:hover {
  background-color: #0088cc;
  color: white;
}

.copy-btn:active {
  background-color: #0077b3;
}


.menu-popup {
  display: none;
  position: fixed;
  top: 50px;
  right: 10px;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.menu-item {
  padding: 10px;
}


.menu-item:hover {
  background-color: #f0f0f0;
}

.howto-content h2 {
  margin-top: 0;
}

.howto-content button {
  background-color: #0088cc;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px;
  cursor: pointer;
}

@media (max-width: 600px) {
  #input {
    width: 70%;
  }

  #sendBtn {
    width: 20%;
    font-size: 16px;
  }

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