/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */ 
 
@font-face {
    font-family: 'audiowide';
    src: url('../webfonts/audiowide-regular-webfont.woff2') format('woff2'),
         url('../webfonts/audiowide-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

.aitoce-red {
    color: #B43757;
}

.aitoce-jade {
   color: #00a86b;
}

.aitoce-popup-container {
    position: fixed;
    right: 75px;
    bottom: 60px;
    z-index: 800;
}

#aitoce-popup-refresh-chat,
#aitoce-popup-close-chat {
    cursor: pointer;
    margin-top: 6px;
    margin-left: 10px;
}

.aitoce-popup-chat-box {
    width: 400px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    background-color: #333;
    box-shadow: 4px 4px 4px #333;
    display: none;
    flex-direction: column;
}

.aitoce-page-chat-box {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    background-color: #333;
    box-shadow: 4px 4px 6px #333;
}

.aitoce-page-chat-box {
    width: 100%;
    border-radius: 20px;
}

@media screen and (max-width: 765px) {
    .aitoce-popup-container {
        right: 15px;
        bottom: 15px;
    }

    .aitoce-popup-chat-box {
        width: 330px;
    }
}

.aitoce-popup-chat-header,
.aitoce-page-chat-header {
    display: flex;
    flex-direction: row;
    padding: 10px;
    background-color: #2d2b33;
    color: #fbb53b;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    font-weight: bold;
    font-family: Audiowide;
}

.aitoce-chat-header-text {
    flex: 2;
}

.aitoce-popup-chat-messages, 
.aitoce-page-chat-messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    font-size: 0.8em;
    background-color: #3e3c47;
    color: #e4e4e4;
    display: flex;
    flex-direction: column;
    height: 350px;
    max-height: 350px;
}

.aitoce-popup-chat-input-area,
.aitoce-page-chat-input-area {
    display: flex;
    padding: 10px;
    background-color: #2d2b33;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.aitoce-popup-chat-input,
.aitoce-page-chat-input {
    flex: 1;
    font-size: 0.8em;
    padding: 5px;
    border: none;
    border-radius: 5px;
    background-color: #e4e4e4;
    color: #3e3c47;
}

.aitoce-popup-chat-input {
    resize: none;
}

.aitoce-popup-send-btn,
.aitoce-page-send-btn  {
    margin-left: 10px;
    border: none;
    cursor: pointer;

    padding: 25px 10px;
    background-color: #00a86b;
    border-radius: 5px;
    color: #fff;
    font-family: Audiowide;
}

.aitoce-popup-icon {
    width: 60px;
    height: 53px;
    cursor: pointer;
    position: fixed;
    bottom: 60px;
    right: 8px;
}

.aitoce-popup-user-message,
.aitoce-page-user-message {
    margin-top: 10px;
    margin-left: auto;
    padding: 5px;
    color: #2d2b33;
    background-color: #e4e4e4;
    border-radius: 5px;
}

.aitoce-popup-bot-message,
.aitoce-page-bot-message {
    margin-top: 10px;
    padding: 5px;
    background-color: #2d2b33;
    border-radius: 5px;
}

.aitoce-popup-bot-message b,
.aitoce-page-bot-message b {
    font-family: Audiowide;
}

.aitoce-error {
    background-color: #B43757;
}

.aitoce-popup-bot-message h3,
.aitoce-page-bot-message h3 {
    color: #e4e4e4;
}

.aitoce-bot-message pre {
    border: 3px solid #fff;
    border-radius: 4px;
    padding: 0.3em;
    background-color: #2d2b33;
}

/*/////////////////////////////////////*/
/* Nimbot thinking animation */
.aitoce-jumping-dots span {
    position: relative;
    margin-left: auto;
    margin-right: auto;
    animation: jump 1s infinite;
    display: inline-block;
}

.aitoce-jumping-dots .aitoce-dot-1 {
    background-color: #fbb53b;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 4px;
    animation-delay: 200ms;
}

.aitoce-jumping-dots .aitoce-dot-2 {
    background-color: #fbb53b;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 4px;
    animation-delay: 400ms;
}

.aitoce-jumping-dots .aitoce-dot-3 {
    background-color: #fbb53b;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 4px;
    animation-delay: 600ms;
}

@keyframes jump {
    0% {
        bottom: 0px;
    }

    20% {
        bottom: 5px;
    }

    40% {
        bottom: 0px;
    }
}