/* Default chatbot container styles for desktop */
#chat-bot-container {
    position: fixed;
    bottom: 20px;
    right: 100px;
    z-index: 9999;
}

/* Default chat-bot styles */
#chat-bot {
    display: none;
    position: fixed;
    bottom: 60px; /* Position for desktop */
    right: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 350px;
    padding: 10px;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /*style="display:none; position: relative; max-width: 450px;"*/
}

/* Adjust chat-bot styles for mobile */
@media screen and (max-width: 768px) {
    #chat-bot-container {
        position: fixed;
        bottom: auto; /* Reset bottom position */
        top: 0; /* Move to top */
        left: 0;
        right: 0;
        z-index: 9999;
    }

    #chat-bot {
        bottom: auto; /* Reset bottom position */
        top: 0; /* Move to top */
        right: 0;
        left: 0;
        max-height: 70vh; /* Limit height to half of the viewport */
        overflow-y: auto; /* Add scrolling if content exceeds height */
        box-shadow: none; /* Remove shadow for a flat appearance */
        border-radius: 0; /* Remove rounded corners */
    }

    #chat-close {
        position: absolute;
        top: 10px;
        right: 10px;
    }

    #chat-toggle {
        bottom: 10px;
        right: 10px;
        width: auto;
    }
}


/* Unordered Lists */
#chat-bot ul {
    margin: 1em 0;             /* Space above and below the list */
    padding-left: 1.5em;       /* Indent list items */
    list-style-type: disc;     /* Use bullet points */
    font-family: Arial, sans-serif;
    color: #333;
}

#chat-bot ul li {
    margin-bottom: 0.5em;      /* Space between list items */
}

/* Ordered Lists */
#chat-bot ol {
    margin: 1em 0;             /* Space above and below the list */
    padding-left: 1.5em;       /* Indent list items */
    list-style-type: decimal;  /* Use numbers for list items */
    font-family: Arial, sans-serif;
    color: #333;
}

#chat-bot ol li {
    margin-bottom: 0.5em;      /* Space between list items */
    font-weight: bold;
}

/* Nested Lists */
#chat-bot ul ul,
#chat-bot ol ol,
#chat-bot ul ol,
#chat-bot ol ul {
    margin: 0.5em 0 0.5em 1.5em; /* Additional indent for nested lists */
}

.ai-img {
    margin-bottom: 10px;
    margin-top: 10px;
}
.title {
    color: #0073AA;

}
/* Common loader container styling */
.chat-loader {
    display: inline-block;
    vertical-align: middle;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

/* Optional wrapper styling (if using a container for loaders) */
#loader-container {
    position: relative;
    text-align: center;
    width: 100%;
}

/* Loader dot animation (common for all overlays) */
.loader {
    display: inline-block;
    vertical-align: middle;
}
.loader span {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 3px;
    background-color: #fff; /* white dots */
    border-radius: 50%;
    opacity: 0;
    animation: blink 1.4s infinite both;
}
.loader span:nth-child(1) {
    animation-delay: 0s;
}
.loader span:nth-child(2) {
    animation-delay: 0.2s;
}
.loader span:nth-child(3) {
    animation-delay: 0.4s;
}
@keyframes blink {
    0%, 80%, 100% { opacity: 0; }
    40% { opacity: 1; }
}

/* Reading overlay styling */
#reading-loader {
    background: linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(56,52,166,1) 40%, rgba(124,139,255,1) 100%);
    background-size: 200% 200%;
    animation: readingBg 3s ease-in-out infinite;
    min-width: 94%;

}

/* Recording overlay styling */
#recording-overlay {
    background: linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(166,52,89,1) 40%, rgba(255,0,71,1) 100%);
    background-size: 200% 200%;
    animation: recordingBg 3s ease-in-out infinite;
    min-width: 94%;

}

/* Speaking overlay styling */
#speaking-overlay {
    background: linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(59,117,38,1) 40%, rgba(31,157,22,1) 100%);
    background-size: 200% 200%;
    animation: speakingBg 3s ease-in-out infinite;
    min-width: 94%;
}

/* Background animations */
@keyframes readingBg {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes recordingBg {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes speakingBg {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#start-voice{
    background: #399d71;
    color: white;
    border: none;
    padding: 8px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 19px;
}
.send {
    background: linear-gradient(90deg, rgba(87,129,208,1) 0%, rgba(29,83,175,1) 62%);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
}
.voice {
    background: #22851f;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}
.stop {
    background: linear-gradient(90deg, rgba(241,84,107,1) 0%, rgba(201,26,96,1) 62%);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
}
.ai-img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 10px 0;
    border-radius: 4px;
}
@keyframes fadeScaleInOut {
  0% {
    opacity: 0;
    transform: scale(0.1);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
  51% {
    opacity: 0.99; /* trick to skip stall */
    transform: scale(1.01);
  }
  100% {
    opacity: 0;
    transform: scale(3.5);
  }
}

#liberty-intro-logo {
  width: 100%;
  height: auto;
  animation: fadeScaleInOut 2.4s cubic-bezier(0.42, 0, 0.58, 1) forwards;
  display: block;
  margin: 0 auto;
}


