code {
    font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    border-radius: 10px;
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #14274E;
    border-radius: 10px
}

::-webkit-scrollbar-thumb:hover {
    background: #1d3970;
}


:root {
    margin: 0px;
}

.App {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 81;

    width: 540px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.App .head-container {
    background-color: #14274E;
    padding: 19px 50px 19px 50px;
    display: flex;
    align-items: center;
    border-radius: 10px 10px 0px 0px;
}

.App .head-container .head-log-wrapper {
    display: flex;
}

.App .head-container .head-log-wrapper .head-icon {
    margin-right: 15.72px;
}

.App .head-container .head-log-wrapper .head-content {
    position: relative;
    margin-top: 5px;
}

.App .head-container .head-log-wrapper .head-content p {
    margin: 0px;
    position: absolute;
    bottom: -1px;
    color: white;
    font-weight: 500;
    letter-spacing: 0.755px;
    font-size: 16px;
    margin-left: 18px;
}

.App .head-container .head-close-wrapper {
    margin-left: auto;
    display: flex;
    cursor: pointer;
}

.App .head-container .head-close-wrapper p {
    margin: 0px;
    color: #EF9E00;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
}

.App .head-container .head-close-wrapper span {
    display: flex;
    align-items: center;
}

.App .chatui-container {
    background-image: url('/static/bgs/bg.png');
    background-size: cover;
    background-repeat: no-repeat;

    padding-top: 20px;
    padding-left: 35px;
    padding-right: 35px;
    overflow-y: scroll;
    /* Define the animation for scrolling down */
    scroll-behavior: smooth;
}

.App .chatui-container .user-msg {
    max-width: 360px;
    margin-left: auto;
    border: 2px solid #EF9E00;
    padding: 10px 10px 10px 10px;
    border-radius: 15px 0px 15px 15px;
    background: #FCF4E5;
    word-wrap: break-word;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
    margin-bottom: 40px;
}

.App .chatui-container .bot-msg {
    display: flex;
}

.App .chatui-container .bot-avatar-box span {
    background-color: #14274E;
    width: 55px;
    height: 55px;
    border-radius: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
}

.App .chatui-container .bot-msg .bot-content-box {
    max-width: 360px;
    /* width: 100%; */
    margin-left: 20px;
    padding: 10px 15px 10px 15px;
    border-radius: 0px 15px 15px 15px;
    border: 2px solid var(--surface-surface-invert, #14274E);
    background: #E7E8EC;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
    margin-bottom: 40px;
}

.App .chatui-container .bot-msg .bot-content-box p {
    margin: 0 0 0em;
<!-- /* min-height: 48px; */
-->
}

.App .search-container {
    padding: 15px 15px 15px 15px;
    display: flex;
    background-color: #ffffff;
    align-items: center;
    border-radius: 0px 0px 10px 10px;
    border-bottom: 1px solid rgba(57, 72, 103, 0.1);
    border-left: 1px solid rgba(57, 72, 103, 0.1);
    border-right: 1px solid rgba(57, 72, 103, 0.1);
}

.App .search-container .search-input {
    width: 100%;
    padding: 15px 20px 15px 20px;
    font-size: 16px;
    border: 2px solid #000308;
    border-radius: 10px 0px 0px 10px;
    border-right: none;
    outline: none;
}

.App .search-container .submit-btn {
    cursor: pointer;
}

.App .search-container .submit-btn span {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #14274E;
    padding: 11px;
    border-radius: 0px 10px 10px 0px;
}


.sticky-chat-icon {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 80px;
    height: 80px;
    text-align: center;
    cursor: pointer;
    z-index: 80;
}


.chat-wrapper {
    height: 80px;
    width: 80px;
    background-color: #14274e;
    border-radius: 50% 50% 50% 0;
    border: 2px solid #ef9e00;
    display: flex; /* Включить flex-контейнер */
    justify-content: center; /* Выравнивание по горизонтали по центру */
    align-items: center;
}

.bot-avatar {
    fill: white;
    width: 40px;
    height: 40px;
}

.sticky-chat-icon:hover .bot-avatar {
    fill: #ef9e00; /* Цвет при наведении (оранжевый) */
    width: 45px; /* Размер при наведении (45x45 пикселей) */
    height: 45px;
}


.ball {
    background-color: #394867;
    width: 8px;
    height: 8px;
    margin: 2px;
    border-radius: 100%;
    display: inline-block;
    animation: bounce 0.5s ease-in-out infinite;
}

.ball1 {
    animation-delay: 0.1s;
    animation-direction: alternate; /* Для движения вверх и вниз */
}

.ball2 {
    animation-delay: 0.2s;
    animation-direction: alternate;
}

.ball3 {
    animation-delay: 0.3s;
    animation-direction: alternate;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-7px); /* Для дерганного движения */
    }
}

/* new loading state */
.loading-text {
    min-height: 48px;
}

.loading-text p {
    opacity: 0;
}

@keyframes fade-in-out {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes fade-in-out-2 {
    0% {
        opacity: 0;
    }
    55% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* end of new loading state */


.gpt-send-button {
    background-color: #14274E;
    width: 100%;
    display: flex;
    justify-content: center;
    border-radius: 10px;
    border: 2px solid #14274E;
    align-items: center;
    cursor: pointer;
}

.gpt-send-button span {
    color: #FCFDFF;
    text-align: center;
    font-size: 20px;
    padding: 10px 8px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: -0.4px;
}

.send-button-blocked {
    background-color: #14274ed8;
    border: 2px solid #14274ed8 !important;
    pointer-events: none;
    cursor: default;
}

.gpt-form {
    /* max-width: var(--reading-width, 48em); */
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 40px;
}

.gpt-input {
    height: 46px;
    width: 100%;
    margin: 10px 0;
    display: flex;
    box-sizing: border-box;
    padding: 2px 20px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    flex: 1 0 0;
    border-radius: 10px;
    border: 2px solid #14274E;
    background-color: #ffffff;
    color: rgb(42, 43, 42);
    font-size: 14px;
    line-height: 1.2em;
}

.gpt-input::placeholder {
    color: rgba(42, 43, 42, 0.808);
}

.gpt-input.invalid {
    border: 2px solid rgb(219, 0, 0);
}


.error-message {
    color: rgb(219, 0, 0);
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.gpt-textarea {
    height: auto;
    resize: vertical;
    padding-top: 20px;
    font-size: 14px;
}

.gpt-textarea::placeholder {
    color: rgba(42, 43, 42, 0.808);
}

.custom_bot_initial_question {
    width: 100%;
    display: flex;
    flex-direction: column;
    row-gap: 10px;
    max-width: 335px;
    margin-left: 20px;
    margin-top: -2.7rem;
    margin-bottom: 40px;
}

.custom_bot_initial_question p {
    padding: 5px 12px;
    font-size: 12px;
    background: #fff;
    border: 2px solid #14274E;
    border-radius: 50px;
    margin: 0;
    transition: 0.3s ease;
    cursor: pointer;
    font-style: italic;
}

.custom_bot_initial_question p:hover {
    background: #14274E;
    color: #fff;
}

@media (max-width: 767px) {
    .App {
        width: 100%;
        height: 100vh;
        left: 0;
        bottom: 0;
        display: none;
        position: fixed;
        z-index: 81;
        box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
        border-radius: 10px;
        /* Дополнительные стили для .app на маленьких экранах */
    }

    .chat-section {
        height: 100vh;
    }

    .App .chatui-container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .App .chatui-container .user-msg {
        padding: 15px 20px;
        margin-bottom: 20px;
    }

    .App .chatui-container .bot-msg .bot-content-box {
        padding: 5px 20px 5px 20px;
        margin-bottom: 20px;
    }

    .custom_bot_initial_question {
        margin-top: 0;
    }

    #chatui-container {
        height: calc(100vh - 95px - 93px);
    }
}


.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    z-index: 999;
}

.overlay h1 {
    margin: 0;
    font-size: 2em;
}


.report-loader {
    position: absolute;
    top: calc(50% - 45px);
    left: calc(50% - 45px);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    perspective: 800px;
}

.report-inner {
    position: absolute;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.report-inner.report-one {
    left: 0;
    top: 0;
    animation: rotate-one 1s linear infinite;
    border-bottom: 3px solid #d52121;
}

.report-inner.report-two {
    right: 0%;
    top: 0%;
    animation: rotate-two 1s linear infinite;
    border-right: 3px solid #d52121;
}

.report-inner.report-three {
    right: 0%;
    bottom: 0%;
    animation: rotate-three 1s linear infinite;
    border-top: 3px solid #d52121;
}

@keyframes rotate-one {
    0% {
        transform: rotateX(35deg) rotateY(-45deg) rotateZ(0deg);
    }
    100% {
        transform: rotateX(35deg) rotateY(-45deg) rotateZ(360deg);
    }
}

@keyframes rotate-two {
    0% {
        transform: rotateX(50deg) rotateY(10deg) rotateZ(0deg);
    }
    100% {
        transform: rotateX(50deg) rotateY(10deg) rotateZ(360deg);
    }
}

@keyframes rotate-three {
    0% {
        transform: rotateX(35deg) rotateY(55deg) rotateZ(0deg);
    }
    100% {
        transform: rotateX(35deg) rotateY(55deg) rotateZ(360deg);
    }
}

#message {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    background-color: #b3ff00;
    padding: 10px;
    z-index: 100;
  }

.message h5{
    margin-bottom: 0;
}