
.BoxChat_block a.nav-expander {
background: none repeat scroll 0 0 #000000;
color: #FFFFFF;
display: block;
font-size: 15px;
font-weight: 400;
height: 50px;
margin-right: 0;
/*padding: 1em 1.6em 2em;*/
position: absolute;
right: 0;
text-decoration: none;
text-transform: uppercase;
top: 0em;
transition: right 0.3s ease-in-out 0s;
width: 130px;
z-index: 12;

transition: right 0.3s ease-in-out 0s;
-webkit-transition: right 0.3s ease-in-out 0s;
-moz-transition: right 0.3s ease-in-out 0s;
-o-transition: right 0.3s ease-in-out 0s;

}

.BoxChat_block a.nav-expander:hover {
cursor: pointer;
}

.BoxChat_block a.nav-expander.fixed {
position: fixed;
}

.BoxChat_block .nav-expanded a.nav-expander.fixed {
right: 14em;
}

nav.BoxChat_block {
  -webkit-box-shadow: 0 1px 14px 0 #999999;
    box-shadow: 0 1px 14px 0 #999999;
background: #fafafa;
display: block;
height: 100%;
overflow: auto;
position: fixed;
right: -20em;
font-size: 15px;
    top: 1.7em;
width: 14em;
z-index: 2000;

transition: right 0.3s ease-in-out 0s;
-webkit-transition: right 0.3s ease-in-out 0s;
-moz-transition: right 0.3s ease-in-out 0s;
-o-transition: right 0.3s ease-in-out 0s;

}

.nav-expanded nav.BoxChat_block {
right: 0;
}

body.nav-expanded {
margin-left: 0em;
transition: right 0.4s ease-in-out 0s;
-webkit-transition: right 0.4s ease-in-out 0s;
-moz-transition: right 0.4s ease-in-out 0s;
-o-transition: right 0.4s ease-in-out 0s;
}

.BoxChat #nav-close {
/*font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;*/
font-weight: 300;
margin-top: 10px;
font-size: 24px;
padding-left: 10px;
}
.BoxChat .main-menu {
/*padding-top: 12px;*/
}

.BoxChat .mage_txt{
  margin-left: 8px;

}

.BoxChat .main-menu li {
border-bottom: 1px solid #323949;
margin-left: 20px;
font-size: 18px;
padding: 12px;
}

.BoxChat .main-menu li a {
color: #6F7D8C;
text-decoration: none;
}

.BoxChat .main-menu li a:hover {
color: #FFFFFF;
text-decoration: none;
}

.BoxChat .main-menu li .sub-nav {
border-bottom: 0px;
padding: 4px;
}

.BoxChat .main-menu a .caret {
width: 0;
height: 0;
display: inline-block;
vertical-align: top;
border-top: 4px solid #4f5963;
border-right: 4px solid transparent;
border-left: 4px solid transparent;
content: "";
margin-top: 8px;
}

.BoxChat .main-menu a:hover .caret {
border-top-color: #4f5963;
}

.BoxChat .main-menu li.open > a > .caret {
border-top: none;
border-bottom: 4px solid #4f5963;
border-right: 4px solid transparent;
border-left: 4px solid transparent;
}

.BoxChat .main-menu li.open > a:hover > .caret {
border-bottom-color: #4f5963;
}

/*.icon:before {
font-family: 'FontAwesome';
font-style: normal;
font-variant: normal;
font-weight: normal;
line-height: 1;
text-transform: none;
content: '\f105';
}

/*.main-menu li > a > span.icon {
float: right;
margin: 0.1em 1.7em -0.1em 0;
opacity: 0;
-webkit-transition: all 0.2s ease-in-out;
-moz-transition: all 0.2s ease-in-out;
-o-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;

}

.main-menu li > a:hover > span.icon {
float: right;
margin: 0.1em 0.8em -0.1em 0;
opacity: 1;
}*/
/*.me{
font-size: 14px;
margin: -4px;
border-right: 3px solid #60DF88 !important;
padding: 5px;
background-color: rgb(239, 255, 241);
}

.you{
font-size: 14px;
margin: -4px;
border-left: 3px solid rgb(255, 112, 0) !important;
padding: 5px;
padding-left:10px;
background-color: rgb(247, 247, 214);
}*/

.BoxChat .online {
width: 30px;
height: 30px;
/*background: aqua;*/
border: 2px solid #76FF03;
}
.BoxChat .offline {
width: 30px;
height: 30px;
/*background: aqua;*/
border: 2px solid #FF3D00;
}
.BoxChat .circleBase {
border-radius: 50%;
behavior: url(PIE.htc); /* remove if you don't care about IE8 */
}
.BoxChat .middle-div {
position: relative;
top: 50%;
-webkit-transform: translateY(-50%);
-ms-transform: translateY(-50%);
transform: translateY(-50%);
}

.BoxChat .inline{
/*margin-left: 10px;*/
height: 50px;
display: inline-block;
display: table-cell;
vertical-align: middle;
}
.BoxChat .box-list-pr{
margin-left: 10px;
width: 170px;
}

@media only screen and (max-width : 540px)
{
    .chat-sidebar
    {
        display: none !important;
    }

    .chat-popup
    {
        display: none !important;
    }
}


.BoxChat .chat-sidebar
{
    width: 200px;
    position: fixed;
    height: 100%;
    right: 0px;
    top: 0px;
    padding-top: 10px;
    padding-bottom: 10px;
    border: 1px solid rgba(29, 49, 91, .3);
}

.BoxChat .sidebar-name
{
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 4px;
    font-size: 12px;
}

.BoxChat .sidebar-name span
{
    padding-left: 5px;
}

.BoxChat .sidebar-name a
{
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.BoxChat .sidebar-name:hover
{
    background-color:#ff9800;
}

.BoxChat .sidebar-name img
{
    width: 32px;
    height: 32px;
    vertical-align:middle;
}

.BoxChat .popup-box
{
    display: none;
    position: fixed;
    bottom: 0px;
    right: 220px;
    height: 300px;
    background-color: rgb(237, 239, 244);
    width: 220px;
    border: 1px solid rgba(29, 49, 91, .3);
}

.BoxChat .popup-box .popup-head
{
    background-color: #adaaa3;
    padding: 5px;
    color: white;
    font-weight: bold;
    font-size: 14px;
    clear: both;
}

.BoxChat .popup-box .popup-head .popup-head-left
{
    float: left;
}

.BoxChat .popup-box .popup-head .popup-head-right
{
    float: right;
    opacity: 0.5;
}*/

.BoxChat .popup-box .popup-head .popup-head-right a
{
    text-decoration: none;
    color: inherit;
}

.BoxChat .popup-box .popup-messages
{
   background: #f1f1f1;
    height: 77%;
    overflow-y: scroll;
}
.BoxChat .popup-box .popup-send
{
    height: 30%;
}
.BoxChat .popup-box .iptext
{
  /*border-top-width : 1px;*/
    /*border-width: 10px;*/
    width : 100%;
    height : 25%;
    margin-top: -4px;
}



.BoxChat span.strikearound {
    position: relative;
    font-size: 30px;
    z-index: 1;
    overflow: hidden;
    text-align: center;
}
.BoxChat span.strikearound:before, span.strikearound:after {
    position: absolute;
    top: 51%;
    overflow: hidden;
    width: 50%;
    height: 1px;
    content: '\a0';
    background-color: #fff;
}
.BoxChat span.strikearound:before {
    margin-left: -50%;
    text-align: right;
}
.BoxChat .strike {
    display: block;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
}

.BoxChat .strike > span {
  color: #c4c0c0;
    position: relative;
    display: inline-block;
}

.BoxChat .strike > span:before,
.BoxChat .strike > span:after {
    content: "";
    position: absolute;
    top: 50%;
    width: 9999px;
    height: 1px;
    background: #eee;
}

.BoxChat .strike > span:before {
    right: 100%;
    margin-right: 15px;
}

.BoxChat .strike > span:after {
    left: 100%;
    margin-left: 15px;
}

.BoxChat a{
  color: rgba(82,179,217,0.9);
}

/* M E N U */

.BoxChat .menu {
    position: fixed;
    top: 0px;
    left: 0px;
    right: 0px;
    width: 100%;
    height: 50px;
    background: rgba(82,179,217,0.9);
    z-index: 100;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.BoxChat .back {
    position: absolute;
    width: 90px;
    height: 50px;
    top: 0px;
    left: 0px;
    color: #fff;
    line-height: 50px;
    font-size: 30px;
    padding-left: 10px;
    cursor: pointer;
}
 .BoxChat .back img {
    position: absolute;
    top: 5px;
    left: 30px;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.98);
    border-radius: 100%;
    -webkit-border-radius: 100%;
    -moz-border-radius: 100%;
    -ms-border-radius: 100%;
    margin-left: 15px;
    }
.BoxChat .back:active {
    background: rgba(255,255,255,0.2);
}
.BoxChat .name{
    position: absolute;
    top: 3px;
    left: 110px;
    font-family: 'Lato';
    font-size: 25px;
    font-weight: 300;
    color: rgba(255,255,255,0.98);
    cursor: default;
}
.BoxChat .last{
    position: absolute;
    top: 30px;
    left: 115px;
    font-family: 'Lato';
    font-size: 11px;
    font-weight: 400;
    color: rgba(255,255,255,0.6);
    cursor: default
}

/* M E S S A G E S */

.BoxChat .chat {
    list-style: none;
    background: none;
    margin: 0;
    padding: 0 0 0px 0;
    /*margin-top: 60px;*/
    margin-bottom: 10px;
}
.BoxChat .chat li {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    overflow: hidden;
    display: flex;
}
.BoxChat .chat .avatar {
    width: 35px;
    height: 40px;
    position: relative;
    display: block;
    z-index: 2;
    border-radius: 100%;
    -webkit-border-radius: 100%;
    -moz-border-radius: 100%;
    -ms-border-radius: 100%;
    /*background-color: rgba(255,255,255,0.9);*/
}
.BoxChat .chat .avatar img {
    width: 30px;
    height: 30px;
    border-radius: 100%;
    -webkit-border-radius: 100%;
    -moz-border-radius: 100%;
    -ms-border-radius: 100%;
    background-color: rgba(255,255,255,0.9);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
.BoxChat .chat .day {
    position: relative;
    display: block;
    text-align: center;
    color: #c0c0c0;
    height: 20px;
    text-shadow: 7px 0px 0px #f1f1f1, 6px 0px 0px #f1f1f1, 5px 0px 0px #f1f1f1, 4px 0px 0px #f1f1f1, 3px 0px 0px #f1f1f1, 2px 0px 0px #f1f1f1, 1px 0px 0px #f1f1f1, 1px 0px 0px #f1f1f1, 0px 0px 0px #f1f1f1, -1px 0px 0px #f1f1f1, -2px 0px 0px #f1f1f1, -3px 0px 0px #f1f1f1, -4px 0px 0px #f1f1f1, -5px 0px 0px #f1f1f1, -6px 0px 0px #f1f1f1, -7px 0px 0px #f1f1f1;
    box-shadow: inset 20px 0px 0px #f1f1f1, inset -20px 0px 0px #f1f1f1, inset 0px -1px 0px #d7d7d7;
    line-height: 38px;
    margin-top: 5px;
    margin-bottom: 20px;
    cursor: default;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.BoxChat .other .msg {
    order: 1;
    border-top-left-radius: 0px;
    box-shadow: -1px 2px 0px #D4D4D4;
}
.BoxChat .other:before {
    content: "";
    position: relative;
    top: 0px;
    right: 0px;
    left: 40px;
    width: 0px;
    height: 0px;
    border: 5px solid #fff;
    border-left-color: transparent;
    border-bottom-color: transparent;
}

.BoxChat .self {
    justify-content: flex-end;
    align-items: flex-end;
}
.BoxChat .self .msg {
    order: 1;
    border-bottom-right-radius: 0px;
    box-shadow: 1px 2px 0px #D4D4D4;
}
.BoxChat .self .avatar {
    order: 2;
}
.BoxChat .self .avatar:after {
    content: "";
    position: relative;
    display: inline-block;
    bottom: 19px;
    right: 0px;
    width: 0px;
    height: 0px;
    border: 5px solid #fff;
    border-right-color: transparent;
    border-top-color: transparent;
    box-shadow: 0px 2px 0px #D4D4D4;
}

.BoxChat .msg {
    background: white;
    min-width: 50px;
    padding: 10px;
    border-radius: 2px;
    box-shadow: 0px 2px 0px rgba(0, 0, 0, 0.07);
}
.BoxChat .msg p {
    font-size: 1.3rem;
    margin: 0 0 0.2rem 0;
    color: #777;
}
.BoxChat .msg img {
    position: relative;
    display: block;
    /*width: 450px;*/
    border-radius: 5px;
    box-shadow: 0px 0px 3px #eee;
    transition: all .4s cubic-bezier(0.565, -0.260, 0.255, 1.410);
    cursor: default;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
@media screen and (max-width: 800px) {
    .msg img {
    width: 300px;
}
}
@media screen and (max-width: 550px) {
    .msg img {
    width: 200px;
}
}

.BoxChat .msg time {
    font-size: 0.9rem;
    color: #ccc;
    margin-top: 3px;
    float: right;
    cursor: default;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
.BoxChat .msg time:before{
    content:"\f017";
    color: #ddd;
    font-family: FontAwesome;
    display: inline-block;
    margin-right: 4px;
}

emoji{
    display: inline-block;
    height: 18px;
    width: 18px;
    background-size: cover;
    background-repeat: no-repeat;
    margin-top: -7px;
    margin-right: 2px;
    transform: translate3d(0px, 3px, 0px);
}
emoji.please{background-image: url(https://imgur.com/ftowh0s.png);}
emoji.lmao{background-image: url(https://i.imgur.com/MllSy5N.png);}
emoji.happy{background-image: url(https://imgur.com/5WUpcPZ.png);}
emoji.pizza{background-image: url(https://imgur.com/voEvJld.png);}
emoji.cryalot{background-image: url(https://i.imgur.com/UUrRRo6.png);}
emoji.books{background-image: url(https://i.imgur.com/UjZLf1R.png);}
emoji.moai{background-image: url(https://imgur.com/uSpaYy8.png);}
emoji.suffocated{background-image: url(https://i.imgur.com/jfTyB5F.png);}
emoji.scream{background-image: url(https://i.imgur.com/tOLNJgg.png);}
emoji.hearth_blue{background-image: url(https://i.imgur.com/gR9juts.png);}
emoji.funny{background-image: url(https://i.imgur.com/qKia58V.png);}

@-webikt-keyframes pulse {
  from { opacity: 0; }
  to { opacity: 0.5; }
}

/*::-webkit-scrollbar {
    min-width: 12px;
    width: 12px;
    max-width: 12px;
    min-height: 12px;
    height: 12px;
    max-height: 12px;
    background: #e5e5e5;
    box-shadow: inset 0px 50px 0px rgba(82,179,217,0.9), inset 0px -52px 0px #fafafa;
}

::-webkit-scrollbar-thumb {
    background: #bbb;
    border: none;
    border-radius: 100px;
    border: solid 3px #e5e5e5;
    box-shadow: inset 0px 0px 3px #999;
}

::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
  box-shadow: inset 0px 0px 3px #888;
}

::-webkit-scrollbar-thumb:active {
    background: #aaa;
  box-shadow: inset 0px 0px 3px #7f7f7f;
}

::-webkit-scrollbar-button {
    display: block;
    height: 26px;
}*/

/* T Y P E */

.BoxChat input.textarea {
    position: fixed;
    bottom: 0px;
    left: 0px;
    right: 0px;
    width: 100%;
    height: 50px;
    z-index: 99;
    background: #fafafa;
    border: none;
    outline: none;
    padding-left: 55px;
    padding-right: 55px;
    color: #666;
    font-weight: 400;
}
.BoxChat .emojis {
    position: fixed;
    display: block;
    bottom: 8px;
    left: 7px;
    width: 34px;
    height: 34px;
    background-image: url(https://i.imgur.com/5WUpcPZ.png);
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 100;
    cursor: pointer;
}
.BoxChat .emojis:active {
    opacity: 0.9;
}
