body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    background: #f0f0f0;
    display: grid;
    place-content: center;
    height: 100dvh;
}

main {
    width: 400px;
    max-width: 100%;
    height: 70vh;

    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 8px;
    margin-bottom: 16px;

    overflow-y: auto;
    scroll-behavior: smooth;
}

.logoContainer{
    display: flex;
    justify-content: center;
}

.logo{
    margin-top: 0rem;
    margin-bottom: -3rem;
    z-index: 10;
    border: 1px solid #000;
    border-radius: 999px;


}

ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 0;
    }

    .message {
    display: flex;
    flex-direction: column;
    margin: 4px 0;
    padding: 15px 15px;

    span {
        width: 56px;
        height: 36px;
        background: #eee;
        font-size: 12px;
        font-weight: 500;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 999999px;
        text-align: center;
        line-height: 1rem;
    }

    p {
        border-radius: 4px;
        padding: 4px 8px;
        margin-top: 4px;
    }

    &.user {
        align-self: flex-end;
        align-items: flex-end;
        z-index: 9;
        span,
        p {
        background: rgb(219, 236, 255);
        }
    }

    &.bot {
        align-self: flex-start;
        z-index: 9;
        span,
        p {
        background: rgb(198, 255, 220);
        }
    }
}

form {
    display: flex;

    input {
        border-radius: 999999px;
        flex-grow: 1;
        border: 0;
        padding: 8px;
        margin-right: 8px;
        border: 1px solid #ccc;
    }

    button {
        background: #09f;
        border: 0;
        color: white;
        border-radius: 6px;
        cursor: pointer;
        padding: 8px;
        transition: background .3s ease;

        &[disabled] {
            background: #ccc;
            opacity: .6;
            pointer-events: none;
        }

        &:hover {
            background: rgb(0, 104, 173);
        }
    }
}

small {
    font-size: 10px;
    color: #555;
    position: fixed;
    bottom: 10px;
    left: 0;
    right: 0;
    margin: auto;
    width: 400px;
}

.loading {
    text-align: center;
    display: flex;
    justify-content: center;
    height: 100%;
    align-items: center;
    flex-direction: column;
    margin-top: 50%;

    i {
        pointer-events: none;
        width: 2.5em;
        height: 2.5em;
        border: 0.4em solid transparent;
        border-color: #eee;
        border-top-color: #3E67EC;
        border-radius: 50%;
        animation: loadingspin 1s linear infinite;
    }

    h4 {
        color: #444;
        margin-bottom: 8px;
    }

    h5 {
        font-weight: 400;
        margin: 0;
        font-size: 10px;
        opacity: .4;
    }
}

@keyframes loadingspin {
    100% {
        transform: rotate(360deg)
    }
}