.chat-window button:focus {
    -webkit-tap-highlight-color: rgba(255,255,255,0);
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.chat-window {
    border-left: 9px solid #4D4D52;
    padding: 0 !important;
    float: left;
    margin: 0 auto;
    overflow: hidden;
    color: #222222;
    border-radius: 20px;
    font-family: 'Avenir Next', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

@media screen and (max-width:380px) {
    .chat-window {
        border: none;
        border-radius: 0px;
    }
}

.chat-messages {
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;
    position: relative;
    border-radius: 2px 2px 0 0;
    background: #222222;
}

.chat-messages-list {
    list-style-type: none;
    margin: 0;
    width: 100%;
    padding: 40px 25px 60px;
}

.chat-message {
    text-align: left;
    position: relative;
    font-size: 0;
    margin-bottom: 10px;
}

.chat-message-effect {
    position: absolute;
}

.chat-message-bubble {
    display: inline-block;
    font-size: 14px;
    max-width: 350px;
    background: #fff;
    padding: 8px 14px;
    border-radius: 18px;
    min-width: 0;
}

.chat-message-self.chat-message-merge-start .chat-message-bubble {
    border-bottom-right-radius: 0;
}

.chat-message-self.chat-message-merge-middle .chat-message-bubble {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.chat-message-self.chat-message-merge-end .chat-message-bubble {
    border-top-right-radius: 0;
}

.chat-message-self {
    text-align: right;
}

.chat-message-self .chat-message-bubble,
.chat-message-effect .chat-message-bubble {
    background: #1B6D85;
    color: #fff;
    text-align: left;
}

.chat-input-bar {
    position: relative;
    background: #1B6D85;
    border-radius: 18px;
}

.chat-input-wrapper {
    position: relative;
    z-index: 2;
    background: #1B6D85;
    padding: 0.5em 0;
    border-radius: 0 0 2px 2px;
    color: #fff;
    border-bottom-right-radius: 18px;

}

.chat-input-wrapper,
.chat-send {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-justify-content: center;
    justify-content: center;
    font-size: 16px;
}

.chat-input-tool {
    background: transparent;
    border: none;
    padding: 0 0.75em;
    color: inherit;
}

.chat-input {
    outline: none;
    resize: none;
    overflow: hidden;
    min-height: 38px;
    -webkit-flex: 1;
    flex: 1;
    font-size: 14px;
    padding: 10px 0 7px;
    cursor: text;
}

.chat-input:empty::before {
    content: "Scrivi qui il messaggio...";
    color: #bfc2ce;
}

.chat-input:focus::before {
    content: "";
}

.chat-send {
    background: transparent;
    border: none;
    position: relative;
    overflow: hidden;
    padding: 0 0.75em;
    color: inherit;
    -webkit-transition: color 0.6s;
    transition: color 0.6s;
}

.chat-input:empty + .chat-send {
    color: #1B6D85;
    padding-right: 16px;
}

.chat-send>i {
    position: relative;
}

.chat-effect-container {
    position: absolute;
    top: -100px;
    width: 100%;
}

.chat-effect-bar {
    background: #1B6D85;
    position: absolute;
    top: 100px;
    width: 100%;
    height: 40px;
    -webkit-transform: rotateY(0deg);
    transform: rotateY(0deg);
}

.chat-effect-dots {
    position: absolute;
}

.chat-effect-dot {
    background: #1B6D85;
    position: absolute;
    width: 15px;
    height: 15px;
    border-radius: 100%;
}

.chat-info-container {
    position: absolute;
    top: -20px;
    font-size: 12px;
    color: #1B6D85;
}

.chat-info-typing {
    position: absolute;
    left: 80px;
    white-space: nowrap;
}

.chat-message-bubble.nomeamico{
    border-radius: 0;
    transform: translate3d(0px, 0px, 0px);
    opacity: 1;
    border-bottom-right-radius: 18px;
    width: 50%;
    z-index: 50;
    position: fixed;
    min-height: 40px;
    color: white;
    left: 100px;
    background: #841E21;    border: 2px solid #222222;
    border-top: 0px;
    border-left: 0px;
}
.chatThumbList{
    border-radius: 25px;
    float: left;
    width: 50px;
    height: 50px;
    border: 2px solid #841E21;
    transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
    margin-top: -8px;

}

.chatThumbList:hover{

    border-radius: 10%;
}

.chatThumbList.offline{
    border: 2px solid #841E21;

}
.chatThumbList.online{
    border: 2px solid #1B6D85;

}



ul.chatlist{
    padding: 0px;
    margin:0px;
    padding-bottom: 10px;
    background: #222222;
    border-radius: 18px;
}

.chatlistelement{
    border: 0px solid;
    list-style: none;
    padding: 20px;
    color: white;
    background: #222222;
    cursor: pointer;
    transition: all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
}

.chatlistelement:hover{
    background: #841E21;
}

.chatlistelement.first{
    border-top: 1px solid #888888;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.chatlistelement.last{
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    border-bottom: 1px solid #888888;
}

.texttime{
    font-size: x-small;
    font-weight: 500;
    margin: 2px 0;
    font-family: Lato;
    color: black;
}

.textdate{
    font-size: xx-small;
    font-weight: 500;
    margin: 2px 0;
    font-family: Lato;
    color: black;;

}

.emojiContainer {
    background: #4D4D52;
    position: fixed;
    width: 30%;
    border-radius: 18px;
    height: 0;
    top: 100%;
    bottom: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    overflow: scroll;
    transition: all cubic-bezier(1, -0.87, 0.79, 1.79) 0.5s;
}

.emojiContainer.max {
    height: 30%;
    top: 45%;
    bottom: inherit;
    overflow: scroll;
}

.emojielement {
    padding: 5px;
    display: inline-flex;
    width: 30px;
    height: 30px;
    text-align: initial;
    font-size: larger;
    cursor: pointer;
}

.chat-message-self>.chat-message-bubble > .texttime{
    color:darkgrey
}

.chat-message-self>.chat-message-bubble > .textdate{
    color:darkgrey
}

.lastOnline{
    text-align: right;
    font-size: xx-small;
    color: #A9A9A9;
    margin: 0;
}