

#chatInnerWrapper::-webkit-scrollbar {
    background-color: #3a3a3a
}

.cursory {
    -webkit-animation: blinky 1.2s infinite;
}

@-webkit-keyframes blinky {
    0% {filter: opacity(0%); transform:translateZ(0)}
    50% {filter: opacity(100%); transform:translateZ(0)}
    100% {filter: opacity(0%); transform:translateZ(0)}
}


.lineHighlight {
    background-color:#9090c0;
}

.markdown-body {
    padding: 16px 24px;
    color: #e6edf3;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    border: 1px solid #30363d;
    border-radius: 6px;
    background: #0d1117;
    margin: 4px 0;
    word-wrap: break-word;
}

.markdown-body > *:first-child { margin-top: 0; }
.markdown-body > *:last-child { margin-bottom: 0; }

.markdown-body h1, .markdown-body h2 {
    color: #e6edf3;
    font-weight: 600;
    border-bottom: 1px solid #21262d;
    padding-bottom: 0.3em;
    margin-top: 24px;
    margin-bottom: 16px;
}

.markdown-body h3, .markdown-body h4, .markdown-body h5, .markdown-body h6 {
    color: #e6edf3;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 16px;
}

.markdown-body h1 { font-size: 2em; }
.markdown-body h2 { font-size: 1.5em; }
.markdown-body h3 { font-size: 1.25em; }
.markdown-body h4 { font-size: 1em; }

.markdown-body p {
    margin-top: 0;
    margin-bottom: 16px;
}

.markdown-body ul, .markdown-body ol {
    padding-left: 2em;
    margin-top: 0;
    margin-bottom: 16px;
}

.markdown-body ul { list-style-type: disc; }
.markdown-body ol { list-style-type: decimal; }

.markdown-body ul ul { list-style-type: circle; }

.markdown-body li {
    margin-top: 0.25em;
}

.markdown-body li + li {
    margin-top: 0.25em;
}

.markdown-body code {
    background: rgba(110, 118, 129, 0.4);
    color: #00c4aa;
    padding: 0.2em 0.4em;
    border-radius: 6px;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 85%;
}

.markdown-body pre {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 16px;
    overflow-x: auto;
    margin-top: 0;
    margin-bottom: 16px;
    line-height: 1.45;
}

.markdown-body pre code {
    background: transparent;
    padding: 0;
    border-radius: 0;
    font-size: 85%;
    color: #e6edf3;
}

.markdown-body strong {
    color: #e6edf3;
    font-weight: 600;
}

.markdown-body em {
    font-style: italic;
}

.markdown-body a {
    color: #58a6ff;
    text-decoration: none;
}

.markdown-body a:hover {
    text-decoration: underline;
}

.markdown-body hr {
    border: none;
    border-top: 1px solid #21262d;
    margin: 24px 0;
    height: 0;
}

.markdown-body blockquote {
    border-left: 0.25em solid #30363d;
    padding: 0 1em;
    color: #8b949e;
    margin: 0 0 16px 0;
}

.markdown-body blockquote > :first-child { margin-top: 0; }
.markdown-body blockquote > :last-child { margin-bottom: 0; }

.markdown-body table {
    border-collapse: collapse;
    border-spacing: 0;
    margin-top: 0;
    margin-bottom: 16px;
    width: auto;
    overflow: auto;
    display: block;
}

.markdown-body table th {
    font-weight: 600;
    padding: 6px 13px;
    border: 1px solid #30363d;
    background: #161b22;
}

.markdown-body table td {
    padding: 6px 13px;
    border: 1px solid #30363d;
}

.markdown-body table tr {
    background: #0d1117;
    border-top: 1px solid #21262d;
}

.markdown-body table tr:nth-child(2n) {
    background: #161b22;
}

.markdown-body img {
    max-width: 100%;
}

.chat-button:hover {
    filter: brightness(1.2);
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
    transform: translateY(-1px);
}

.chat-button {
    background-color: #009688;
    background-image: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(0,0,0,0.15) 100%);
    border: none;
    color: white;
    min-width: 8ch;
    padding-left: 5px;
    padding-right: 5px;
    padding-top: 20px;
    padding-bottom: 20px;
    margin-top: 10px;
    margin-left: 5px;
    margin-right: 0px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16pt;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.chat-button[disabled] {
    background-color: grey;
    cursor: not-allowed;
}



.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
}

textarea {
    box-sizing:         border-box;
    resize:             none;

    /*font-size:          20px;*/
    /*font-family:        'ibmterm';*/
    -webkit-font-smoothing: subpixel-antialiased;

    background-color:   #333;   /* Dark background color */
    color:              #BABCEC;

    width:              100%;
    padding:            10px;            /* Add some padding inside */
    border-radius:      5px;       /* Rounded corners */

}







.chatbox-bubble {
    font-family: monospace;
    font-size: 10pt;
    line-height: 1.4;

    display: inline-flex;
    flex-direction: column;
    padding: 10px 15px;
    border-radius: 15px;
    margin-bottom: 10px;
    max-width: 80%;
    word-wrap: break-word;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.5)
}

.chatbox-header {
    margin-bottom: 5px;
}

/* no whitespace pre here */
.chatbox-content {
    margin: 0;
    font-weight: 100;
}

.chatbox-sender {
    border: 1px solid #666;
    align-self: flex-end;
    backdrop-filter: blur(10px) brightness(60%);
    text-align:right;
}

.chatbox-receiver {
    background-image: linear-gradient(to top, #224, #111);
    color: #BABCEC;
    align-self: flex-start;

}


/* Define the keyframes for the fade effect */
/* #9090c0 ibm blue  */
@keyframes fadeGlow {
    from {
        color: #fff;
        text-shadow: 0 0 12px #fff;
    }
    to {
        color: #BABCEC;
        text-shadow: none;
    }
}

/* Apply the animation to elements with the .glow class */
.glow {
    animation: fadeGlow 2s forwards; /* Adjust time as needed */
}

@keyframes fadeChatGlow {
    from {
        color: #fff;
        text-shadow: 0 0 16px #fff;
    }
    to {
        color: #ddd;
        text-shadow: none;
    }
}

.glow_chat {
    animation: fadeChatGlow 2s forwards; /* Adjust time as needed */
}

@keyframes fadeGreenGlow {
    from {
        color: #fff;
        text-shadow: 0 0 16px #fff;
    }
    to {
        color: #00c4aa;
        text-shadow: none;
    }
}

.glow_green {
    animation: fadeGreenGlow 2s forwards; /* Adjust time as needed */
}

@keyframes fadeGreyGlow {
    from {
        color: #fff;
        text-shadow: 0 0 16px #fff;
    }
    to {
        color: #888;
        text-shadow: none;
    }
}

.glow_grey {
    animation: fadeGreyGlow 2s forwards;
}

@keyframes fadeWhiteGlow {
    from {
        color: #fff;
        text-shadow: 0 0 16px #fff;
    }
    to {
        color: #ddd;
        text-shadow: none;
    }
}

.glow_white {
    animation: fadeWhiteGlow 2s forwards;
}

.glow_blue {
    text-shadow: 0 0 6px #0088ff, 0 0 12px #0088ff;
}


.flashing-dot {
    animation: flash 2s infinite;
}

@keyframes flash {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        opacity: 1;
    }
}