body {
    font-family: 'DM Mono', monospace, sans-serif;
    background-color: #111;
    color: #fff;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overscroll-behavior: none;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
}

h1 {
    font-size: 48px;
    -webkit-text-stroke: thin black;
}

h2 {
    font-size: 32px;
    -webkit-text-stroke: thin black;
}

h3 {
    font-size: 16px;
    font-weight: 600;
    -webkit-text-stroke: thin black;
}

h6 {
    font-size: 8px;
    font-weight: 900;
    -webkit-text-stroke: thick black;
}

#chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    max-width: 600px;
    background-color: transparent;
    border-radius: 0;
    overflow: hidden;
    overscroll-behavior-y: auto;
}

#chat {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    display: flex;
    flex-direction: column;
}

.message {
    padding: 12px 16px;
    margin: 4px 0;
    border-radius: 24px;
    max-width: 70%;
    word-wrap: break-word;
}

.system {
    text-align: center;
    background-color: #222;
    color: #fff;
    align-self: center;
    padding: 8px 16px;
    font-size: 12px;
}

.user {
    text-align: left;
    background-color: #ffa900;
    color: #000;
    align-self: flex-end;
}

.assistant {
    text-align: left;
    background-color: #222;
    color: #fff;
    align-self: flex-start;
}

#input-container {
    display: flex;
    align-items: center;
    padding: 8px;
    background-color: transparent;
}

textarea {
    flex: 1;
    padding: 12px 16px;
    border-radius: 8px;
    border: none;
    resize: none;
    font-family: 'DM Mono', monospace;
    font-size: 16px;
    background-color: #222;
    color: #fff;
    height: 28px;
    align-content: center;
    outline: solid 2px transparent;
    outline-offset: -2px;
}

textarea:focus {
    outline: solid 2px #808080;
    outline-offset: -2px;
}

button {
    margin-left: 10px;
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    background-color: #ffa900;
    font-family: monospace, sans-serif;
    color: #111;
    cursor: pointer;
    user-select: none;
}

button#sendButton {
    margin-left: 8px;
    padding: 8px;
    height: 52px;
    width: 52px;
    border-radius: 8px;
    border: none;
    background-color: #ffa900;
    font-family: 'Material Symbols Rounded', monospace;
    font-size: 24px;
    color: #111;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    outline: solid 2px transparent;
    outline-offset: -4px;
}
button:hover, button#sendButton:hover {
    background-color: #ffa90010;
    color: #ffa900;
    box-shadow: inset 0 0 0 2px #ffa900;
    transition: all 0.3s ease-in-out;
}
button:focus, button#sendButton:focus {
    outline: solid 2px #000;
    outline-offset: -4px;
    transition: all 0.3s ease-in-out;
}

.spoiler {
    background-color: #333;
    color: #333;
    border-radius: 3px;
    padding: 2px 4px;
}

.spoiler:hover {
    color: #fff;
}

.code-block {
    background-color: #161616;
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    margin: 10px 0;
    overflow-x: auto;
    line-height: normal;
}

.code-block .code-lang {
    font-size: 16px !important;
    color: #999;
    margin: -20px -20px 16px -20px;
    padding: 4px 20px 4px 20px;
    background-image: linear-gradient(90deg, #1b1b1b, #161616);
    -webkit-text-stroke: transparent;
    font-weight: initial;
    border-radius: 6px 0;
}

pre {
    margin: 0;
    -webkit-text-stroke: transparent;
    font-size: initial;
    font-weight: initial;
    font-family: 'DM Mono', monospace;
}

code {
    font-family: 'DM Mono', monospace;
    font-size: 16px;
}

code.block-code {
    display: block;
    background-color: #333;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    white-space: pre-wrap;
    font-family: 'DM Mono', monospace;
}

code.inline-code {
    background-color: #161616;
    color: #fff;
    padding: 0px;
    border-radius: 4px;
    font-size: 16px !important;
    font-family: 'DM Mono', monospace;
}

.message.user>code.inline-code {
    color: #000;
    background-color: #55555555;
}

blockquote {
    margin: 8px 0;
    padding: 8px 12px;
    border-left: 8px solid #3339;
    background: #33333333;
    border-radius: 8px;
    font-size: 16px;
}

ul {
    margin: 5px 0;
    padding-left: 20px;
}

li {
    margin: 5px 0;
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
    background: #111;
}
/* TRACK */
::-webkit-scrollbar-track {
    border-radius: 0;
    margin: 2px;
}
/* HANDLE */
::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 10px;
    border: 2px solid #111;
}
/* HANDLE: HOVER */
::-webkit-scrollbar-thumb:hover {
    background: #9f9; 
}
/* CORNER */
::-webkit-scrollbar-corner {
    background: #111;
}
textarea::-webkit-scrollbar {
    width: 16px;
    height: 16px;
    background: #222;
    border-radius: 16px;
}
textarea::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 10px;
    border: 4px solid #222;
    cursor: default;
}
textarea::-webkit-scrollbar-track {
    border-radius: 0;
    margin: 0;
}
.code-block::-webkit-scrollbar {
    width: 16px;
    height: 16px;
    background: #161616;
    border-radius: 16px;
}
.code-block::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 10px;
    border: 4px solid #161616;
    cursor: default;
}
.code-block::-webkit-scrollbar-track {
    border-radius: 0;
    margin: 0;
}

div#typing-indicator {
    position: absolute;
    bottom: 60px;
    padding: 0 12px;
    margin: 8px 8px 0px;
    color: #111;
    background: #111;
    align-self: center;
    height: 20px;
    border-radius: 12px 12px 0 0;
}

/* Typing Indicator Animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
        color: #111;
    }
    50% {
        transform: scale(1);
        opacity: 0.5;
        color: #ffa900;
    }
}

.dot {
    display: inline-block;
    animation: pulse 2.25s infinite;
    margin: 0 -4px;
}

.dot:nth-child(1) {
    animation-delay: 0s;
}

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

.dot:nth-child(3) {
    animation-delay: 0.5s;
}