@import "/UI/Styles/styles.scss";

Chatbox {
    z-index: 100;
    flex-direction: column;
    width: 505px;
    font-size: 16px;
    transition: all 0.1s ease, border 0s ease;
    height: 230px;

    textentry {
        transition: opacity 0.1s ease;
        flex-shrink: 0;
        opacity: 0;
        max-height: 100px;
        border-radius: 4px;
        background-image: linear-gradient(to top, rgba(#7c7c7c, 0.05), rgba(#737473, 0.1));
        border: 1px #ffffff1f;
        backdrop-filter-blur: 20px;

        label {
            word-break: break-all;
            white-space: normal;
        }
    }

    .content-label {
        margin-left: 16px;
    }

    .placeholder,
    .content-label {
        font-size: 20px;
        font-family: $font-primary;
        color: $text-primary-color;
        text-shadow: 2px 2px 2px black;
        text-stroke: 3px black;
        margin: 5px;
    }

    .canvas {
        flex-direction: column;
        align-items: flex-start;
        overflow: scroll;
        height: 230px;
    }

    &.open {
        border-radius: 4 4 0 0;
        pointer-events: all;

        textentry {
            opacity: 0.9;
            width: 100%;
        }

        .canvas {
            ChatBoxEntry {
                transition: opacity 0.1s ease;
                opacity: 0.9;
            }
        }
    }
}
