body {
    font-family: "Roboto", sans-serif;
    padding: 0;
    margin: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px 20px;
    background-color: whitesmoke;
    justify-content: center;
}
header {
    padding: 0 0 30px 0;
    font-size: 30px;
}
.chat {
    position: relative;
    width: 100%;
    max-height: 600px;
    background-color: #fff;
    border: 1px solid #e4e4e4;
}
.chat__topbar {
    display: flex;
    flex-direction: row;
    width: calc(100% - 20px);
    height: 50px;
    padding: 0 10px;
    justify-content: space-between;
    align-items: center;
    background-color: #f9f9f9;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
}
.topbar {
    position: absolute;
    top: 0;
    left: 0;
}
.topbar__username {
    margin: 0;
}
.first-user {
    background-color: red;
}
.second-user {
    background-color: blue;
}
.topbar__toggle-user {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
}
.chat__bottombar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 50px;
    background-color: #f9f9f9;
    box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.1);
}
.bottombar {
    position: absolute;
    left: 0;
    bottom: 0;
}
.chat__message-input {
    display: block;
    border: 1px solid #e4e4e4;
    height: 60%;
    width: 100%;
    margin: 0 10px;
    padding: 0 10px;
    border-radius: 10px;
}
.chat__message-input:focus {
    outline: none;
}
.chat__send-button {
    display: block;
    margin-right: 10px;
    width: 100px;
    height: 60%;
    outline: none;
    color: rgb(0, 71, 109);
    border: none;
    border-radius: 10px;
    background-color: rgb(121, 201, 253);
    box-shadow: 0px 2px 5px rgba(0, 0, 0, .1);
    cursor: pointer;
}
#messages {
    position: relative;
    display: flex;
    flex-direction: column;
    display: block;
    padding: 10px 0;
    margin-top: 50px;
    margin-bottom: 50px;
    overflow-y: auto;
    max-height: 490px;
    min-height: 300px;
}
#messages .message {
    margin: 10px 0;
    padding: 15px;
    max-width: 60%;
    border-radius: 10px;
    width: max-content;
    overflow-wrap: break-word;
}
#messages .message.input-message {
    margin-right: auto;
    margin-left: 10px;
    background-color: rgb(240, 240, 240);
}
#messages .message.output-message {
    margin-left: auto;
    margin-right: 10px;
    background-color: rgb(146, 230, 255);
}