:root {
    --body-bg: linear-gradient(135deg, #535c69 0%, #253957 100%);
    --msger-bg: #fff;
    --border: 2px solid #ddd;
    --left-msg-bg: #ececec;
    --right-msg-bg: #579ffb;
}

html {
    box-sizing: border-box;
}

*,
*:before,
*:after {
    margin: 0;
    padding: 0;
    box-sizing: inherit;
}


body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: #fff;
    font-family: Helvetica, sans-serif;

}

.side-shadow{
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2) !important;
}


.widget-pages,
.msger {
    display: flex;
    flex-flow: column wrap;
    justify-content: space-between;
    width: 100%;
    max-width: 867px;
    margin: 25px 10px;
    height: calc(100% - 50px);
    border: var(--border);
    border-radius: 5px;
    background: var(--msger-bg);
    box-shadow: 0 15px 15px -5px rgba(0, 0, 0, 0.2);
}



header.avatar-top h1{
    padding:12px;
    text-align: center;
}

.msger-footer{
    padding: 12px;
    background: #eee;
    color: #666;
    margin: auto;
    display: block;
    width: 100%;
}

.message-container {
    background-color: #fcfcfe;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' version='1.1' xmlns:xlink='http://www.w3.org/1999/xlink' xmlns:svgjs='http://svgjs.dev/svgjs' width='250' height='250' preserveAspectRatio='none' viewBox='0 0 250 250'%3e%3cg mask='url(%26quot%3b%23SvgjsMask1229%26quot%3b)' fill='none'%3e%3crect width='250' height='250' x='0' y='0' fill='rgba(241%2c 241%2c 241%2c 1)'%3e%3c/rect%3e%3cuse xlink:href='%23SvgjsPath1230' x='30' y='30' stroke='rgba(193%2c 190%2c 190%2c 1)'%3e%3c/use%3e%3cuse xlink:href='%23SvgjsPath1231' x='30' y='90' stroke='rgba(193%2c 190%2c 190%2c 1)'%3e%3c/use%3e%3cuse xlink:href='%23SvgjsPath1230' x='30' y='150' stroke='rgba(193%2c 190%2c 190%2c 1)'%3e%3c/use%3e%3cuse xlink:href='%23SvgjsPath1230' x='30' y='210' stroke='rgba(193%2c 190%2c 190%2c 1)'%3e%3c/use%3e%3cuse xlink:href='%23SvgjsPath1230' x='30' y='270' stroke='rgba(193%2c 190%2c 190%2c 1)'%3e%3c/use%3e%3cuse xlink:href='%23SvgjsPath1230' x='90' y='30' stroke='rgba(193%2c 190%2c 190%2c 1)'%3e%3c/use%3e%3cuse xlink:href='%23SvgjsPath1232' x='90' y='90' stroke='rgba(193%2c 190%2c 190%2c 1)'%3e%3c/use%3e%3cuse xlink:href='%23SvgjsPath1233' x='90' y='150' stroke='rgba(193%2c 190%2c 190%2c 1)'%3e%3c/use%3e%3cuse xlink:href='%23SvgjsPath1231' x='90' y='210' stroke='rgba(193%2c 190%2c 190%2c 1)'%3e%3c/use%3e%3cuse xlink:href='%23SvgjsPath1231' x='90' y='270' stroke='rgba(193%2c 190%2c 190%2c 1)'%3e%3c/use%3e%3cuse xlink:href='%23SvgjsPath1231' x='150' y='30' stroke='rgba(193%2c 190%2c 190%2c 1)'%3e%3c/use%3e%3cuse xlink:href='%23SvgjsPath1233' x='150' y='90' stroke='rgba(193%2c 190%2c 190%2c 1)'%3e%3c/use%3e%3cuse xlink:href='%23SvgjsPath1232' x='150' y='150' stroke='rgba(193%2c 190%2c 190%2c 1)'%3e%3c/use%3e%3cuse xlink:href='%23SvgjsPath1230' x='150' y='210' stroke='rgba(193%2c 190%2c 190%2c 1)'%3e%3c/use%3e%3cuse xlink:href='%23SvgjsPath1230' x='150' y='270' stroke='rgba(193%2c 190%2c 190%2c 1)'%3e%3c/use%3e%3cuse xlink:href='%23SvgjsPath1231' x='210' y='30' stroke='rgba(193%2c 190%2c 190%2c 1)'%3e%3c/use%3e%3cuse xlink:href='%23SvgjsPath1231' x='210' y='90' stroke='rgba(193%2c 190%2c 190%2c 1)'%3e%3c/use%3e%3cuse xlink:href='%23SvgjsPath1230' x='210' y='150' stroke='rgba(193%2c 190%2c 190%2c 1)'%3e%3c/use%3e%3cuse xlink:href='%23SvgjsPath1231' x='210' y='210' stroke='rgba(193%2c 190%2c 190%2c 1)'%3e%3c/use%3e%3cuse xlink:href='%23SvgjsPath1230' x='210' y='270' stroke='rgba(193%2c 190%2c 190%2c 1)'%3e%3c/use%3e%3cuse xlink:href='%23SvgjsPath1233' x='270' y='30' stroke='rgba(193%2c 190%2c 190%2c 1)'%3e%3c/use%3e%3cuse xlink:href='%23SvgjsPath1231' x='270' y='90' stroke='rgba(193%2c 190%2c 190%2c 1)'%3e%3c/use%3e%3cuse xlink:href='%23SvgjsPath1230' x='270' y='150' stroke='rgba(193%2c 190%2c 190%2c 1)'%3e%3c/use%3e%3cuse xlink:href='%23SvgjsPath1233' x='270' y='210' stroke='rgba(193%2c 190%2c 190%2c 1)'%3e%3c/use%3e%3cuse xlink:href='%23SvgjsPath1230' x='270' y='270' stroke='rgba(193%2c 190%2c 190%2c 1)'%3e%3c/use%3e%3c/g%3e%3cdefs%3e%3cmask id='SvgjsMask1229'%3e%3crect width='250' height='250' fill='white'%3e%3c/rect%3e%3c/mask%3e%3cpath d='M-1 0 a1 1 0 1 0 2 0 a1 1 0 1 0 -2 0z'%3e%3c/path%3e%3cpath d='M-3 0 a3 3 0 1 0 6 0 a3 3 0 1 0 -6 0z' id='SvgjsPath1232'%3e%3c/path%3e%3cpath d='M-5 0 a5 5 0 1 0 10 0 a5 5 0 1 0 -10 0z' id='SvgjsPath1230'%3e%3c/path%3e%3cpath d='M2 -2 L-2 2z' id='SvgjsPath1233'%3e%3c/path%3e%3cpath d='M6 -6 L-6 6z' id='SvgjsPath1231'%3e%3c/path%3e%3cpath d='M30 -30 L-30 30z'%3e%3c/path%3e%3c/defs%3e%3c/svg%3e");
    right: 10%;
    left: 10%;
    top: 225px;
    bottom: 86px;
    position: absolute;
}



/*
.message-body{
    overflow: auto;
    height: 100%;
}*/


.msger-chat {
    right: 10%;
    left: 10%;
    bottom: 86px;
    position: fixed;
    overflow: auto;
    top: 225px;
    margin-top: 12px;
}

.msger-chat.absolute {
    position: absolute;
    bottom: 86px;
}

.msger-chat::-webkit-scrollbar {
    width: 6px;
}
.msger-chat::-webkit-scrollbar-track {
    background: #ddd;
}
.msger-chat::-webkit-scrollbar-thumb {
    background: #bdbdbd;
}
.msg {
    display: flex;
    align-items: flex-end;
    margin-bottom: 10px;
}
.msg:last-of-type {
    margin: 0;
}
.msg-img {
    width: 50px;
    height: 50px;
    margin-right: 10px;
    background: #ddd;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-radius: 50%;
}
.msg-bubble {
    max-width: 450px;
    padding: 15px;
    border-radius: 15px;
    background: var(--left-msg-bg);
}
.msg-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.msg-info-name {
    margin-right: 10px;
    font-weight: bold;
}
.msg-info-time {
    font-size: 0.85em;
}

.left-msg .msg-bubble {
    border-bottom-left-radius: 0;
}

.right-msg {
    flex-direction: row-reverse;
}
.right-msg .msg-bubble {
    background: var(--right-msg-bg);
    color: #fff;
    border-bottom-right-radius: 0;
}
.right-msg .msg-img {
    margin: 0 0 0 10px;
}

.msger-inputarea {
    display: flex;
    padding: 10px;
    border-top: var(--border);
    background: #eee;
    flex-direction: row;
    bottom: 0;
    left: 0;
    right: 0;
    border-bottom-right-radius: 12px;
    border-bottom-left-radius: 12px;
}
.msger-inputarea input { /*was msger-inputarea input * */
    padding: 10px;
    border: none;
    border-radius: 3px;
    font-size: 1em;
}
.msger-input {
    flex: 1;
    background: #ddd;
}

.msger-pages{
    overflow:auto;
    position:relative;
    width: 100%;
    height: 90%;
}

::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 7px;
}

::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background-color: rgba(0, 0, 0, .5);
    box-shadow: 0 0 1px rgba(255, 255, 255, .5);
}

.action-icon:hover path {
    /* background-color: pink; */
    stroke: #2a2c2f;
}

.action-icon path {
    /* background-color: pink; */
    stroke: #758291;
    width: 22px;
    height: 22px;
}

.msger-icon-right-btn {
    margin-left: 10px;
    cursor: pointer;
    transition: background 0.23s;
    stroke: #464e57;
    border: none;
    background-color: transparent;
}
.msger-icon-right-btn:hover {
    stroke: #1f2326;
    background-color: transparent;
}

.msger-icon-left-btn {
    margin-right: 10px;
    cursor: pointer;
    transition: background 0.23s;
    stroke: #464e57;
    border: none;background-color: transparent;
}
.msger-icon-left-btn:hover {
    stroke: #1f2326;
    background-color: transparent;
}

/**
WIDGET MENU BUTTONS
 */
a.widget-control,
button.widget-control{
    padding: 8px;
    /* border-radius: 50px; */
    background-color: transparent;
    border: none;
    -webkit-box-shadow: none;
    z-index: 1000;
}

button.widget-control.show-menu-button{
    z-index: 0;
}

a.widget-control:hover{
    cursor: pointer;
}

.widget-resize{
    position: absolute;
    right: 0;
    top: 0;
    z-index: 10;
}


/* Dropdown Button */
.dropdown-button {
    color: white;
    padding: 8px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

/* The container <div> - needed to position the dropdown content */
.widget-settings {
    display: inline-block;
}

.resizeMenuIcon path,
.resizeMenuIcon{
    fill: #464e57;
}

.resizeMenuIcon:hover path,
.resizeMenuIcon:focus{
    fill: #25292d;
    cursor: pointer;
}

.settingMenuIcon path,
.settingMenuIcon{
    stroke: #464e57;
}

.settingMenuIcon:hover path,
.settingMenuIcon:focus{
    stroke: #25292d;
    fill: none;
    cursor: pointer;
}



/* dropdown-setting-menu Content (Hidden by Default) */
.pages,
.widget-settings-menu {
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    left:0;
    top: 0;
}

/* Links inside the dropdown-setting-menu */
.widget-settings-menu span {
    border-bottom: #f1f1f1 thick solid;
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    margin-left: 30px;
}

/* Change color of dropdown-setting-menu links on hover */
.widget-settings-menu span:hover {
    background-color: #9b9ea2;
    border-bottom: #ffffff thick solid;
    cursor: pointer;
}

.widget-settings-menu span:focus {
    background-color: transparent;
    cursor: pointer;
}

/* background-color: pink; */


.page {
    padding: 20px;
}


.page h1{
    text-align: center;
    margin-bottom: 24px;
}

.page hr{
    margin-top: 24px;
    margin-bottom: 24px;
}


/* Show the dropdown menu (use JS to add this class to the .dropdown-content container when the user clicks on the dropdown button) */
.show {display:block;}

.hide {display:none;}

.trhs-button{
    position: absolute;
    display:flex;
    top:8px;
    left:8px;
    z-index: 3000;
}

.pages{
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.svg-placeholder{
    width: 24px;
    display: block;
}


/* Loading message */

.loader-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader {
    border: 3px solid #f3f3f3;
    border-radius: 50%;
    border-top: 3px solid #688497;
    width: 20px;
    height: 20px;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
    margin-right: 5px;
}

/* Safari */
@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}

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

/* typing */

.typing {
    display: inline-block;
    width: 0.8rem;
    height: 0.8rem;
    margin-right: 0rem;
    box-sizing: border-box;
    background: #ccc;
    border-radius: 50%;
}
.typing.typing-1 {
    -webkit-animation: typing 3s infinite;
    animation: typing 3s infinite;
}
.typing.typing-2 {
    -webkit-animation: typing 3s 250ms infinite;
    animation: typing 3s 250ms infinite;
}
.typing.typing-3 {
    -webkit-animation: typing 3s 500ms infinite;
    animation: typing 3s 500ms infinite;
}
@-webkit-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;
    }
}

@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;
    }
}

.ads-container{
    margin-top: 12px;
    width: 100%;
    position: sticky;
    z-index: 300;
    text-align: center;
}


/* messages */

.msger-chat button,
.msger-chat .message.history,
.msger-chat .message.info {
    font-size: 0.75rem;
    background: #EEE;
    border-radius: 12px;
    color: #999;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    margin: auto auto 12px;
    min-height: 1rem;
    box-sizing: border-box;
    padding: 0.5rem 1rem;
}

.msger-chat .action-button.info{
    text-align: center;
    display: flex;
}

.msger-chat .message.info {
    text-align: center;
    display: flex;
}

.msger-chat .message {
    box-sizing: border-box;
    padding: 0.5rem 1rem;
    margin: 1rem;
    background: #FFF;
    border-radius: 1.125rem 1.125rem 1.125rem 0;
    min-height: 2.25rem;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    max-width: 66%;
    box-shadow: 0 0 2rem rgba(0, 0, 0, 0.075), 0rem 1rem 1rem -1rem rgba(0, 0, 0, 0.1);
}

.msger-chat .message.user {
    margin: 1rem 1rem 1rem auto;
    border-radius: 1.125rem 1.125rem 0 1.125rem;
    background: #333;
    color: white;
}

/* speaking animations */
#mic-frame-1,
#listening-frame-1 {
    visibility: hidden;
    animation: 1s show infinite;
}

#mic-frame-2,
#listening-frame-2 {
    visibility: hidden;
    animation: 1s show infinite;
    animation-delay: 0.125s;
}

#mic-frame-3,
#listening-frame-3 {
    visibility: hidden;
    animation: 1s show infinite;
    animation-delay: 0.25s;
}

#mic-frame-4,
#listening-frame-4 {
    visibility: hidden;
    animation: 1s show infinite;
    animation-delay: 0.375s;
}

#mic-frame-5,
#listening-frame-5 {
    visibility: hidden;
    animation: 1s show infinite;
    animation-delay: 0.5s;
}

#mic-frame-6,
#listening-frame-6 {
    visibility: hidden;
    animation: 1s show infinite;
    animation-delay: 0.625s;
}

#mic-frame-7,
#listening-frame-7 {
    visibility: hidden;
    animation: 1s show infinite;
    animation-delay: 0.75s;
}

#mic-frame-8,
#listening-frame-8 {
    visibility: hidden;
    animation: 1s show infinite;
    animation-delay: 0.865s;
}

@keyframes show {
    0%   { visibility: visible;}
    12.5%  { visibility: visible; }
    12.6%  { visibility: hidden; }
    100% { visibility: hidden; }
}




.avatar-top {
    position: fixed;
    top: 20px;
    right: 10%;
    left: 10%;
    z-index: 1030;
    border-top-right-radius: 12px;
    border-top-left-radius: 12px;
    display: flex;
    justify-content: space-between;
    border-bottom: var(--border);
    background: #eee;
    color: #666;
    min-height: 205px;
    flex: 1;
}

.avatar-bottom {
    position: fixed;
    bottom: 20px;
    right: 10%;
    left: 10%;
    z-index: 1030;
    border-bottom-right-radius: 12px;
    border-bottom-left-radius: 12px;
    height: 66px;
}


.copyfooter{
    background: #ffffff;
    font-size: 0.8em;
    text-align: center;
    color: #727f8d;
}

.bot-pages {
    position: fixed;
    top: 20px;
    bottom: 20px;
    right: 10%;
    left: 10%;
    height: 100%;
    z-index: 1030;
}

#submit-chat{
    background-color: transparent;
}


@media screen and (max-width: 768px) {
    /* Your mobile-specific styles go here */
    .avatar-top {
        right: 0;
        left: 0;
        top:0;
    }

    .bot-pages {
        position: fixed;
        top: 0;
        bottom: 0;
        right: 0;
        left: 0;
    }

    .ads-container{
        display: none;
    }

    .msger-inputarea {
        border-bottom-right-radius: 0;
        border-bottom-left-radius: 0;
    }

    .avatar-bottom {
        right: 0;
        left: 0;
        bottom:0;
        border-bottom-right-radius: 0;
        border-bottom-left-radius: 0;
    }
    .message-container {
        right: 0;
        left: 0;
        height: 100%;
    }
    /* Your mobile-specific styles go here */
    .widget-pages,
    .msger {
        height: calc(100%);
        max-width: 100%;
    }

    .msger-icon-right-btn {
        margin-left: 5px;
        background-color: transparent;
    }
    .msger-icon-left-btn {
        margin-right: 5px;
        background-color: transparent;
    }
    .msger-inputarea input {
        width: 90%;
    }

    .msger-pages{
        overflow:auto;
        position:relative;
        width: 100%;
        top:0;
        height: 100%;
    }

    .msger-chat {
        right: 0;
        left: 0;
        top: 205px;
        bottom: 66px;
    }



}


