* {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}

strong, b {
    font-weight: bold;
}

body {
    margin: 0;
    height: 100vh;
    background: #fffbf3;
}

.btn {
    background: white;
    padding: 0;
    border: 2px solid black;
    cursor: pointer;
    transition: .5s;
}

.loading {
    display: flex;
    align-items: center;
    padding-left: 8px;
    height: 48px;
}

.loading > div {
    display: block;
    width: 32px;
    height: 32px;
    border-left: 3px solid orange;
    border-right: 3px solid orange;
    border-radius: 16px;
    animation: spin linear 2s infinite;
}

.loading > a {
    margin-left: 16px;
    animation: semi-blinking linear 1s infinite;
}

#account {
    display: flex;
    height: 48px;
    flex-direction: row;
    overflow: hidden;
}

#account > img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

#account > button {
    margin-left: 8px;
    box-sizing: border-box;
    padding: 0;
    border: 2px solid black;
    border-radius: 24px;
    width: 48px;
    height: 48px;
    background: white;
}

#account > button:hover {
    background: #ffeaa0;
}

#account > span {
    margin: 8px;
    flex-grow: 1;
}

#account > button > svg {
    height: 100%;
    fill: none;
}

#account > button > img {
    height: 32px;
    margin: 6px;
}

.logo {
    display: flex;
    align-items: center;
    height: 48px;
    white-space: nowrap;
    overflow: hidden;
    font-size: 20pt;
}

.logo > img {
    height: 100%;
    margin-right: 8px;
}

.theme-btn {
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    color: orange;
    border-color: orange;
    border-radius: 16px;
    height: 48px;
    font-size: 12pt;
    font-weight: 450;
    transition: .5s;
}

.theme-btn > svg {
    margin: 10px;
    width: 24px;
    stroke: orange;
    stroke-width: 2px;
    flex-shrink: 0;
}

.theme-btn:hover {
    background: #ffedda;
}

.full-screen {
    display: block;
    position: fixed;
    background: white;
    text-align: center;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    box-sizing: border-box;
    padding: 32px;
    z-index: 999;
}

#menu {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #00000000;
    pointer-events: none;
    z-index: 100;
}

#menu.open {
    background: #00000066;
}

#left-menu {
    display: flex;
    position: fixed;
    flex-direction: column;
    align-items: stretch;
    top: 0;
    left: 0;
    width: 64px;
    height: 100vh;
    background: #faf0d3;
    border-radius: 0 32px 32px 0;
    z-index: 101;
}

#left-menu.open {
    width: 384px;
}

#left-menu > * {
    overflow: hidden;
    margin: 8px 8px 0 8px;
}

#left-menu > :last-child {
    margin-bottom: 8px;
    border-bottom-right-radius: 24px;
}

.logo,
#menu,
#left-menu,
#interact,
#prompt,
#send,
#settings-root,
#settings-menu > button,
#messages > div > .attachments > * {
    transition: .25s;
    transition-timing-function: ease;
}

.session {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    background: darkgray;
}

#chat {
    display: flex;
    position: absolute;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    left: 72px;
    right: 0;
    top: 0;
    bottom: 0;
}

#messages {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
}

#messages > div {
    display: flex;
    padding: 8px;
    flex-direction: column;
    justify-content: flex-start;
    flex-wrap: nowrap;
    max-width: 800px;
    width: 100%;
}

#messages > .intro {
    max-width: 500px;
}

/*#messages > .bot {

}*/

#messages > .msg {

}

#messages > .msg:last-child {
    margin-bottom: 372px;
}

#messages > .msg > .prompt {
    margin-left: auto;
}

#messages > .msg > .prompt {
    padding: 12px;
    color: black;
    background: #e8ddbd;
    border-radius: 12px;
    /*align-items: flex-end;*/
}

/*#messages > .user {
    width: 100%;
    align-items: flex-end;
}

#messages > div > .msg {
    padding: 12px;
    color: black;
}

#messages > .user > .msg {
    background: #e8ddbd;
    border-radius: 12px;
}

#messages > .user.sending > .msg {
    background: gray;
}

#messages > div > * {
    margin-top: 2px;
}

#messages > div > :first-child {
    margin-top: 0;
}

#messages > div > .attachments {
    display: flex;
    width: fit-content;
    border-radius: 12px;
    background: white;
    border: 1px gray solid;
}

#messages > div > .attachments > * {
    background: white;
    padding: 8px;
    text-decoration: none;
    border-left: 1px solid gray;
}

#messages > div > .attachments > :first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    border-left: none;
}

#messages > div > .attachments > :last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

#messages > div > .attachments > :hover {
    background: #fff3df;
}

#messages > div > .funcs {
    display: flex;
}*/

#interact {
    display: flex;
    bottom: 8px;
    left: 72px;
    right: 16px;
    margin-left: auto;
    margin-right: auto;
    flex-direction: column;
    background: #c8c8c8;
    border-radius: 32px;
    max-width: 800px;
    width: 100%;
}

#interact > * {
    margin: 8px
}

#interact > div {
    margin-top: 0;
}

#prompt {
    flex-grow: 1;
    box-sizing: border-box;
    min-height: 48px;
    max-height: 300px;
    padding: 16px;
    border: none;
    border-radius: 24px;
    resize: none;
    font-size: 12pt;
}

#interact > div {
    display: flex;
}

#interact > div > * {
    box-sizing: border-box;
    border-radius: 24px;
    margin-right: 8px;
}

#interact > div > :last-child {
    margin-right: 0;
}

#interact > div > select {
    margin-left: auto;
    padding: 0 8px;
}

#interact > div > #send {
    background: #f8995b;
    border-color: #a56e30;
    fill: none;
    stroke: white;
    stroke-width: 2px;
    width: 40px;
    height: 40px;
}

#interact > div > #send:disabled {
    background: gray;
}

.intro {
    max-width: 600px;
    margin-bottom: 48px;
}

.menu-list {
    overflow-y: auto;
}

.menu-list,
.list {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

#settings-root {
    display: flex;
    position: fixed;
    background: #f4dbb7;
    z-index: 200;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
}

#settings-root > div {
    display: flex;
    flex-direction: column;
}

#settings-menu {
    margin: 16px;
    border-radius: 24px;
    width: 300px;
    background: #fff7ed;
}

#settings-page {
    background: #fff7ed;
    margin: 16px 16px 16px 0;
    border-radius: 24px;
    flex-grow: 1;
    overflow: auto;
}

#settings-menu > button {
    background: transparent;
    cursor: pointer;
    font-size: 12pt;
    padding: 16px;
    margin: 8px 8px 0 8px;
    border-radius: 16px;
    background: none;
    border: none;
}

#settings-menu > button:hover {
    background: #ffe1bb;
}

#settings-menu > button.selected {
    background: #ffc47a;
}

#settings-page > .user {
    display: flex;
    align-items: center;
    border-top: 1px solid black;
}

#settings-page > .user:nth-child(odd) {
    background: #00000022;
}

#settings-page > .user > span {
    flex-grow: 1;
    margin-left: 16px;
}

#settings-page > .user > select {
    padding: 8px;
    margin: 8px;
    cursor: pointer;
}

#settings-page > .user > select:disabled {
    cursor: not-allowed;
}

#settings-page > .bar {
    margin: 16px;
}

#settings-page > .bar > .close {
    padding: 8px 16px;
    cursor: pointer;
}

#chats-list > button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 40px;
    font-size: 12pt;
    white-space: nowrap;
    cursor: pointer;
    margin-top: 8px;
    text-align: left;
    border: none;
    border-radius: 8px;
    padding: 0 0 0 12px;
    background: #ffe6a0;
}

#chats-list > button:first-child {
    margin-top: 0;
}

#chats-list > button:hover {
    background: #fad752;
}

#chats-list > button.selected {
    background: #ffba48;
}

#chats-list > button > button {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    padding: 16px;
    max-width: 800px;
    border: 1px solid #191920;
    border-radius: 16px;
    background: #fff1d7;
}

form > label {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    padding: 16px;
}

form > label > span {
    display: block;
    width: 100%;
    margin-right: 8px;
}

form > label > input {
    display: block;
    flex-grow: 1;
    padding: 8px;
}

form > label > textarea {
    min-width: unset;
    width: 100%;
    padding: 8px;
    min-height: 128px;
}

form > input {
    padding: 10px 20px;
    max-width: 300px;
    width: 100%;
    cursor: pointer;
}

.options {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: #ffebb1;
    width: 100%;
    max-height: 128px;
    border: 1px solid black;
    border-top-width: 0;
    border-radius: 0 0 16px 16px;
}

.options > button {
    text-align: left;
    padding: 8px 8px;
    border-width: 0;
    border-top-width: 1px;
    background: white;
    cursor: pointer;
}

.options > button:hover {
    background: #ffebb1;
}

@keyframes spin {
    from {transform:rotate(0deg);}
    to {transform:rotate(360deg);}
}

@keyframes semi-blinking {
    from {
        opacity: 1;
    }

    50% {
        opacity: .5;
    }

    to {
        opacity: 1;
    }
}

@media only screen and (max-width: 600px) {
    #menu { display: none; }
    
    #left-menu {
        top: 0;
        left: -100%;
        width: 100vw;
    }

    #left-menu.open {
        left: 0;
        width: 100vw;
        border-radius: 0 0 0 0;
    }

    #interact {
        left: 16px;
    }
    
    #chat {
        left: 0;
        justify-content: space-between;
    }
    
    #messages {
        margin: 32px 0 0 0;
    }
    
    #messages > div {
        margin: 0 24px;
    }
}