/* Font import */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans&display=swap');

body {
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
  background-size: 400% 400%;
  animation: gradientBg 15s ease infinite;
  padding: 20px;

}

@keyframes gradientBg {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


.chatbot-container {
  width: 400px;
  max-width: 90%;
  max-height: 80vh;
  background-color: #ffffff;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin: 20px 0;
  animation: fadeIn 1s ease-in;
}

.chat-header {
  background-color: #6a82fb;
  background-image: linear-gradient(135deg, #6a82fb 0%, #fc5c7d 100%);
  color: #ffffff;
  padding: 15px;
  text-align: center;
  animation: pulse 2s infinite;
  filter: brightness(150%);
  filter: contrast(150%);
}
.h{
  font-size: 1.5rem;
  margin: 10px;
  box-radius: 10px;
  padding: 10px;

}

.chat-window {
  flex-grow: 1;
  padding: 15px;
  background-color: #f9faff;
  overflow-y: auto;
  overflow-x: auto;
  transition: all 0.3s ease;
}

.chat-input {
  display: flex;
  border-top: 1px solid #e0e0e0;
}

.chat-input input {
  flex-grow: 1;
  border: none;
  padding: 15px;
  font-size: 16px;
}

.chat-input input:focus {
  outline: none;
}

.chat-input button {
  background-color: #6a82fb;
  background-image: linear-gradient(135deg, #6a82fb 0%, #fc5c7d 100%);
  color: #ffffff;
  border: none;
  padding: 0 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.chat-input button:hover {
  transform: scale(1.05);
  background: #2980b9;
}

.message {
  max-width: 75%;
  margin-bottom: 15px;
  padding: 10px 15px;
  border-radius: 20px;
  line-height: 1.4;
  word-wrap: break-word;
}

.user-message {
  display: flex;
  justify-content: flex-end;
}

.user-message .message {
  background-color: #d1e7dd;
  color: #0f5132;
}

.bot-message {
  display: flex;
  align-items: center; /* Align the avatar and message vertically */
}

.bot-message .message {
  background-color: #f8d7da;
  color: #842029;
  animation: typing 1s ease-out;
}

/* Bot Avatar Styling */
.bot-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #007bff;
  color: #fff;
  text-align: center;
  line-height: 40px;
  margin-right: 10px;
  flex-shrink: 0; /* Prevent the avatar from shrinking */
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f9faff;
}

::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.disclaimer {
  background-color: rgba(249, 250, 255, 0.95);
  border-top: 3px solid #4a90e2;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px 30px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  font-size: 14px;
  color: #505050;
  line-height: 1.5;
  z-index: 1000;
  animation: fadeIn 0.5s ease-in-out;
}

.disclaimer p {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  line-height: 1.6;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

@keyframes typing {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes h2{
  from { opacity: 0; transform: translateY(10px);
   text-shadow: 5px 5px 10px #0c0c0c; }
  to { opacity: 1; transform: translateY(0); 
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);}
}