@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&family=Red+Hat+Mono:ital,wght@0,300..700;1,300..700&family=Red+Hat+Text:ital,wght@0,300..700;1,300..700&display=swap');

body {
    margin: 0;

    width: 100vw;
    height: 100vh;

    font-family: "Red Hat Display";
}

code {
    font-family: "Red Hat Mono";
    font-weight: 500;
}

#toast {
    z-index: 2;
    position: absolute;
    top: 20px;

    display: none;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    padding: 10px 15px;
    border-radius: 999px;
    color: rgb(37, 18, 18);

    background-color: rgb(205, 10, 10);
}

#toast.show {
    display: flex;
    animation: fadeIn 0.4s ease-out forwards;
}

#toast.quit {
    display: flex;
    animation: fadeIn 0.4s ease-out reverse forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#toast>p {
    margin: 0;
}

#toast>button {
    background-color: darkred;
    color: rgb(57, 0, 0);
    border: none;
    border-radius: 999px;
    padding: 3px 5px;
    margin-left: 5px;
}

#logo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#name {
    font-weight: 900;
    font-size: 64px;

    margin: 0;
}

#subtitle {
    margin: 0 0 40px 0;
}

#chat {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    width: 100%;
    height: 100%;
}

#input-box {
    display: flex;
    justify-content: stretch;

    width: clamp(80px, 80%, 800px);

    border: 1px black solid;
    border-radius: 999px;
    margin-top: 10px;
    margin-bottom: 100px;
}

#input-box>input {

    margin: 10px 0 10px 10px;
    width: 100%;

    border: none;
    outline: none;
}

#input-box>button {
    padding: 0;
    background-color: black;
    border: 2px white solid;
    border-radius: 999px;
    aspect-ratio: 1;
    color: white;
    font-size: 24px;
    transition: transform ease-in-out 100ms;
}

#input-box>button:hover {
    background-color: #4d4d4d;
    transform: rotate(-45deg);
}

#messages {
    display: flex;
    flex-direction: column;
    align-items: end;
    width: clamp(80px, 80%, 800px);
    overflow-y: auto;
    overflow-x: hidden;
}

.message {
    background-color: #2e2e2e;
    padding: 7px 12px;
    border-radius: 999px 999px 200px 999px;
    margin: 15px 0;
    font-family: "Red Hat Text";
    color: white;
    margin-top: 10px;
}
.message.bot {
    background-color: transparent;
    border-top: 1px lightgrey solid;
    border-radius: 0;
    box-sizing: border-box;
    width: 100%;
    color: black;
}
.message.bot.greyed-pulse {
    animation: fadeIn 0.5s ease-out infinite alternate;
}
@keyframes fadeIn {
    from {
        color: rgb(72, 72, 72);
    }

    to {
        color: rgb(205, 205, 205);
    }
}