﻿body {
}

.spinner {
    display: inline-block;
    width: 35px;
    height: 35px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #3498db;
    animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinnerContainer {
    overflow:hidden;
    width:260px;
    height:260px;
}
.spinnerImage {
    margin: -155px 0px 0px -270px;
}


#renderedMarkdown {
    border: 1px solid #ccc;
    padding: 10px;
    height: calc(100vh - 250px); /* Adjust this value as needed */
    overflow-y: scroll;
    width: 100%;
}

/* https://projects.verou.me/bubbly/ */
.chat-bubble {
    background-color: #f1f1f1;
    border-radius: 15px;
    padding: 10px;
    margin: 10px 0;
    max-width: 80%;
    position: relative;
    word-wrap: break-word;
}

.chat-bubble::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-top-color: #f1f1f1;
    border-bottom: 0;
    border-left: 0;
    margin-left: -5px;
    margin-bottom: -10px;
}
.chat-bubble-response {
    background-color: #d1d1d1;
    border-radius: 15px;
    padding: 10px;
    margin: 10px 0;
    max-width: 80%;
    position: relative;
    word-wrap: break-word;
    margin-left: auto; /* Align to the right */
}
.chat-bubble-response::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 20px; /* Position the triangle on the right */
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-top-color: #d1d1d1;
    border-bottom: 0;
    border-right: 0;
    margin-left: 5px;
    margin-bottom: -10px;
}

.timestamp {
    font-size: 0.8em;
    color: #888;
    display: block;
    text-align: right;
    float: right;
}