body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #343541;
}

@supports (-webkit-touch-callout: none) {

    #chatcontainer,
    #container {
        height: -webkit-fill-available !important;
    }

}

#container {
    height: 100vh;
    /* height: -webkit-fill-available; */
    background-color: #343541;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: auto;
}

#chatcontainer {
    height: 100%;
    /* height: -webkit-fill-available; */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    overflow: auto;
}

.header {
    padding: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    background-color: #343541;
    color: white;
    justify-content: center;

}

.header h1 {
    font-size: 64px;
    text-align: center;
    margin: 0;
}

.header p {
    font-size: 0.75em;
    margin: 0;
    font-style: italic;
}

#chat {
    width: 100%;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    flex-direction: column;
    align-items: center;
}

#chat a {
    color: #818f7b;
}

.chat-bubble-container {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.chat-gpt-bubble-container {
    background-color: #444654;
}

.wouter-bubble-container {
    background-color: #3b3c48;
    padding: 0.5em 0;
}


.profile-picture {
    width: 30px;
    height: 30px;
}

.profile-picture img {
    border-radius: 5px;
}

.chat-bubble {
    padding: 2em 1em;
    max-width: 80%;
}

.user-bubble {
    background-color: #343541;
    color: #ececf1;
    width: 75%;
}

.chat-gpt-bubble {
    align-self: flex-start;
    color: #d1d5db;
    width: 75%;
}

.wouter-bubble {
    align-self: flex-start;
    color: #d1d5db;
    width: 75%;
    padding: 1em 1em;
    margin-left: 30px;
}

.wouter-bubble:nth-of-type(2) {
    margin-left: 0;
}


#input-area {
    width: 100%;
    padding-top: 20px;
    padding-bottom: 5px;
    background-color: #343541;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

#input-container {
    align-items: center;
    display: flex;
    justify-content: center;
    margin-bottom: 0.5em;
}

#form {
    width: 80%;
}

#input-area input {
    width: calc(100% - 2em);
    background-color: #40414F;
    border: none;
    color: #ececf1;
    font-size: 1em;
    padding: 1em;
    border-radius: 5px;
}

#input-area i {
    color: #ececf1;
    margin: 0.5em;
    font-size: 1.5em;
    cursor: pointer;
}

.disclaimer {
    font-size: 0.7em;
    text-align: center;
    color: #757575;
    font-style: italic;
    padding: 0px 0.5em;
    margin: 0.3em;
}

.disclaimer a {
    color: #818f7b;

}

.loader {
    background: #000;
    background: radial-gradient(#222, #000);
    bottom: 0;
    left: 0;
    overflow: hidden;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 99999;
}

.loader-inner {
    bottom: 0;
    height: 60px;
    left: 0;
    margin: auto;
    position: absolute;
    right: 0;
    top: 0;
    width: 100px;
}

.loader-line-wrap {
    animation:
            spin 2000ms cubic-bezier(.175, .885, .32, 1.275) infinite
;
    box-sizing: border-box;
    height: 50px;
    left: 0;
    overflow: hidden;
    position: absolute;
    top: 0;
    transform-origin: 50% 100%;
    width: 100px;
}
.loader-line {
    border: 4px solid transparent;
    border-radius: 100%;
    box-sizing: border-box;
    height: 100px;
    left: 0;
    margin: 0 auto;
    position: absolute;
    right: 0;
    top: 0;
    width: 100px;
}
.loader-line-wrap:nth-child(1) { animation-delay: -50ms; }
.loader-line-wrap:nth-child(2) { animation-delay: -100ms; }
.loader-line-wrap:nth-child(3) { animation-delay: -150ms; }
.loader-line-wrap:nth-child(4) { animation-delay: -200ms; }
.loader-line-wrap:nth-child(5) { animation-delay: -250ms; }

.loader-line-wrap:nth-child(1) .loader-line {
    border-color: hsl(0, 80%, 60%);
    height: 90px;
    width: 90px;
    top: 7px;
}
.loader-line-wrap:nth-child(2) .loader-line {
    border-color: hsl(60, 80%, 60%);
    height: 76px;
    width: 76px;
    top: 14px;
}
.loader-line-wrap:nth-child(3) .loader-line {
    border-color: hsl(120, 80%, 60%);
    height: 62px;
    width: 62px;
    top: 21px;
}
.loader-line-wrap:nth-child(4) .loader-line {
    border-color: hsl(180, 80%, 60%);
    height: 48px;
    width: 48px;
    top: 28px;
}
.loader-line-wrap:nth-child(5) .loader-line {
    border-color: hsl(240, 80%, 60%);
    height: 34px;
    width: 34px;
    top: 35px;
}

@keyframes spin {
    0%, 15% {
        transform: rotate(0);
    }
    100% {
        transform: rotate(360deg);
    }
}



$colors:
hsla(337, 84, 48, 0.75)
hsla(160, 50, 48, 0.75)
hsla(190, 61, 65, 0.75)
hsla( 41, 82, 52, 0.75);
$size: 2.5em;
$thickness: 0.5em;

// Calculated variables.
$lat: ($size - $thickness) / 2;
$offset: $lat - $thickness;

.loader {
    position: relative;
    width: $size;
    height: $size;
    transform: rotate(165deg);

&:before,
&:after {
     content: '';
     position: absolute;
     top: 50%;
     left: 50%;
     display: block;
     width: $thickness;
     height: $thickness;
     border-radius: $thickness / 2;
     transform: translate(-50%, -50%);
 }

&:before {
     animation: before 2s infinite;
 }

&:after {
     animation: after 2s infinite;
 }
}

@keyframes before {
    0% {
        width: $thickness;
        box-shadow:
        $lat (-$offset) nth($colors, 1),
    (-$lat) $offset nth($colors, 3);
    }
    35% {
        width: $size;
        box-shadow:
        0 (-$offset) nth($colors, 1),
    0   $offset  nth($colors, 3);
    }
    70% {
        width: $thickness;
        box-shadow:
        (-$lat) (-$offset) nth($colors, 1),
    $lat $offset nth($colors, 3);
    }
    100% {
        box-shadow:
        $lat (-$offset) nth($colors, 1),
    (-$lat) $offset nth($colors, 3);
    }
}

@keyframes after {
    0% {
        height: $thickness;
        box-shadow:
        $offset $lat nth($colors, 2),
        (-$offset) (-$lat) nth($colors, 4);
    }
    35% {
        height: $size;
        box-shadow:
        $offset  0 nth($colors, 2),
        (-$offset) 0 nth($colors, 4);
    }
    70% {
        height: $thickness;
        box-shadow:
        $offset (-$lat) nth($colors, 2),
    (-$offset) $lat nth($colors, 4);
    }
    100% {
        box-shadow:
        $offset $lat nth($colors, 2),
        (-$offset) (-$lat) nth($colors, 4);
    }
}



.progress-6 {
    width:100px;
    height:10px;
    border-radius: 20px;
    color: white;
    border:2px solid;
    position: relative;
}
.progress-6::before {
    content:"";
    position: absolute;
    margin:2px;
    inset:0 100% 0 0;
    border-radius: inherit;
    background: white;
    animation:p6 2s infinite;
}
@keyframes p6 {
    100% {inset:0}
}