/* M E S S A G E S */

.chat {
    list-style: none;
    margin: 0;
    padding: 0 0 10px 0;
}
.chat li {
    padding: 0.5rem 0;
    overflow: hidden;
    display: flex;
}
.chat .day {
    position: relative;
    display: block;
    text-align: center;
    color: rgba(227, 226, 226, 1);
    height: 20px;
    text-shadow: 7px 0px 0px rgba(255, 255, 255, 1), 6px 0px 0px rgba(255, 255, 255, 1), 5px 0px 0px rgba(255, 255, 255, 1), 4px 0px 0px rgba(255, 255, 255, 1), 3px 0px 0px rgba(255, 255, 255, 1), 2px 0px 0px rgba(255, 255, 255, 1), 1px 0px 0px rgba(255, 255, 255, 1), 1px 0px 0px rgba(255, 255, 255, 1), 0px 0px 0px rgba(255, 255, 255, 1), -1px 0px 0px rgba(255, 255, 255, 1), -2px 0px 0px rgba(255, 255, 255, 1), -3px 0px 0px rgba(255, 255, 255, 1), -4px 0px 0px rgba(255, 255, 255, 1), -5px 0px 0px rgba(255, 255, 255, 1), -6px 0px 0px rgba(255, 255, 255, 1), -7px 0px 0px rgba(255, 255, 255, 1);
    box-shadow: inset 0px 0px 0px rgba(227, 226, 226, 1), inset 0px 0px 0px rgba(227, 226, 226, 1), inset 0px -1px 0px rgba(227, 226, 226, 1);
    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;
}
.chat .notification {
    position: relative;
    display: inherit;
    text-align: center;
    font-size: 13px;
    color: rgba(61, 60, 61, 1);
    background: rgba(227, 226, 226, 0.3);
    line-height: 30px;
    border-radius: 100px;
    margin: 7px auto;
    height: 30px;
    width: 70%;
    box-shadow: 0px 1px 0px rgba(227, 226, 226, 1), 0px -1px 0px rgba(227, 226, 226, 1), inset 0px 1px 0px rgba(227, 226, 226, 1), inset 0px -1px 0px rgba(227, 226, 226, 1);
    cursor: default;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    transition: all .2s cubic-bezier(0.565, -0.260, 0.255, 1.410);
}
.chat .notification time {
    position: absolute;
    top: 7px;
    right: 7px;
    font-size: 11px;
    padding: 8px;
    border-radius: 100px;
    background: rgba(227, 226, 226, 0.3);
    box-shadow: 0px 0px 2px rgba(255,255,255,.02), inset 0px 0px 1px rgba(27,35,42,0.1);
    height: 1px;
    line-height: 0px;
    color: rgba(61, 60, 61, 1);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    transition: all .2s cubic-bezier(0.565, -0.260, 0.255, 1.410);
}

.in .msg {
    border-top-left-radius: 0px;
   /* box-shadow: -1px 2px 0px #c1cbcd;*/
}

.in .msg .user {
    text-align: left;
}


.in:before {
    content: "";
    position: relative;
    top: 0px;
    right: 0px;
    left: 0px;
    width: 0px;
    height: 0px;
    border: 5px solid rgba(227, 226, 226, 0.3);
    border-left-color: transparent;
    border-bottom-color: transparent;
}

.out {
    justify-content: flex-end;
    align-items: flex-end;
}
.out .msg {
    border-bottom-right-radius: 0px;
    /*box-shadow: 1px 2px 0px #c1cbcd;*/
}

.out .msg .user {
    text-align: right;
}

.out:after {
    content: "";
    position: relative;
    display: inline-block;
    float: right;
    bottom: 0px;
    right: 0px;
    width: 0px;
    height: 0px;
    border: 5px solid rgba(227, 226, 226, 0.3);
    border-right-color: transparent;
    border-top-color: transparent;
    /*box-shadow: 0px 2px 0px #c1cbcd;*/
}

.msg {
    background: rgba(227, 226, 226, 0.3);
    min-width: 50px;
    padding: 5px 10px;
    border-radius: 2px;
    /*word-break: break-all;*/
}
.msg span.m2break {
    word-break: break-all;
    display: inline-block;
}
.msg .user {
    font-size: 12px;
    margin: 0 0 2px 0;
    color: rgba(61, 60, 61, 1);
    font-weight: 700;
    margin-top: -2px;
    margin-bottom: 5px;
    transition: all .2s ease;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
.msg .user .range.admin {
    display: inline-block;
    font-size: 10px;
    font-weight: 300;
    color: #6aea96;
    padding: 2px;
    border-radius: 3px;
    border: solid 1px #6aea96;
    background: rgba(255,255,255,0);
    margin-left: 5px;
}
.msg p {
    font-size: 13px;
    margin: 0 0 2px 0;
    color: rgba(61, 60, 61, 1);
    transition: all .2s ease;
}
.msg img {
    position: relative;
    display: block;
    width: 600px;
    border-radius: 5px;
    box-shadow: 0px 0px 3px #eee;
    transition: all .8s 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;
}

.msg time {
    font-size: 0.7rem;
    color: rgba(0,0,0,.35);
    margin-top: 3px;
    float: right;
    cursor: default;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
.msg time:before{
    content:"\f017";
    color: #ddd;
    font-family: FontAwesome;
    display: inline-block;
    margin-right: 4px;
}

.msg time.read {
    color: #f00d00;
}

emoji{
    display: inline-block;
    height: 18px;
    width: 18px;
    background-size: cover;
    background-repeat: no-repeat;
    margin-top: -7px;
    margin-left: 2px;
    margin-right: 2px;
    transform: translate3d(0px, 4px, 0px);
}

emoji .quickButton {
    position: absolute;
}
emoji img,
emoji .smiley {
    height: 18px;
    width: 18px;
}

@-webikt-keyframes pulse {
  from { opacity: 0; }
  to { opacity: 0.5; }
}

/* T Y P E */
.typezone{
    position: fixed;
    bottom: 0px;
    left: 0px;
    right: 0px;
    width: 100%;
    height: 50px;
    z-index: 99;
    background: #eee;
    border: none;
    outline: none;
}
/*textarea, textarea:hover {
    position: absolute;
    bottom: 0px;
    left: 8%;
    right: 8%;
    width: 80%;
    height: 30px;
    z-index: 100;
    background: #fafafa;
    border: none;
    outline: none;
    padding-left: 2%;
    padding-right: 2%;
    padding-top: 2%;
    color: #666;
    font-weight: 400;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    overflow: hidden;
    resize: none;
    z-index: 200;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.2);
    transition: all .4s cubic-bezier(0.565, -0.260, 0.255, 1.410);
}
textarea:focus {
    height: 300px;
    box-shadow: 0px 0px 20px rgba(0,0,0,0.3);
}*/
.emojis {
    position: fixed;
    display: block;
    bottom: 0px;
    left: 0px;
    width: 8%;
    height: 50px;
    background-image: url(http://i.imgur.com/VAn5Geq.png);
    background-repeat: no-repeat;
    background-size: 34px 34px;
    background-position: 45% 9px;
    z-index: 100;
    cursor: pointer;
}
.emojis:active {
    opacity: 0.9;
}
.send {
    position: fixed;
    display: block;
    bottom: 0px;
    right: 0px;
    width: 8%;
    height: 50px;
    border: none;
    outline: none;
    z-index: 100;
    cursor: pointer;
    background-image: url(http://i.imgur.com/VSQxJKL.png);
    background-repeat: no-repeat;
    background-size: 34px 34px;
    background-position: 45% 9px;
    background-color: rgba(255,255,255,0);
}
.send:active {
    opacity: 0.85;
}

/* R E S P O N S I V E   C O N F I G U R A T I O N */

@media screen and (max-width: 750px) {
    ::-webkit-scrollbar {
    display: none;
    }
    .chat{
        margin-bottom: 10px;
    }
    .msg p {
        font-size: 11px;
    }
    .msg .user {
        font-size: 13px;
    }
    .msg img:not(.smiley) {
        width: 300px;
    }
    .chat .notification {
        font-size: 12px;
        margin: 7px 30%;
        width: 40%;
    }
    .chat .day {
        font-size: 11px;
    }
    .emojis {
        width: 25%;
    }
    .send {
        width: 25%;
    }
    emoji img,
    emoji .smiley {
        height: 18px;
        width: 18px;
    }
/*    textarea {
        left: 0px;
        right: 0px;
        bottom: 50px;
        padding-left: 5%;
        padding-right: 5%;
        padding-top: 20px;
        width: 90%;
        border-radius: 0px;
        height: 28px;
        background: #fafafa;
        box-shadow: none;
        transition: all .4s cubic-bezier(0.2, -0.2, 0.2, 1.2);
    }
    textarea:focus {
        height: 30vh;
        margin-top: 30vh;
        box-shadow: 0px -20px 20px rgba(0,0,0,0.1);
    }
    form:focus ~ .typezone {
        bottom: 50vh;
    }*/
}
@media screen and (max-width: 550px) {
    .msg p {
        max-width: 250px;
    }
    .msg img {
        width: 200px;
    }
    .chat .notification {
        font-size: 12px;
        margin: 7px 0px;
        width: 100%;
        border-radius: 0px;
    }
    .chat .notification time {
        right: 10px;
    }
    emoji img,
    emoji .smiley {
        height: 18px;
        width: 18px;
    }
}
