html{
    padding-bottom: 50px;
}

#overlayChat {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 15;
    cursor: pointer;
}

#chat1 .form-outline .form-control~.form-notch div {
pointer-events: none;
border: 1px solid;
border-color: #eee;
box-sizing: border-box;
background: transparent;
}

#chat1 .form-outline .form-control~.form-notch .form-notch-leading {
left: 0;
top: 0;
height: 100%;
border-right: none;
border-radius: .65rem 0 0 .65rem;
}

#chat1 .form-outline .form-control~.form-notch .form-notch-middle {
flex: 0 0 auto;
max-width: calc(100% - 1rem);
height: 100%;
border-right: none;
border-left: none;
}

#chat1 .form-outline .form-control~.form-notch .form-notch-trailing {
flex-grow: 1;
height: 100%;
border-left: none;
border-radius: 0 .65rem .65rem 0;
}

#chat1 .form-outline .form-control:focus~.form-notch .form-notch-leading {
border-top: 0.125rem solid #39c0ed;
border-bottom: 0.125rem solid #39c0ed;
border-left: 0.125rem solid #39c0ed;
}

#chat1 .form-outline .form-control:focus~.form-notch .form-notch-leading,
#chat1 .form-outline .form-control.active~.form-notch .form-notch-leading {
border-right: none;
transition: all 0.2s linear;
}

#chat1 .form-outline .form-control:focus~.form-notch .form-notch-middle {
border-bottom: 0.125rem solid;
border-color: #39c0ed;
}

#chat1 .form-outline .form-control:focus~.form-notch .form-notch-middle,
#chat1 .form-outline .form-control.active~.form-notch .form-notch-middle {
border-top: none;
border-right: none;
border-left: none;
transition: all 0.2s linear;
}

#chat1 .form-outline .form-control:focus~.form-notch .form-notch-trailing {
border-top: 0.125rem solid #39c0ed;
border-bottom: 0.125rem solid #39c0ed;
border-right: 0.125rem solid #39c0ed;
}

#chat1 .form-outline .form-control:focus~.form-notch .form-notch-trailing,
#chat1 .form-outline .form-control.active~.form-notch .form-notch-trailing {
border-left: none;
transition: all 0.2s linear;
}

#chat1 .form-outline .form-control:focus~.form-label {
color: #39c0ed;
}

#chat1 .form-outline .form-control~.form-label {
color: #bfbfbf;
}

/* ----- ESTILOS PERSONALIZADOS ------ */
#chat1{
    display: none;
    position: fixed;
    bottom: 0;
    width: 85%;
    height: 91%;
    right: 15px;
    z-index: 9999;
    border-radius: 18px;
    border: 5px outset #fcd116;
    border-bottom: 0px;
}

/* ESTILO PARA A ROLL BAR */
.area-salas{
    overflow-x: hidden;
    white-space: nowrap;
    display: inline-block;
    vertical-align: top;
    width: 100%;
    height: 100%;
    float: none;
    padding: 0px;
}
.estilo-col-roll{
    vertical-align: top;
    float: none;
    padding: 0px 30px;
    border-bottom: 1px solid lightgray;
    background-color: whitesmoke;
}
#criar-estrutura-rooms {
    width: 20%;
    height: 84% !important;
}

/* ESTILO PARA O SEARCH DA ROLL BAR */

.divSearch{
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#input-search-rooms {
    padding: 5px;
    outline: none;
    border: 1px solid lightgray;
    border-left: 0px;
}

/* Button used to open the chat form - fixed at the bottom of the page */
.open-button {
    background-color: #FCD116;
    color: black;
    padding: 12px 20px;
    border: 5px outset #fcd116;
    border-bottom: none;
    border-radius: 15px 15px 0px 0px;
    cursor: pointer;
    opacity: 1;
    position: fixed;
    bottom: 0px;
    right: 28px;
    width: 280px;
}
#chat-nome-botao{
    padding: 0px 15px;

}
#chat-nome-aberto{
    display: inline;
    margin: 0px 30px;
    font-size: 18px;
}

.badge-contador{
    border: 3px outset black;
    display: inline-block;
}

/* Estilos dos botões */
#botao-fechar{
    border: 1px solid white;
    border-radius: 5px;
    padding: 5px 10px;
    display: inline;
    margin: 0px 30px;
}
#botao-fechar-x{
    display: inline;
    margin: 0px 30px;
}

#botao-fechar:hover{
    border: 1px solid black;
    color: black;
}

#enviar-botao{
    padding: 0px 5px;
}

/* Estrutura do Chat */

#chat-cabecalho{
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

#interior-chat{
    width: 100%;
    bottom: 0px;
    padding: 0px 10px 2% 10px;
}

#section-chat-hedger{
    position: absolute;
    background: rgba(0,0,0,0.0);
}

#chat-hedger{
    height: 300px;
    background-color: black;
}

/* Envio da mensagem */

.display-message-section-class{
    border-radius: 15px;
    width: 100%;
    overflow-x: hidden;
    padding: 5px !important;
    text-align: center;
}

.bg-admin{
    background-color: #FCD116;
    border-radius: 10px;
    text-align: left;
    color: black;
    margin-right: 40%;
    margin-bottom: 20px;
    padding: 10px 20px;
}

.bg-usuario{
    background-color: whitesmoke;
    border-radius: 10px;
    text-align: right;
    color: black;
    margin-left: 40%;
    margin-bottom: 20px;
    padding: 10px 20px;
}

.span-nome{
    font-style: italic;
    font-size: 22px;
    line-height: 50px;
}

.span-horario{
    font-size: 16px;
    font-style: italic;
}

.img-usuario{
    width: 45px;
    height: 100%;
}

.p-mensagem{
    word-wrap: break-word;
    font-size: 18px;
    display: block;
    margin-bottom: 5px !important;
}

#user_message{
    resize: none;
}

.col-img-sending{
    height: 50px;
    height: 50px;
    line-height: 50px;
}

.col-span-sending{
    height: 50px;
    width: 75%;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    line-height: 50px;
}

.imagem-sending{
    display: inline;
    height: 50px;
    width: 50px;
}

/* Media Query (do bootstrap) */

    /* Celulares muito pequenos */
    @media (max-width: 500px) {
        #chat1{
            width: 93%;
        }
        #chat-nome-aberto{
            margin: 0px 10px;
        }
        #botao-fechar{
            margin: 0px 10px;
        }
        #botao-fechar-x{
            margin: 0px 10px;
        }
    }

    @media (max-width: 1399px) {
        .bg-admin{
            margin-right: 3%;
        }
        .bg-usuario{
            margin-left: 3%;
        }
    }
    @media (min-width: 1400px) {
        .bg-admin{
            margin-right: 40%;
        }
        .bg-usuario{
            margin-left: 40%;
        }
    }