.messageContainer {
    width:100%;
    position: relative;
    font-family: 'Quicksand', "Open Sans Regular", Verdana, Tahoma, Arial, Helvetica, sans-serif;
}

.employeeList {
    float:left;
    top:0;
    position: relative;
    overflow:auto;
    padding:0 2px;
    width:310px;
    height: 80vh;
}

.messageSide {
    height: 80vh;
    float: right;
    top:0;
    display: flex;
    flex-direction: column;
    position: relative;
    width:780px;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    font-family: 'Quicksand', "Open Sans Regular", Verdana, Tahoma, Arial, Helvetica, sans-serif;
}

.messageArea {
    margin-top:5px;
    margin-bottom:5px;
    flex-grow: 1;
    min-height: 2em;
    overflow: scroll;
    overflow-x: hidden;
    background-color: #ededed;
    flex-direction: column-reverse;
    background-image: url("../images/chat_background.png");
}

.messageAreaScroller {
    
}

.messageAreaHeader {
    flex-shrink: 0;
    border-bottom: solid 1px #aaa;
}

.messageAreaFooter {
    flex-shrink: 0;
    border-top: solid 1px #aaa;
    margin-top: 0px;
    padding-top:5px;
}

.messageFrom {
    position: relative;
    margin-left: 20px;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #fff;
    float:left;
    width: 60%;
    text-align: left;
    font: 400 .9em 'Open Sans', sans-serif;
    border: 1px solid #97C6E3;
    border-radius: 10px;
}

.messageTo {
    position: relative;
    margin-bottom: 10px;
    margin-right: 18px;
    float: right;
    padding: 10px;
    background-color: #dcf8c6;
    width: 60%;
    text-align: left;
    font: 400 .9em 'Open Sans', sans-serif;
    border: 1px solid #dfd087;
    border-radius: 10px;
}

.message-content {
    padding: 0 0 10px 0;
    margin: 0;
}

.message-from-url { 
    float: right;
}

.message-timestamp-right {
    position: absolute;
    font-size: .85em;
    font-weight: 300;
    height: 1.5em;
    bottom: 0px;
    right: 15px;
}

.message-timestamp-left {
    height: 1.5em;
    position: absolute;
    font-size: .85em;
    font-weight: 300;
    bottom: 0px;
    left: 5px;
}

.messageFrom:after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-top: 15px solid #A8DDFD;
    border-left: 15px solid transparent;
    top: 0;
    left: -15px;
}

.messageTo:after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-bottom: 15px solid #dcf8c6;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    bottom: 0;
    right: -15px;
}

ul.employeeListArea {
    position: relative;
    list-style: none;
    padding:0px;
    margin: 0;
}

ul.employeeListArea li {
    width:100%;
    height: 63px;
    border-bottom: 1px solid #eee;
    float: left;
    cursor: pointer;
}

ul.employeeListArea li:hover {
    
}

.msgEmployeeIcon {
    width:50px;
    height:50px;
    border-radius: 50%;
    float:left;
    border: 1px solid #999;
    display: flex;
    align-items: center;
    background-color:#d4e0ff;
    margin:5px 0 0 5px;
}
.msgEmployeeIconInitials {
    font-size: 18pt;
    text-align: center;
    width:100%;
}

.contactDetails{
    float: right;
    width: 235px;
    margin-top: 5px;
}

.employeeName {
    display: inline-block;
    float: left;
    font-size: 10pt;
    width: 54%;
    font-weight: bold;
}

.lastSeen {
    float: right;
    width: 43%;
    font-size: 8pt;
    text-align: right;
    margin-right:5px;
}

.messageAreaHeaderEmployeeName {
    display: inline-block;
    float: left;
    font-size: 12pt;
    width: 100%;
    margin-left: 10px;
}

.messageAreaHeaderLastSeen {
    font-size: 8pt;
    margin-left: 10px;
    width: 100%;
}

.messageSummary {
    width:100%;
    overflow: hidden;
    font-size: 11pt;
    padding-top: 3px;
    color: #999;
}

.messageInput {
    width: 670px;
    height: 50px;
    font-size:11pt;
    float: left;
    font-family: "NunitoSans Light", 'Quicksand', "Open Sans Regular", Verdana, Tahoma, Arial, Helvetica, sans-serif;
    border: none;
}

.buttonSendMsg {
    width: 100px;
    height: 53px;
    font-size:18pt;
    margin: 0;
    float:right;
    color:#78b9ff;
}

.menuSendMessage {
    float:right;
}

.msgSendButton {
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    background-color: #225451;
    color: #fff;
    margin: 0.1em 0.1em;
    border: none;
}

/* The Modal (background) */
.msgModal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 10000; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.msgModal-content {
  z-index: 10010; 
  background-color: #fefefe;
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 1000px; /* Could be more or less, depending on screen size */
  border-radius: 10px;
}

/* The Close Button */
.msgModal-close {
  color: #aaa;
  float: right;
  font-size: 16pt;
  font-weight: bold;
  margin-bottom:10px;
}

.msgModal-close:hover,
.msgModal-close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

#msgAction {
    display: none;
    text-align: center;
    font-size: 18pt;
}

.old-messages-popup {
    position: absolute;
    top: 25px;
    left:-49px;
    color:#fff;
    border: 1px solid #fff;
    border-radius: 5px;
    background-color: #ff9711;
    z-index: 1001;
    padding:10px;
    font-size:12pt;
}
