html,
body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    background-image: url("../images/gtv_background-9kn6TMH.png");
    ;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}


.chat-thread {
    max-height: 650px;
    overflow-y: auto;
    background: #f6f7f9;
    border-radius: 0 0 0.5rem 0.5rem;
}

.chat-row {
    display: flex;
    margin-bottom: 0.75rem;
}

.chat-row.is-right {
    justify-content: flex-end;
}

.chat-row.is-left {
    justify-content: flex-start;
}

.bubble {
    max-width: 78%;
    border-radius: 14px;
    padding: 0.65rem 0.8rem;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
    border: 1px solid rgba(0, 0, 0, .06);
}

.bubble-initiator {
    background: #dcf8c6;
}

.bubble-referent {
    background: #ffffff;
}

.bubble-unknown {
    background: #f1f3f5;
}

.bubble-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.bubble-author {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(0, 0, 0, .75);
}

.bubble-time {
    font-size: 0.75rem;
    color: rgba(0, 0, 0, .45);
    white-space: nowrap;
}

.bubble-text {
    font-size: 0.95rem;
    line-height: 1.35rem;
    color: rgba(0, 0, 0, .85);
    word-wrap: break-word;
}

.bubble-attachments {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 0.6rem;
}

.bubble-attachments .att {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .08);
    background: #fff;
}

.bubble-attachments .att img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

.bubble-attachments .att-caption {
    padding: 0.35rem 0.5rem;
    font-size: 0.75rem;
    color: rgba(0, 0, 0, .6);
    border-top: 1px solid rgba(0, 0, 0, .06);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bubble mark {
    padding: 0 0.15rem;
}

@media(max-width: 1200px) {
    .bubble {
        max-width: 92%;
    }

    .chat-thread {
        max-height: 520px;
    }
}