/* ------ GENERAl LAYOUT ------ */
* {
    font-family: 'Roboto', sans-serif;
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

body {
    background: #dbdbdb;
}

i {
    width: 60px;
    margin: auto;
}

/* ------ FONTS ------ */
.font-name {
    color: #000000;
    font-size: 1em;
    font-weight: inherit;
    padding-bottom: 3px;
    margin-top: 0;
    margin-bottom: 0;
}

.font-preview {
    color: #444444;
    font-size: 0.9em;
    font-weight: inherit;
}

.font-online {
    color: #777777;
    font-size: 0.8em;
    font-weight: inherit;
    margin-bottom: 0;
}

.green-background {
    background: #42a5f5;
    height: 130px;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: -100;
}

.wrap {
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    height: 100%;
    /*min-width: 600px;
    max-width: 1200px;
    margin: auto;*/
    box-shadow: 0 2px 2px #aaaaaa;
}

/* ------ LEFT SIDE ------ */
.leftC {
    width: 400px;
    max-width: 400px;
}

.profile {
   /* width: 100%;
    height: 60px;
    background: #eeeeee; */
    border-right: 1px solid #dbdbdb;
    display: flex;
    justify-content: space-between;
}

.profile img {
    width: 40px;
    height: 40px;
    margin: 10px;
    border-radius: 50%;
}

.icons {
    color: #777777;
    display: flex;
}

.wrap-search {
    width: 100%;
    height: 45px;
    background: #fbfbfb;
    display: flex;
}

.search {
    width: calc(100% - 20px);
    height: 30px;
    background: #ffffff;
    margin: auto;
    border: 1px solid #eeeeee;
    border-radius: 5px;
    display: flex;
}

.search i {
    widht: 60px;
}

.search i, .wrap-message i {
    color: #aaaaaa;
    text-align: center;
}

.input-search {
    width: 100%;
    border: none;
}

.input-search:focus {
    outline: none;
}

.contact-list {
    border-right: 1px solid #dbdbdb;
    background-color: #f7f7f7;
    width: 100%;
    /* height: calc(100% - 105px); */
    /*height: calc(100% - 60px);*/
    height:100%;
    overflow-y: auto;
}

.contact, .active-contact, .new-message-contact {
    height: 70px;
    background-color: #ffffff;
    display: flex;
    cursor: pointer;
    border-bottom: 1px solid #eeeeee;
}

.contact img, .active-contact img, .new-message-contact img {
    width: 48px;
    height: 48px;
    margin: 10px;
    border-radius: 50%;
}

.active-contact {
    background-color: #ebebeb;
}

.contact:hover, .new-message-contact:hover {
    background-color: #f5f5f5;
}

.new-message-contact {
 font-weight: bold;
} 

.contact-preview {
    width: 100%;
    height: 70px;
    /*border-bottom: 1px solid #eeeeee; */
    display: flex;
    overflow: hidden;
}

.contact-text {
    height: 40px;
    margin: auto 0;
    overflow: hidden;
}

.contact-time {
    width: 55px;
    color: rgba(0,0,0,0.4);
    font-size: 0.8em;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
    /*border-bottom: 1px solid #eeeeee;*/
}
.contact-time p {
	margin-bottom: 0;
}

.message_button {
    margin: 17px;
    color: #989898;
}

.new-message {
    background: #09d261;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    margin: auto;
    flex-direction: column;
    color: white;
}
.new-message-bar {
    background: #2bf430;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    margin-left: auto;
    flex-direction: column;
    font-weight: bold;
    color: white;
    text-align:center;
    animation: new-message-bar 1.2s cubic-bezier(0, 0.5, 0.5, 1) infinite;
}
@keyframes new-message-bar{
  0% {
    background: #2bf430;
  }
  50% {
    background: #00ca05;
  }
  100% {
    background: #2bf430;
  }
}

.new-message p {
 margin: auto;
}

/* ------ RIGHT SIDE ------ */
.right {
    /*min-width: calc(100% - 400px);
    max-width: 400px;*/
    width:100%;
    background-image: url(/assets/img/backsolid.png);
}

.chat-head {
    background-color: #eeeeee;
    width: 100%;
    height: 60px;
    display: flex;
}

.chat-head span {
    color: #989898;
   margin-top: 17px;
   margin-right: 10px;
}

.chat-head img {
    width: 40px;
    height: 40px;
    margin: 10px;
    border-radius: 50%;
}

.chat-head i {
    color: #aaaaaa;
    width: 60px;
    margin: auto;
    text-align: center; 
}

#close-contact-information {
    display: none;
}

.chat-name {
    width: 100%;
    margin: auto;
}

.wrap-chat {
    height: calc(100% - 120px);
    display: flex;
    position: relative;
}

.chat {
    background-color: #e5ddd5;
    background-image: url(/assets/img/backsolid.png);
    width: 100%;
    padding: 0px 10%;
    padding-top: 7px;
    overflow-y: scroll;
    /*height: calc(100% - 120px);*/
    height: 100%;
    position: absolute;
}

.transfer_box {

    width: 100%;
    position: relative;
    background: #f7f7f7;
    display: none;
    flex-direction: column;
    overflow: auto;
    padding: 40px;
}

.transfer_box div {
    background: #ffffff;
    padding: 10px;
    margin-bottom: 20px;
}

.transfer_box h1 {
    color: #009688;
    font-size: 14px;
    margin-bottom: 5px;
}

.information {
    width: 50%;
    position: absolute;
    height: 100%;
    background: #f7f7f7;
    display: none;
    flex-direction: column;
    overflow-x: hide;
    overflow: auto;
    padding: 10px;
    right: 0;
}

.information div {
    /*background: #ffffff;*/
    /*padding: 10px;*/
   /* margin-bottom: 20px;*/
}

.information img {
    width: 200px;
    height: 200px;
    margin: 20px auto;
    border-radius: 50%;
    float: left;
}

.information p {
    padding: 0px 0px 0px 20px
}

.information h1 {
    color: #009688;
    font-size: 14px;
    /*margin-bottom: 5px;*/
    padding: 10px;
}

.listGroups {
    display: flex;
    margin: 0px !important;
}

.listGroups img {
    width: 40px;
    height: 40px;
    margin: 0px 10px 0px 0px;
}

.listGroups p {
    margin: auto 0px;
}

/* ------ CHAT ------ */
.chat-bubble {
    border-radius: 7px;
    box-shadow: 0 2px 2px rgba(0,0,0,0.05);
    padding: 5px 7px;
    width: 350px;
    max-width: 100%;
    position: relative;
}

.you {
    background: #ffffff;
    margin: 0px auto 10px 0px;
}

.me {
    background: #dcf8c6;
    margin: 0px 0px 10px auto;
}

.your-mouth {
    width: 0;
    height: 0;
    border-bottom: 10px solid white;
    border-left: 10px solid transparent;
    position: absolute;
    bottom: 10px;
    left: -10px;
}

.my-mouth {
    width: 0;
    height: 0;
    border-bottom: 10px solid #dcf8c6;
    border-right: 10px solid transparent;
    position: absolute;
    bottom: 10px;
    left: 100%;
}

.content {
    margin: 0.5em 0;
    line-height: 120%;
    font-size: 0.9em;
}

.content img {
    width: 100%;
}

.time {
    color: rgba(0,0,0,0.4);
    font-size: 0.6em;
    text-align: right;
    margin-top: -10px;
}

.pink {
    color: #EE33AA;
}

.green {
    color: #44FF66;
}

.orange {
    color: #FF8811;
}

.wrap-message {
    width: 100%;
    height: 60px;
    background: #f1f1f1;
    display: flex;
}

.message {
    width: 100%;
    height: 45px;
    background: #ffffff;
    margin: auto;
    border: 1px solid #eeeeee;
    border-radius: 5px;
    display: flex;
}

.input-message {
    width: 100%;
    margin: 11px 10px;
    border: none;
    resize: none;
}

.input-message:focus {
    outline: none;
}



.timeStamp {
    font: 9px Arial;
    margin-top: 5px;
    padding: 5px 9px;
    color: #ffffff;
    float: right;
}
.timeStampLeft {
    font: 9px Arial;
    margin-top: 5px;
    padding: 5px 9px;
    color: #606060;
    float: right;
}
.bubbledLeft,.bubbledRight,.ticontainer,.bubbleCenter {
    margin-top: 2px;
    margin-bottom: 5px;
    padding: 5px 9px;
    max-width: 90%;
    clear: both;
    position: relative;
}

.bubbleCenter{
    float: center;
    margin: auto;
    text-align: center;
    -webkit-border-radius: 18px 18px 18px 18px;
    -moz-border-radius: 18px 18px 18px 18px;
    -o-border-radius: 18px 18px 18px 18px;
    -ms-border-radius: 18px 18px 18px 18px;
    border-radius: 18px 18px 18px 18px;
    background-color: rgba(171, 171, 171, 0.67);
    color: #fff;
    margin-bottom: 16px;
}

.bubbledLeft{
    float: left;
    margin-right: auto;
    -webkit-border-radius: 8px 8px 8px 0px;
    -moz-border-radius: 8px 8px 8px 0px;
    -o-border-radius: 8px 8px 8px 0px;
    -ms-border-radius: 8px 8px 8px 0px;
    border-radius: 8px 8px 8px 0px;
    background-color: #ffffff;
    color: #606060;

  white-space: pre-wrap;      /* CSS3 */
   white-space: -moz-pre-wrap; /* Firefox */
   white-space: -pre-wrap;     /* Opera <7 */
   white-space: -o-pre-wrap;   /* Opera 7 */
   word-wrap: break-word;      /* IE */


}
.bubbledLeft:before {
    border-bottom: 10px solid #ffffff;
    border-left: 9px solid rgba(0, 0, 0, 0);
    position: absolute;
    bottom: 0;
    left: -8px;
    content: "";
}

.bubbledRight{
    float: right;
    margin-left: auto;
    text-align: left;
    -webkit-border-radius: 8px 8px 0px 8px;
    -moz-border-radius: 8px 8px 0px 8px;
    -o-border-radius: 8px 8px 0px 8px;
    -ms-border-radius: 8px 8px 0px 8px;
    border-radius: 8px 8px 0px 8px;
    background-color: #07D;
    color: white;


  white-space: pre-wrap;      /* CSS3 */
   white-space: -moz-pre-wrap; /* Firefox */
   white-space: -pre-wrap;     /* Opera <7 */
   white-space: -o-pre-wrap;   /* Opera 7 */
   word-wrap: break-word;      /* IE */

}

.bubbledRight a:link { color: #fff; }
.bubbledRight a:visited { color: #fff; }
.bubbledRight a:hover { color: #fff; }
.bubbledRight a:active { color: #fff; }


.bubbledRight:before {
    border-bottom: 9px solid #07D;
    border-right: 9px solid rgba(0, 0, 0, 0);
    position: absolute;
    bottom: 0;
    right: -8px;
    content: "";
}


/* ------ SCROLLBAR ------ */

body::-webkit-scrollbar, .contact-list::-webkit-scrollbar, .chat::-webkit-scrollbar, .information::-webkit-scrollbar {
    width: 0.4em;
    height: 0.4em;
}

body::-webkit-scrollbar-thumb, .contact-list::-webkit-scrollbar-thumb, .chat::-webkit-scrollbar-thumb, .information::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
}

/* ------ MEDIA QUERIES ------ */
@media (min-width: 1200px) {
    .wrap {
        /*margin-bottom: 2vh;
        margin-top: 25px;
        height: calc(98vh - 25px);*/

    }
}

@media (max-width: 600px) {
    .wrap {
        height: calc(100vh - 0.4em);
    }
}

/* ------ POINTER/EMOJI ------ */

.pointer {
    cursor: pointer;
}

.emoji {
    cursor: pointer;
    font-size: 25px;
}

.wrap-emoji{
    width: 100%;
    height: 180px;
    background: #f1f1f1;
    /*display: inline-block;*/
    display: none;
    overflow-y: scroll;
    position:relative;
    bottom: 300px;
}

/* ----FILES ----*/
.chat_lds-ring {
  display: inline-block;
  position: relative;
  width: 34px;
  height: 20px;
}
.chat_lds-ring div {
  display: inline-block;
  position: absolute;
  left: 8px;
  width: 8px;
  background: #fff;
  animation: chat_lds-ring 1.2s cubic-bezier(0, 0.5, 0.5, 1) infinite;
}
.chat_lds-ring div:nth-child(1) {
  left: 2px;
  animation-delay: -0.24s;
}
.chat_lds-ring div:nth-child(2) {
  left: 12px;
  animation-delay: -0.12s;
}
.chat_lds-ring div:nth-child(3) {
  left: 22px;
  animation-delay: 0;
}
@keyframes chat_lds-ring {
  0% {
    top: 2px;
    height: 30px;
  }
  50%, 100% {
    top: 6px;
    height: 15px;
  }
}


.new-message-contact {
    animation: blinker_msg 1s linear infinite;
}
@keyframes blinker_msg_red {
  50% {
    background-color: red;
  }
}

@keyframes blinker_msg {
  50% {
    background-color: #eee;
  }
}

/* ---SELECT BOX --- */

.profile-custom-select-wrapper {
     position: relative;
     user-select: none;
     width: 130px;
}
 .profile-custom-select {
     position: relative;
     display: flex;
     flex-direction: column;
}
 .profile-custom-select__trigger {
     position: relative;
     /*display: flex;*/
     align-items: center;
     justify-content: space-between;
     cursor: pointer;
     color: #777777;
     font-size: 0.8em;
     font-weight: inherit;
}
 .profile-custom-options {
     position: absolute;
     /*display: block;*/
     display: none;
     /*top: 100% */;
     /*bottom: 0px;*/
     left: 0;
     right: 0;
     border: 2px solid #959596;
     background: #fff;
     transition: all 0.5s;
     opacity: 0;
     /*visibility: hidden;
     pointer-events: none;
     */z-index: 2;
}
 .profile-custom-select.open .custom-options {
     opacity: 1;
     visibility: visible;
     pointer-events: all;
}
 .profile-custom-option {
     position: relative;
     display: block;
     padding: 0 22px 0 22px;
     color: #000;
     line-height: 30px;
     cursor: pointer;
     transition: all 0.5s;
     font-size: 0.8em;
     font-weight: inherit;
}
 .profile-custom-option:hover {
     cursor: pointer;
     background-color: #b2b2b2;
}
 .profile-custom-option.selected {
     color: #ffffff;
     background-color: #305c91;
}

.version_js {
    position: fixed;
    bottom:0%;
    width:100%;
    text-align: right;
    opacity: .5;
    font-size: 10px;
    right: 3px;
}

.inchatButton {
background-color: #b7b7b7;
border-radius: 30px;
/*border: 1px solid #ffffff;*/
display: inline-block;
cursor: pointer;
color: #ffffff;
font-family: Arial;
font-size: 17px;
padding: 1px 16px;
text-decoration: none;
}
.inchatButton:hover {
 background-color:#bababa;
}
.inchatButton:active {
 position:relative;
 top:1px;
}

.wrap-chat form {
  background-color: rgba(255,255,255,.8);
  padding: 15px;
  border-radius: 11px;
  color: #333;
}
.wrap-chat form h5 {
  text-align: left;
  font-size: 16px;
  font-weight: 500;
  color: #000;
}
.wrap-chat form p {
  text-align: left;
  font-size:12px;
}
.wrap-chat form table tr td {
  text-align: left;
  padding-left: 10px;
}
.wrap-chat form div div div input {
  margin-right: 10px;
}
.wrap-chat form .inchatButton{
  background:none;
  border:none;
  background-color:#42a5f5;
  border-radius:5px;
  margin-top:10px;
  font-size: 16px;
  font-weight: 400;
  font-family: 'Roboto';
  padding: 3px 15px;
}
.wrap-chat form h4{
  margin-top:20px;text-align:left;font-size:24px
}
