@import url("site-header.css");
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css');

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
    background: rgb(0,0,0);
    background: linear-gradient(90deg, rgba(0,0,0,0.75) 0%, rgba(255,255,255,0) 50%, rgba(0,0,0,0.75) 100%), url(../images/bg27x27.jpg) repeat;
}

#main-content-container {
    margin: 8em 1rem 2rem;
    text-align: center;
}

#chat-container {
    border: 2px solid rgba(255,210,255,0.15);
    border-radius: 1rem;
    -webkit-border-radius: 1rem;
    -moz-border-radius: 1rem;
    background: rgba(0,45,0,0.2);
    font-size: 1.5em;
    position: relative;
    min-height: 365px;
    max-width: 100%;
    margin: 1em auto 5em;
    padding: 1.5rem 1rem 17em 1rem;
    text-align: left;
}

#chat-header {
    color: #ccc;
    margin: 0 auto;
    text-align:center;
    font-size: 1.3em;
    line-height: 1.33337;
    font-weight: 500;
    letter-spacing: -.01em;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

#profile {
    border-radius: 50%;
    height: 8em;
    width: auto;
}

#textinputform {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 1rem;
    font-size: 1.5em;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.chat-input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-size: 1em;
    font-family: inherit;
    padding: 0.5em 0.75em;
    border: 1px solid #444;
    border-radius: 0.4em;
    background: #2a2a2a;
    color: #fff;
    resize: vertical;
}

.chat-input:focus {
    outline: none;
    border-color: #69aa00;
}

.chat-submit {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.5em 2.5em;
    font-size: 1em;
    font-family: inherit;
    font-weight: 500;
    color: #fff;
    background: #69aa00;
    border: none;
    border-radius: 0.4em;
    cursor: pointer;
}

.chat-submit:hover {
    background: #5c9400;
}

.example-question {
    margin-left: 1rem;
}

.speech-bubble {
    font-size: 1.5em;
	position: relative;
	background: #444;
	border-radius: .4em;
    color: #fff;
    padding: 1em;
    margin-bottom: 1em;
    width: fit-content;
    width: -webkit-fit-content;
}

.speech-bubble:after {
	content: '';
	position: absolute;
	top: 50%;
	width: 0;
	height: 0;
	border: 0.625em solid transparent;
	border-bottom: 0;
	margin-top: -0.312em;
}

.speech-bubble.bot {
    margin-right: auto; 
    margin-left: 0;
}

.speech-bubble.bot:after {
	left: 0;
	border-right-color: #444;
	border-left: 0;
	margin-left: -0.6em;
}

.speech-bubble.user {
	background: #69aa00; /*--> override default <--*/
    margin-left: auto; 
    margin-right: 0;
}

.speech-bubble.user:after {
	right: 0;
	border-left-color: #69aa00;
	border-right: 0;
	margin-right: -0.6em;
}

.speech-bubble a {
    color: rgba(243, 211, 0, 0.9);
    font-weight: 600;
}

.speech-bubble a:hover {
    color: rgba(243, 211, 0, 1);
}

.speech-bubble li {
    margin-bottom: 1em;
}

.speech-bubble :last-child {
    margin-bottom: 0;
}

.speech-bubble th, .speech-bubble td {
    padding-right: 1em;
}

.speech-bubble th:last-child, .speech-bubble td:last-child {
    padding-right: 0;
}

#messages {
    width:100%;
}

.toastbox {
    opacity: 0.8;
    height: fit-content;
    height: -webkit-fit-content;
    vertical-align:middle;
    vertical-align:-webkit-baseline-middle;
    text-align:center;
    border-radius: 0px 4px 0px 4px;
    -webkit-border-radius: 0px 4px 0px 4px;
    -moz-border-radius: 0px 4px 0px 4px;
    padding: 3%;
    margin: 1% 3% 1% 3%;
    min-width: 320px;
    max-width: 720px;
    height: fit-content;
    height: -webkit-fit-content;
}

#footer {
    color: #aaa;
    border-top: 1px solid #333;
    font-size: 1.7em;
    line-height: 1.33337;
    font-weight: 400;
    letter-spacing: -.01em;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
    padding-top: 0.6em;
    width: 100%;
    text-align: center;
    position: fixed;
    bottom: 0;
    height: 3em;   /* Height of the footer */
    background: #111;
}

#controls {
    width:50%;
    max-width:1024px;
}
#copyright {
    text-align:right;
    width:50%;
}
#console {
    display: none;
    width: 100%;
    background-color: lightgray;
}
#update_prompt {
    margin: 5px;
}



.activity {
    background: linear-gradient(60deg, rgba(10,10,10,0.4) , rgba(256,256,256,0.5));
    background-size: 400% 400%;
    -webkit-animation: AnimationName 3s ease infinite;
    -moz-animation: AnimationName 3s ease infinite;
    animation: AnimationName 3s ease infinite;
}

@-webkit-keyframes AnimationName {
    0%{background-position:0% 87%}
    50%{background-position:100% 14%}
    100%{background-position:0% 87%}
}
@-moz-keyframes AnimationName {
    0%{background-position:0% 87%}
    50%{background-position:100% 14%}
    100%{background-position:0% 87%}
}
@keyframes AnimationName {
    0%{background-position:0% 87%}
    50%{background-position:100% 14%}
    100%{background-position:0% 87%}
}


.wave {
    min-width: 50px;
    vertical-align: middle;
    text-align: center;
}

.wave .dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    margin-right: 10px;
    background: #fff;
    animation: wave 1.3s linear infinite;
}

.wave .dot:nth-child(2) {
    animation-delay: -1.1s;
}

.wave .dot:nth-child(3) {
    animation-delay: -0.9s;
    margin-right: 0;
}

.speech-bubble p:first-child {
    margin-top: 0;
}

.speech-bubble p:last-child {
    margin-bottom: 0;
}

.speech-bubble ul, .speech-bubble ol {
    margin: 0.5em 0;
    padding-left: 1.5em;
}

@keyframes wave {
    0%, 60%, 100% {
        transform: initial;
    }

    30% {
        transform: translateY(-15px);
    }
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    #main-content-container {
        margin: 6em 1rem 2rem;
    }
    #chat-container {
        font-size: 0.8em;
        padding-bottom: 16em;
        max-width: 80vw;
    }
    #chat-header {
        font-size: 1em;
    }
    #textinputform {
        padding: 1rem;
        font-size: 1.5em;
    }
    .form-control, #text-submit {
        font-size: 1em;
    }
    .speech-bubble {
        font-size: 1.3em;
    }
    #footer {
        font-size: 0.8em;
        padding-top: 0.7em;
    }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
}

.chat-link {
    color: rgba(243, 211, 0, 0.9);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
}

.chat-link:hover {
    color: rgba(243, 211, 0, 1);
}

.pdf-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf-modal-backdrop[hidden] {
    display: none;
}

.pdf-modal {
    background: #222;
    border-radius: 0.5rem;
    width: 90vw;
    max-width: 900px;
    height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pdf-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #111;
    border-bottom: 1px solid #333;
}

.pdf-modal-header a {
    color: rgba(243, 211, 0, 0.9);
    font-size: 1rem;
}

#pdf-modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.25rem;
}

#pdf-modal-embed {
    flex: 1;
    width: 100%;
    border: none;
}