/* General  */

body {
    background-color: transparent;
}

p {
    font-size: 14px;
}

a,
a:hover,
a:focus,
a:active {
    text-decoration: none;
    color: grey;
    background-color: transparent;
}

/* Circle  */

#close-chat-message-bubble {
    position: absolute;
    top: -7px;
    right: -7px;
    width: 20px;
    height: 20px;
    background-color: #fcfcfce6;
    border-radius: 50%;
    border: none;
    cursor: pointer;
}

#close-chat-message-bubble span {
    display: inline-block;
    color: black;
    font-size: 15px;
    font-weight: normal;
}

#chat {
    position: fixed;
    right: 30px;
    bottom: 30px;
}

#chat-message-bubble {
    max-width: 250px;
    height: auto;
    background-color: white;
    border-radius: 10px;
    position: fixed;
    right: 30px;
    bottom: 100px;
    padding: 10px;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
}

#chat-message-bubble .close-btn {
    color: grey;
    font-size: 15px;
    font-weight: normal;
}

#chat-message-bubble p {
    margin: 10px;
}

.hidden {
    display: none;
}

.img-circle {
    width: 100%;
    height: auto;
    display: flex;
}

#chat-circle {
    width: 60px;
    height: 60px;
    background-color: blue;
    border-radius: 50%;
    position: fixed;
    right: 30px;
    bottom: 30px;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    padding: 10px;
}

.chat-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 650px;
    width: 40%;
    display: flex;
    flex-direction: column;
    z-index: 9999;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    border-radius: 20px;
    font-weight: 0 0 20px rgba(0, 0, 0, 0.1);
}

@media only screen and (max-device-width: 480px) {
    /* adjust this to your liking for iPhone devices */
    .chat-container {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: 0;
        height: calc(100% - env(safe-area-inset-top) - env(safe-area-inset-bottom));
        width: 100%;
        display: none;
        flex-direction: column;
        z-index: 9999;
        background-color: #fff;
        border-radius: 0;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    }
    .top {
        border-radius: 0 !important;
    }
}

/* Top */

.header-logo {
    margin-left: 20px;
    align-items: left;
    margin-right: 10px;
}

.header-logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.header-text {
    text-align: left;
    margin-left: 10px;
}

.top {
    position: relative;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    top: 0;
    background-color: #fff;
    color: black;
    cursor: pointer;
    padding: 10px;
    border-bottom: 1px solid #eeeaea;
    display: flex;
}

.refresh-btn,
.refresh-btn:hover,
.refresh-btn:focus {
    position: absolute;
    top: 15px;
    right: 35px;
    font-size: 1.1em;
    font-weight: normal;
    cursor: pointer;
    opacity: 100%;
    color: grey;
    outline: none;
}

.close-btn,
.close-btn:hover,
.close-btn:focus {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 1.5em;
    font-weight: normal;
    cursor: pointer;
    opacity: 100%;
    color: grey;
    outline: none;
}

.top h5 {
    text-align: left;
    font-size: 17px;
    font-weight: normal;
    margin-bottom: 0;
}

.top p {
    text-align: left;
    margin-bottom: 0;
    margin-top: 0;
    font-size: 12px;
    font-weight: normal;
}

/* Bottom  */

.bottom {
    position: relative;
    bottom: 0;
    background-color: white;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.input-group {
    font-size: 14px;
    padding: 10px 30px 20px 30px;
}

.form-control,
.form-control:hover,
.form-control:focus,
.form-control:active {
    font-size: 14px;
    border: 2px solid #f0f0f0;
    outline: none;
    border-radius: 20px 20px 20px 20px !important;
    background-color: #fcfcfc;
    box-shadow: none;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

.send-btn,
.send-btn:focus {
    background-color: #9878F7;
    border: 1px solid #9878F7;
    outline: none;
    color: white;
    border-radius: 20px 20px 20px 20px !important;
    box-shadow: none;
}

.send-btn:hover {
    border: 1px solid #9878F7;
    background-color: white;
    color: #9878F7;
}

.powered-by {
    text-align: center;
    font-size: 10px;
    color: grey;
    margin-bottom: 5px;
}

/* Middle  */

.middle {
    flex-grow: 1;
    overflow-y: scroll;
    background-color: white;
    padding: 10px 30px 10px 30px;
}

.chatbot-buttons {
    padding-top: 10px;
    text-align: left;
}

.button-suggestion,
.button-suggestion:focus,
.button-suggestion:active {
    border-radius: 10px;
    background-color: white;
    border-color: blue;
    color: blue;
    font-size: 12px;
    margin: 3px;
    box-shadow: none;
}

.button-suggestion:hover {
    background-color: blue;
    border: 0;
    color: white;
}

.status-message {
    font-size: 14px;
    margin: 5px 0 5px 0;
    padding-left: 10px;
    color: grey;
    position: relative;
    bottom: 0;
}

.chatbot-is-typing-block {
    font-size: 14px;
    border-radius: 22px 22px 22px 0px;
    background-color: #F2F4FE;
    color: black;
    padding: 10px;
    margin-top: 10px;
    text-align: left;
    max-width: 80%;
}

.chatbot-is-typing span {
        width: 6px;
        height: 6px;
        background-color: black;
        display: inline-block;
        /* margin: 1px; */
        border-radius: 50%;

        &:nth-child(1) {
            animation: bounce 1s infinite;
        }

        &:nth-child(2) {
            animation: bounce 1s infinite .2s;
        }

        &:nth-child(3) {
            animation: bounce 1s infinite .4s;
        }
}

@keyframes bounce {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(8px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* User messages  */

.user-message {
    font-size: 14px;
    font-weight: normal;
    border-radius: 10px 10px 0px 10px;
    background-color: blue;
    color: #fff;
    padding: 10px;
    margin-top: 10px;
    text-align: right;
    margin-left: auto !important;
}

.user-row {
    margin: 0;
}

.user-timestamp {
    font-size: 10px;
    color: white;
    text-align: right;
}


/* Chatbot messages */

.chatbot-message {
    font-size: 14px;
    font-weight: normal;
    border-radius: 10px 10px 10px 0px;
    background-color: #F2F4FE;
    padding: 10px;
    margin-top: 10px;
    text-align: left;
    width: 80%;
}

.chatbot-timestamp {
    font-size: 10px;
    color: grey;
    text-align: left;
    width: 95%;
}

/* CSS for the chatbot context toggle */
.chatbot-context-toggle {
    cursor: pointer;
    font-size: 10px;
    color: blue;
    text-decoration: underline;
}

/* CSS for the chatbot context wrapper */
.chatbot-context-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
  
button {
    background-color: transparent;
    border: none;
    font-size: 10px;
    font-weight: lighter;
}

.chatbot-context {
    font-size: 10px;
    font-weight: lighter;
    border-radius: 10px 10px 10px 0px;
    background-color: rgb(243, 243, 243);
    border: none;
    padding: 10px;
    margin-top: 10px;
    text-align: left;
    width: 80%;
}

.chatbot-context p {
    font-size: 10px;
}


/* Carousel styles */

.cards_scroller div.carousel_cards {
    min-width: 60%;
    min-height: 70%;
    border-radius: 10px;
    border: none;
}

/* cards carousels */

.cards_scroller {
    overflow-x: scroll;
    overflow-y: hidden;
    display: flex;
    height: 400px;
    width: 80%;
    transition: width 0.5s ease;
    /* Enable Safari touch scrolling physics which is needed for scroll snap */
    -webkit-overflow-scrolling: touch;
}

.cards_scroller img {
    border-radius: 10px 10px 0px 0px;
    opacity: 80%;
}

.cards .arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 30px;
    width: 30px;
    border-radius: 10px;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    z-index: 1;
}


.cards_scroller::-webkit-scrollbar {
    width: 0 !important;
}

.cards_scroller>div.carousel_cards {
    margin: 10px 10px 10px 0px;
    scroll-snap-align: center;
    position: relative;
    scroll-behavior: smooth;
    background-color: white;
}

.in-left {
    -webkit-animation-name: fadeInLeft;
    animation-name: fadeInLeft;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation-duration: 0.8s;
    animation-duration: 0.8s;
    -webkit-animation-delay: 0.8s;
    animation-delay: 0.8s;
}

/* css for cards within the cards carousels */

.cardBackgroundImage {
    width: 100%;
    border-radius: 5px;
    height: 65%;
    position: absolute;
    object-fit: cover;
}

.cardFooter {
    border-radius: 0px 0px 10px 10px;
    position: absolute;
    z-index: 3;
    color: black;
    bottom: 0;
    width: 100%;
    word-wrap: break-word;
    padding: 1px;
    text-align: center;
}

.cardTitle {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Maximum number of lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 20px 10px;
    font-size: 15px;
    font-weight: bold;
    color: #1B1E3E;
    cursor: pointer;
    word-wrap: break-word;
    white-space: normal;
}

.cardDescription {
    overflow: hidden;
    white-space: nowrap;
    display: inline-block;
    text-overflow: ellipsis;
    width: 70%;
    word-wrap: break-word;
    font-size: 10px;
    color: black;
    line-height: 15px;
}

.learnMoreButton {
    text-decoration: none;
    padding: 7px 10px;
    border-radius: 10px;
    background-color: #fff;
    border: 2px solid #1B1E3E;
    color: #1B1E3E;
    font-size: calc(15px - (15px * 0.2));
    font-weight: bold;
    margin: 10px;
    box-shadow: none;
    width: auto;
    display: block;
}