@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: font, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
    margin: 0;
    padding: 0;
    
    color: #ffffff;
    height: 100dvh;
}
#sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    background-color: transparent;
    backdrop-filter: blur(20px) brightness(0.6);
    padding: 10px;
    box-sizing: border-box;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 4000;
}
.wallpaper {
    position: fixed;
    top: -400px;
    left: -400px;
    width: calc(100% + 800px);
    height: calc(100% + 800px);
    object-fit: cover;
    z-index: -3000;
    filter: blur(100px) brightness(0.6);
}
p {
    margin: 0;
    padding: 0;
}
.sidebarbutton {
    width: 100%;
    height: 37px;
    margin-bottom: 0px;
    border-radius: 8px;
    background-color: transparent;
    border: none;
    color: white;
    cursor: pointer;
    text-align: left;
    padding-left: 10px;
    font-size: 15px;
    font-family: font;
}
.current {
    background-color: #ffffff2f;
}
.sidebarbutton > svg {
    margin-right: 10px;
    vertical-align: middle;
}
#hamburger {
    background-color: transparent;
    position: fixed;
    top: 20px;
    left: 20px;
    width: 48px;
    height: 48px;
    border-radius: 100%;
    border: none;
    z-index: 6000;
}
#hamburger:hover {
    background-color: #ffffff2f;
}
.brand {
    width: 90%;
    height: 40px;
    margin-bottom: 37px;
    border-radius: 10px;
    background-color: transparent;
    border: none;
    color: white;
    text-align: left;
    padding-left: 6px;
}
.brand > img {
    float: right;
    margin: 16px;
}
.sidebarbutton:hover {
    background-color: #ffffff1f;
}
.sidebarbutton:active {
    background-color: #ffffff0c;
}
* {
    scroll-behavior: smooth;
}
.darken {
    color: #737994;
}
.small {
    font-size: 12px;
    margin: 10px;
    user-select: none;
}
.chats {
    height: calc(100vh - 227px);
    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: thin;
  scrollbar-color: #303030 #181818;
}

#about {
    z-index: 4000;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 420px;
    height: 190px;
    padding: 10px;
    transform: translate(-50%, -50%);
    background-color: #0e0e0e;
    padding: none;
    border: rgb(255, 255, 255) 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 0px 10000px rgba(0, 0, 0, 0.5);
}
.titlebar_about {
    width: calc(100% - 10px);
    height: 30px;
    color: rgb(255, 255, 255);
    text-align: center;
    padding: 2px;
    padding-left: 8px;
    font-size: 18px;
    font-smooth: never;
    font-family: "Segoe UI";
    text-align: left;
    margin-bottom: 3px;
    border-radius: 10px;
}
#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);
}
.zoomonhover:hover {
    transform: scale(8);
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 400;
    box-shadow: 0px 0px 0px 10000px rgba(0, 0, 0, 0.5);
    border-radius: 2px;
}
.zoomonhover {
    border-radius: 10px;
}
.bottomright {
    position: absolute;
    bottom: 10px;
    right: 10px;
}
#chat {
    position: absolute;
    top: 60px;
    left: 50%;
    width: calc(100% - 10px);
    max-width: 800px;
    height: calc(100% - 130px);
    transform: translate(-50%, 0);
    overflow-y: auto;
}
body {
    overflow: hidden;
}
.main {
    position: absolute;
    top: 0;
    left: 5%;
    width: 90%;
    height: 100vh;
}
#imagepreview {
    border-radius: 8px;
}
.userimage {
    border-radius: 8px;
    float: right;
}
#promptboxinner > * {
    margin: 8px;
    margin-bottom: 6px;
}
#sumbitai {
    width: 37px;
    height: 38px;
    border: none;
    border-radius: 24px;
    background-color: white;
    cursor: pointer;
}
#addimage {
    width: 37px;
    height: 38px;
    border: none;
    border-radius: 24px;
    background-color: white;
    cursor: pointer;
}
#prompt {
    border: none; 
    resize: none;
    width: calc(100% - 126px);
    margin-right: 0px;
    margin-left: 0px;
    vertical-align: top;
    height: 21.7px; /* 21.7 */
    max-height: 200px;
    padding: 10px;
    font-size: 17px;
    color: white;
    background-color: transparent;
    outline: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: auto;
}
@keyframes rainbow {
    from { background-position: 0 0; }
    to { background-position: 100vh 0; } /* move by the width of one repeat */
}
#promptboxinner {
    border-radius: 24px;
    transform: translate(0,calc(-100% + calc(21.7px * 2)));
    padding: 1px;
    background: linear-gradient(#181818, #181818), repeating-linear-gradient(to right, rgb(82, 82, 209), rgb(235, 50, 235), rgb(82, 82, 209));  
    background-origin: border-box;  
    background-clip: content-box, border-box;  
    background-size: 100vh 100%;
    animation-name: rainbow;  
    animation-duration: 3s;  
    animation-iteration-count: infinite;  
    animation-timing-function: linear;  
    box-shadow: rgba(160, 66, 222, 0.377) 0px 0px 50px -20px;
}
text { /* <text>\</text> */
    display: none;
}
#promptbox {
    position: fixed;
    left: 50%;
    width: calc(100% - 50px);
    max-width: 800px;
    transform: translate(-50%, 0);
    height: 70px;
    background-color: transparent;
    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: 28px;
    left: 89px;
    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;
    float: right;
    max-width: 90%;
    width: fit-content;
}
.line {
    width: 100%;
    display: block;
    margin-bottom: 10px;
    display: inline-block;
    overflow: auto;
}
.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;
}
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: 50%;
        left: 50%;
        width: calc(100% - 40px);
        height: calc(100vh - 40px);
        border-radius: 10px;
        padding: 10px;
        transform: translate(-50%, -50%);
        z-index: 99999;
        display:none;
    }
    #sidebar {
        width: 100%;
    }
    .sidebarbutton { 
        height: 46px;
        margin-bottom: 3px;
        border-radius: 15px;
    }
    .chats {
        height: calc(100% - 245px);
    }
    .small {
        font-size: 16px;
    }
    #promptbox {
        top: calc(100% - 70px) !important;
        bottom: 0 !important;
    }
}
#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: 8px;
    border-radius: 160px;
    font-size: 16px;
    font-family: font;
    cursor: pointer;
    z-index: 100000;
    margin-left: -10px;
    
    animation: appear-in 0.5s ease-in-out;
    margin: 3px;
}
.copybtn:hover {
    background-color: #424242;
}
.copybtn > svg {
    vertical-align: middle;
}

.regenbtn {
    color: #ffffff;
    border: none;
    background-color: transparent;
    outline: none;
    padding: 8px;
    border-radius: 160px;
    font-size: 16px;
    font-family: font;
    cursor: pointer;
    z-index: 100000;
    margin: 3px;
    margin-left: 0;
    animation: appear-in 0.5s ease-in-out;
}
.regenbtn:hover {
    background-color: #424242;
}
.regenbtn > svg {
    vertical-align: middle;
}
.blink {
    animation: blink 1s infinite ease-in-out;
    user-select: none;
}

@keyframes blink {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 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: 999;
    border-radius: 10px;
    position: fixed;
    top: 60px;
    left: 89px;
    backdrop-filter: blur(20px) brightness(0.6);
}
@media (max-width: 599px){
    #modelselect_menu { 
        left: 40px;
        top: 60px;
        border-radius: 20px;
        width: calc(100% - 80px);
        bottom: 40px;
        box-shadow: 0px 0px 0px 10000px rgba(0, 0, 0, 0.5);
    }
    #hamburger {
        top: 10px;
        left: 10px;
    }
    #modelselect {
        top: 18px;
        left: 65px;
    }
    #modelselect_menu > button {
        font-size: 18px !important;
        border-radius: 20px !important;
        margin: 5px !important;
    }
    .desc {
        font-size: 15px !important;
    }
    #modelselect_menu > button > img, #modelselect_menu > button > svg {
        width: 30px;
        height: 30px;
    }
}
@media (max-height: 676px) {
    .desc {
        font-size: 12px !important;
    }
    #modelselect_menu > button > img, #modelselect_menu > button > svg {
        width: 24px;
        height: 24px;
    }
}
@media (max-height: 616px) {
    .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;
}
.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;
}