@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap");
/*here we imported url to use the Roboto font family*/
body {
  font-family: "Roboto", sans-serif;
  background-color: #121212;
  color: #ffffff;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

#chat-container {
  width: 90%;
  max-width: 1600px;
  height: 90%;
  max-height: 80%;
  background-color: #1e1e1e;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  overflow: hidden;
  flex-direction: column;
}

#chat-interface {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

#chat-history {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background-color: #2a2a2a;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-height: 100%;
  border-bottom: 1px solid #444;
}

.message-container {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
}

.user-avatar,
.assistant-avatar,
.admin-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.user-avatar {
  margin-right: 10px;
}

.admin-avatar {
  margin-left: 10px;
}

.user-message-container {
  align-self: flex-end;
  margin-left: auto;
  margin-right: 10px;
}

.bot-message-container {
  align-self: flex-start;
  margin-right: auto;
  margin-left: 10px;
}

.user-message,
.bot-message {
  border-radius: 10px;
  padding: 15px;
  font-size: 16px;
  max-width: 80%;
  word-wrap: break-word;
}

.user-message {
  background-color: #0078d7;
  color: white;
}

.bot-message {
  background-color: #3a3a3a;
  color: white;
}

#input-container {
  padding: 20px;
  background-color: #1e1e1e;
  border-top: 1px solid #444;
}

#user-input {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #444;
  background-color: #2a2a2a;
  color: white;
  font-size: 16px;
}

#send-button {
  padding: 10px 20px;
  margin-left: 10px;
  border: none;
  border-radius: 10px;
  background-color: #0078d7;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

#send-button:hover {
  background-color: #005bb5;
  transform: scale(1.05);
}

#send-button:active {
  transform: scale(1);
}

#chatbot-heading {
  text-align: center;
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: bold;
  background-color: #1e1e1e;
  padding: 10px 0;
  border-bottom: 1px solid #444;
}

#typing-message img {
  height: 2em;
}

.flex {
  display: flex;
}

.justify-between {
  justify-content: space-between;
}

.avatar-container img {
  border-radius: 50%;
  margin: 0 1em
}

@media (max-width: 640px) {
  .emoji-picker__wrapper {
    max-width: 300px !important;
    max-height: 350px !important;
    transform: scale(0.85); /* Scale down the whole picker */
    transform-origin: top right; /* Adjust to fit nicely in corner */
    font-size: 12px !important; /* Smaller labels */
  }
  
  .emoji-picker {
    padding: 4px !important;
  }
  
  .emoji-picker__emoji {
    font-size: 1.2rem !important; /* Shrink emojis */
    padding: 4px !important;
  }
  
  .emoji-picker__category-button,
  .emoji-picker__search-input {
    font-size: 12px !important;
    padding: 4px 6px !important;
  }
  
  .emoji-picker__preview-emoji,
  .emoji-picker__preview-name {
    font-size: 0.9rem !important;
  }  
}