* {
    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;
}

.top_menu {
    background-color: #fff;
    width: 100%;
    padding: 20px 0 15px;
    box-shadow: 0 1px 30px rgba(0, 0, 0, 0.1);
    display: flex;
}
.top_menu .buttons {
    margin: 3px 0 0 20px;
    width: 20%;
    /* position: absolute; */
}
.top_menu .buttons .button {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
    position: relative;
}
.top_menu .buttons .button.close {
    background-color: #f5886e;
}
.top_menu .buttons .button.minimize {
    background-color: #F1CE10;
}
.top_menu .buttons .button.maximize {
    background-color: #F02538;
}
.top_menu .title {
    text-align: center;
    /* margin-left: 10%; */
    color: #777;
    font-size: 20px;
    width:60%;
}
.top_menu .logo{
    width:12%;
    height: auto;
}
.top_menu .logo img{
    width:100%;
    height: auto;
}
.messages {
    position: relative;
    list-style: none;
    padding: 20px 10px 0 10px;
    margin: 0;
    height: calc(100% - 162px);
    overflow: scroll;
}
.messages .message {
    clear: both;
    overflow: hidden;
    margin-bottom: 20px;
    transition: all 0.5s linear;
    opacity: 0;
}
.messages .message.left .avatar {
    /* background-color: #F1CE10; */
    background-color: #F02538;
    float: left;
}

.messages .message.left .avatar::after {
    content: 'AI';
    display: inline-block;
    color: #fff;
    width: 100%;
    text-align: center;
    height: 100%;
    font-size: 1.4em;
    transform: translateY(25%);
    
}
.messages .message.left .text_wrapper {
    background-color: #F1CE10;
    margin-left: 20px;
}
.messages .message.left .text_wrapper::after,
.messages .message.left .text_wrapper::before {
    right: 100%;
    border-right-color: #F1CE10;
}
.messages .message.left .text {
    word-break: break-word;
    white-space: normal;
    color: #000;
}
.messages .message.right .avatar {
    background-color: #231f20;
    float: right;
}
.messages .message.right .avatar::after {
    content: 'Me';
    display: inline-block;
    color: #fff;
    width: 100%;
    text-align: center;
    height: 100%;
    font-size: 1.4em;
    transform: translateY(25%);
}
.messages .message.right .text_wrapper {
    background-color: #fff;
    margin-right: 20px;
    float: right;
}
.messages .message.right .text_wrapper::after,
.messages .message.right .text_wrapper::before {
    left: 100%;
    border-left-color: #fff;
}
.messages .message.right .text {
    color: #000;
}
.messages .message.appeared {
    opacity: 1;
}
.messages .message .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: inline-block;
}
.messages .message .text_wrapper {
    display: inline-block;
    padding: 12px;
    border-radius: 6px;
    width: calc(100% - 85px);
    min-width: 100px;
    position: relative;
}
.messages .message .text_wrapper::after,
.messages .message .text_wrapper:before {
    top: 10px;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
}
.messages .message .text_wrapper::after {
    border-width: 13px;
    margin-top: 0px;
}
.messages .message .text_wrapper::before {
    border-width: 15px;
    margin-top: -2px;
}
.messages .message .text_wrapper .text {
    font-size: 15px;
    font-weight: 300;
}

.bottom_wrapper {
    position: relative;
    width: 100%;
    background-color: #fff;
    padding: 20px 20px 5px 20px;
    position: absolute;
    bottom: 0;
}
.bottom_wrapper .message_input_wrapper {
    display: inline-block;
    height: 50px;
    border-radius: 5px;
    border: 1px solid #bcbdc0;
    width: calc(100% - 100px);
    position: relative;
    padding: 0;
}
.bottom_wrapper .message_input_wrapper .message_input {
    border: none;
    height: 100%;
    box-sizing: border-box;
    width: 100% ;
    position: absolute;
    outline-width: 0;
    color: gray;
    border-radius: 5px;
    padding: 0 10px;
}
.bottom_wrapper .send_message {
    width: 90px;
    height: 50px;
    display: inline-block;
    border-radius: 5px;
    background-color: #000;
    border: 2px solid #000;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s linear;
    text-align: center;
    float: right;
    user-select: none;
}
/* .bottom_wrapper .send_message:hover {
    color: #00ecb9;
    background-color: #fff;
} */
.bottom_wrapper .send_message .text {
    font-size: 18px;
    font-weight: 300;
    display: inline-block;
    line-height: 48px;
    user-select: none;
}

.message_template {
    display: none;
}
