@font-face {
    font-family: marlett;
    src: url("marlett.ttf");
}
@font-face {
    font-family: font;
    src: url("font.ttf");
}
p,span,h1,h2,h3,h4,h5,h6,i,strong {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
    margin: 0;
    padding: 0;
    background-color: #161616;
    color: #ffffff;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    box-sizing: border-box;
}
#sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100%;
    background-color: #1d1d1d;
    padding: 10px;
    box-sizing: border-box;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    
    z-index: 4000;
}
p {
    margin: 0;
    padding: 0;
}
.sidebarbutton {
    width: 100%;
    height: 37px;
    margin-bottom: 1px;
    border-radius: 8px;
    background-color: transparent;
    position: relative;
    border: none;
    color: white;
    cursor: pointer;
    text-align: left;
    padding-left: 10px;
    font-size: 15px;
    font-family: font;
    transition-duration: 50ms;
}
.current {
    background-color: #ffffff2f;
}
.sidebarbutton > svg {
    margin-right: 10px;
    vertical-align: middle;
}
#hamburger {
    background-color: transparent;
    position: fixed;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    border-radius: 15px;
    border: none;
    z-index: 6000;
}
#hamburger:hover {
    background-color: #ffffff2f;
}
.brand {
    width: 90%;
    height: 10px;
    background-color: transparent;
    border: none;
    color: white;
    text-align: left;
    padding-left: 6px;
}
.brand > img {
    float: right;
    margin: 14px;
}
.sidebarbutton:hover {
    background-color: #ffffff1f;
}
.sidebarbutton:active {
    background-color: #ffffff0c;
}
* {
    scroll-behavior: smooth;
}
.darken {
    color: #949494;
}
.small {
    font-size: 12px;
    margin: 10px;
    user-select: none;
}
.chats {
    height: calc(100% - 195px);
    margin-bottom: 0;
    overflow: auto;
}
/* scrollbar track */
*::-webkit-scrollbar {
  width: 8px;
  background: #181818;
  border-radius: 10px;
}

/* scrollbar thumb */
*::-webkit-scrollbar-thumb {
  background-color: #181818;
  border-radius: 10px;
  border: 2px solid #181818; /* to create padding around thumb */
}

/* scrollbar thumb on hover */
*::-webkit-scrollbar-thumb:hover {
  background-color: #c0c0c1;
}

* {
  scrollbar-width: auto;
  scrollbar-color: #303030 #181818;
}

#about {
    z-index: 4000;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 720px;
    height: 390px;
    max-height: 90%;
    padding: 5px;
    transform: translate(-50%, -50%);
    background-color: #0e0e0e;
    padding: none;
    border: rgba(255, 255, 255, 0.212) solid 1px;
    border-radius: 10px;
    color: white;
    text-align: left;
    font-size: 14px;
    font-smooth: never;
    font-family: "Segoe UI";
    display: none;
    box-shadow: 0px 0px 40px 0px rgba(0, 0, 0, 0.5);
    max-width: 90%;
}
.titlebar_about {
    width: calc(100% - 10px);
    height: 30px;
    color: rgb(255, 255, 255);
    text-align: center;
    padding-left: 8px;
    font-size: 18px;
    font-smooth: never;
    font-family: "Segoe UI";
    text-align: left;
    margin-bottom: 3px;
    border-radius: 10px;
}
.chattitle {
    vertical-align: middle;
    
}
#close_about {
    font-family: marlett;
    padding: 0;
    float: right;
    vertical-align: middle;
    margin-right: 1px;
    width: 30px;
    height: 30px;
    margin-top: -1px;
    border: none;
    background-color: #00000000;
    color: rgb(0, 0, 0);
    cursor: pointer;
    font-size: 12px;
    border-radius: 10px;
}
#close_about:hover {
    background-color: #727272;
}
#close_about:active {
    background-color: #181818;
}
a {
    color: inherit;
    color: rgb(187, 255, 255);
}
.bottomright {
    position: absolute;
    bottom: 10px;
    right: 10px;
}
#chat {
    position: fixed;
    top: 60px;
    left: 50%;
    width: calc(100% - 10px);
    height: calc(100% - 150px);
    max-width: 800px;
    transform: translate(-50%, 0);
}
#chatcontainer {
    position: absolute;
    top: 60px;
    left: 50%;
    width: calc(100% - 15px);
    height: calc(100% - 150px);
    transform: translate(-50%, 0);
    overflow-y: auto;
}
#maincontainer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
}
body {
    overflow: hidden;
}
.main { /* 
    this #FFFFAA pisses me off
    im the original
    #9F7FE4*/
    position: absolute;
    top: 0;
    left: 10px;
    width: calc(100% - 20px);
    height: 100%;
}
#imagepreview {
    border-radius: 8px;
}
.userimage {
    border-radius: 8px;
}
#promptboxinner > * {
    margin: 8px;
    margin-bottom: 6px;
}
.doshitbtn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 24px;
    z-index: 49999;
    background-color: rgba(255, 255, 255, 0);
    cursor: pointer;
    vertical-align: middle;
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translate(calc(-100% - 4px), -50%);
}
.doshitbtn:hover { 
    background-color: rgba(255, 255, 255, 0.1);

}
.doshitbtn:active { 
    background-color: rgba(255, 255, 255, 0.05);
}
#chatmenu {
    position: fixed;
    top: 0;
    left: 0;
    width: 200px;
    height: 150px;
    z-index: 40000;
    background-color: #272727;

    padding: 4px;
    border-radius: 10px;
    display: none;
    flex-direction: column;
    transition: box-shadow .4s ease-in-out;
}
#chatmenu > button {
    flex-grow: 1;
    text-align: left;
    background-color: transparent;
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 18px;
    transition-duration: 100ms;
    margin: 1px;
}
#chatmenu > button > svg {
    vertical-align: middle;
    margin: 10px;
}
#chatmenu_ren:hover {
    background-color: #ffffff2f;
}
#chatmenu_ren:active {
    background-color: #ffffff0c;
}
#chatmenu_cancel:hover {
    background-color: #ffffff2f;
}
#chatmenu_cancel:active {
    background-color: #ffffff0c;
}
#chatmenu_del:hover {
    background-color: #ff88882f;
}
#chatmenu_del:active {
    background-color: #ff88880c;
}

#sumbitai {
    width: 37px;
    height: 38px;
    border: none;
    border-radius: 24px;
    background-color: white;
    cursor: pointer;
    vertical-align: top;
}
#addimage {
    width: 37px;
    height: 38px;
    border: none;
    border-radius: 24px;
    background-color: white;
    cursor: pointer;
    vertical-align: top;
}
#prompt {
    border: none; 
    resize: none;
    width: calc(100% - 126px);
    margin-right: 0px;
    margin-left: 0px;
    vertical-align: middle;
    height: 3px; /* 21.7 */
    max-height: 200px;
    padding: 10px;
    padding-bottom: 12px;
    padding-top: 8px;
    font-size: 17px;
    color: white;
    background-color: transparent;
    outline: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: auto;
}
#promptboxinner {
    border-radius: 32px;
    transform: translate(0,calc(-100% + calc(21.7px * 2)));
    padding: 3px;
    background-color: #1a1a1a;
    backdrop-filter: blur(10px) brightness(1.1);
    border: 1px solid #8383837a;
}
#promptbox {
    position: absolute;
    left: 50%;
    width: 100%;
    max-width: 800px;
    transform: translate(-50%, 0);
    height: 70px;
    z-index: 300;
    padding-left: 40px;
    padding-right: 40px;
    

}
.hello {
    position: absolute;
    left: 50%;
    top: 40%;
    width: 700px;
    max-width: 100%;
    transform: translate(-50%, -100%);
    text-align: center;
    font-size: 24px;
    font-weight: 400;
    user-select: none;;
}
@media (min-width: 601px) {
    .hello {
        font-size: 30px;
    }
}
#modelselect {
    position: fixed;
    top: 24px;
    left: 70px;
    height: 30px;
    border: none;
    z-index: 900;
    background-color: transparent;
    font-size: 19px;
    color: rgb(255, 255, 255);
    text-align: left;

}
.messageAI {
    background-color: transparent;
    word-break: break-word;
    word-wrap: break-word;
    color: #ffffff;
    font-size: 17px;
    margin: 11px;
    font-weight: 400;
    font-family: font, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: left;
    max-width: 100%;
}
.messageUser {
    background-color: transparent;
    word-break: break-word;
    word-wrap: break-word;
    color: #ffffff;
    font-size: 17px;
    margin: 4px;
    padding: 8px;
    padding-left: 16px;
    padding-right: 16px;
    
    background-color: #ffffff13;
    border-radius: 16px;
    font-weight: 400;
    font-family: font, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: left;
    max-width: 90%;
    width: fit-content;
    float: right;
}
.line {
    width: 100%;
    display: block;
    margin-bottom: 10px;
    display: inline-block;
    overflow: auto;
    position: relative;
    height: fit-content;
}
.line > img {
    display: inline-block;
    width: 24px;
    height: 24px;
    
}
code {
    font-family: monospace !important;
}
pre {
    font-family: monospace !important;
}

#settings {
    background-color: #2f2f2f;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    border-radius: 16px;
    padding: 20px;
    transform: translate(-50%, -50%);
    box-shadow: 0px 0px 0px 10000px rgba(0, 0, 0, 0.5);
    z-index: 99999;
    display:none;
    transition: box-shadow 0.4s ease-in-out;
}
hr {
    border: none;
    border-top: 1px solid #4e4e4e;
    margin-top: 10px;
}
hr.less {
    border-bottom: 1px solid #3a3a3a;
}
@media (max-width: 599px) {
    #settings {
        position: fixed;
        top: 100%;
        left: 50%;
        width: calc(100% - 19px);
        height: 40%;
        min-height: 400px;
        border-radius: 10px;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        padding: 10px;
        transform: translate(-50%, -100%);
        z-index: 99999;
        display:none;
    }
    #sidebar {
        width: 80%;
    }
    #promptboxinner > * {
        margin: 4px;
        margin-bottom: 2px;
    }
    #prompt {
        margin-right: 0px;
        margin-left: 0px;
        width: calc(100% - 110px);
    }
    .sidebarbutton { 
        height: 46px;
        margin-bottom: 3px;
        border-radius: 15px;
    }
    .chats {
        height: calc(100% - 215px);
    }
    .small {
        font-size: 16px;
    }
    .doshitbtn {
        width: 48px !important;
        height: 48px !important;
        transform: translate(calc(-100% - 4px), -50%) !important;
    }
    .doshitbtn > svg {
        width: 32px !important;
        height: 32px !important;
    }

    #chatmenu {
        transform: translate(-50%, -100%);
        top: 100% !important;
        left: 50% !important;
        width: calc(100% - 19px);
        height: 3%;
        min-height: 250px;
        border-radius: 10px;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        padding: 10px;
        z-index: 99999;
        display:none;
    }
    

    #hamburger {
        top: 10px;
        left: 10px;
    }
    #modelselect {
        top: 14px !important;
        left: 60px !important;
    }
    #modelselect_menu > button {
        font-size: 18px !important;
        margin: 3px !important;
    }
    .desc {
        font-size: 14px !important;
    }
    #modelselect_menu > button > img, #modelselect_menu > button > svg {
        width: 30px;
        height: 30px;
    }
    #chatcontainer {
        position: absolute;
        top: 50px;
        width: 100% !important;
        height: calc(100% - 135px) !important;
    }
    .brand > img {
        float: right;
        margin: 10px;
        margin-top: 3px;
        margin-right: 0px;
    }
    #modelselect_menu {
        width: calc(100% - 3px) !important;
        left: 50% !important;
        top: 100% !important;
        transition: box-shadow 0.4s ease-in-out;
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
        max-height: 100%;
    }
    #maincontainer {
        width: 100% !important;
        height: 100% !important;
        top: 0 !important;
        left: 0 !important;
    }
    .copybtn {
        padding: 8px !important;
        margin-right: 6px !important;
    }
    .regenbtn {
        padding: 8px !important;
        margin-right: 6px !important;
    }
    #about {
        box-shadow: 0 0 0 1000px #ffffff83;
        height: 100%;
        z-index: 3000000;
        top: 100%;
        transform: translate(-50%, -100%);
        max-width: calc(100% - 12px);
        border-radius: 0;
        border-top-left-radius: 15px;
        border-top-right-radius: 15px;
        
    }
    
}
@media (min-width: 600px) {
    #settings {
        transform: translate(-50%, -50%) !important;
    }
}
@keyframes popup_mobile {
    0% {
        transform: translate(-50%, 100%);
    }
    100% {
        transform: translate(-50%, -100%);
    }
}
@keyframes popdown_mobile {
    100% {
        transform: translate(-50%, 100%);
    }
    0% {
        transform: translate(-50%, -100%);
    }
}
#applysettings {
    color: #ffffff;
    border: 1px solid #4e4e4e;
    background-color: transparent;
    outline: none;
    padding: 10px;
    padding-left: 16px;
    padding-right: 16px;
    border-radius: 160px;
    font-size: 16px;
    font-family: font;
    cursor: pointer;
}
#applysettings:hover {
    background-color: #424242;
}
#applysettings > svg {
    vertical-align: middle;
}
#nameinput {
    margin: 0;
    background-color: transparent;

    color: #ffffff;
    border: 1px solid #4e4e4e;
    outline: none;
    padding: 10px;
    padding-left: 16px;
    padding-right: 16px;
    width: 200px;
    border-radius: 10px;
    font-size: 16px;
    font-family: font;
}

.titlebar_settings {
    width: 100%;
    height: 24px;
    font-size: 24px;
    font-family: font;
    user-select: none;
    margin-bottom: 20px;
    position: relative;
}
#settings > h3 {
    font-weight: 100;
}
#close_settings {
    padding: 0;
    float: right;
    vertical-align: middle;
    width: 34px;
    height: 34px;
    border-radius: 100%;
    background-color: transparent;
    border: none;
    color: rgb(255, 255, 255);
    cursor: pointer;
    font-size: 16px;
    font-weight: 100;
    user-select: none;
}
.titlebar_settings > span {
    position: absolute;
    right: 50%;
    transform: translateX(50%);
}
#applysettings {
    position: absolute;
    bottom: 15px;
    right: 15px;
}
#close_settings:hover {
    background-color: #424242;
}
text {
    visibility: hidden;
}
label {
    cursor: pointer;
    font-family: font;
}
.grecaptcha-badge { 
    visibility: hidden !important;

}
.copybtn {
    color: #ffffff;
    border: none;
    background-color: transparent;
    outline: none;
    padding: 6px;
    border-radius: 10px;
    font-size: 16px;
    font-family: font;
    cursor: pointer;
    z-index: 100000;
    
    animation: appear-in 0.5s ease-in-out;
    margin: 3px;
    margin-top: 5px;
}
.copybtn:hover {
    background-color: #424242;
}
.copybtn > svg {
    vertical-align: middle;
}

.regenbtn {
    color: #ffffff;
    border: none;
    background-color: transparent;
    outline: none;
    padding: 6px;
    border-radius: 10px;
    font-size: 16px;
    font-family: font;
    cursor: pointer;
    z-index: 100000;
    margin: 3px;
    margin-top: 5px;
    margin-left: 0;
    animation: appear-in 0.5s ease-in-out;
}
.regenbtn:hover {
    background-color: #424242;
}
.regenbtn > svg {
    vertical-align: middle;
}
.blink {
    animation: blink .8s infinite ease-in-out;
    user-select: none;
    display: inline-block;
}

@keyframes blink { /* sshhhh this is not blinking cuz im lazy */
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(.9);
    }
    100% {
        transform: scale(1);
    }
}
@keyframes appear-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
@keyframes disappear {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}
#modelselect_menu {
    display: flex;
    flex-direction: column;
    width: 350px;
    padding: 3px;
    z-index: 9999;
    border-radius: 10px;
    position: fixed;
    top: 60px;
    left: 89px;
    background-color: #272727;
    box-shadow: #000000 0px 0px 15px -5px;
}

@media (max-height: 676px) {
    #modelselect_menu > button > img, #modelselect_menu > button > svg {
        width: 24px;
        height: 24px;
    }
}
@media (max-height: 516px) {
    .desc {
        display: none;
    }
}
#modelselect_menu > button {
    flex-grow: 1;
    color: #ffffff;
    border: none;
    background-color: transparent;
    outline: none;
    padding: 10px;
    font-size: 16px;
    font-family: font;
    cursor: pointer;
    text-align: left;
    margin: 2px;
    border-radius: 10px;
    transition-duration: 100ms;
}
#modelselect_menu > button.selectedmodel {
    background-color: #ffffff2f;
}
#modelselect_menu > button > img, #modelselect_menu > button > svg {
    vertical-align: middle;
    margin: 0;
    padding: 0;
    margin-right: 10px;
}

#modelselect_menu > button:hover {
    background-color: #ffffff1f;
}
#modelselect_menu > button:active {
    background-color: #ffffff0e;
}
.feature {
    float: right;
}
.tippy-box * {
    font-family: font, Helvetica, sans-serif;
    z-index: 199999;
}
.tippy-box {
    font-family: font, Helvetica, sans-serif;
    z-index: 199999;
}
.desc {
    font-size: 13px;
    color: #a1a1a1;
}
.messageUser > img {
    object-fit: contain;
    display: block;
    height: 100%;
    max-width: calc(100% - 40px);
    max-height: 50vh;
    border-radius: 10px;
    margin-top: 5px;
    margin-bottom: 5px;
}
.lt-toolbar__status-icon {
  color: #a855f7 !important; /* your purple accent */
  fill: #e5c9ff !important;  /* if it's an svg */
}

#note {
    float: right;
    width: 14px;
    height: 14px;
    background-color: rgb(255, 255, 255);
    margin: 4px;
    vertical-align: middle;
    border-radius: 8px;
    display: none;
}

#maincontainer, #modelselect {
    transition: all 0.2s ease-in-out;
}

#maincontainer, #chatcontainer, #sidebar, body, html {
    box-sizing: border-box;
}
html, body, .main {
    overflow: hidden;
}
#changelogs {
    width: 100%;
    height: calc(100% - 110px);
    overflow-y: scroll;
    word-break: break-word;
}
.modelbtn > img {
    border-radius: 5px;
}
.errorbox {
    width: calc(100% - 50px);
    height: fit-content;
    background-color: rgba(136, 57, 57, 0.555);
    border: 1px solid rgba(255, 110, 110, 0.555);
    padding: 20px;
    border-radius: 20px;
    font-family: Arial, Helvetica, sans-serif;
}
.errorbox > svg {
    vertical-align: middle;
    margin-right: 8px;
    margin-bottom: 4px;
}
.errorbox > div {
    margin-top: 0;
    margin-bottom: 0;
    font-family: monospace;
    word-wrap: break-word;
    color: #cccccc;
}
/*
If u are sick and twisted, enable this.
#modelselect_menu, #promptboxinner, #sidebar, button {
    backdrop-filter: blur(10px) brightness(1.1);
    background-color: transparent !important;
    border: 1px solid #8383837a;
    box-shadow: 0 0 55px #ffffff17 inset, 
    2px 2px 10px rgba(255, 255, 255, 0.144) inset, 
    -2px -2px 10px rgba(0, 0, 0, 0.295) inset,
    4px 4px 10px rgba(0, 0, 0, 0.479) !important;
    transition: transform 0.2s ease-in-out,
            background-color 0.2s ease-in-out;
}
button:hover {
    transform: scale(1.1);
    background-color: #ffffff49 !important;
}

* {
    fill: white !important;
    text-shadow: #000000 0 0 16px,
    #000000 0 0 16px,
    #000000 0 0 16px;
}
*/
.agentfeature {
    display: none; /* not implemented yet */
}