/* style sheets */
.ui-chatbox {
    position: fixed;
    bottom:20px;
    padding: 2px;
    background:  #CCCCCC;
}

.ui-chatbox-titlebar {
    padding: 3px;
    cursor: pointer;
}

.ui-chatbox-content {
    padding: 0px;
    margin: 0px;
    border: 0px;
}

.ui-chatbox-log {
    padding: 3px;
    height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
    background: #FFFFFF;
    width: 300px;
    border: solid 1px #EEE;
    display: flex;
    flex-direction: column;
}

.ui-chatbox-input {
    padding: 3px;
    border-top: 1px solid grey;
    overflow: hidden;
}

.ui-chatbox-input-box {
    margin: 5px;
    border: 2px solid lightgrey;/* #6699FF */
    padding: 2px;
    height: 50px;
}

.ui-chatbox-icon {
    float: right;
}

.ui-chatbox-input-focus {
    border-color: #6699FF;
}

/*.ui-chatbox-msg {
    
    clear: both;
    white-space: pre-wrap; 
    white-space: -moz-pre-wrap; 
    white-space: -pre-wrap; 
    white-space: -o-pre-wrap; 
    word-wrap: break-word; 
    border-radius: 20px;
    padding: 3px 10px;
    margin-bottom:10px;
}

.mine {
    float: right;
    background-color: rgb(0, 120, 254);
    color:white;
    margin-left:50px;
}

.yours {
    float: left;
    background-color: #EEE;
    margin-right:50px;
}*/


.messages {
    display: flex;
    flex-direction: column;
}

.ui-chatbox-msg {
    border-radius: 20px;
    padding: 2px 15px;
    margin-bottom: 5px;
    display: inline-block;
}

.yours {
    align-items: flex-start;
}

    .yours .ui-chatbox-msg {
        margin-right: 25%;
        background-color: #EEE;
        position: relative;
    }

        .yours .ui-chatbox-msg:before {
            content: "";
            position: absolute;
            z-index: 0;
            bottom: 0;
            left: -8px;
            height: 20px;
            width: 20px;
            background: #EEE;
            border-bottom-right-radius: 15px;
        }

        .yours .ui-chatbox-msg:after {
            content: "";
            position: absolute;
            z-index: 1;
            bottom: 0;
            left: -10px;
            width: 10px;
            height: 20px;
            background: white;
            border-bottom-right-radius: 10px;
        }

.mine {
    align-items: flex-end;
}

    .mine .ui-chatbox-msg {
        color: white;
        margin-left: 25%;
        background: rgb(0, 120, 254);
        position: relative;
    }

        .mine .ui-chatbox-msg:before {
            content: "";
            position: absolute;
            z-index: 0;
            bottom: 0;
            right: -8px;
            height: 20px;
            width: 20px;
            background: rgb(0, 120, 254);
            border-bottom-left-radius: 15px;
        }

        .mine .ui-chatbox-msg:after {
            content: "";
            position: absolute;
            z-index: 1;
            bottom: 0;
            right: -10px;
            width: 10px;
            height: 20px;
            background: white;
            border-bottom-left-radius: 10px;
        }

