* {
    box-sizing: border-box;
}

body {
    background-color: #edeff2;
    font-family: "Calibri", "Roboto", sans-serif;
}

.chat_window {
    position: absolute;
    width: 100%;
    max-width: 800px;
    height: 100%;
    border-radius: 10px;
    background-color: #fff;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    background-color: #ededed;
    overflow: hidden;
}

.chat_window .top_menu {
    background-color: #fff;
    width: 100%;
    padding: 30px 0 21px;
    box-shadow: 0 1px 45px rgba(0, 0, 0, 0.1);
}
.chat_window .top_menu .buttons {
    margin: 5px 0 0 30px;
    position: absolute;
}
.chat_window .top_menu .buttons .button {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 15px;
    position: relative;
}
.chat_window .top_menu .buttons .button.close {
    background-color: #f5886e;
}
.chat_window .top_menu .buttons .button.minimize {
    background-color: #231f20;
}
.chat_window .top_menu .buttons .button.maximize {
    background-color: #00ecb9;
}
.chat_window .top_menu .title {
    text-align: center;
    color: #777;
    font-size: 30px;
}

.chat_window .chat_messages {
    position: relative;
    list-style: none;
    box-sizing: border-box;
    width: 100%;
    padding: 30px 15px 0 15px;
    margin: 0;
    height: calc(100% - 243px);
    overflow: scroll;
}
.chat_messages .message {
    clear: both;
    overflow: hidden;
    margin-bottom: 30px;
    transition: all 0.5s linear;
    opacity: 0;
}
.chat_messages .message .line{
    margin: 20px 0;
    width: 100%;
    height: 0;
    border-top:dashed #777 1px;
}
.chat_messages .message.left .avatar {
    background-color: #00ecb9;
    float: left;
}

.chat_messages .message.left .avatar::after {
    content: 'Anna';
    clear: both;
    display: inline-block;
    color: #000;
    width: 100%;
    text-align: center;
    height: 100%;
    font-size: 32px;
    line-height: 90px;
}
.chat_messages .message.left .text_wrapper {
    background-color: #00ecb9;
    margin-left: 30px;
}
.chat_messages .message.left .text_wrapper::after,
.chat_messages .message.left .text_wrapper::before {
    right: 100%;
    border-right-color: #00ecb9;
}
.chat_messages .message.left .text {
    color: #000;
}
.chat_messages .message.right .avatar {
    background-color: #231f20;
    float: right;
}
.chat_messages .message.right .avatar::after {
    content: 'ME';
    clear: both;
    display: inline-block;
    color: #fff;
    width: 100%;
    text-align: center;
    height: 100%;
    font-size: 32px;
    line-height: 90px;
}
.chat_messages .message.right .text_wrapper {
    background-color: #fff;
    margin-right: 30px;
    float: right;
}
.chat_messages .message.right .text_wrapper::after,
.chat_messages .message.right .text_wrapper::before {
    left: 100%;
    border-left-color: #fff;
}
.chat_messages .message.right .text {
    color: #000;
}
.chat_messages .message.appeared {
    opacity: 1;
}
.chat_messages .message .avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: inline-block;
    margin: 0;
    vertical-align: middle;
}
.chat_messages .message .text_wrapper {
    display: inline-block;
    padding: 30px;
    border-radius: 9px;
    width: calc(100% - 127px);
    min-width: 100px;
    position: relative;
}
.chat_messages .message .text_wrapper::after,
.chat_messages .message .text_wrapper:before {
    top: 27px;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
}
.chat_messages .message .text_wrapper::after {
    border-width: 18px;
    margin-top: 0px;
}
.chat_messages .message .text_wrapper::before {
    border-width: 21px;
    margin-top: -3px;
}
.chat_messages .message .text_wrapper .text {
    font-size: 27px;
    font-weight: 300;
}

.chat_window .bottom_wrapper {
    position: relative;
    width: 100%;
    background-color: #fff;
    padding: 30px 30px;
    position: absolute;
    bottom: 0;
}
.chat_window .bottom_wrapper .message_input_wrapper {
    display: inline-block;
    height: 75px;
    width: calc(100% - 150px);
    position: relative;
}
.chat_window .bottom_wrapper .message_input_wrapper .message_input {
    border: none;
    height: 100%;
    box-sizing: border-box;
    width: 100%;
    position: absolute;
    outline-width: 0;
    border-radius: 7px;
    border: 1px solid #bcbdc0;
    color: gray;
    font-size: 27px;
    padding: 0 15px;
}
.chat_window .bottom_wrapper .message_input_wrapper .message_input:focus,.chat_window .bottom_wrapper .message_input_wrapper .message_input:active{
    border-color: #bcbdc0 !important;
}
.chat_window .bottom_wrapper .send_message {
    width: 135px;
    height: 75px;
    display: inline-block;
    border-radius: 7px;
    background-color: #000;
    border: 3px solid #000;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s linear;
    text-align: center;
    float: right;
}
.chat_window .bottom_wrapper .send_message:hover {
    color: #00ecb9;
    background-color: #fff;
}
.chat_window .bottom_wrapper .send_message .text {
    font-size: 27px;
    font-weight: 300;
    display: inline-block;
    line-height: 72px;
    user-select: none;
}

.chat_window .message_template {
    display: none;
}
.chat_messages .loadingmessage .text_wrapper{
    width: auto;min-width: none;
}
.loadingmessage .dot{
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #ededed;
    margin: 0px 5px;
    border-radius: 20px;
}
.loadingmessage .dot.act{

    background-color: #fff;
}