*,
*::before,
*::after {
    box-sizing: inherit;
}

html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

ul{
    padding:0;
    margin:0;
    list-style-type:none;
}

body{
    padding:0;
    margin:0;
    font-family: "Roboto", sans-serif;
    background: #f5f5f5;
}

.user,
.system{
    display: flex;
    align-items: flex-end;
    margin-bottom: 15px;
}

.user{
    justify-content: flex-end;
}

.user div,
.system div{
    padding: 10px 14px 8px 14px;
    border-radius: 10px;
    line-height: 18px;
    font-size: 14px;
    word-break: break-word;
    box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.12);
}

.system div{
    background: #f5f5f5;
    margin-right: 46px;
}

.user div{
    background: #effdde;
    margin-left: 46px;
}

.user div p,
.system div p{
    padding: 0;
    margin: 0 0 8px 0;
}

.user div p:last-child,
.system div p:last-child{
    padding: 0;
    margin: 0;
}

.user div ol,
.system div ol{
    padding: 0;
    margin: 0 0 8px 30px;
}

.user div ol:last-child,
.system div ol:last-child{
    padding: 0;
    margin: 0;
}

.user div ul,
.system div ul{
    padding: 0;
    margin: 0 0 8px 30px;
}

.user div ul:last-child,
.system div ul:last-child{
    padding: 0;
    margin: 0;
}

.user div li,
.system div li{
    padding: 0;
    margin: 0 0 10px 0;
}

.user div li:last-child,
.system div li:last-child{
    padding: 0;
    margin: 0;
}

.user div a,
.system div a{
    text-decoration: none;
    color: #0b86d6;
}

.user::before,
.system::before{
    content: '';
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    border-radius: 100%;
    background-repeat: no-repeat;
    background-position: center;
    border: 1px solid #c5c5c5;
}
.user::before{
    margin-left: 10px;
    order: 2;
}

.system::before{
    margin-right: 10px;
}

.user::before{
    background-image: url('https://secure.gravatar.com/avatar/bc65d71701fe7368947de50fdbf50abe?s=56&d=mm&r=g');
    background-size: contain;
}

.system::before{
    background-image: url('https://secure.gravatar.com/avatar/0af1b5b500469aa2f5b3cf791da359c8?s=56&d=mm&r=g');
    background-size: 80%;

}

.chat-wrapper{
    max-width: 1000px;
    margin: 0 auto;
}

.chat{
    margin: 15px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 30px);
    justify-content: space-between;
}

.input{
    padding: 18px;
    border-radius: 0 0 5px 5px;
    border: 1px solid #c5c5c5;
    background: white;
    display: flex;
}

.input__textarea {
    width: 100%;
    margin-right: 18px;
}

.input__textarea textarea{
    width: 100%;
    height: 60px;
    border-radius: 5px;
    border: 1px solid #c5c5c5;
    padding: 8px;
    font-size: 13px;
}

.input__textarea textarea::placeholder {
    font-family: "Roboto", sans-serif;
    font-size: 13px;
    color:#7e7e7e;
}


.input__button button{
    height: 100%;
    padding: 0 30px;
    cursor: pointer;
    border: 1px solid #0b86d6;
    border-radius: 5px;
    background: white;
    font-size: 13px;
}

.input__textarea textarea:disabled,
.input__button button:disabled{
    border: 1px solid #c5c5c5;
    background-color: #f5f5f5;
    color:#c5c5c5;
}

.messages {
    border-radius: 5px 5px 0 0;
    border: 1px solid #c5c5c5;
    border-bottom: none;
    overflow-y: auto;
    height: 100%;
    padding: 18px;
    background: white;
}

#notification{
    color: #ADADAD;
    font-size: 13px; 
    padding-bottom: 15px;
    text-align: center;
}