.form-chat{
    border-radius: 25px; 
    width: 100%;
    height: auto;
    position: relative;
    font-size: 18px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    transition: all 0.1s linear;
    justify-content: space-between;

}
#chat-container.form-chat.chatClosed.hover:hover{
    cursor: pointer;
}
#chat-container.form-chat:not(.chatClosed) .box-messages{
    min-height: auto;
    padding-bottom: 40px;

}
#chat-container.form-chat.chatClosed .box-messages{
    min-height: unset!important;
    overflow: hidden;
}
#chat-container.form-chat.chatClosed .input-chat{
    border-radius: 25px;
    margin-top: unset;
}
.form-chat .input, .form-chat span{
    /* min-height: 50px; */
    height: auto;
    min-width: 50px;
    text-align: left;
    padding: 10px 15px;
    font-size: inherit;
    border: unset;
    /* width: 100%; */
}

.box-messages{
    order: 1;
    flex-grow: 2;
    display: flex;
    flex-flow: column-reverse nowrap;
    transition: height 200ms ease;
    height: auto;
    max-height: 60vh;
    overflow-y: scroll;
    scrollbar-width: none;
}
span.message{
    border-radius: 0px 25px 25px 25px;
    margin: 20px 20px -15px 20px;
    align-self: flex-start;
    text-align: left;
    max-width: 80%;
    position: relative;

}
.form-chat span.buttons{
    background-color: unset;
    padding: unset;
    position: relative;
    bottom: -50%;
    left: 0;
    right: 0;
    display: flex;
    min-height: unset;
    justify-content: center;
}
.form-chat span.buttons span.button{
    font-size: 12px;
    border-radius: 50px;
    margin: 5px;
    padding: 5px 15px;
    font-weight: 400;
    transition: 0.2s ease;
    min-height: unset;
    cursor: pointer;
}
.form-chat span.buttons span.button.disabled{
    cursor:not-allowed;
}
span.message.messageSent{
    align-self: flex-end;
    border-radius: 25px 0px 25px 25px;
    animation: sending 0.1s linear;
    animation-iteration-count: 1;
}
@keyframes sending{
    0%{transform: translateY(200%);}
    100%{transform: translateY(0);}}

.input-chat{
    width: 100%;
    height: 100px;
    border-radius: 0 0 25px 25px; 
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: space-evenly;
    order: 3;
    /* margin-top: 40px; */
}

.form-chat .input-chat .input{
    width: 70%;
    border-radius: 50px;
    resize: none;
    scrollbar-width: none;
    padding: 10px 15px;
    height: 50px;
    transition: background-color .4s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

}
.input::-webkit-scrollbar{
    display: none;
}

.input:focus, button:focus{
    outline: none;
}
.send:active{
    transform: translate(2px ,2px);
    box-shadow: inset #9A8C98 4px 5px 0px 0px;
    
}
.input-chat .send{
    width: 60px;
    height: 60px;
    border-radius: 50px;
    border: unset;
}
.loading div{
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #9A8C98;
    transition: all 0.2s ease;
    animation: loading 1s linear infinite;
    animation-direction: alternate;
    display: inline-block;
    opacity: 0.2;
    margin: 2px;
}
.loading div:first-child{
    animation-delay: 0s;
}
.loading div:nth-child(2){
    animation-delay: 0.3s;
}
.loading div:last-child{
    animation-delay: 0.5s;
}
@keyframes loading{
    100%{opacity: 1;}
}


/* hidden form */
.form-container{
    visibility: hidden;
    display: none;
}
#contact{
    width: 100%;
}
@media screen and (min-width: 1020px) {
    
    .form-chat{
        width: 35vw;
    }
    #contact{
        width: unset;
    }
}