/* Global Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Comfortaa', cursive;
  margin: 0;
  padding: 0;
  background-color: #E3F2FD; /* Light Blue Background */
  font-size: 16px;
}

/* Chat Container */
#chat-container {
  display: flex;
  flex-direction: column;
  max-width: 400px;
  margin: 50px auto;
  background-color: #FFFFFF; /* White background for contrast */
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  border: 1px solid #1E88E5; /* Medium Blue Border */
}

@media (min-width: 601px) {
  #chat-container {
    max-width: 600px;
	  background-color: #aaceef;
  }
}

/* Messages */
#messages {
  display: flex;
  flex-direction: column;
  padding: 10px;
  overflow-y: auto;
  flex-grow: 1;
}

/* Chat Bubbles */
.message {
  max-width: 70%;
  margin-bottom: 10px;
  padding: 12px 18px;
  border-radius: 20px;
  line-height: 1.4;
  font-size: 16px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.message pre {
  white-space: pre-wrap;
  font-family: inherit;
  margin: 0;
}

.message-content {
  display: flex;
  flex-direction: column;
}

/* User Message */
.user-message {
  align-self: flex-end;
  background-color: #1976D2; /* Dark Blue */
  color: #FFFFFF;
  border-bottom-left-radius: 5px;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  padding: 10px 20px;
  margin-bottom: 10px;
}

/* Bot Message */
.bot-message {
  align-self: flex-start;
  background-color: #64B5F6; /* Light Blue */
  color: #FFFFFF;
  border-bottom-right-radius: 5px;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  padding: 10px 20px;
  margin-bottom: 10px;
}

/* Input Container */
#input-container {
  display: flex;
  align-items: center;
  padding: 10px;
  background-color: #BBDEFB; /* Very Light Blue */
}

/* Input Field */
#user-input {
  flex-grow: 1;
  border: none;
  padding: 5px 10px;
  font-size: 16px;
  outline: none;
  height: 40px;
  min-height: 80px;
  max-height: 200px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  background-color: #FFFFFF;
  border-radius: 5px;
}

/* Send Button */
#send-button {
  background-color: #1E88E5; /* Medium Blue */
  color: #FFFFFF;
  border: none;
  padding: 10px;
  font-size: 16px;
  cursor: pointer;
  outline: none;
  border-radius: 5px;
  margin-left: 10px;
}

/* Send Image Button */
#send-image-button {
  background-color: #1E88E5; /* Medium Blue */
  color: #FFFFFF;
  border: none;
  padding: 10px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
  outline: none;
  margin-left: 10px;
}

/* Support Button */
#supportYack {
  background-color: #0D47A1; /* Darker Blue */
  color: #FFFFFF;
  border: none;
  padding: 10px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
  outline: none;
  margin-left: 10px;
}

/* General Button Styles */
.send-button, .send-image-button, .signUpNow {
  background-color: #1E88E5; /* Medium Blue */
  color: #FFFFFF;
  border: none;
  padding: 10px;
  font-size: 16px;
  cursor: pointer;
  outline: none;
  border-radius: 5px;
  margin-left: 10px;
}

.signUpNow a {
  color: #FFFFFF;
}

/* Yack Image */
.yack-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

/* Message Info */
.message-info {
  display: flex;
  align-items: center;
  margin-top: 5px;
  font-size: 14px;
  color: #888888;
}

/* Assistant Name */
.assistant-name {
  margin-left: 10px;
  font-weight: bold;
  color: #FFFFFF;
}

/* Response Messages */
.bot-message .message-info {
  display: flex;
  align-items: center;
}

.bot-message .message-text {
  margin-right: 10px;
}

.message-text {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.bot-message .avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

/* List Styles */
.bot-message ul {
  list-style-type: none;
  padding-left: 20px;
  margin-top: 5px;
  margin-bottom: 5px;
}

.bot-message li {
  font-size: 0.9em;
  padding: 3px 0;
  text-indent: -20px;
  margin-left: 20px;
}

.bot-message li:before {
  content: "•";
  display: inline-block;
  width: 20px;
  text-indent: 0;
  color: #FFFFFF;
}

/* Heading */
h1 {
  margin-bottom: 0px;
}

.ask-yack {
  font-family: 'Comfortaa', cursive;
  font-size: 32px;
  text-align: center;
  margin: auto;
  padding-top: 25px;
  color: #1E88E5; /* Medium Blue */
  display: flex;
  align-items: center;
  gap: 10px;
}

.yack-logo {
  width: 40px;
  height: auto;
}

/* Loading Icon */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-icon {
  display: inline-block;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: #1E88E5; /* Medium Blue */
  border-radius: 50%;
  width: 1em;
  height: 1em;
  animation: spin 0.6s linear infinite;
}

.email-response-button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5em;
  padding: 0;
  margin-left: 0.5em;
  color: #333333;
}

.email-response-button:hover {
  color: #1E88E5; /* Medium Blue */
}

/* Navigation */
/* Side Navigation Menu */
.sidenav {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1;
  top: 0;
  right: 0;
  background-color: #0D47A1; /* Darker Blue */
  overflow-x: hidden;
  padding-top: 60px;
  transition: 0.5s;
  font-size: 16px;
}

/* Navigation Links */
.sidenav a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 16px;
  color: #BBDEFB; /* Light Blue */
  display: block;
  transition: 0.3s;
}

.sidenav a:hover {
  color: #E3F2FD; /* Lighter Blue */
}

/* Close Button */
.sidenav .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
  color: #BBDEFB; /* Light Blue */
}

/* Social Tags */
#socialTags {
  display: flex;
  align-items: center;
  justify-content: center;
}

#socialTags a {
  text-decoration: none;
  padding: 0 10px;
}

.socialTags:hover {
  color: #1E88E5; /* Medium Blue */
}

/* Hamburger Menu Icon */
.menu-icon {
  cursor: pointer;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2;
}

.bar1, .bar2, .bar3 {
  width: 25px;
  height: 3.5px;
  background-color: #1E88E5; /* Medium Blue */
  margin: 6px 0;
  transition: 0.4s;
}

#menu-wrapper.open .menu-icon {
  display: none;
}

/* Preformatted Text */
pre {
  background-color: #E3F2FD; /* Light Blue */
  border: 1px solid #BBDEFB; /* Light Blue Border */
  border-radius: 4px;
  padding: 1rem;
  overflow-x: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-size: 12px;
  color: #0D47A1; /* Darker Blue Text */
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
  font-size: 12px;
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
  background-color: #FFFFFF;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888888;
  max-width: 500px;
  border-radius: 10px;
}

.close {
  color: #0D47A1; /* Darker Blue */
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #1E88E5; /* Medium Blue */
  text-decoration: none;
}

/* Version Information */
.version-info {
  margin: auto 0;
  font-size: 10px;
  color: #666666;
  padding: 10px;
}

.askyack-bottomchat {
  margin: auto 0;
  font-size: 10px;
  color: #666666;
  padding: 10px;
}

/* Responsive Image Adjustment */
@media (max-width: 768px) {
  .message-image img {
    width: 250px;
    height: 250px;
  }
}

/* Powered By Section */
.powered-by {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 10px;
  margin-top: 10px;
}

.powered-by-logo {
  width: 30px;
  height: 30px;
  margin-bottom: 5px;
}


/* Registration Modal */
#registrationModal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

#registrationModal .modal-content {
  background-color: #FFFFFF;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888888;
  max-width: 500px;
  border-radius: 10px;
}

#registrationModal h2 {
  margin-top: 0;
  font-size: 28px;
  color: #0D47A1; /* Darker Blue */
}

#registrationModal form {
  display: flex;
  flex-direction: column;
}

#registrationModal label {
  font-size: 16px;
  font-weight: bold;
  margin-top: 10px;
  color: #0D47A1; /* Darker Blue */
}

#registrationModal input[type="email"],
#registrationModal input[type="password"],
#registrationModal input[type="text"] {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #BBDEFB; /* Light Blue */
  border-radius: 5px;
  margin-bottom: 20px;
}

#registrationModal button[type="submit"] {
  background-color: #1E88E5; /* Medium Blue */
  color: #FFFFFF;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  padding: 10px;
  cursor: pointer;
}

#registrationModal button[type="submit"]:hover {
  background-color: #1976D2; /* Dark Blue */
}

/* Login Modal */
#loginModal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

#loginModal .modal-content {
  background-color: #FFFFFF;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888888;
  max-width: 500px;
  border-radius: 10px;
}

#loginModal h2 {
  margin-top: 0;
  font-size: 28px;
  color: #0D47A1; /* Darker Blue */
}

#loginModal form {
  display: flex;
  flex-direction: column;
}

#loginModal label {
  font-size: 16px;
  font-weight: bold;
  margin-top: 10px;
  color: #0D47A1; /* Darker Blue */
}

#loginModal input[type="email"],
#loginModal input[type="password"],
#loginModal input[type="text"] {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #BBDEFB; /* Light Blue */
  border-radius: 5px;
  margin-bottom: 20px;
}

#loginModal button[type="submit"] {
  background-color: #1E88E5; /* Medium Blue */
  color: #FFFFFF;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  padding: 10px;
  cursor: pointer;
}

#loginModal button[type="submit"]:hover {
  background-color: #1976D2; /* Dark Blue */
}

/* User Indicator */
.user-indicator {
  padding: 10px;
  color: #0D47A1; /* Darker Blue */
}

/* About Us Modal */
.about-us-modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
}

.about-us-modal-content {
  background-color: #FFFFFF;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888888;
  max-width: 600px;
  border-radius: 10px;
  position: relative;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.about-us-close {
  color: #0D47A1; /* Darker Blue */
  cursor: pointer;
  font-size: 2em;
  position: absolute;
  right: 20px;
  top: 20px;
  z-index: 10;
}

.about-us-close:hover {
  color: #1E88E5; /* Medium Blue */
}

.about-us-text p {
  font-size: 1.1em;
  line-height: 1.6;
  color: #333333;
  text-align: justify;
  margin-bottom: 20px;
}

.about-us-text p:last-child {
  margin-bottom: 0;
}

.mail-link {
  display: inline-flex;
  align-items: center;
  color: #1E88E5; /* Medium Blue */
  text-decoration: none;
  font-size: 16px;
}

.mail-link i {
  margin-right: 5px;
}


/* Version Information */
.version-info {
  margin: auto 0;
  font-size: 10px;
  color: #666666;
  padding: 10px;
}

.askyack-bottomchat {
  margin: auto 0;
  font-size: 10px;
  color: #666666;
  padding: 10px;
}

/* Responsive Image Adjustment */
@media (max-width: 768px) {
  .message-image img {
    width: 250px;
    height: 250px;
  }
}

/* Powered By Section */
.powered-by {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 10px;
  margin-top: 10px;
}

.powered-by-logo {
  width: 30px;
  height: 30px;
  margin-bottom: 5px;
}

/* Footer */
footer {
  background-color: #0D47A1; /* Darker Blue */
  color: #ffffff;
  text-align: center;
  padding: 10px;
  position: fixed;
  width: 100%;
  bottom: 0;
}

footer a {
  color: #BBDEFB; /* Light Blue */
  text-decoration: none;
}

footer a:hover {
  color: #E3F2FD; /* Lighter Blue */
}

/* Add any additional custom styles below */
