
body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

pre {
  margin: 20px 0;
  padding: 20px;
  background: #fafafa;
}

.round { border-radius: 50%; }

body {
  background-color: #3498db;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

  #red-dot {
  /*content: " ";*/
  position: absolute;
  z-index: 1;
  top: 0;
  right: -7px;
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: #f21aa5;
}
.container {
  margin: 60px auto;
  background: #fff;
  padding: 0;
  border-radius: 1px;
}

.profile-image {
  font-size: 50px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
}
.text-muted{
  font-size: 0.91em;
}

.settings-tray {
  background: #eee;
  padding: 10px 15px;
  border-radius: 7px;
}
.settings-tray .no-gutters {
  padding: 0;
}
.settings-tray--right {
  float: right;
}
.settings-tray--right i {
  margin-top: 10px;
  font-size: 25px;
  color: grey;
  margin-left: 14px;
  transition: .3s;
}
.settings-tray--right i:hover {
  color: #74b9ff;
  cursor: pointer;
}

.search-box {
  background: #fafafa;
  padding: 10px 13px;
  text-align: center;
}
.search-box .input-wrapper {
  background: #fff;
  border-radius: 40px;
}
.search-box .input-wrapper i {
  color: grey;
  margin-left: 7px;
  vertical-align: middle;
}

/*input {
  border: none;
  border-radius: 30px;
  width: 80%;
}
input::placeholder {
  color: #e3e3e3;
  font-weight: 300;
  margin-left: 20px;
}
input:focus {
  outline: none;
}*/
.contacts-list{
  /*padding: 0 0 50px;*/
  position: relative;
  overflow-y: scroll;
  overflow-x: hidden;
  width:100%;
  /*height: 100%;*/
  transform: translateZ(0);
}
.friend-drawer {
  padding: 10px 15px;
  display: flex;
  vertical-align: baseline;
  background: #fff;
  transition: .3s ease;
  border-bottom: 1px solid #e3e3e3;
  height: 80px;
}
.friend-drawer--grey {
  background: #eee;
}
.friend-drawer .text {
  margin-left: 12px;
  width: 70%;
}
.friend-drawer .text h6 {
  margin-top: 6px;
  margin-bottom: 0;
}
.friend-drawer .text p {
  margin: 0;
}
.friend-drawer .time {
  color: grey;
}
.friend-drawer--onhover:hover {
  /*background: #74b9ff;*/
  background: #f1f1f1f1;
  cursor: pointer;
}
.active{
  background-color: #e5f8e6;
}

.friend-drawer--onhover:hover p,
.friend-drawer--onhover:hover h6,
.friend-drawer--onhover:hover .time {
  /*color: #fff !important;*/
}

hr {
  margin: 5px auto;
  width: 60%;
}

.chat-bubble {
  padding: 10px 14px;
  background: #eee;
  margin: 10px 30px;
  border-radius: 9px;
  position: relative;
  animation: fadeIn 1s ease-in;
}
.chat-bubble:after {
  content: '';
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border: 20px solid transparent;
  border-bottom: 0;
  margin-top: -10px;
}
.chat-bubble--left:after {
  left: 0;
  border-right-color: #eee;
  border-left: 0;
  margin-left: -20px;
}
.chat-bubble--right:after {
  right: 0;
  border-left-color: #74b9ff;
  border-right: 0;
  margin-right: -20px;
}
/*NEW ADDED FOR MESSAGES:*/
#message-overall{
  overflow-y: scroll;
  overflow-x: hidden;
  padding: 100px 0 0;
  display: flex;
  -webkit-box-orient:vertical;
  -webkit-box-direction:normal;
  flex-direction: column;
  position: relative;
  bottom: 100px;
  height: 100%;
  top:0;
  transform: translateY(0);
  line-height: 120%;

}
.message-wrapper{
  position: relative;
  padding-bottom: 5px;
}
.message-wrapper:hover{
  background-color: #f6f6f6f6;
}
.message-container{
  width: 100%;
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 20px;
  padding-bottom: 20px;
  display: flex;
  line-height: 120%;

}
.message-avatar{
  margin-right: 10px;
  position: relative;
  height: 40px;
  width: 40px;
  text-align: center;
  display: inline-block;
  overflow: hidden;

}
.message-content{
  width: 100%;
  -webkit-box-flex:1;
  flex:1 1;
}
.message-header{
  margin-bottom: 5px;

}
.message-sender{
  font-weight: 600;

}
.message-time{
  margin:0 5px;
  color: #999;
}

time{
  margin:0 5px;
  color: #999;
}
.message-body{
  font-size: 14px;
  color: #555;
  margin:5px 10px -5px 0;
  max-width: 540px;
  line-height: 145%;
  word-break: break-word;
  white-space: pre-line;
  overflow-wrap: break-word;
  font-family: 'Montserrat', sans-serif;
  /*font:400 16px/24px "ProximaNova", "Helvetica Neue", Helvetica, Arial, sans-serif;*/
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
.offset-md-9 .chat-bubble {
  background: #74b9ff;
  color: #fff;
}

.chat-box-tray {
  background: #eee;
  display: flex;
  align-items: baseline;
  padding: 10px 15px;
  align-items: center;
  margin-top: 19px;
  bottom: 0;
}
.chat-box-tray input {
  margin: 0 10px;
  padding: 6px 2px;
}
.chat-box-tray i {
  color: grey;
  font-size: 30px;
  vertical-align: middle;
}
.chat-box-tray i:last-of-type {
  margin-left: 25px;
}

  .main-content{
    -webkit-box-flex:1;
    flex:1 1;
    overflow: hidden;
    position: relative;
    height: 100%;
  }
  .outer-box{
    height: calc(100% - 40px);
    padding: 20px;
  }
  .outer-box-2{
    height: calc(100% - 40px);
    padding: 20px;

  }
  .outer-container{
    background: #fff;
    display: flex;
    position: relative;
    font-size: 14px;
    border: 1px solid #e7e7e7;
    max-width: 1340px;
    margin: 0 auto;
    box-sizing: border-box;
    overflow-x: hidden;
    height: calc(100% - 50px);
    border-radius: 2px;
  }
  .index{
    height: 100%;
    display: block;
  }
  .contacts-container{
    display: flex;  
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;      
    flex-flow: column;

    height: 100%;
    /*max-height: 600px;*/
    position: relative;
    -webkit-box-flex:0;

    flex:0 0 300px;
    border-right: 1px solid #e7e7e7;
    overflow-y: hidden;
    font-family: 'Montserrat', sans-serif;

  }
  .contacts-list{
    padding: 0 0 50px;
    /*flex-flow: column;*/

    position: relative;    
    overflow-x: hidden;
    overflow-y: scroll;    
    width: 100%;
    height: 100%;
    border-right: 1px solid #e7e7e7;

    transform: translateZ(0);
    display: block;
    margin: 0;    
    border:0;
    outline: 0;
    font-size: 100%;


  }
  .contact{
    /*background-color: #fff;*/
    height: 80px;
    box-sizing: border-box;
/*    position: absolute;
    top: 0;
    left: 0;
    right: 0;*/
    z-index: 1;
    border-bottom: 1px solid #e3e3e3;
    display: flex;
    vertical-align: baseline;
    /*-webkit-box-pack: justify;*/
    /*justify-content: space-between;*/
    opacity: 1;
    box-shadow: none;
    padding: 15px;
    width: 100%;
    line-height: 120%;
  }
  .contact:hover {
  /*background: #74b9ff;*/
  background: #f1f1f1f1;
  cursor: pointer;
}
.contact h6{
  font-weight: 700;
  font-size: 14px;
  color: #0e0e0f;
  line-height: 30px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  margin: 0;
  padding: 0;

}
#conversation-container{
    display: block;
    /*flex-direction: column;*/
    /*position: relative;*/
    -webkit-box-flex: 1;
    flex: 1 1;
    overflow: hidden;
    height: 100%;
  }

.conversation-header{
    display: flex;
    position: relative;
    height: 70px;
    vertical-align: baseline;
    padding: 14px 0 0 20px;
    /*display: block;*/
    -webkit-box-align: center;
    -webkit-box-flex: 0;

    line-height: 20px;
    border-bottom: 1px solid #e7e7e7;
    box-sizing: border-box;
    /*z-index: 3;*/
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
  }
.conversation-header h6{
  position: relative;
  font-weight: 700;
  font-size: 18px;
  color: #404145;
  line-height: 30px;
  padding-bottom: 0;
  padding-left: 20px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  margin: 0;
  padding: 0;

}
.conversation-header .text{
  margin-left: 13px;
  width: 70%;

}
.conversation-header .text-muted{
  color: #777;
  margin-top: 0;
  padding-top: 2px;
  /*margin-left: 5px;*/
  margin-bottom: 5px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;

}

.conversation-header span{
  position: relative;
  margin-left: auto;
  margin-right: 20px;
}
.contact .text {
  margin-left: 12px;
  width: 70%;
}
.contact .text h6 {
  margin-top: 6px;
  margin-bottom: 0;
}
.contact .text p {
  margin: 0;
  color: #555;
  font-size: 13px;
  height: 15px;
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
}
.contact .time {
  color: grey;
  padding-top: 7px;
  margin-left: 5px;
  margin-bottom: 5px;
}
/*.conversation-header .text h6{
  margin-top: 6px;
  margin-bottom: 0;
}

.conversation-header .text p{
  margin: 0;
  color: #555;
  font-size: 13px;
  height: 15px;
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
}
.conversation-header .text-muteed{
  color: grey;
  padding-top: 7px;
  margin-left: 5px;
  margin-bottom: 5px;
}*/


  .conversation-panels{
    position: relative;
    display: block;
    /*position: relative;*/
    padding-top: 20px;
    height: calc(100% - 145px);
    /*height: 80%;*/
    width: 100%;
    color: #555;
    font-family: 'Montserrat', sans-serif;
    overflow-y: scroll;
    overflow-x: hidden;
    /*bottom: 100px;*/
  }

  .conversation-footer{
    position: relative;
    padding: 0 20px;
    /*-webkit-box-flex: 0;*/
    /*flex-grow: 0;*/
    /*flex-shrink: 0;*/
    box-sizing: border-box;
    margin-bottom: 10px;
    /*top:-3px;*/
    /*position: relative;*/
    z-index: 2;
    display: block;
    color: #555;
    height: 70px;
  }
.conversation-footer input{
    color: #777;
    margin-top: 0;
    padding-top: 2px;
    /*margin-left: 5px;*/
    margin-bottom: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    height: 100%;
    width: 100%;
    }

    .search-box{
    border-bottom: 1px solid #e7e7e7;
    line-height: 20px;
    padding: 0 15px;
    box-sizing: border-box;
    min-height: 70px;
    height: 70px;
    flex-direction: column;
    -webkit-box-pack: center;
    justify-content: center;
    z-index: 5;
    background-color: #fff;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    font-size-adjust: 100%;
  }

.popup-base{
  width: 350px;
  height: 200px;
  display: block;
  visibility: visible;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 0 8px rgba(0,0,0,4);
  margin: 0;
  padding: 0;
  outline: 0;
  font-family: 'Montserrat', sans-serif;
  z-index: 2;
  } 

.popup-delete-conversation{
  max-width: 450px;
  } 

.centered{
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  }

.popup-delete-conversation .delete-header{
    background-color: #f7f7f7;
    padding: 12px 20px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px #e5e5e5 solid;
    border-radius: 5px 5px 0 0;
    display: block;
  }

.popup-delete-conversation .delete-header .btn-close{
  font-size: 30px;
  line-height: 30px;
  color: #b2b2b2;
  font-weight: 400;
  position: absolute;
  top: 5px;
  right: 17px;
  z-index: 10;
  cursor: pointer;
}
.popup-delete-conversation .content{
  display: block;
  padding: 20px;
  font-size: 14px;
  font-weight: 400;
  font-family: 'Montserrat', sans-serif;
  visibility: visible;
  } 
.popup-delete-conversation .delete-footer{ 
  margin-top: 30px;
  /*padding-bottom: 10px;*/
  text-align: right;
  display: block;
}
.popup-delete-conversation .delete-footer a{ 
 color: #1dbf73;
 text-decoration: none;
}
.btn-standard.btn-green-grad{
  background-color: #1dbf73;
  font-weight: 700;
  text-transform: none;
  color: #fff;
  border: 1px solid #1dbf73;
  /*padding-left: 10px;*/
  /*padding-right: 10px;*/
  padding: 6px 9px;
  text-shadow: 0 -1px 1px;
  box-shadow: none;
}
.popup-delete-conversation .delete-footer button{ 
  margin-left: 10px;
  font-size: 14px;
  width: 90px;
}

#delete_btn{
  cursor: pointer;
}
  .unread-indicator{
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 1;
  }
  .unread-indicator i {
    border: solid 2px #fff;
    background-color: red;
    display: block;
    margin: 2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    -webkit-transition: background .3s;

  }
