
/*
@import url(h ttps://fonts.googleapis.com/css?family=Lato:400,700);
*, *:before, *:after {
    box-sizing: border-box;
}
*/

/*
body {
    background: #C5DDEB;
    font: 14px/20px "Lato", Arial, sans-serif;
    padding: 40px 0;
    color: white;
}
*/

body {
    padding-bottom: 70px;
}

#chat-icon {
    z-index: 2000;
    position: fixed;
    bottom: 0;
    right: 0;
    margin: 0px 10px 10px 0px;
    cursor: pointer;
    background-color: white;
    border-radius: 33px;
    width: 66px;
    height: 66px;
    box-shadow: 2px 2px 10px gray;
    text-align: center;
}
#chat-icon i {
    padding-top: 15px;
}
#chat-counter {
    position: absolute;
    right: -6px;
    top: -6px;
    font-size: 20px;
    background-color: crimson;
}
#chat-panel {
    font: 14px/20px "Lato", Arial, sans-serif;
    /*padding: 40px 0;*/
    color: white;

    z-index: 1999;
    position: fixed;
    bottom: 0;
    right: 0;
    margin: 0px 10px 10px 0px;
    /*
    box-shadow: 2px 2px 10px grey;
    background: black;
    */
    display: none;
}

#chat-panel #close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 40px;
    color: #444753;
    cursor: pointer;
}


.chat-container {
    margin: 0 auto;
    width: 600px;
    border-radius: 5px;
    padding: 0px 0px 0px 0px;
    box-shadow: 2px 2px 10px grey;
}

@media (max-height: 640px) and (max-width: 480px) {
    #chat-panel, .chat-container {
        width: 100%;
        height: 100%;
    }
}

.people-list {
    width: 260px;
    float: left;
    background: #444753;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}
.people-list a {
    color: white;
}
.people-list .search {
    padding: 10px;
}
.people-list input {
    border-radius: 3px;
    border: none;
    padding: 5px;
    color: white;
    background: #6A6C75;
    width: 90%;
    font-size: 14px;
}
.people-list .fa-search {
    position: relative;
    left: -25px;
}
.people-list ul {
    padding: 10px;
    height: 310px;
    overflow-y: scroll;
}
.people-list ul .user-avatar img, .chat-header .user-avatar img {
    border-radius: 27px;
    border: solid 2px lightgrey;
    width: 54px;
    height: 54px;
}

.people-list ul li {
    padding-top: 5px;
    padding-bottom: 5px;
    /*border-bottom: solid 1px #6A6C75;*/
}
.people-list img {
    float: left;
}
.people-list .about {
    float: left;
    font-size: 12px;
    padding-left: 8px;
    width: 170px;
    line-height: 16px;
}
.people-list .status {
    color: #92959E;
}
.chat-person .user-avatar, .chat-header .user-avatar {
    float: left;
    position: relative;
    width: 54px;
    height: 54px;
}
.chat-person:hover {
    filter: brightness(75%);
    cursor: pointer;
}
.chat-person .user-avatar .chat-person-counter {
    position: absolute;
    right: -4px;
    top: -4px;
    font-size: 16px;
    background-color: crimson;
}

.chat-header .user-avatar {
    margin-top: 1px;
}

.user-avatar .chat-person-status {
    position: absolute;
    right: -2px;
    bottom: -2px;
    font-size: 10px;
}

.user-avatar .chat-person-status .online {
    color: #33CC66;
}

.user-avatar .chat-person-status .away {
    color: #FF6600;
}

.user-avatar .chat-person-status .offline {
    color: crimson;
}

.chat {
    width: 340px;
    float: left;
    background: #F2F5F8;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    color: #434651;
}
.chat .chat-header {
    padding: 5px 10px;
    border-bottom: 2px solid white;
    height: 67px;
}
.chat .chat-header img {
    float: left;
}
.chat .chat-header .chat-about {
    float: left;
    padding-left: 10px;
}
.chat .chat-header .chat-with {
    font-weight: bold;
    font-size: 14px;
    line-height: 15px;
}
.chat .chat-header .chat-with-description {
    font-size: 12px;
    line-height: 15px;
}
.chat .chat-header .chat-num-messages {
    color: #92959E;
}
.chat .chat-header .fa-star {
    float: right;
    color: #D8DADF;
    font-size: 20px;
    margin-top: 12px;
}
.chat .chat-history {
    padding: 0px 0px 0px 0px;
    border-bottom: 2px solid white;
    overflow-y: scroll;
    height: 224px;
}
.chat .chat-history .message-data {
    margin-top: 5px;
    margin-bottom: 5px;
}
.chat .chat-history .message-data-time {
    color: #a8aab1;
    padding-left: 6px;
    font-size: 12px;
}
.chat .chat-history .message {
    color: white;
    padding: 5px 8px;
    line-height: 16px;
    font-size: 14px;
    border-radius: 7px;
    margin-bottom: 2px;
    width: 90%;
    position: relative;
    word-break:break-all;
}
.chat .chat-history .first-message:after {
    bottom: 100%;
    left: 7%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
    border-bottom-color: #86BB71;
    border-width: 5px;
    margin-left: -5px;
}
.chat .chat-history .my-message {
    background: #86BB71;
}
.chat .chat-history .other-message {
    background: #94C2ED;
}
.chat .chat-history .other-message:after {
    border-bottom-color: #94C2ED;
    left: 92%;
}
.chat .chat-history ul {
    padding: 0px 5px 0px 10px;
}
.chat .chat-history .message-timestamp {
    position: relative;
    text-align: right;
    font-size: 12px;
    opacity: 0.65;
}


.chat .chat-message {
    padding: 5px 8px;
    height: 79px;
}
.chat .chat-message textarea {
    width: 100%;
    border: none;
    padding: 5px 8px;
    font: 14px/22px "Lato", Arial, sans-serif;
    margin-bottom: 5px;
    border-radius: 5px;
    resize: none;
    line-height: 18px;
}
.chat .chat-message .fa-file-o, .chat .chat-message .fa-file-image-o {
    font-size: 16px;
    color: gray;
    cursor: pointer;
}
.chat .chat-message button {
    float: right;
    color: #94C2ED;
    font-size: 16px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    font-weight: bold;
    background: #F2F5F8;
}
.chat .chat-message button:hover {
    color: #75b1e8;
}

.chat ol, .chat ul {
    list-style: none;
}

.message-data .online,
.message-data .offline,
.message-data .me {
    margin-right: 3px;
    font-size: 10px;
}

.message-data .online {
    color: #86BB71;
}

.message-data .offline {
    color: #E38968;
}

.message-data .me {
    color: #94C2ED;
}

.align-left {
    text-align: left;
}

.align-right {
    text-align: right;
}

.float-right {
    float: right;
}

.clearfix:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
}
