.bubble-left {
    float: left;
    text-align: left;
    color: #000000;
    clear: both;
    background: #7ab1cf;/* #B7CC90;*/
}

/*.bubble-left:hover {
    background: #e8e8e8; /*#A9C07F;
}*/

.bubble-left:before {
    content: " ";
    display: block;
    position: relative;
    top: 0px;
    left: -11px;
    height: 13px;
    width: 13px;
    background: inherit; /*#B7CC90*/
    z-index: 100;

    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

.bubble-right {
    float: right;
    clear: both;
    color: #000000;
    text-align: left;
    background: #a9cee8;
    width: 50%;
}

/*.bubble-right:hover {
    background: #82A6C1;
}*/

.bubble-right:before {
    content: " ";
    display: block;
    position: relative;
    top: 0px;
    right: -99.8%;
    height: 13px;
    width: 13px;
    background: inherit; /*#90B2CC*/
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
}
.message-legend {
    margin-top: 4px;
    margin-bottom: 2px;
}
.message-container {
    display: block;
    margin: auto;
    /*margin-top: 2.5%;*/
    height: auto;/*630px; Global Height of Widget*/
    width: auto; /*Global Width of Widget*/
    background: #E1E1E1;
    /*box-shadow: 0px 0px 50px #1E1E1E;*/
}

.message-container > .message-north {
    width: 100%;
    height: 80%;

    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.message-container > .message-south {
    width: 100%;
    height: 20%;
    padding: 3px 0;

    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.message-container > .message-north > img.replytomessage {
    width: 48px;
    height: 48px;
    cursor: pointer;
}
.message-container > .message-north > img.editmessage {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.message-container > .message-north > .message-user-list {
    list-style-type: none;
    float: left;
    clear: left;
    width: 25%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: scroll;
}

.message-container > .message-north > .message-user-list a {
    display: block;
    padding: 10px;
    height: 40px; /*Keep height same as img thumbnail height*/
    text-decoration: none;
    color: #313131;

    -webkit-transition: all ease .2s;
    -moz-transition: all ease .2s;
    -ms-transition: all ease .2s;
    -o-transition: all ease .2s;
    transition: all ease .2s;
}

.message-container > .message-north > .message-user-list a:hover {
    background: #9E9E9E;

    -webkit-transition: all ease .2s;
    -moz-transition: all ease .2s;
    -ms-transition: all ease .2s;
    -o-transition: all ease .2s;
    transition: all ease .2s;
}

.message-container > .message-north > .message-user-list a .user-img {
    display: block;
    float: left;
    height: 40px;
    width: 40px;
    background: #6A8BBA;
}

.message-container > .message-north > .message-user-list a .user-title {
    margin-left: 5px;
}

.message-container > .message-north > .message-user-list a .user-desc {
    padding-left: 5px;
    padding-top: 5px;
    font-size: 12px;
    color: #5A5A5A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-container > .message-north > .message-user-list a.active {
    background: #BFBFBF;
}

.message-container > .message-north > .message-user-list a.highlight {
    background: #90B2CC;
}

.message-container > .message-north > .message-user-list a.highlight .user-title,
.message-container > .message-north > .message-user-list a.highlight .user-desc {
    font-weight: bold;
}

.message-container > .message-north > .message-thread {
    /*float: right;*/
    width: auto;
    height: 50vh; /*645px;*/
    padding-left: 10px;
    padding-right: 10px;
    background: #F5F5F5;
    overflow-x: hidden;
    overflow-y: scroll;

    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.message-container > .message-north > .message-thread > .message {
    min-width: 65%;
    max-width: 65%;
    margin: 3px;
    /*margin-bottom: 2%;*/
    padding: 3px 5px 3px 5px;
    /* cursor: pointer;*/
}

.message-container > .message-north > .message-thread > .message > p {
    display: block;
    clear: both;
    margin-left: 3px;
    margin-right: 3px;
    font-size: 12px;
    margin-bottom: 3px;
}

.message-container > .message-north > .message-thread > .message label {
    margin-top: -13px;
    font-size: 12px;
    font-weight: bold;
    color: #5A5A5A;
    /*cursor: pointer;*/

}

.message-container > .message-north > .message-thread > .message .message-user {
    display: block;
    float: left;
    margin-left: 5px;
}

.message-container > .message-north > .message-thread > .message .message-timestamp {
    display: block;
    float: right;
    margin-left: 10px;
    margin-right: 5px;
    text-align: right;
}

.message-container > .message-north > .message-thread > .message div.teaser-content,
.message-container > .message-north > .message-thread > .message div.read-more-content  {
    padding-top: 10px;
}

.message-container > .message-south > textarea {
    width: 100%;
    height: 65%;
    padding: 7px 10px;

    outline: none;
    resize: none;
    font-size: 12px;
    color: #666;
    background: #f6f6f6;
    border: 1px solid #b9b9b9;
    border-top-color: #a4a4a4;
    box-shadow: 0 1px 1px rgba(0,0,0,.17) inset;

    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.message-container > .message-south > textarea:focus {
    background: #FFF;
}

.message-container > .message-south > button {
    display: inline-block;
    float: right;
    margin-top: 0px;
    height: 35px;
    width: 80px;
    color: #a2c6e0;
    background: -webkit-linear-gradient(#24f555, #E9E9E9);
    background:    -moz-linear-gradient(#F5F5F5, #E9E9E9);
    background:      -o-linear-gradient(#F5F5F5, #E9E9E9);
    background:         linear-gradient(#F5F5F5, #E9E9E9);
    border: 2px solid #CCC;
    box-shadow: 0px 1px 2px #C6C6C6;
    cursor: pointer;
}

.message-container > .message-south > button:hover {
    background: -webkit-linear-gradient(#FFFFFF, #DFDFDF);
    background:    -moz-linear-gradient(#FFFFFF, #DFDFDF);
    background:      -o-linear-gradient(#FFFFFF, #DFDFDF);
    background:         linear-gradient(#FFFFFF, #DFDFDF);
}

.message-container > .message-south > button:active {
    box-shadow: inset 0px 0px 10px #24f555;
    background: -webkit-linear-gradient(#E9E9E9, #F5F5F5);
    background:    -moz-linear-gradient(#E9E9E9, #F5F5F5);
    background:      -o-linear-gradient(#E9E9E9, #F5F5F5);
    background:         linear-gradient(#E9E9E9, #F5F5F5);
}

/*#messageentryerror > .input[type="text"]{
    background-color:#d9534f !important;
}*/
.modal {
    text-align: center;
}