:root {
    --bg: white;
    --compose-box-bg: hsl(0, 0%, 100%, 0.7);
    --fg: black;
    --my-message-bg: hsl(215, 90%, 50%);
    --my-message-fg: white;
    --response-bg: hsl(0, 0%, 91%);
    --link: hsl(215, 100%, 45%);
    --input-border: hsla(0, 0%, 0%, 20%);
    --info: hsl(120, 50%, 80%);
    --info-link: hsl(210, 100%, 30%);
    --error-fg: hsl(5, 70%, 50%);
    --code-bg: hsla(0, 0%, 100%, 0.7);
    --code-border: hsla(0, 0%, 0%, 0.15);
    --my-message-code-bg: hsla(0, 0%, 0%, 0.2);
    --my-message-code-border: hsla(0, 0%, 0%, 0.15);

    --chat-max-width: 50em;
}

html {
    -webkit-text-size-adjust: 100%;
    /* Prevent font scaling in landscape while allowing user zoom */
}

body {
    margin: 0;
    font-family: sans-serif;
    line-height: 135%;
    background-color: var(--bg);
    color: var(--fg);
    margin-bottom: calc(4em + env(safe-area-inset-bottom));
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

.container {
    max-width: 30em;
    margin: 0 auto;
    padding: 0.7em 1em;
}

#start-view {
    background-color: var(--info);
    padding: 1em;
    border-radius: 1em;
    display: inline-block;
    margin: 1em 0;
    font-size: 1.1em;
}

#start-view a {
    color: var(--info-link);
    text-decoration: underline;
}

#upload-form {
    margin: 2em 0;
}

input {
    font-size: 16px;
}


br {
    line-height: 200%;
}

a,
a:visited {
    text-decoration: none;
    color: var(--link);
}

a:hover {
    text-decoration: underline;
}

.disclaimer {
    font-size: 0.7em;
    line-height: 130%;
    margin: 0.35em 0;
}

footer {
    margin-top: 10px;
    font-size: 0.7em;
    opacity: 70%;
}

input[type=text],
input[type=number],
textarea {
    font-family: -apple-system, sans-serif;
    line-height: 120%;
    background-color: var(--bg);
    color: var(--fg);
    border: 1px solid var(--input-border);
    padding: 0.2em 0.5em;
    border-radius: 1em;
}

input[type=number] {
    width: 2.6em;
}

textarea {
    resize: none;
    height: auto;
}

button {
    background-color: var(--my-message-bg);
    color: var(--my-message-fg);
    border: none;
    padding: 0.5em 0.8em;
    border-radius: 19px;
    font-size: 1em;
}

label.button {
    display: inline-block;
    background-color: var(--my-message-bg);
    color: var(--my-message-fg);
    border: none;
    padding: 0.5em 0.8em;
    border-radius: 19px;
    font-size: 1em;
}

select {
    font-family: -apple-system, sans-serif;
    line-height: 120%;
    background-color: var(--bg);
    color: var(--fg);
    border: 1px solid var(--input-border);
    padding: 0.2em 0.5em;
    border-radius: 1em;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 7'><path fill='%23666666' d='M5 6.8s-.1 0 0 0c-.1 0-.1 0 0 0L1 2.8 2.2 1.6 5 4.4 7.8 1.6 9 2.8z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.5em center;
    background-size: 14px;
    padding-right: 2em;
    margin-top: 0.4em;
    font-size: 1em;
}

select:focus {
    outline: none;
}

.hidden {
    display: none !important;
}

.segment {
    margin: 1em 0;
}


@media (prefers-color-scheme: dark) {
    :root {
        --bg: hsl(215, 20%, 9%);
        --compose-box-bg: hsl(215, 20%, 9%, 0.7);
        --fg: hsl(0, 0%, 95%);
        --my-message-bg: hsl(215, 75%, 48%);
        --my-message-fg: white;
        --response-bg: hsl(215, 15%, 20%);
        --link: hsl(215, 100%, 65%);
        --input-border: hsla(0, 0%, 90%, 40%);
        --info: hsl(130, 30%, 25%);
        --info-link: hsl(220, 100%, 85%);
        --error-fg: hsl(5, 70%, 60%);
        --code-bg: hsla(0, 0%, 0%, 0.25);
        --code-border: hsla(0, 0%, 0%, 0.15);
        --my-message-code-bg: hsla(0, 0%, 0%, 0.25);
        --my-message-code-border: hsla(0, 0%, 0%, 0.15);
    }

    * {
        color-scheme: dark;
    }
}

.quick-prompts-container {}

.quick-prompt-item {
    display: inline-block;
    border-radius: 5em;
    background-color: #585858;
    padding: 0.2em;
    margin: 5px;
    cursor: pointer;
    border: 0;
    background-color: white;
    box-shadow: rgb(0 0 0 / 8%) 0 0 8px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 15px;
    transition: all 0.5s ease;
}

.quick-prompt-button {
    background-color: #ffffff00;
    color: #5c5c5c;
    border: none;
    padding: 0.5em 0.8em;
}

.slider {
    -webkit-appearance: none;
    width: auto;
    height: 4px;
    border-radius: 5px;
    background: #D5DBE1;
    outline: none;
    display: inline-block;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #000000;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.slider::-webkit-slider-thumb:hover {
    box-shadow: 0px 0px 0px 8px rgba(0, 0, 0, 0.16);
    transition: 0.3s ease-in-out;
}

.slider::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #000000;
    cursor: pointer;
}

.slider-div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #C6CACE;
    box-shadow: 0px 1px 2px 0px #1F1E241F;
}

.slidervalue {
    font-weight: 600;
}

.temperature-explain {
    display: inline-block;
    font-size: 0.8em;
    color: #5c5c5c;
    margin-left: 0.5em
}

.drop-area {
    position: fixed;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(211, 211, 211, 0.9);
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    z-index: 9999;
    display: none;
}

.drop-area.active {
    display: flex;
}

.drop-area:hover {
    background-color: rgba(255, 255, 255, 0.95);
}
