@import url('https://fonts.googleapis.com/css?family=Raleway:300,400,500,600,700');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:500,600,700');
    /*--------------------
Body and General Styles
--------------------*/
*,
*::before,
*::after {
    box-sizing: border-box;
}

b, strong {
    font-weight: bolder;
}

.chatbot-image {
    height: 200px !important;
    width: 100% !important;
    max-width: 100% !important;
    object-fit: cover;
    border-radius: 0% !important;
}

.video-container {
    position: relative;
    width: 100%;
    /* padding-bottom: 56.25%; */
    /* height: 0; */
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Dark theme adjustments */
.chat.dark .video-container {
    background: rgba(255, 255, 255, 0.1); /* Matches dark theme */
}

/* Light theme adjustments */
.chat.light .video-container {
    background: rgba(0, 0, 0, 0.1); /* Matches light theme */
}

/*--------------------
Floating Chat Icon
--------------------*/
@keyframes gradientChange {
    0% {
        background: linear-gradient(135deg, rgb(255, 0, 0), rgb(255, 127, 0));
    }
    16.67% {
        background: linear-gradient(135deg, rgb(255, 127, 0), rgb(255, 255, 0));
    }
    33.33% {
        background: linear-gradient(135deg, rgb(255, 255, 0), rgb(0, 255, 0));
    }
    50% {
        background: linear-gradient(135deg, rgb(0, 255, 0), rgb(0, 255, 255));
    }
    66.67% {
        background: linear-gradient(135deg, rgb(0, 255, 255), rgb(0, 0, 255));
    }
    83.33% {
        background: linear-gradient(135deg, rgb(0, 0, 255), rgb(255, 0, 255));
    }
    100% {
        background: linear-gradient(135deg, rgb(255, 0, 0), rgb(255, 127, 0));
    }
}

.ask-guide-image {
    height: 120px;
    width: 120px;
    border-radius: 100%;
    object-fit: contain;
}

.chat-toggle-btn {
    z-index: 1000;
    position: fixed;
    bottom: 50px;
    right: 50px;
    color: white;
    border: none;
    border-radius: 100%;
    width: 80px;
    height: 80px;
    font-size: 40px;
    cursor: pointer;
    padding: 1px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #187fa6;
    /* box-shadow: 0 0 20px #1983ab, 0 0 40px #1983ab, 0 0 60px #1983ab; */
    animation: float 3s ease-in-out infinite; /* Add floating animation */
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0); /* Initial and final position */
    }
    50% {
        transform: translateY(-10px); /* Move up by 10px */
    }
}

.animation-paused {
    animation: none;
}

.chat-toggle-btn:hover {
    animation-play-state: paused;
}

/*--------------------
Chat Window
--------------------*/
.chat {
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: 2%;
    right: 20px;
    width: 500px;
    max-width: 500px;
    max-height: 80%;
    height: 100%;
    z-index: 9999;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 7px 20px 0px;
    background: #000000;
    border-radius: 8px;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s ease;
}

.messages * {
    font-family: "Roboto", sans-serif !important;
}

#userMessage:focus {
    color: #808080;
    transition: box-shadow 0.2s !important;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.07);
    border: 1px solid #d8d8d8;
    opacity: 1;
}

#userMessage:focus-visible {
    outline: none !important;
}

.chat.active {
    visibility: visible;
    opacity: 1;
}

/* Chat title */
.chat-title {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
}

.chat-title h1 {
    margin: 0;
    /* font-size: 16px; */
    font-size: x-large;
    color: rgba(255, 255, 255, 0.6);
}

.chat-title h2 {
    margin: 0;
    font-size: 14px;
    /* font-size: large; */
    color: rgba(255, 255, 255, 0.6);
    padding-top: 2px;
}

.chat-title img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    /* font-size: 16px; */
    font-size: xx-large;
    cursor: pointer;
}

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

/* Message styling */
.message {
    margin: 10px 0;
    display: flex;
    align-items: flex-start;
}

.message-admin {
    justify-content: flex-start;
}

.message-admin img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
}

.message-personal {
    justify-content: flex-end;
}

.message-content {
    background: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    max-width: 80%; /* Set max width for message */
    word-wrap: break-word; /* Prevent overflow from long words */
    color: black;
    font-size: large;
    line-height: 1.5;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 8px 24px;
}

/* Input box styling */
.message-box {
    position: relative;
    display: flex;
    padding: 20px;
    /* background: rgba(0, 0, 0, 0.3); */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

a {
    color: rgb(17 13 253);
}

a {
    text-decoration-line: none !important;
}

.message-content > div > a:hover {
    color: rgb(17 13 253);
    text-decoration: underline !important;
}

.message-box input {
    height: 51px; 
    line-height: 51px;
    flex-grow: 1;
    padding: 10px 60px 10px 20px;
    border: none;
    /* background: rgba(255, 255, 255, 0.1); */
    background: #fff;
    /* color: white; */
    color: black;
    border-radius: 30px;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 5px 15px;
}

.message-box button {
    background-color: #00587A;
    font-size: 12px;
    color: white;
    border: none;
    padding: 10px;
    margin-left: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
    position: absolute;
    top: 50%;
    right: 27px;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    height: 40px;
    width: 40px;
}

.message-box button:hover {
    background-color: #005bb5; /* Darker on hover */
}

.logo-container {
    background-color: #fff;
    box-shadow: 0 0 0px #fff, 0 0 10px #fff, 0 0 10px #fff;
    display: inline-block;
    padding: 5px;
    border-radius: 100%;
}

.logo-container img {
    display: block;
}

.typing {
    display: inline-block;
    width: 0.8rem;
    height: 0.8rem;
    margin-right: 0rem;
    box-sizing: border-box;
    background: #ccc;
    border-radius: 50%;
    background-color: black;

    &.typing-1 {
        animation: typing 3s infinite;
    }
    &.typing-2 {
        animation: typing 3s 250ms infinite;
    }
    &.typing-3 {
        animation: typing 3s 500ms infinite;
    }
}

.video-link {
    position: relative;
    display: inline-block; /* Ensure the link behaves as an inline element */
    width: 100%;
    min-width: 100%;
}

.play-button-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.play-button {
    width: 100% !important;
    height: 50px !important;
}

@keyframes typing {
    0%,
    75%,
    100% {
        transform: translate(0, 0.25rem) scale(0.9);
        opacity: 0.5;
    }

    25% {
        transform: translate(0, -0.25rem) scale(1);
        opacity: 1;
    }
}

/* Dark Theme Styles */
.chat.dark {
    /* background: #000000; */
    background: rgb(249, 249, 249);
    color: white;
}

/* Light Theme Styles */
.chat.light {
    background: #ffffff;
}

.chat.light .message-content {
    background: rgba(0, 0, 0, 0.1);
}

.chat.dark .message-content {
    background: rgba(255, 255, 255, 0.1);
}

/* Dark Theme Styles */
.chat.dark .chat-title {
    /* background: rgba(255, 255, 255, 0.1); */
    background: #06578c;
    color: white;
}

.chat.dark .chat-title h2 {
    color: rgba(255, 255, 255, 0.6);
}

/* Light Theme Styles */
.chat.light .chat-title {
    background: rgba(0, 0, 0, 0.1);
    color: black;
}

.chat.light .chat-title h2 {
    color: rgba(0, 0, 0, 0.6);
}

/* Dark Theme Styles */
.chat.dark .close-btn {
    font-size: 25px;
    color: white;
    padding: 1px 6px;
}

/* Light Theme Styles */
.chat.light .close-btn {
    color: black;
}

/* Message content */
/* .message-content {
    font-family: "Open Sans", "sans-serif" !important;
} */

/* Adjust message content based on theme */
.chat.dark .message-content {
    background: rgba(255, 255, 255);
    /* background: #0000001f; */
}

.chat.light .message-content {
    background: rgba(0, 0, 0, 0.1);
}

.chat-heading { flex: 1; padding-left: 20px; }
.chat h1,
.chat h2,
.chat input[type="text"] { font-family: "Raleway", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 500; }

/*--------------------
Media Queries for Responsiveness
--------------------*/
@media (max-width: 768px) {
    .chatbot-image {
        height: 130px !important;
        width: 100% !important;
        max-width: 100% !important;
        object-fit: cover;
        border-radius: 0% !important;
    }

    .chat {
        width: 60%;
        max-width: 60%;
        bottom: 1%;
        right: 1%;
        max-height: 90%;
    }

    /* .chat-title h1 {
        font-size: 14px;
    }

    .chat-title h2 {
        font-size: 10px;
    } */

    .chat-toggle-btn {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
	
	.chat-toggle-btn{ right: 30px; bottom: 30px; }
	.ask-guide-image{ height: 80px; width: 80px; }
}

@media (max-width: 480px) {
    .chatbot-image {
        height: 100px !important;
        width: 100% !important;
        max-width: 100% !important;
        object-fit: cover;
        border-radius: 0% !important;
    }

    .message-box button {
        margin-left: 5px;
    }

    .message-box input {
        font-size: 14px !important;
    }

    .message-content {
        font-size: 16px !important;
    }

    h1,
    h2 {
        font-family: "Roboto", sans-serif;
    }

    .chat {
        width: 98%;
        max-width: 98%;
        bottom: 1%;
        max-height: 85%;
    }

    .chat-toggle-btn {
        width: 60px;
        height: 60px;
        font-size: 35px !important;
        bottom: 40px;
        right: 20px;
    }
    .chat-title h1 { font-size: 20px !important; }
    .chat-title h2 { font-size: 14px !important; }
	.ask-guide-image{ height: 70px; width: 70px; }
}

#userMessage {
    font-size: 16px; /* Ensure the font size is 16px or larger */
    margin-bottom: 0;
    color: #000 !important;
}
input,
textarea {
    -webkit-user-modify: read-write-plaintext-only; /* Disable zoom on iOS */
}
