@font-face {
    font-family: 'Product Sans';
    src: url(assets/ProductSansRegular.otf);
}

::-webkit-scrollbar {
    width: 0.5em;
}

::-webkit-scrollbar-thumb {
    background: white;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #acacac;
}
::selection {
    background: white;
    color: black;
}

* {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Product Sans';
    background-color: black;
    color: white;
    margin: 0;
    font-variant-ligatures: none;
}

nav {
    position: absolute;
    top: 0;
    width: 100%;
    background: #000000b8;
}

#modelSelect {
    position: relative;
}

.account {
    position: absolute;
    right: 1em;
    top: 0.75em;
}

chatBox {
    display: block;
    height: 90vh;
    overflow-y: auto;
    width: 100%;
    margin: auto;
}

pre {
    background: #111111;
    padding: 1em;
    border-radius: 0.8em;
    overflow: auto;
}

pre code {
    border-radius: 0;
    padding: 0;
}

code {
    background: #111111;
    border-radius: 0.4em;
    padding: 0.2em;
}
table {
    width: 100%;
    max-width: 1000px;
    border-collapse: collapse;
}
thead {
    border-bottom: 0.2em solid;
}
table th, table td {
    padding: 0.5em;
}
table tr {
    border-bottom: 0.1em solid;
}


#chat {
    max-width: 1000px;
    margin: auto;
}

.requests {
    text-align: left;
    background: #323232d9;
    padding: 0.5em 1em;
    border-radius: 1em;
    width: fit-content;
    max-width: 50%;
    margin: 0.5em 0.5em 0.5em auto;
}

.responses {
    margin: 0.5em;
}

.input {
    text-align: center;
    position: relative;
    display: flex;
    justify-content: center;
    gap: 0.2em;
    background: #000000eb;
    margin-bottom: 40vh;
    z-index: 2;
}

#msg {
    all: unset;
    text-align: left;
    padding: 0.5em 1em;
    border: 0.1em solid;
    border-radius: 1em 0 0 1em;
    width: 60%;
    height: 20px;
    max-width: 850px;
    max-height: 150px;
    min-height: 20px;
    transition: 0.3s;
}

#msg:disabled{
    cursor: not-allowed
}

#send {
    all: unset;
    background-color: white;
    color: black;
    width: 15%;
    max-width: 150px;
    border: 0.1em solid white;
    border-radius: 0 1em 1em 0;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    justify-content: center;
}

#send:hover {
    background-color: transparent;
    color: white;
}

#msg:hover {
    background-color: #202020d9;
}

#send:focus {
    font-weight: bold;
}

#think {
    animation: think 1s infinite;
    background: linear-gradient(270deg, #ff6f00, #ff4081, #4caf50, #00b0ff, #9c27b0, #ffeb3b, #32cd32, #ff4500, #00e5ff);
    background-size: 400% 400%;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    font-weight: bold;
    user-select: none;
}

@keyframes think {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}

.btn {
    all: unset;
    padding: 0.5em;
    border: 0.1em solid;
    border-radius: 0.8em;
    cursor: pointer;
    background: white;
    color: black;
    transition: 0.3s;
}

.btn:hover {
    font-weight: bold;
    background: transparent;
    color: white;
}

#log {
    border: 0.1em solid;
    padding: 0 0.4em;
    border-radius: 0.8em;
    cursor: pointer;
    transition: 0.3s;
    display: inline-block;
    margin-top: -0.5em;
    width: max-content;
}

#log:hover {
    color: black;
    background-color: white;
}

.picture {
    position: relative;
    border-radius: 50%;
    display: inline-block;
}

.avatar {
    border-radius: 50%;
    object-fit: cover;
    width: 1.5em;
    height: 1.5em;
    border: 0.1em solid;
    vertical-align: middle;
}

#status {
    display: inline-block;
    padding: 0 0.2em;
    vertical-align: middle;
}

#account {
    display: none;
    transition: 0.3s;
    position: absolute;
    min-width: 4em !important;
    text-align: center;
}

#login:hover {
    color: black;
    border: 0.1em solid white;
    background-color: white;
    padding: 0.2em;
}

#login {
    all: unset;
    color: white;
    border: 0.1em solid;
    padding: 0.2em 0;
    transition: 0.3s;
    cursor: pointer;
    width: 100%;
    border-radius: 0.5em;
    background: #000000b8;
    margin: 0.1em 0;
}

.show {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    transform: translate(-0.5em, 0.2em);
}

@keyframes text {
    10% {
        transform: translateY(-102%);
    }

    25% {
        transform: translateY(-100%);
    }

    35% {
        transform: translateY(-202%);
    }

    50% {
        transform: translateY(-200%);
    }

    60% {
        transform: translateY(-302%);
    }

    75% {
        transform: translateY(-300%);
    }

    85% {
        transform: translateY(-402%);
    }

    95% {
        transform: translateY(-400%);
    }

    100% {
        transform: translateY(-502%);
    }
}
@keyframes splash {
    0% {
        left: -50%;
        opacity: 0;
    }

    50% {
        left: 50%;
        opacity: 1;
    }

    100% {
    left: 150%;
        opacity: 0;
    }
}
.words {
    overflow: hidden;
    position: relative;
    height: 3em;
}

.word {
    display: block;
    height: 100%;
    padding: 0 0.2em 0 0;
    animation: text 4s infinite;
}

.options {
    display: none;
    position: absolute;
    top: 2em;
    left: 1em;
    background: #111111;
    border-radius: 0.8em;
    border: 1px solid #333;
    list-style: none;
    padding: 0;
    max-width: 500px;
    z-index: 300;
}

.options li:nth-child(3){
    position: relative;
    overflow: hidden;
}
.options li:nth-child(3):before {
    content: "Experimental";
    position: absolute;
    top: 50%;
    left: -50%;
    transform: translate(-50%, -50%);
    background: red;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    border-radius: 0.8em;
}

.options li:nth-child(3):hover:before {
    animation: splash 1.5s forwards;
}
.selected {
    margin-left: 1em;
    cursor: pointer;
    user-select: none;
    border-bottom: 0.1em solid transparent;
    width: fit-content;
    transition: 0.3s;
}

.selected:hover {
    border-bottom: 0.1em solid;
}
.selected small {
    font-size: 0;
    transition: 0.3s;
}
.selected:hover small {
    font-size: initial;
}

.selected.open::after {
  transform: translateY(-50%) rotateZ(180deg);
}
.selected::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2em;
    height: 2em;
    transition: 0.3s;
    background: url("data:image/svg+xml;utf8,<svg fill='white' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>") no-repeat center / contain;
}

.options li {
    padding: 10px 14px;
    cursor: pointer;
    color: #ddd;
    border-radius: 0.8em;
}

.options li:hover {
    background: #1f1f1f;
}

#restore{
    position: absolute; 
    width: 100%; 
    bottom: 10vh; 
    text-align: center; 
    z-index: 2;
    background: rgba(0, 0, 0, 0.83);
    padding: 0 0 1em 0;
}
a {
    color: #4da3ff;
    text-decoration: none;
}
a:hover{
    text-decoration: underline;
}
.modelSelector {
    position: relative;
    display: inline-block;
    font-family: "Product Sans" !important;
    width: 8em;
}
#customise{
    position: fixed;
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 200;
    background: rgba(0, 0, 0, 0.83);
    padding: 1em;
    border: 0.1em solid;
    border-radius: 0.8em;
    width: 90%;
    max-width: 600px;
    display: none;
    max-height: 95vh;
    overflow: auto;
    box-sizing: border-box;
}
        .modelSelector select {
            font-family: "Product Sans";
            width: 100%;
            padding: 1em;
            color: #eaeaea;
            background: rgba(0, 0, 0, 0.83);
            border: 1px solid #2a2a2a;
            border-radius: 10px;
            appearance: none;
            outline: none;
            cursor: pointer;
            transition: border 0.2s ease, box-shadow 0.2s ease;
        }

        .modelSelector select:hover {
            border-color: #3a3a3a;
        }

        .modelSelector select:focus {
            border-color: white;
            box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
        }

        .modelSelector::after {
            content: "▾";
            position: absolute;
            top: 50%;
            right: 0.2em;
            font-size: 1.5em;
            transform: translateY(-50%);
            pointer-events: none;
        }

        .slider {
            width: 50%;
            position: relative;
            margin: 0 auto;
        }

        .slider label {
            display: block;
            margin-bottom: 6px;
            font-size: 14px;
        }

        .slider input[type="range"] {
            appearance: none;
            width: 100%;
            height: 6px;
            background: #242428;
            border-radius: 6px;
            outline: none;
            cursor: pointer;
        }


        .slider input[type="range"]::-webkit-slider-runnable-track {
            height: 6px;
            background: #3a3a3a;
            border-radius: 6px;
        }

        .slider input[type="range"]::-moz-range-track {
            height: 6px;
            background: #3a3a3a;
            border-radius: 6px;
        }


        .slider input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 16px;
            height: 16px;
            background: white;
            border-radius: 50%;
            border: none;
            margin-top: -5px;
            transition: background 0.2s ease;
        }

        .slider input[type="range"]::-moz-range-thumb {
            width: 16px;
            height: 16px;
            background: #5b8cff;
            border-radius: 50%;
            border: none;
            transition: background 0.2s ease;
        }

        .slider input[type="range"]:hover::-webkit-slider-thumb {
            background: rgb(165, 165, 165);
        }

        .slider input[type="range"]:hover::-moz-range-thumb {
            background: rgb(165, 165, 165);
        }

        #preferences {
            all: unset;
            border: 0.1em solid;
            display: block;
            width: 90%;
            position: relative;
            border-radius: 0.8em;
            margin: 0 auto;
            text-align: left;
            padding: 0.5em;
        }
.contrast{
    background: transparent;
    color: white;
}
.contrast:hover{
    background: white;
    color: black;
}