@font-face {
    font-family: 'IntroBlack';
    src: local('Intro Black'), url('/design/fonts/intro_black.ttf') format('truetype');
    font-weight: 900;
}

*{
    box-sizing: border-box;
}

.display_none{
    display:none;
}
.clear_both{
    clear:both;
}

.no-scroll {
    height: 100%;
    overflow: hidden !important;
}

.quest_chat {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: var(--chat-bg);
    z-index: 9999;
    font-size: var(--chat-fs);
}

.quest_chat > div {
    display: flex;
    width: 100%;
    align-items: flex-start;
    justify-content: center;
}

.quest_chat-layout {
    position: relative;
    display: block;
    width: 100%;
    max-width: 1000px;
    height: 90vh;
    margin-top: 7vh;
    border-radius: var(--br-medium);
    background: var(--chat-holder-bg);
    box-shadow: 5px 5px 11px rgba(0, 0, 0, 0.35);
}

.quest_chat-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "IntroBlack", sans-serif;
    font-style: normal;
    font-weight: 900;
    font-size: 1.40em;
    padding: 2.2vw 1.5vw 0.7vw 1.5vw;
    line-height: 1.2em;
    text-align: center;
    text-transform: uppercase;
    color: var(--user-bg);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
    z-index: 200;
}
.quest_chat-subheader {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5vw 0.7vw 1.5vw;
    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.1);
    z-index: 200;
}
.quest_chat-ai-img{height:48px;}
.quest_chat-ai-info{
    display: flex;
    align-items:center;
    justify-content: start;
}
.quest_chat-ai-text{
    font-weight:bold;
    font-size: 1.1em;
    line-height: 1.2em;
    padding-left:10px;
}
.quest_chat-brand {
    text-align:right;
}

.quest_chat-brand img {
    max-height:45px;
    max-width: 100%;
}

.quest_chat-body {
    position: relative;
    height: calc(100% - 150px);
    border-top: 1px solid #DBDBDB;
    display: flex;
    justify-content: space-between;
}


.quest_chat-holder {
    width: 100%;
    height: 100%;
    padding: 1vw 1.5vw;
    overflow-y: scroll;
    text-align: left;
}


.quest_chat-message {
    position: relative;
    width: 570px;
    max-width: 90%;
    border-radius: var(--br-big) var(--br-big) var(--br-big) var(--br-small);
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.15);
    padding: 15px 40px 15px 15px;
    margin: 10px 0;
}

.quest_chat-message.middle {
    border-radius: var(--br-small) var(--br-big) var(--br-big) var(--br-small);
}

.quest_chat-message.last {
    border-radius: var(--br-small) var(--br-big) var(--br-big) var(--br-big);
}

.quest_chat-message.bot {
    margin-left: 0;
    background: var(--bot-bg);
    color: var(--bot-color);
}


.quest_chat-message.user {
    float: right;
    width:430px;
    background: var(--user-bg);
    color: var(--user-color);
    border-radius: var(--br-big) var(--br-big) var(--br-small) var(--br-big);
}

.quest_chat-t {
    position: absolute;
    bottom: 5px;
    right: 15px;
    font-size: 0.8em;
    opacity: 0.8;
}

.quest_chat-message.image {
    width: 650px;
    max-width: 100%;
    margin: 15px auto 0 auto;
    padding: 1vw;
    box-shadow: 0 1px 10px -5px var(--user-bg);
}

.quest_chat-message.image .img {
    text-align: center;
}

.quest_chat-message.image .img img {
    border-radius: 10px;
    max-width: 90%;
}

.quest_chat-message.image .title, .quest_chat-message.analyze .title, .quest_chat-message.summary .title, .quest_chat-message.score .title , .quest_chat-message.title {
    font-weight: bold;
    font-size: 1.3em;
    max-width: 470px;
    margin: 10px auto 5px auto;
    color: var(--bot-color);
}
.quest_chat-message.image .title{
    text-align: center;
}
.quest_chat-message.image .body {
    font-size: 1.1em;
    max-width: 470px;
    margin: 0 auto;
    color: var(--bot-color);
}

.quest_chat-message.analyze{
    width: 100%;
    max-width: 100%;
    margin: 15px auto 0 auto;
    padding: 15px;
    box-shadow: none;
}
.quest_chat-message.analyze .title{
    text-align: center;
}
.quest_chat-message.analyze ul{
    box-shadow: 0 1px 10px -5px var(--user-bg);
    margin: 1vw 1vw 0 1vw;
    border-radius: 10px;
    padding: 0.5vw;
    list-style: none;
}
.quest_chat-message.analyze ul li{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: var(--bot-color);
    padding:0;
    font-size: 1.1em;
    transition: all 0.3s ease-in 0s;
}
.quest_chat-message.analyze ul li.inactive{
    color: #A1A1A1;
}
.quest_chat-message.analyze .analyze-spinner{
    margin: 0 8px 0 5px;
}

.quest_chat-message.summary, .quest_chat-message.score{
    box-shadow: 0 1px 10px -5px var(--user-bg);
    width: 100%;
    max-width: 100%;
    margin: 15px auto 0 auto;
    padding: 15px;
}

.summary-items .item
{
    margin:5px auto;
    max-width: 470px;
}
.summary-items .item-h{
    font-weight: bold;
    font-size: 1em;
    color: var(--bot-color);
}
.summary-items .item-m{
    color: var(--bot-color);
    font-size: 0.75em;
    margin-top: -5px;
}
.summary-items .item-progress{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: -5px;
}
.summary-items .item-s{
    width: 80px;
    font-size: 0.95em;
    text-align: right;
    font-weight: bold;
    color: var(--user-bg);
}
.summary-items .item-bar{
    width: calc(100% - 80px);
}
.summary-items .item-bar *{
    transition: all 3s ease-out 0s;
}
.summary-items .item-bar-1 .bar_holder, .summary-items .item-bar-1 .bar{
    background: var(--green);
}
.summary-items .item-bar-1+.item-s{
    color: var(--green);
}
.summary-items .item-bar-2 .bar_holder, .summary-items .item-bar-2 .bar{
    background: var(--orange);
}
.summary-items .item-bar-2+.item-s{
    color: var(--orange);
}

.quest_chat-message.score .title .percents{
    color: var(--green);
}

.quest_chat-message.score .message{
    font-size:1em;
    color: var(--user-bg);
    text-align: center;
    font-weight: bold;
}

.quest_chat-message.score .information{
    display: flex;
    align-items: center;
    justify-content: start;
    border: 1px solid #E4DDDD;
    background: #F7F7F7;
    padding: 1vw;
    margin: 1vw auto;
    font-size: 0.9em;
    color: var(--bot-color);
    width: 100%;
    max-width: 470px;
}
.quest_chat-message.score .information img{
    width: 24px;
    height: 24px;
    margin:0 15px 0 0;
}

.quest_chat-message.title, .quest_chat-message.subtitle, .quest_chat-message.text{
    max-width: 490px;
    font-size: 1.4em;
    line-height: 1.3em;
    font-weight: bold;
    padding: 0 1vw;
    box-shadow: none;
    text-align: center;
    margin: 1.5vw auto 0.7vw auto;
}
.quest_chat-message.subtitle{
    color: var(--user-bg);
    font-size: 1.2em;
    text-align: left;
    margin: 0.2vw auto;
}
.quest_chat-message.text{
    color: var(--user-bg);
    font-size: 1em;
    font-weight: normal;
    text-align: left;
    margin: 0.2vw auto;
}

.quest_chat-message.buttons {
    max-width: 100%;
    width: 650px;
    margin: 15px auto;
    padding: 10px 0;
    box-shadow: none;
}

.quest_chat-message.buttons input {
    display: none;
}

.quest_chat-message.buttons label {
    display: block;
    position: relative;
    border: 1px solid var(--user-bg);
    border-radius: var(--br-medium);
    color: var(--user-bg);
    background: var(--user-color);
    padding: 17px 17px 17px 35px;
    margin: 8px 0;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease 0s;
}

.quest_chat-message.buttons label:before {
    content: "";
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    left: 10px;
    top: 50%;
    margin-top: -5px;
    border-radius: var(--br-small);
    border: 1px solid var(--user-bg);
    background: var(--chat-holder-bg);
    font-weight: 200;
    width: 10px;
    height: 10px;
}

.quest_chat-message.buttons label .icon {
    position: absolute;
    right: 1vw;
    max-width: 24px;
}

.quest_chat-message.buttons label[data-action="continue"],
.quest_chat-message.buttons label[data-action="exit_close"]:not(.exit_close_begin) {
    padding: 17px;
    margin-top: -10px;
    background: var(--user-bg);
    color: var(--user-color);
}

.quest_chat-message.buttons label[data-action="continue"]:before,
.quest_chat-message.buttons label[data-action="exit_close"]:not(.exit_close_begin):before {
    display: none;
}

.quest_chat-message.buttons label:hover {
    background: var(--user-bg);
    color: var(--user-color);
}

.quest_chat-message.buttons label:hover:before {
    background: var(--user-bg);
    border: 1px solid var(--chat-holder-bg);
}

.quest_chat-exit{
    display: block;
    position: relative;
    border: 1px solid var(--user-bg);
    border-radius: var(--br-medium);
    color: var(--user-color);
    background: var(--user-bg);
    padding: 17px 35px;
    margin: 8px 0;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease 0s;
}
.quest_chat-exit-holder .btn{
    background: var(--user-bg) !important;
    color: var(--user-color);
}

.quest_chat-message .loader {
    margin-left: 15px;
}

.quest_chat-exit-holder {
    height: 100%;
    align-items: center;
    text-align: center;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.quest_chat-exit-holder .text {
    font-size: 1.7em;
    line-height: 1.3em;
    margin: 2vw;
    color: var(--bot-color);
}

input.input_birth_date {
    border-radius: var(--br-small);
    background: #fff;
    border: 1px solid #888;
    padding: 8px 10px;
    color: var(--bot-color);
    width: 120px;
    outline: none !important;
    box-shadow: none !important;
}

input.input_birth_date.error {
    background: #f7e1e1;
    color: #f00;
}

input.input_birth_date.confirmed {
    background: transparent;
    border: none !important;
    color: inherit !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

@media (max-width: 768px) {
    .quest_chat-layout {
        height: 100vh;
        margin-top: 0;
        border-radius: 0;
    }


    .quest_chat-header {
        font-size: 1.2em;
        padding: 3.5vw 1.5vw 2vw 1.5vw;
    }
    .quest_chat-subheader{
        padding-bottom: 2vw;
    }
    .quest_chat-ai-img{height:30px;}
    .quest_chat-ai-text {
        font-size: 0.9em;
    }
    .quest_chat-brand img{
        max-height:30px;
    }

    .quest_chat-body {
        border: none;
        box-shadow: none;
        height: calc(100% - 150px);
    }

    .quest_chat-message.buttons {
        padding: 10px 0;
    }

    .quest_chat-message.buttons label {
        font-size: 0.9em;
        padding: 10px 10px 10px 30px;
        font-weight: 400;
    }
}




.lds-ring {
    display: inline-block;
    position: relative;
    width: 24px;
    height: 24px;
}
.lds-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 20px;
    height: 20px;
    margin: 2px;
    border: 2px solid var(--user-bg);
    border-radius: 50%;
    animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: var(--user-bg) transparent transparent transparent;
}
.lds-ring div:nth-child(1) {
    animation-delay: -0.45s;
}
.lds-ring div:nth-child(2) {
    animation-delay: -0.3s;
}
.lds-ring div:nth-child(3) {
    animation-delay: -0.15s;
}
@keyframes lds-ring {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

li.active .lds-ring div{
    animation:none;
    transition: all 0.3s ease-in 0s;
}
li.active .lds-ring div:nth-of-type(1){
    background: var(--user-bg);
    border-color: var(--user-bg);
}
li.active .lds-ring div:nth-of-type(2), li.active .lds-ring div:nth-of-type(3){
    background: var(--chat-holder-bg);
    width: 6px;
    border: none;
    border-radius: 2px;
    height:2px;
    margin: 2px 0 0 -7px;

    position: absolute;
    top:50%;
    left:50%;
    transform: rotateZ(45deg);
    transform-origin: bottom right;
}
li.active .lds-ring div:nth-of-type(3){
    width:10px;
    transform: rotateZ(135deg);
    margin: 1px 0 0 -12px;
}
li.active .lds-ring div:nth-of-type(4){
    display: none;
}




.circular{
    margin:1vw auto;
    height:150px;
    width: 150px;
    position: relative;
    border-radius: 50%;
}
.circular:before{
    content: "";
    position: absolute;
    left:0;right:0;top:0;bottom:0;
    border-radius: 50%;
    background: var(--user-bg);
    opacity:0.1;
    z-index:0;
}
.circular .circular_inner{
    position: absolute;
    z-index: 6;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    background: #fff;
    border-radius: 50%;
}
.circular .circular_number{
    position: absolute;
    top:50%;
    left:50%;
    transform: translate(-50%, -50%);
    z-index:10;
    font-size:45px;
    font-weight: bold;
    color:var(--user-bg);
}
.circular .circular_bar{
    position: absolute;
    height: 100%;
    width: 100%;
    border-radius: 50%;
    clip: rect(0px, 150px, 150px, 75px);
}
.circular_circle .circular_bar .circular_progress{
    position: absolute;
    height: 100%;
    width: 100%;
    border-radius: 50%;
    clip: rect(0px, 75px, 150px, 0px);
    background: var(--user-bg);
}
.circular_circle .circular_left .circular_progress{
    z-index:1;
    animation: circular_left 4s linear both;
}
@keyframes circular_left{
    100%{
        transform: rotate(180deg);
    }
}
.circular_circle .circular_right {
    transform: rotate(180deg);
    z-index:3;

}
.circular_circle .circular_right .circular_progress{
    animation: circular_right 4s linear both;
    animation-delay:4s;
}
@keyframes circular_right{
    100%{
        transform: rotate(180deg);
    }
}


/**
* ==============================================
* Dot Falling
* ==============================================
*/
:root{
    --dot-failing-color: #9880ff;
}
.dot-falling {
    position: relative;
    left: -9999px;
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background-color: var(--dot-failing-color);
    color: var(--dot-failing-color);
    box-shadow: 9999px 0 0 0 var(--dot-failing-color);
    -webkit-animation: dot-falling 1s infinite linear;
    animation: dot-falling 1s infinite linear;
    -webkit-animation-delay: 0.1s;
    animation-delay: 0.1s;
}
.dot-falling::before, .dot-falling::after {
    content: "";
    display: inline-block;
    position: absolute;
    top: 0;
}
.dot-falling::before {
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background-color: var(--dot-failing-color);
    color: var(--dot-failing-color);
    -webkit-animation: dot-falling-before 1s infinite linear;
    animation: dot-falling-before 1s infinite linear;
    -webkit-animation-delay: 0s;
    animation-delay: 0s;
}
.dot-falling::after {
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background-color: var(--dot-failing-color);
    color: var(--dot-failing-color);
    -webkit-animation: dot-falling-after 1s infinite linear;
    animation: dot-falling-after 1s infinite linear;
    -webkit-animation-delay: 0.2s;
    animation-delay: 0.2s;
}

@-webkit-keyframes dot-falling {
    0% {
        box-shadow: 9999px -15px 0 0 rgba(152, 128, 255, 0);
    }
    25%, 50%, 75% {
        box-shadow: 9999px 0 0 0 var(--dot-failing-color);
    }
    100% {
        box-shadow: 9999px 15px 0 0 rgba(152, 128, 255, 0);
    }
}

@keyframes dot-falling {
    0% {
        box-shadow: 9999px -15px 0 0 rgba(152, 128, 255, 0);
    }
    25%, 50%, 75% {
        box-shadow: 9999px 0 0 0 var(--dot-failing-color);
    }
    100% {
        box-shadow: 9999px 15px 0 0 rgba(152, 128, 255, 0);
    }
}
@-webkit-keyframes dot-falling-before {
    0% {
        box-shadow: 9984px -15px 0 0 rgba(152, 128, 255, 0);
    }
    25%, 50%, 75% {
        box-shadow: 9984px 0 0 0 var(--dot-failing-color);
    }
    100% {
        box-shadow: 9984px 15px 0 0 rgba(152, 128, 255, 0);
    }
}
@keyframes dot-falling-before {
    0% {
        box-shadow: 9984px -15px 0 0 rgba(152, 128, 255, 0);
    }
    25%, 50%, 75% {
        box-shadow: 9984px 0 0 0 var(--dot-failing-color);
    }
    100% {
        box-shadow: 9984px 15px 0 0 rgba(152, 128, 255, 0);
    }
}
@-webkit-keyframes dot-falling-after {
    0% {
        box-shadow: 10014px -15px 0 0 rgba(152, 128, 255, 0);
    }
    25%, 50%, 75% {
        box-shadow: 10014px 0 0 0 var(--dot-failing-color);
    }
    100% {
        box-shadow: 10014px 15px 0 0 rgba(152, 128, 255, 0);
    }
}
@keyframes dot-falling-after {
    0% {
        box-shadow: 10014px -15px 0 0 rgba(152, 128, 255, 0);
    }
    25%, 50%, 75% {
        box-shadow: 10014px 0 0 0 var(--dot-failing-color);
    }
    100% {
        box-shadow: 10014px 15px 0 0 rgba(152, 128, 255, 0);
    }
}