/* The ChatUI CSS
 EDIT THIS ONLY IF YOU REALLY REALLY REALLY REALLY KNOW WHAT YOU ARE DOING
*/

* {
  box-sizing: border-box;
}

body {
  background-color: #edeff2;
  /*font-family: "Calibri", "Open Sans", sans-serif;*/
  font-family: 'Fira Mono', 'Courier New', monospace;
}

.chat_window {
  position: absolute;
  width: calc(100% - 20px);
  max-width: 1200px;
  height: 700px;
  border-radius: 10px;
  background-color: #fff;
  left: 50%;
  top: 55%;
  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;
  width: 100%;
  padding: 5px 0 5px;
  box-shadow: 0 1px 30px rgba(0, 0, 0, 0.1);
}
.top_menu .buttons {
  margin: 5px 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.closex {
  background-color: #f5886e;
}
.top_menu .buttons .button.minimize {
  background-color: #fdbf68;
}
.top_menu .buttons .button.maximize {
  background-color: #a3d063;
}
.top_menu .title {
  text-align: right;
  color: #bcbdc0;
  font-size: 20px;
  text-transform: lowercase;
  margin-right: 20px;
}

.top_menu .title img {
    width: 30px;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -o-border-radius: 50%;
    -moz-border-radius: 50%;
}

.messages {
  position: relative;
  list-style: none;
  padding: 40px 70px 0 70px;
  margin: 0;
  height: 547px;
  overflow-y: scroll;
  background: #2f1e2e;
  overflow-x: hidden;
}

@media(max-width: 480px){
    .messages {
      padding: 40px 30px 0 30px;
    }
}
.messages .message {
  clear: both;
  overflow: hidden;
  margin-bottom: 20px;
  transition: all 0.5s linear;
  opacity: 0;
}
.messages .message.left .avatar {
  background-color: /*#f5886e*/ /*#d07ec3*/ #2f1e2e;
  float: left;
}
.messages .message.left .text_wrapper {
  background-color: /*#ffe6cb*/ /*#d07ec3*/ #4c3a4b;
  margin-left: 20px;
}
.messages .message.left .text_wrapper::after, .messages .message.left .text_wrapper::before {
  right: 100%;
  border-right-color: /*#ffe6cb*/ /*#d07ec3*/ #4c3a4b;
}
.messages .message.left .text {
  color: /*#c48843*/ #fff;
}
.messages .message.right .avatar {
  background-color: /*#fdbf68*/ /*#5b7cff*/ #2f1e2e;
  float: right;
}
.messages .message.right .text_wrapper {
  background-color: /*#c7eafc*/ /*#5b7cff*/ #fff;
  margin-right: 20px;
  float: right;
}
.messages .message.right .text_wrapper::after, .messages .message.right .text_wrapper::before {
  left: 100%;
  border-left-color: /*#c7eafc*/ /*#5b7cff*/ #fff;
}
.messages .message.right .text {
  color: /*#45829b*/ /*#fff*/ #000;
}
.messages .message.appeared {
  opacity: 1;
}
.messages .message .avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: inline-block;
  line-height: 15px;
  font-size: 40px;
  padding: 20px;
  color: white;
}
.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: 15px;
  font-weight: 300;*/
  font-size: 14px;
  direction: ltr;
  text-align: left;
  word-spacing: normal;
  word-break: normal;
  line-height: 1.5;
  -moz-tab-size: 4;
  tab-size: 4;
  hyphens: none;
}

.bottom_wrapper {
  position: relative;
  width: 100%;
  background-color: #fff;
  padding: 20px 20px;
  position: absolute;
  bottom: -1px;
}
.bottom_wrapper .message_input_wrapper {
  display: inline-block;
  height: 50px;
  border-radius: 25px;
  border: none;
  width: calc(100% - 160px);
  position: relative;
  padding: 0 20px;
  background: #271b27;
}
.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: /*#000*/ #59c759;
  font-size: 20px;
  background: #271b27;
}
.bottom_wrapper .send_message {
  width: 140px;
  height: 50px;
  display: inline-block;
  border-radius: 50px;
  background-color: /*#a3d063*/ #5b7cff;
  border: 2px solid /*#a3d063*/ #5b7cff;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s linear;
  text-align: center;
  float: right;
}
.bottom_wrapper .send_message:hover {
  color: /*#a3d063*/ #5b7cff;
  background-color: #fff;
}
.bottom_wrapper .send_message .text {
  font-size: 18px;
  font-weight: 300;
  display: inline-block;
  line-height: 46px;
}

.message_template {
  display: none;
}

.form-control {
  border: none;
  box-shadow: none;
}

.form-control:focus {
  border: none;
  box-shadow: none;
}

@media(max-width: 480px){
    .chat_window{
        max-height: 900px;
    }
}

@media(max-width: 390px){
    .chat_window{
        max-height: 600px;
    }
}

/* Prelaoder */

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10500;
  overflow: hidden;
  background: #fff;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(40% - 30px);
  left: calc(48% - 30px);
  border: 6px solid #f2f2f2;
  border-top: 6px solid #3598dc;
  border-radius: 50%;
  width: 90px;
  height: 90px;
  -webkit-animation: animate-preloader 1s linear infinite;
  animation: animate-preloader 1s linear infinite;
}

@-webkit-keyframes animate-preloader {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes animate-preloader {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

#preloader img {
  width: 450px;
  top: calc(55% - 30px);
  left: calc(40% - 60px);
  position: fixed;
}
@media (max-width: 1024px) {
  #preloader img {
    width: 450px;
    left: calc(35% - 60px);
  }
}
@media (max-width: 834px) {
  #preloader img {
    width: 450px;
    left: calc(32% - 60px);
  }
}
@media (max-width: 768px) {
  #preloader img {
    width: 350px;
    left: calc(36% - 60px);
  }
}
@media (max-width: 480px) {
  #preloader img {
    width: 250px;
    left: calc(33% - 60px);
  }
}

/* float-nav */
.float-nav {
  position: fixed;
  z-index: 10103;
  top: 70%;
  right: 80px;
  margin-top: -230px;
  pointer-events: none;
}
.float-nav .float-nav-bg {
    /* this is the stretching navigation background */
    position: absolute;
    z-index: 10102;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    border-radius: 30px !important;
    background: #5B7CFF;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    webkit-transition: height .2s, box-shadow .2s;
    -moz-transition: height .2s, box-shadow .2s;
    -ms-transition: height .2s, box-shadow .2s;
    -o-transition: height .2s, box-shadow .2s;
    transition: height .2s, box-shadow .2s;
}
.float-nav.nav-is-visible {
    pointer-events: auto;
}
.float-nav.nav-is-visible .float-nav-bg {
    height: 100%;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
}
.float-nav-trigger {
  position: absolute;
  z-index: 10103;
  top: 0;
  right: 0;
  height: 60px;
  width: 60px;
  border-radius: 50% !important;
  overflow: hidden;
  white-space: nowrap;
  color: transparent;
  pointer-events: auto;
}
.float-nav-trigger span,
.float-nav-trigger span::after,
.float-nav-trigger span::before {
    /* this is the hamburger icon */
    position: absolute;
    width: 16px;
    height: 2px;
    background-color: #ffffff;
}
.float-nav-trigger span {
    /* middle line of the hamburger icon */
    webkit-transition: background-color 0.2s;
    -moz-transition: background-color 0.2s;
    -ms-transition: background-color 0.2s;
    -o-transition: background-color 0.2s;
    transition: background-color 0.2s;
    left: 50%;
    top: 50%;
    bottom: auto;
    right: auto;
    webkit-transform: translateX(-50%) translateY(-50%);
    -moz-transform: translateX(-50%) translateY(-50%);
    -ms-transform: translateX(-50%) translateY(-50%);
    -o-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
}
.float-nav-trigger span::after,
.float-nav-trigger span::before {
    /* top and bottom lines of the hamburger icon */
    content: '';
    top: 0;
    left: 0;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
    webkit-transition: transform 0.2s;
    -moz-transition: transform 0.2s;
    -ms-transition: transform 0.2s;
    -o-transition: transform 0.2s;
    transition: transform 0.2s;
}
.float-nav-trigger span::before {
    webkit-transform: translateY(-6px);
    -moz-transform: translateY(-6px);
    -ms-transform: translateY(-6px);
    -o-transform: translateY(-6px);
    transform: translateY(-6px);
}
.float-nav-trigger span::after {
    webkit-transform: translateY(6px);
    -moz-transform: translateY(6px);
    -ms-transform: translateY(6px);
    -o-transform: translateY(6px);
    transform: translateY(6px);
}
.no-touch .float-nav-trigger:hover ~ .float-nav-bg {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
}
.nav-is-visible .float-nav-trigger span {
    background-color: transparent;
}
.nav-is-visible .float-nav-trigger span::before {
    webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
}
.nav-is-visible .float-nav-trigger span::after {
    webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
}
.float-nav ul {
  position: relative;
  z-index: 10103;
  padding: 60px 0 0;
  visibility: hidden;
  webkit-transition: visibility 0.3s;
  -moz-transition: visibility 0.3s;
  -ms-transition: visibility 0.3s;
  -o-transition: visibility 0.3s;
  transition: visibility 0.3s;
  text-align: right;
  list-style: none;
}
.float-nav ul > li a {
    position: relative;
    display: block;
    height: 50px;
    line-height: 50px;
    padding: 0 calc(1em + 60px) 0 1em;
    font-size: 1.4rem;
    webkit-transition: color 0.2s;
    -moz-transition: color 0.2s;
    -ms-transition: color 0.2s;
    -o-transition: color 0.2s;
    transition: color 0.2s;
    color: #3598dc;
}
.float-nav ul > li a:hover {
      text-decoration: none;
      color: #000;
}
.float-nav ul > li a:hover > span {
        text-decoration: none;
}
.float-nav ul > li a > i {
    /* navigation item icons */
    content: '';
    position: absolute;
    height: 16px;
    width: 16px;
    font-size: 18px;
    right: 24px;
    top: 16px;
    color: #FFF;
}
.float-nav ul > li a::before {
      /* line visible next to the active navigation item */
      content: '';
      position: absolute;
      width: 3px;
      height: 16px;
      top: 50%;
      right: 60px;
      webkit-transform: translateX(3px) translateY(-50%) scaleY(0);
      -moz-transform: translateX(3px) translateY(-50%) scaleY(0);
      -ms-transform: translateX(3px) translateY(-50%) scaleY(0);
      -o-transform: translateX(3px) translateY(-50%) scaleY(0);
      transform: translateX(3px) translateY(-50%) scaleY(0);
      background-color: /*#FF3F3F*/ #000;
}
.float-nav ul > li span {
    /* navigation item labels */
    color: #3598dc;
    font-weight: 400;
    display: block;
    opacity: 0;
    webkit-transform: translateX(-25px);
    -moz-transform: translateX(-25px);
    -ms-transform: translateX(-25px);
    -o-transform: translateX(-25px);
    transform: translateX(-25px);
    font-size: 1.2rem;
}
.float-nav ul > li:last-child {
    padding-bottom: 10px;
}
.float-nav.nav-is-visible ul {
  visibility: visible;
}
.float-nav.nav-is-visible ul a::after {
    /* navigation item icons */
    webkit-transform: translateY(-50%) scale(1);
    -moz-transform: translateY(-50%) scale(1);
    -ms-transform: translateY(-50%) scale(1);
    -o-transform: translateY(-50%) scale(1);
    transform: translateY(-50%) scale(1);
    -webkit-animation: scaleIn 0.15s backwards;
    -o-animation: scaleIn 0.15s backwards;
    animation: scaleIn 0.15s backwards;
    webkit-transition: opacity 0.2s;
    -moz-transition: opacity 0.2s;
    -ms-transition: opacity 0.2s;
    -o-transition: opacity 0.2s;
    transition: opacity 0.2s;
}
.float-nav.nav-is-visible ul a:hover::after {
    opacity: 1;
}
.float-nav.nav-is-visible ul a:hover::before {
    webkit-transform: translateX(3px) translateY(-50%) scaleY(2);
    -moz-transform: translateX(3px) translateY(-50%) scaleY(2);
    -ms-transform: translateX(3px) translateY(-50%) scaleY(2);
    -o-transform: translateX(3px) translateY(-50%) scaleY(2);
    transform: translateX(3px) translateY(-50%) scaleY(2);
    webkit-transition: transform 0.15s 0.3s;
    -moz-transition: transform 0.15s 0.3s;
    -ms-transition: transform 0.15s 0.3s;
    -o-transition: transform 0.15s 0.3s;
    transition: transform 0.15s 0.3s;
}
.float-nav.nav-is-visible ul a:hover > span {
    color: /*white*/ black;
}
.float-nav.nav-is-visible ul a:hover > i {
    color: #fafafa;
}
.float-nav.nav-is-visible ul span {
    opacity: 1;
    webkit-transform: translateX(0);
    -moz-transform: translateX(0);
    -ms-transform: translateX(0);
    -o-transform: translateX(0);
    transform: translateX(0);
    -webkit-animation: slideIn 0.15s backwards;
    -o-animation: slideIn 0.15s backwards;
    animation: slideIn 0.15s backwards;
    webkit-transition: transform 0.2s;
    -moz-transition: transform 0.2s;
    -ms-transition: transform 0.2s;
    -o-transition: transform 0.2s;
    transition: transform 0.2s;
}
.no-touch .float-nav.nav-is-visible ul a:hover::after {
    opacity: 1;
}
.no-touch .float-nav.nav-is-visible ul a:hover span {
    webkit-transform: translateX(-5px);
    -moz-transform: translateX(-5px);
    -ms-transform: translateX(-5px);
    -o-transform: translateX(-5px);
    transform: translateX(-5px);
}
.float-nav-overlay {
  display: none;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  position: fixed;
  z-index: 10101;
  background: transparent;
}
.float-nav.nav-is-visible + .float-nav-overlay {
  background: rgba(255, 255, 255, 0.97);
  display: block;
  -webkit-transition: background .7s ease-out;
  -moz-transition: background .7s ease-out;
  -o-transition: background .7s ease-out;
  transition: background .7s ease-out;
}

@media (max-width: 991px) {
  /* 991px */
  .float-nav {
    top: 50%;
    margin-top: 0;
    right: 30px;
  }
}

.float-nav-blink {
    -webkit-animation: blink 3.0s linear infinite;
    -moz-animation: blink 3.0s linear infinite;
    -ms-animation: blink 3.0s linear infinite;
    -o-animation: blink 3.0s linear infinite;
    animation: blink 3.0s linear infinite;
}

@keyframes blink {
    0% { box-shadow: 0 0 15px #ff8a00; }
    50% { box-shadow: none; }
    100% { box-shadow: 0 0 15px #ff8a00; }
}

@-webkit-keyframes blink {
    0% { box-shadow: 0 0 15px #ff8a00; }
    50% { box-shadow: 0 0 0; }
    100% { box-shadow: 0 0 15px #ff8a00; }
}