@charset "utf-8";

/*chat interativo*/

#float_chat{
    width: 100px;
    height: 100px;
    
    background-position: center;
    background-size: 100%;
    position: fixed;
    z-index: 100;
    right: 3%;
    bottom: 5%;
    border-radius: 50%;
    display:flex;
    justify-content: flex-end;
    align-items: flex-end;
    cursor: pointer;
    animation: trocarBackground 18s infinite steps(1);
}
    .floatChat{
        opacity: 0;
    }
        .floatChat.flcOn{
            opacity: 100;
            transition: all ease 0.5s;
        }
    #on_status_float_chat{
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background-color: #28A745;
        z-index:11 ;
        margin-bottom: 7px;
        margin-right: 6px;
        animation: latejamentoBola 7s infinite;
        
    }
@keyframes trocarBackground {
    0% {background-image: url(../img/maciel.jpeg);}
    50% {background-image: url(../img/pedro.jpeg);}
    100% {background-image: url(../img/maciel.jpeg) ;}
}
@keyframes latejamentoBola {
    0% , 100% {transform: scale(1);}
    50% {transform: scale(1.2);}
}

.chat_lp.chatOff{
    bottom: -100vh;
    transition: all ease 0.6s;
}

.chat_lp{
    transition: all ease 0.6s;
    width: 356px;
    height: 370px;
    background-color: white;
    position: fixed;
    z-index: 110;
    right: 8px;
    bottom: 0;
    display: flex;
    flex-direction: column;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    box-shadow: black 3px 1px 13px 3px;
}
    #header_chat{
        background-color: #1D3557;
        width: 100%;
        height: 17.5%;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        border-top-left-radius: 18px;
        border-top-right-radius: 18px;
        color: white;
    }
        #img-1-chat{
            width: 42px;
            height: 42px;
            background-image: url(../img/pedro.jpeg);
            background-position: center;
            background-size: cover;
            border-radius: 50%;
            margin-left: 18px;
        }
        #header_chat h4{
            font-size: 98%;
            margin-left: -28px;
        }
        #close_chat{
            width: 16px;
            height: 16px;
            background-color: white;
            color: #1D3557;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            margin-right: 17px;
            cursor: pointer;
        }
            #close_chat span{
                font-size: 90%;
            }
    #content_chat{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

        .messages{
            display: flex;
            transition: all ease-out 0.5s;
        }
        .messages.msgOff{
            opacity: 0;
        }
        #chat-message-1{
            background-color: #D9D9D9;
            margin-top: 60px;
            min-width: 73%;
            width: auto;
            min-height: 46px;
            height: auto;
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: flex-start;
        }
            #chat-message-1 p{
                margin-left: 18px;
            }
        #chat-message-2{
            background-color: #D9D9D9;
            margin-top: 15px;
            min-height: 120px;
            min-width: 73%;
            width: 73%;
            border-radius: 20px;
            border-bottom-left-radius: 0;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            justify-content: center;
        }
            #chat-message-2 p{
                margin-left: 18px;
            }
                #btn-chat{
                    margin-top: 6%;
                    margin-left: 18px;
                    border: none;
                    min-width: 70%;
                    min-height: 35px;
                    border-radius: 5px;
                    display: flex;
                    align-items: center;
                    justify-content: space-around;
                    font-weight: 600;
                    color: white;
                    background-color: #28A745;
                    cursor: pointer;
                    position: relative;
                }
        #mini-rosto-chat{
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background-image: url(../img/pedro.jpeg);
            background-position: center;
            background-size: cover;
            position: absolute;
            left: 7%;
            bottom: 12%;
        }
            .digitando{
                width: 28px;
                height: 9px;
                background-color: #D9D9D9;
                position: absolute;
                bottom: 0;
                right: -20px;
                display: flex;
                flex-direction: row;
                align-items: center;
                justify-content: center;
                gap: 10%;
            }
                .digitando.digitandoOff{
                    display: none;
                }
                #b-1{
                    width: 3px;
                    height: 3px;
                    border-radius: 50%;
                    background-color: #BFBFBF;
                    animation: b1 1.6s infinite ;
                }
                #b-2{
                    width: 3px;
                    height: 3px;
                    border-radius: 50%;
                    background-color: #BFBFBF;
                    animation: b1 1.8s infinite ;
                }
                #b-3{
                    width: 3px;
                    height: 3px;
                    border-radius: 50%;
                    background-color: #BFBFBF;
                    animation: b1 2s infinite ;
                }
                    @keyframes b1{
                        0%{scale: 100%; background-color: #BFBFBF;}
                        50%{scale: 150%; background-color: #120F17;}
                        100%{scale: 100%;}
                    }

    #aviso_chat{
        width: 100%;
        min-height: 9%;
        background-color: #D9D9D9;
        position: absolute;
        bottom: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
        #aviso_chat small{
            font-size: 60%;
        }

@media(max-width:768px){
    .chat_lp{
        height: 80vh;
        width: 100vw;
    }
    #float_chat{
    width: 70px;
    height: 70px;
    }
}