/* Chat */

.chat__messages {
    flex: 1 1 auto;
    overflow-y: auto;
    height: 0; /* height is needed for scroll to work */
}

.chat__input {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.chat__input input {
    flex-grow: 2;
}

.chat__muted-message {
    color: red;
    margin-top: 5px;
}

.message {
    display: flex;
    flex-direction: column;
    background-color: var(--block-bg-light-color);
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    border-bottom-left-radius: 20px;
    margin-bottom: 10px;
    padding: 5px 10px;
    position: relative;
    margin-left: 10px;
    margin-right: 10px;
}

.message:before {
    content: "";
    width: 0px;
    height: 0px;
    position: absolute;
    border-left: 10px solid transparent;
    border-right: 10px solid var(--block-bg-light-color);
    border-top: 10px solid var(--block-bg-light-color);
    border-bottom: 10px solid transparent;
    left: -11px;
    top: 0px;
}

.message__sender {
    font-size: 1rem;
    font-weight: bold;
}

.message__sender::after {
    content: ":";
}

.message__content {
    max-width: 100%;
    word-wrap: break-word;
    font-size: 1rem;
}

.message__time {
    font-size: 0.8rem;
    color: gray;
    align-self: flex-end;
}
