﻿#maincontainer {
    flex-wrap: nowrap;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    overflow-x: hidden;
    overflow-y: hidden;
}

.brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
    color: white;
    font-size:2.2em;
    text-decoration:none;
}
.brand a {
    white-space: normal;
    text-align: center;
    word-break: break-all;
    color: white;
    text-decoration: none;
}
.brand a:hover {
    color:crimson;
}

.brand img {
    height:1.5em;
    position:relative;
    top:-7px;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    height: 100vh;
    height: 100dvh;
}

.nav-link {
}

.nav-link:hover {
    color:crimson;
}

/*#sidebar ::-webkit-scrollbar {
    width: 1em;
    
}

#sidebar ::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    border-radius: 0.25em;
}

#sidebar ::-webkit-scrollbar-thumb {
    background-color: darkgrey;
    outline: 1px solid slategrey;
    border-radius: 0.25em;
}*/

::-webkit-scrollbar {
    width: 0.7rem;
}

::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    border-radius: 0.25em;
}

::-webkit-scrollbar-thumb {
    background-color: darkgrey;
    outline: 1px solid slategrey;
    border-radius: 0.25em;
}

.bot {
    display:flex;
    width:80%;
    align-self:end;
    margin:0.5em;
}
.user {
    display: flex;
    width: 80%;
    align-self: start;
    margin: 0.5em;
}

/* .ginnel-question {
    font-size:large;
} */

#responses {
    height:100%; 
    max-height:100%;
    overflow-y:auto;
}

#responses .card-body {
    white-space:pre-line;
}
#responses .card-body ul,ol {
    white-space: normal;
}

#responses .card-body p:last-child {
    margin-bottom:0;
}

#responses .card-title {
    margin-bottom:0;
}

input[aria-invalid='true'] {
    border-color: red;
}

.card[data-muted='true'] {
    color:lightgrey;
}

.card[data-muted='true'] i {
    color: lightgrey;
}

.card[data-muted='true'] i:hover {
    color: blue;
}

.card[data-role='Command'] .card-body {
    /*color:darkgoldenrod;*/
    color:rebeccapurple;
}

.card[data-role='Message'] .card-body {
    color: rebeccapurple;
}

.card[data-role='Command'] i.bi-mic-mute {
    display: none;
}
.card[data-role='Message'] i.bi-mic-mute {
    display:none;
}

.card[data-role='Image'] i.bi-mic-mute {
    display:none;
}

#responses .card-body {
    padding-top: 0;
    padding-bottom: 0;
}
#responses .card-body .card-body {
    padding-bottom: 0;
    overflow-x:auto;
}

#responses .usage {
    display:inline;
    font-size:x-small;
    color:grey;
    padding-right:2px;
}

#responses .usage:hover {
    color: black;
    font-size: small;
}

#responses .usage .prompt, .response, .total {
    color: darkblue;
}

#responses .metadata {
    display: inline;
    font-size: x-small;
    color: grey;
    padding-right: 2px;
}

#responses .metadata:hover {
    color: black;
    font-size: small;
}

#responses .metadata .prompt,.model,.response,.total {
    color: darkblue;
}

#sidebar {
    width:290px;
    z-index:100;
}
main {
    overflow-y: auto;
}
@media (max-width: 768px) {
    #sidebar {
        width: 100%;
    }
    #maincontainer {
        /*overflow-y:auto;*/
    }

    main {
        overflow-y:auto;
    }
    .brand {
        width:100%;
        display:flex;
    }

    .brand a {
        width:100%;
    }

    #sidebar i {
        /*font-size:2.2rem;*/
        cursor:pointer;
    }
}

#sidebar.open .sidebarmenu.d-md-flex {
    display: flex!important;
}
#sidebar.open .navbar-nav {
    display: flex !important;
}

#sidebar.open .sidebarmenu {
    display:block!important;
}

#sidebar.open {
    flex-direction: column !important;
    height: 100vh;
    height: 100dvh;
}

#sidebar.open #chatlist {
    height:100%;
}
#sidebar .close {
    visibility:hidden;
}
#sidebar.open .close {
    visibility:visible
}


#tokensvalue {
    display: inline-block;
    width: 50px;
}

.dropdown-menu p {
    font-size: smaller;
    padding: 0 1rem;
    white-space: break-spaces;
    text-wrap: balance;
}

#modelparameters .dropdown-menu {
    max-width:400px;
    background-color:#fcfcfc;
}
#modelcontrols select {
    min-width:fit-content;
}

.outputsettingspreview {
    display:inline;
    font-size:x-small;
    color:grey;
    padding-right:3rem;
    padding-bottom:0rem;
}
.outputsettingspreview span {
    color:darkblue;
}

#responses .filelinks a {
    margin-right:0.5em;
}