* {
    box-sizing: border-box;
  }

  body {
    background-color: #edeff2;
    font-family: "Calibri", "Roboto", sans-serif;
  }
  /* 可選字 */
  /* body, html {
      -webkit-user-select: none;
      user-select: none;
  } */

  .chat_window {
    position: absolute;
    /* width: calc(100% - 20px); */
    /* max-width: 800px; */
    width: 100%;
    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: #f8f8f8;
    overflow: hidden;
  }

  .top_menu {
    /* background-color: #fff; */
    background-color: #041E42;
    color: #fff;
    width: 100%;
    padding: 20px 0 15px;
    box-shadow: 0 1px 30px rgba(0, 0, 0, 0.1);
  }
  .top_menu .buttons {
    margin: 3px 0 0 20px;
    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: #fdbf68;
  }
  .top_menu .buttons .button.maximize {
    background-color: #a3d063;
  }
  .top_menu .title {
    text-align: center;
    color: #bcbdc0;
    font-size: 20px;
    font-weight: bold;
  }

  .messages {
    position: relative;
    list-style: none;
    padding: 20px 10px 0 10px;
    margin: 0;
    /* height: 347px; */
    /* height: 75%; */
    height: calc(100% - 195px);
    overflow: scroll;
    margin-top: 10px;
  }
  .messages .message {
    clear: both;
    overflow: hidden;
    margin-bottom: 20px;
    transition: all 0.5s linear;
    opacity: 0;
  }
  .messages .message.left .avatar {
    /* background-color: #f5886e; */
    /* background-color: #D2343D; */
    background-image: url(/static/images/chatbot-avatar-caesar.jpg);
    float: left;
    background-size: contain;
    background-repeat: no-repeat;
  }
  .messages .message.left .text_wrapper {
    background-color: #ffe6cb;
    margin-left: 20px;
  }
  .messages .message.left .text_wrapper::after, .messages .message.left .text_wrapper::before {
    right: 100%;
    border-right-color: #ffe6cb;
  }
  .messages .message.left .text {
    color: #c48843;
  }
  .messages .message.right .avatar {
    float: right;
    /* background-image: url(/static/images/chatbot-avatar.jpeg); */
    /* background-size: contain;
    background-repeat: no-repeat; */
    background-color: #041E42;
    /* border-radius: 30px; */
    color: #fff;
    font-size: 40px;
    text-align: center;
  }

  .messages .message.right .avatar:after{
    content: "\f007";
    display: inline-block;
    -webkit-font-smoothing: antialiased;
    color: white;
    font: normal normal normal 14px / 1 FontAwesome;
    font-size: 40px;
    line-height: 60px;
 }

  /* .no-pseudo-avatar {
    background-repeat: no-repeat;
    background-position: center;
    background-color: unset;
  }

  .no-pseudo-avatar::before,
  .no-pseudo-avatar::after {
    content: none !important;
    display: none !important;
    background-color: unset;
  } */

  .img-avatar {
    float: right;
    display: block;
    text-align: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
  }

  .messages .message.right .text_wrapper {
    background-color: #c7eafc;
    margin-right: 20px;
    float: right;
  }
  .messages .message.right .text_wrapper::after, .messages .message.right .text_wrapper::before {
    left: 100%;
    border-left-color: #c7eafc;
  }
  .messages .message.right .text {
    color: #45829b;
  }
  .messages .message.appeared {
    opacity: 1;
  }
  .messages .message .avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: inline-block;
  }
  .messages .message .text_wrapper {
    display: inline-block;
    padding: 20px;
    border-radius: 6px;
    width: calc(100% - 85px);
    min-width: 100px;
    position: relative;
  }
  .messages .message .text_wrapper::after, .messages .message .text_wrapper:before {
    top: 18px;
    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: 18px;
    font-weight: 300;
  }

  .bottom_wrapper {
    position: relative;
    width: 100%;
    background-color: #fff;
    padding: 20px 20px;
    position: absolute;
    bottom: 0;
    display: flex;
    -webkit-user-select: none;
    user-select: none;
  }
  .bottom_wrapper .message_input_wrapper {
    display: inline-block;
    height: 50px;
    border-radius: 25px;
    border: 1px solid #bcbdc0;
    /* width: calc(100% - 160px); */
    width: 90%;
    position: relative;
    padding: 0 20px;
  }
  .bottom_wrapper .message_input_wrapper .message_input {
    border: none;
    height: 100%;
    box-sizing: border-box;
    width: calc(100% - 40px);
    position: absolute;
    outline-width: 0;
    color: gray;
  }
  .bottom_wrapper .send_message {
    width: 100px;
    height: 50px;
    display: inline-block;
    border-radius: 50px;
    /* background-color: #a3d063;
    border: 2px solid #a3d063; */
    background-color: #041E42;
    border: #041E42;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s linear;
    text-align: center;
    margin-left: 20px;
    /* float: right; */
    -webkit-font-smoothing: auto;
  }
  /* .bottom_wrapper .send_message:hover {
    color: #a3d063;
    background-color: #fff;
  } */
  .bottom_wrapper .send_message .text {
    /* font-size: 18px; */
    font-weight: 300;
    display: inline-block;
    line-height: 48px;
  }

  .message_template {
    display: none;
  }

  .audio-recording-container {
    width: 100px;
    height: 50px;
    display: -webkit-flex;
    display: -ms-flex;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* background: lightyellow; */
    /* background: #EBE49A; */
    border-radius: 50px;
    margin-left: 10px;
    margin-right: 10px;
    -webkit-user-select: none;
    user-select: none;
  }

  .start-recording-button {
    font-size: 24px !important;
    color: #435f7a;
    cursor: pointer;
    /* opacity: .5;
    margin-bottom: 30px; */
    -webkit-user-select: none;
    user-select: none;
}

.stop-recording-button {
    font-size: 20px !important;
    -webkit-user-select: none;
    user-select: none;
}


/* Media Queries */

/* Small Devices*/

@media (min-width: 0px) {
  .bottom_wrapper .send_message .text {
    font-size: x-small;
  }
}

@media (min-width: 768px) {
  .bottom_wrapper .send_message .text {
    font-size: medium;
  }
}

@media (min-width: 1280px) {
  .bottom_wrapper .send_message .text {
    font-size: 18px;
  }
}

.upload-container {
  width:50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-content: center;
  align-items: center;
  margin-right: 15px;
}

.upload-container svg {
  width: 25px;
  height: 25px;
}

.preview {
  display: inline-block;
  margin: 10px;
}
.preview img {
  width: 100px;
  height: 100px;
  margin-right: 10px;
}

.reload-icon {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: xx-large !important;
  /* color: #D2343D; */
}

.upload-icon {
  font-size: 24px !important;
}

.warning-hint {
  width: 100%;
  background-color: #D2343D;
  color: white;
  /* padding: 20px 20px; */
  position: absolute;
  bottom: 90px;
  text-align: center;
  height: 30px;
  line-height: 30px;
  font-size: 14px;
}

#status-hint {
  width: 100%;
  text-align: center;
  height: 30px;
  line-height: 30px;
  background-color: lightgray;
}

#status-hint-text {
  color: #4c4949;
  font-size: 15px;
  animation: textFlicker 1s infinite;
}

@keyframes textFlicker {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
