* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 100%;
    background: #F1F1F1;
}

*, html {
    --primaryGradient: linear-gradient(93.12deg, #26a5d0 0.52%, #26a5d0 100%);
    --secondaryGradient: linear-gradient(268.91deg, #26a5d0 -2.14%, #26a5d0 99.69%);
    --primaryBoxShadow: 0px 10px 15px rgba(0, 0, 0, 0.1);
    --secondaryBoxShadow: 0px -10px 15px rgba(0, 0, 0, 0.1);
    --primary: #26a5d0;
}

/* CHATBOX
=============== */
.chatbox {
    position: absolute;
    bottom: 30px;
    right: 30px;
}

/* CONTENT IS CLOSE */
.chatbox__support {
    background: #f9f9f9;
    height: 450px;
    width: 350px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    display: flex;
    flex-direction: column;
    z-index: -123456;
    opacity: 0;
    transition: all 0.5s ease-in-out;
}

.chatbox_close{
    /* display: none; */
    opacity: 0;
}

/* CONTENT ISOPEN */
.chatbox--active {
    transform: translateY(-40px);
    z-index: 123456;
    opacity: 1;  
    display: flex;
    /* transition: all 10s ease-in-out;     */
}

/* BUTTON */
.chatbox__button {
    text-align: right;
}

.send__button {
    display: flex;
    padding: 6px;
    padding-left: 4px;
    padding-top: 6px;
    padding-bottom: 5px;
    right: 3%;
    position: absolute;
    border-radius: 10px;
    border: none;
    outline: none;
    cursor: pointer;
    color: green !important;
    margin-top: 3px;
}
.send__button:hover::after {
    content: "Send";
}


/* HEADER */
.chatbox__header {
    position: sticky;
    top: 0;
    background: orange;
}

/* MESSAGES */
.chatbox__messages {
    /* text-align: center; */
    padding: 0 20px;
    margin-top: auto;
    display: flex;
    overflow-y: scroll;
    flex-direction: column-reverse;
    font-size: 12px;
    font-family: "Times New Roman";
}



.messages__item--operator {
    margin-left: auto;
    margin-right: 19px;
    margin-bottom: 1px;
    max-width: 70%;
}

.messages__item--visitor {
    margin-right: auto;
    margin-left: 20px;
    max-width: 70%;
}

/* FOOTER */
.chatbox__footer {
    position: sticky;
    bottom: 0;
}

/* .chatbox__support {
    background: #f9f9f9;
    height: 450px;
    width: 350px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
} */

/* HEADER */
.chatbox__header {
    background: var(--primaryGradient);
    /* Christmas theme */
    /* background-image: url("/static/images/merry_christmas_icegif.gif");
    background-size: cover; */
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 0px 20px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: var(--primaryBoxShadow);
}

.usericonBOT{
    height: 35px;
    border-radius: 50%;
    padding: 5px;
    background-color: #f1f1f1;
    float: right;
}
.languageIcon{
    position: absolute;
    z-index: 99;
    bottom: 45px;
    font-size: 12px;
    text-align: center;
    margin: 0 auto;
    display: block;
    margin-left: 40%;

}
.chatbotIcon{
    height: 32px;
    border-radius: 100%;
    padding: 5px;
    background-color: #f1f1f1;
    float: left;
    border: 1px solid #000;
}
.chatbox__image--header {
    /* margin-right: 10px; */
    margin-left: -30%;
    position: relative;
    right: 10%;
}

.chatbox__heading--header {
    font-size: 1rem;
    color: white;
}

.chatbox__description--header {
    font-size: .9rem;
    color: white;
}


.messages__item {
    margin-top: 10px;
    background: #E0E0E0;
    padding: 8px 12px;
    max-width: 80%;
    word-wrap: break-word;
    /* max-width:85% */
}

.messages__item--visitor,
.messages__item--typing {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

.messages__item--operator {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-left-radius: 20px;
    background: var(--primary);
    color: white;
}

/* FOOTER */
.chatbox__footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 5px 5px;
    background: var(--secondaryGradient);
    box-shadow: var(--secondaryBoxShadow);
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
    margin-top: 20px;
}

.chatbox__footer input {
    width: 75%;
    border: none;
    padding: 10px 10px;
    border-radius: 1px;
    text-align: left;
    border-radius: 10px 0px 0px 10px;
}

.mic-send {
    background-color: #fff;
    display: flex;
    width: 31%;
    border-radius: 0px 10px 10px 0px;
    align-items: center;
    height: 100%;
}

.chatbox__send--footer {
    color: white;
}

.chatbox__button button,
.chatbox__button button:focus,
.chatbox__button button:visited {
    padding: 10px;
    background: white;
    border: none;
    outline: none;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    border-bottom-left-radius: 50px;
    box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

/*Dropdown customized code*/
.dropbtn {
    color: white;
    cursor: pointer;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 100px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    font-size: 12px;
    font-weight: normal;
    right: -30px;
    border-radius: 5px;
}

.dropdown-content a {
    color: black;
    padding: 8px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {background-color: #f1f1f1;
    border-radius: 5px;
}

.threedotsicon{
    right: 15px;
    top: 20px;
    position: absolute;
}

.dropdown:hover .dropdown-content {
    display: block;
}

div#wave{
    position: relative;
    padding: 15px 18px;
    text-align: left;
}


/* To change  the wave loader color */
div#wave .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 3px;
    background: #cd4a3f;
    animation: wave 1.3s linear infinite;
}


.dot {
    margin: 0 2px;
    transition: background-color 0.6s ease;
}

div#wave .dot:nth-child(2) {
    animation-delay: -1.1s;
    background: #6889da;
}
div#wave .dot:nth-child(3) {
    animation-delay: -0.9s;
    background: #ebbf2c;
}

@keyframes wave {
    0%,
    60%,
    100% {
    transform: initial;
    }
    30% {
    transform: translateY(-15px);
    }
}

/*Dropdown customized code*/

.popup{
    width: 175px;
    border: 2px solid #26a5d0;
    border-radius: 9px;
    padding: 5px 10px;
    margin-right: 5px;
    margin-bottom: 13px;
    background-color: transparent;
    /* color: #007adb; */
    display: flex;
    position: fixed;
    bottom: 110px;
    right: 50px;
}


/* Mic CSS Properties */

/* Mic CSS Properties */

.mic-button {
    display: flex;
    background-color: transparent;
    right: 12%;
    position: absolute;
    border: none;
    cursor: pointer;
    outline: none;
    padding: 6px;
    color: red;
}
.mic-button i {
    font-size: 20px;
}

.mic-button:hover::after {
    content: "Microphone";
}

/* Custom button styles used for "Say Hello" welcome Message */

.btnposchatbot{
    position: absolute;
    /* margin-top: -100px; */
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);

}

/* Original custom button */
.btn-custom {
    display: inline-block;
    /* Reduce button size */
    font-size: 12px;
    width: 100%;

    /* Move the button to the right  */
    border: 2px solid #0dcbaf;
    border-radius: 9px;
    padding: 5px 10px;
    margin-right: 5px;
    margin-bottom: 13px;
    background-color: transparent;
    color: #007adb;
}


/* Nitin's custom button */
/* .btn-custom {
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
            appearance: none;
    background-color: transparent;
    border: 2px solid #0bb2d0;
    border-radius: 0.6em;
    cursor: pointer;
    display: flex;
    flex-wrap: wrap; 
    justify-content: center;
    align-self: center;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1;
    margin: 10px;
    padding: 1.2em 2.8em;
    text-decoration: none;
    text-align: center;
    text-transform: uppercase;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    border-color: #e1c6de;
    color: gold;
    box-shadow: 0 0 10px 0 #e1c6de inset, 0 0 10px 4px #e1c6de;
    transition: all 150ms ease-in-out;
    position: absolute;
    margin-top: -100px;
    top: 12%;
    right: -24%;
    margin: 0 auto;
    text-align: center;
    margin-left: auto;
  } */

.micloader {
    position: absolute;
    right: 45%;
    bottom: 16%;
    width: 120px;
    height: 100px;
    z-index: 99999;
    background: url(/static/images/mic_loader.gif) 20% 20%; 
    /* background-color: antiquewhite; */
    /* opacity: .8; */
    background-size: 200%;
}
.btnchatbot{
    border: 2px solid #08c;
    border-radius: 9px;
    padding: 5px 10px;
    margin-right: 5px;
    margin-bottom: 13px;
    /* background-color: transparent; */
    /* color: #007adb; */
    cursor: pointer;
}


/* Original custom hover */
.btn-custom:hover {
    background-color: #0dcbaf;
    color: #fff;
}
.btn-custom1:hover {
    background-color: #cfde4e;
    color: #fff;
}

/* Nitin's custom hover */
/* .btn-custom:hover {
    box-shadow: 0 0 10px 0 #e1c6de inset, 0 0 10px 4px #e1c6de;
    background-color: #e1c6de;
    color: black
} */



#greeting {
    font-size: 24px;
}

#emoji {
    font-size: 28px;
    margin-right: 10px;
    top: 50%;
}

/* timestamp */
.timestamp {
    position: relative;
    align-self: flex-end;
    color: black; /* Align to the left side for the operator's message */
    margin-top: 4px;
    font-size: 8px;
    background-color:white !important;
    font-style: italic;
    font-weight: 600;
    z-index: -1;
}


.read_out_loud {
    position: relative;
    align-self: flex-end;
    color: #888888; /* Align to the left side for the operator's message */
    margin-top: 4px;
    font-size: 8px;
    background-color:white !important;
}

/* Nitin updates  */


/* Adding CSS To userand bot icon */
.message-icon {
    display: inline-block;
    margin-right: 5px; /* Adjust as needed */
}

.bot-icon {
    
    /* set bot icon size down to small */
    font-size: 25px;
    margin-left: -18px;
    margin-top: -25px;
    width: 50%;
}

.user-icon {
    color: #080808;
    /* set user icon size down to small */
    font-size: 25px;
    background: none;
    margin-right: -20px;
    margin-top: -21px;
}

/* Glowing Buttton */

.button-glow {
    animation: glow 1s infinite;
}

@keyframes glow {
    0% {
        box-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000, 0 0 30px #ff0000;
    }
    50% {
        box-shadow: 0 0 20px #ff0000, 0 0 30px #ff0000, 0 0 40px #ff0000;
    }
    100% {
        box-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000, 0 0 30px #ff0000;
    }
}


/* Define the slide-in animation */
.slide-in {
    opacity: 0; /* Initially hide the element */
    transform: translateY(20px); /* Start position for sliding effect */
    transition: opacity 0.5s ease, transform 0.5s ease; /* Add smooth transition */
}
.pdf{
    background-color: #48c3e5;
        -webkit-border-radius: 12px;
        border-radius: 12px;
        color: #fff;
        margin-bottom: 40px;
        padding: 20px;
        text-align: center;
        -webkit-box-shadow: 0px 10px 12px 5px rgba(0,0,0,.2);
        box-shadow: 0px 10px 12px 5px rgba(0,0,0,.2);
}
.pdf:hover {
    background-color: #3a3a3a; /* Change background color when hovered over */
}

#mute{
    /* color: #fff;  */
    font-size: 25px;
    margin-top: -20px;
    right: 45px;
    position: absolute;
}

.chatbox__content--header{
    text-align: center;
    margin-top: 5px;
    margin-left: 20px;
}

/* thumbs up thumbs down */
/* Style for the thumbs-up and thumbs-down */
.thumbs-container{
    display: none;
    width: fit-content;
}


.thumbs-up, .thumbs-down{
    font-size: 13px;
}

/* About Dropdown */
.tooltip {
    position: relative;
    display: inline-block;
  }
  
.tooltiptext {
    display: none;
    width: fit-content;
    background-color: blanchedalmond;
    color: black;
    text-align: left;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 0;
    top: 150%;
    left: 60%;
    max-width: 38%;
    font-size: 12px;
}


/* Cancel Button CSS */

.cancel-button {
    display: none;
    padding: 0.2rem;
    position: relative;
    text-transform: uppercase;
    color: white;
    background-color: rgb(31, 41, 55);
    transition-delay: 0.1s; 
    transition-duration: 0.2s;
    width: 17%;
    height: 5%;
    align-items: center;
    text-align: center;
    font-size: 12px;
    border-radius: 15px 15px 15px 15px;
    margin-left: 42%;
    font-family: 'Times New Roman';
}

.cancel-button:hover {
    color: rgb(0, 0, 0); 
    background-color: #84e2e6; 
}

.scroll-button {
    display: none;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: 78px;
    right: 30px;
    background-color: #1c3037;
    color: white;
    border: none;
    border-radius: 20%;
    width: 17px;
    height: 20px;
    cursor: pointer;
}

@font-face {
    font-family: 'Material Icons';
    font-style: normal;
    font-weight: 400;
    src: url(https://fonts.gstatic.com/s/materialicons/v140/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2) format('woff2');
}
  
.material-icons {
font-family: 'Material Icons';
font-weight: normal;
font-style: normal;
font-size: 24px;
line-height: 1;
letter-spacing: normal;
text-transform: none;
display: inline-block;
white-space: nowrap;
word-wrap: normal;
direction: ltr;
--webkit-font-feature-settings: 'liga';
--webkit-font-smoothing: antialiased;
}

/* CSS For MOdule Buttons*/
.module-button{
    display: flex;
    align-items: center;
    padding: 5px 8px;
    cursor: pointer;
    transition: all .3s;
    font-weight: 400;
    line-height: 1.0rem;
    border-radius: 14px;
    position: relative;
    background-color: mintcream;
}

.moduleButtons{
    position: absolute;
    top: 49%;
    /* left: 12%; */
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.moduleButtons_container{
    display: flex;
    gap: 7px;
    justify-content: center;
    max-width: 83%;
    flex-wrap: wrap;
    overflow-y: hidden;
    max-height: 80px;

}
.moduleButtons_container:hover{
    overflow-y: scroll;
}


.module-button:hover {
    background-color: #2eb7ed1c;
    color: rgb(16, 216, 96);
    border: 1px solid #ccc;
}

.module-heading{
    top: 66%;
    padding: 3.8px;
    position: relative;
    font-size: 9px;
    flex-direction: column;
    background: #e6e0e182;
    border-top-right-radius: 11px;
    border-top-left-radius: 11px;
    position: absolute;
    margin-right: -12px;
}


/* Home Button */

.home{
    display: flex;
    background-color: transparent;
    right: 13%;
    position: absolute;
    border: none;
    cursor: pointer;
    outline: none;
    padding: 6px;
    margin-right: 30px;
}


.send__button:hover, .mic-button:hover, .home:hover {
    background: linear-gradient(to bottom, rgb(12, 230, 201), rgb(235, 237, 122));
    border-radius: 10px;
}

.send__button:hover::after, .mic-button:hover::after, .home:hover::after {
    position: absolute;
    background: #f9f9f9;
    padding: 2px 5px;
    margin-top: -35px;
    border-radius: 2px;
    color: #333;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.home:hover::after {
    content: "Home";
}

/* Selected module tooltip CSS */
.pop {
    transform: translateY(50px) scale(0);
    opacity: 0;
    animation: pop-up 0.6s cubic-bezier(0.27,0.53,0.28,1.58) forwards;
}
  @keyframes pop-up {
    0% { transform: translateY(50px) scale(0); opacity: 0; }
    100% { transform: translateY(0px) scale(1); opacity: 1; }
} 
  
  .selected_module_tooltip{
    margin: 0 17%;
    height: 0vh;
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
}

.selected_module_name{
    display: none;
    width: 160px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px 0;
    position: absolute;
    z-index: 1;
    top:15%;
    justify-content: center;
    font-size: 12px;
}

.message-content {
    white-space: pre-wrap; /* or pre-line */
    overflow-x: hidden;
    overflow-y: auto;
}