﻿

#chatArea {
/*    ajuste para checkin*/
    position: fixed;
    bottom: 65px;
    right: 20px;
    height: 50px;
    width: 50px;
    background-color: var(--colorPrimary);
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
    z-index:10;
}

    #chatArea a {
        background-image: url("/assets/images/chat_white.png");
        height: calc(100% - 20px);
        width: calc(100% - 20px);
        position: absolute;
        background-size: cover;
    }

#chat, #chatusers {
    position: fixed;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
    right: 10px;
    bottom: 10px;
    z-index: 100;
    width: 90%;
    background-color: white;
    border-radius: 10px;
    box-shadow: 4px 4px 4px 4px rgba(0, 0, 0, 0.25);
}


.avatar {
    background-color: var(--colorComplementaryTwo) !important;
    height: 50px;
    width: 50px;
    min-height: 50px;
    min-width: 50px;
    border-radius: 50%;
}

.closeChat{
    height:10px;
}
.chat-box {
    height: 300px;
    overflow: auto;
    margin-bottom: 1rem;
    padding: 1rem;
}
.chat-box .chat-left p,
.chat-box .chat-right p {
    padding: .5rem 1rem;
    position: relative;
    border-radius: .5rem;
    display: inline-block;
    width: auto;
    margin-bottom: .5rem;
    /*esta propriedade quebra a linha, mas quebra a palavra, caso o tamanho nao seja suficiente*/
    /*line-break:anywhere;*/
    word-break: break-word;
}

    .chat-box .chat-left p:first-child::before,
    .chat-box .chat-right p:first-child::after {
        content: '';
        display: block;
        position: absolute;
        top: .65rem;
        width: 1rem;
        height: 1rem;
        transform: skew(330deg, 25deg) rotate(106deg);
    }

    .chat-box .chat-left p:first-child::before {
        left: -0.25rem;
        background-color: var(--colorComplementaryTwo);
    }

    .chat-box .chat-right p:first-child::after {
        right: -.25rem;
        background-color: var(--colorComplementaryOne);
    }

.chat-box .chat-left p {
    background-color: var(--colorComplementaryTwo);
}

.chat-box .chat-right p {
    text-align: right;
    color: white;
    background-color: var(--colorComplementaryOne);
}

.chat-box .chat-right,
.chat-box .chat-left {
    display: flex;
    flex-direction: column;
}

.chat-box .chat-left {
    align-items: flex-start;
}

.chat-box .chat-right {
    align-items: flex-end;
    margin-bottom: .5rem
}

.chat-box textarea {
    resize: none
}


.avatar-list span{
    width:20px;
    height:20px;
    background-color:var(--colorPrimary);
    position:absolute;
    color:white;
    border-radius:50%;
   
}

.container-chat-users div:last-child hr {
    display: none;
}

#messagesToRead {
    background-color: yellow;
    height: 16px;
    width: 16px;
    position: absolute;
    top: 0px;
    right: 0px;
    border-radius: 50%;
    text-align: center;
    font-size: 10px;
    color:black;
}

.container-chat-users, #chat > .container{
    margin-top:0px!important;
}

@media only screen and (min-width: 1024px) {
    #chat, #chatusers{
        width:30%;
    }
}