:root {
    background-color: gray;
    font-size: 16px;
    font-family: 'Noto Sans', sans-serif;
}

#fab {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    right: 1em;
    bottom: 1em;
    cursor: pointer;
    background-color: black;
    width: 4em;
    height: 4em;
    border-radius: 2em;
}

#fab::after {
    position: absolute;
    font-family: 'Material Symbols Outlined';
    content: 'help_outline';
    color: white;
    font-size: 1.5em;
}

#knopka {
    display: flex;
    flex-direction: column;
    position: fixed;
    width: 100%;
    max-height: 90%;
    bottom: 0;
    background-color: white;
    border-radius: 0.75em 0.75em 0 0;
}

#textfield {
    display: block;
    flex-shrink: 0;
    overflow: scroll;
    resize: none;
    height: auto;
    max-height: 20em;
    margin: 1em 1em 0 1em;
    padding: 1em;
    border: 0.1em solid lightgrey;
    border-radius: 0.50em;
    line-height: 1.3em;
}

#send-btn {
    flex-shrink: 0;
    height: 3.2em;
    margin: 1em;
    border: none;
    border-radius: 0.75em;
    background-color: #fd3;
}

#close-btn {
    position: absolute;
    top: 1em;
    right: 1em;
    cursor: pointer;
}

#close-btn::before {
    font-family: 'Material Symbols Outlined';
    content: 'close';
}

#messages {
    flex: 1;
    overflow: scroll;
    scroll-behavior: smooth;
}

.msg {
    display: flex;
    position: relative;
    margin: 0 1em 0 1em;
    animation: 1s ease-out 0s 1;
}

.msg.ces a {
    margin-right: 1em;
}

.msg:first-child {
    margin-top: 1em;
}

.msg:last-child {
    margin-bottom: 1em;
}

blockquote {
    display: inline-block;
    position: relative;
    max-width: 80%;
    padding: 1em;
    margin-bottom: 0.25em;
    border-radius: 0.75em;
    line-height: 1.3em;
}

.incoming blockquote {
    background-color: rgba(0, 0, 0, 0.05);
}

.outcoming {
    justify-content: flex-end;
}

.outcoming blockquote {
    background-color: #fd8;
}

@media (width >=560px) {
    #knopka {
        max-height: 80%;
        width: 24em;
        bottom: 2em;
        right: 2em;
        border-radius: 0.75em;
    }
}