/**********************************
/* STT UIP CHAT
/* Release date: 2018/11/28
/* version: 3.0
/* Copyright 2017 Stefanini Inc
/**********************************/

html,
body {
  height: 100%;
}

body {
  font-weight: 400;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.8rem;
  line-height: 1.58;
  color: #333;
  background-color: #f4f4f4;
  background-repeat: no-repeat;
  background-size: cover;
}

::-webkit-input-placeholder {
  /* Chrome/Opera/Safari */
  color: #495057;
}
::-moz-placeholder {
  /* Firefox 19+ */
  color: #495057;
}
:-ms-input-placeholder {
  /* IE 10+ */
  color: #495057;
}
:-moz-placeholder {
  /* Firefox 18- */
  color: #495057;
}

.top-bar {
  position: relative;
  z-index: 1;
  height: 20px;
  border-bottom: 4px solid #cecece;
  background: #6a6a6a; /* Old browsers */
  background: -moz-linear-gradient(
    top,
    #6a6a6a 0%,
    #464646 100%
  ); /* FF3.6-15 */
  background: -webkit-linear-gradient(
    top,
    #6a6a6a 0%,
    #464646 100%
  ); /* Chrome10-25,Safari5.1-6 */
  background: linear-gradient(
    to bottom,
    #6a6a6a 0%,
    #464646 100%
  ); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#6a6a6a', endColorstr='#464646',GradientType=0 ); /* IE6-9 */
  -webkit-box-shadow: 0 11px 14px 0 rgba(0, 0, 0, 0.2);
  -moz-box-shadow: 0 11px 14px 0 rgba(0, 0, 0, 0.2);
  box-shadow: 0 11px 14px 0 rgba(0, 0, 0, 0.2);
}
.awesomplete {
  display: block;
}

.panel-pre-chat {
  border-top-right-radius: 0;
  border-top-left-radius: 0;
}

.pre-chat-logo {
  margin: 20px 0;
}

.pre-chat-title {
  color: #0081d6;
}
.pre-chat-text {
  color: #0081d6;
  font-weight: bold;
}

.clearfix:after {
  display: block;
  content: "";
  clear: both;
}

.hidden {
  display: none;
}

input {
  padding-left: 10px;
  outline: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 20px;
  margin-bottom: 20px;
}

h1 {
  font-size: 1.7em;
}

a {
  color: #128ff2;
}

button {
  box-shadow: none;
  border: 1px solid transparent;
  font-size: 14px;
  outline: none;
  line-height: 100%;
  white-space: nowrap;
  vertical-align: middle;
  padding: 0.6rem 1rem;
  border-radius: 2px;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  min-height: 38px;
}

button.default {
  background-color: #e8e8e8;
  color: #333;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.12);
}

button.primary {
  background-color: #128ff2;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.12);
  color: #fff;
}

button.accent {
  background-color: #ff4743;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.12);
  color: #fff;
}

#username-page {
  text-align: center;
}

.main-container {
  background: #fff;
  box-shadow: 0 1px 11px rgba(0, 0, 0, 0.27);
  border-radius: 2px;
  width: 100%;
  max-width: 460px;
  min-height: 250px;
  margin: 1em 1em;
}

.username-submit {
  margin-top: 10px;
}

#chat-page {
  height: 100%;
}

.main-container .spinner {
  position: absolute;
  top: 150px;
  left: 190px;
  z-index: 999;
}

#chat-page ul {
  flex-shrink: 1;
  flex-grow: 1;
  flex-basis: auto;
  height: 100%;
  list-style-type: none;
  background-color: #fff;
  margin: 0;
  overflow: auto;
  overflow-y: scroll;
  padding: 0 10px 0px 10px;
}

.system-message-in-chat {
  flex-grow: 0;
  flex-shrink: 0;
}

#chat-page #messageForm {
  background-color: #fff;
}

#chat-page ul li {
  line-height: 1.5rem;
  padding: 10px 20px;
  margin: 0;
  border-bottom: 1px solid #f4f4f4;
}

#chat-page ul li p {
  margin: 0;
}

#chat-page .event-message {
  width: 100%;
  text-align: center;
  clear: both;
}

#chat-page .event-message p {
  color: #777;
  font-size: 0.8rem;
  word-wrap: break-word;
}

#chat-page .chat-message {
  padding-left: 68px;
  position: relative;
}

#chat-page .chat-message-user {
  padding-left: 68px;
  position: relative;
  background-color: #e5e7eb;
  border-radius: 15px;
}
#chat-page .chat-message-user p {
  word-wrap: break-word;
}

#chat-page .chat-message i {
  position: absolute;
  width: 42px;
  height: 42px;
  overflow: hidden;
  left: 10px;
  display: inline-block;
  vertical-align: middle;
  font-size: 18px;
  line-height: 42px;
  color: #fff;
  text-align: center;
  border-radius: 50%;
  font-style: normal;
  text-transform: uppercase;
}

#chat-page .chat-message span {
  color: #333;
  font-weight: 600;
}

#chat-page .chat-message p {
  color: #43464b;
  word-wrap: break-word;
}

#chatMessageArea {
  display: flex;
  flex-direction: column;
  height: 450px;
}

#messageForm .bottom-input-message {
  padding-top: 8px;
  padding-bottom: 8px;
}

#messageForm .input-group input {
  float: left;
  width: calc(100% - 85px);
}

#messageForm .input-group button {
  float: left;
  width: 80px;
  height: 38px;
  margin-left: 5px;
}

.chat-header {
  text-align: center;
  padding: 15px;
  border-bottom: 1px solid #ececec;
}

.chat-header h2 {
  margin: 0;
  font-weight: 500;
}

#transcript-page {
  height: 100%;
  padding-top: 5px;
}
#transcript-page ul {
  list-style-type: none;
  background-color: #fff;
  margin: 0;
  overflow: auto;
  overflow-y: scroll;
  padding: 10px 10px 0px 10px;
  height: 450px;
}

#transcript-page ul li {
  line-height: 1.5rem;
  padding: 10px 10px;
  margin: 0;
  border-bottom: 1px solid #f4f4f4;
}

#transcript-page ul li p {
  margin: 0;
  word-wrap: break-word;
}

#transcript-page .top {
  text-align: center;
}

#transcriptPrint {
  padding: 2px;
}

#transcriptPrint button {
  text-align: center;
  width: 80px;
  height: 38px;
}

#transcript-print {
  height: 100%;
  width: 100%;
  position: center;
}
#transcript-print ul {
  list-style-type: none;
  background-color: #fff;
  margin: 0;
  padding: 0 20px 0px 20px;
  height: 450px;
}
#transcript-print ul li {
  line-height: 1.5rem;
  padding: 10px 20px;
  margin: 0;
  border-bottom: 2px solid #f4f4f4;
}

#transcript-print ul li p {
  margin: 0;
}

@media (display-mode: standalone) {
  #chat-page ul {
    padding: 0 5px 0px 5px;
    height: 100%;
  }
  #transcript-page ul {
    padding: 0 5px 0px 5px;
    height: 450px;
  }
}

@media screen and (max-width: 480px) {
  .main-container {
    width: 100%;
    height: 100%;
    margin: 0 0;
    padding-left: 5px;
    padding-right: 5px;
  }
  .main-container .spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
  }
  #chatMessageArea {
    height: 400px;
  }

  #chat-page ul {
    padding: 0 5px 0px 5px;
    height: 100%;
  }
  #transcript-page ul {
    padding: 0 5px 0px 5px;
    height: 400px;
  }

  #messageForm .input-group button {
    width: 65px;
  }

  #messageForm .input-group input {
    width: calc(100% - 70px);
  }

  .chat-header {
    padding: 10px;
  }

  .chat-header h2 {
    font-size: 1.1em;
  }
}

/* below are class for our spinner */

@keyframes lds-spinner {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@-webkit-keyframes lds-spinner {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.lds-spinner {
  position: relative;
  margin-left: auto;
  margin-right: auto;
}
.lds-spinner div {
  left: 94px;
  top: 48px;
  position: absolute;
  -webkit-animation: lds-spinner linear 1s infinite;
  animation: lds-spinner linear 1s infinite;
  background: #1f2021;
  width: 12px;
  height: 24px;
  border-radius: 40%;
  -webkit-transform-origin: 6px 52px;
  transform-origin: 6px 52px;
}
.lds-spinner div:nth-child(1) {
  -webkit-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-animation-delay: -0.916666666666667s;
  animation-delay: -0.916666666666667s;
}
.lds-spinner div:nth-child(2) {
  -webkit-transform: rotate(30deg);
  transform: rotate(30deg);
  -webkit-animation-delay: -0.833333333333333s;
  animation-delay: -0.833333333333333s;
}
.lds-spinner div:nth-child(3) {
  -webkit-transform: rotate(60deg);
  transform: rotate(60deg);
  -webkit-animation-delay: -0.75s;
  animation-delay: -0.75s;
}
.lds-spinner div:nth-child(4) {
  -webkit-transform: rotate(90deg);
  transform: rotate(90deg);
  -webkit-animation-delay: -0.666666666666667s;
  animation-delay: -0.666666666666667s;
}
.lds-spinner div:nth-child(5) {
  -webkit-transform: rotate(120deg);
  transform: rotate(120deg);
  -webkit-animation-delay: -0.583333333333333s;
  animation-delay: -0.583333333333333s;
}
.lds-spinner div:nth-child(6) {
  -webkit-transform: rotate(150deg);
  transform: rotate(150deg);
  -webkit-animation-delay: -0.5s;
  animation-delay: -0.5s;
}
.lds-spinner div:nth-child(7) {
  -webkit-transform: rotate(180deg);
  transform: rotate(180deg);
  -webkit-animation-delay: -0.416666666666667s;
  animation-delay: -0.416666666666667s;
}
.lds-spinner div:nth-child(8) {
  -webkit-transform: rotate(210deg);
  transform: rotate(210deg);
  -webkit-animation-delay: -0.333333333333333s;
  animation-delay: -0.333333333333333s;
}
.lds-spinner div:nth-child(9) {
  -webkit-transform: rotate(240deg);
  transform: rotate(240deg);
  -webkit-animation-delay: -0.25s;
  animation-delay: -0.25s;
}
.lds-spinner div:nth-child(10) {
  -webkit-transform: rotate(270deg);
  transform: rotate(270deg);
  -webkit-animation-delay: -0.166666666666667s;
  animation-delay: -0.166666666666667s;
}
.lds-spinner div:nth-child(11) {
  -webkit-transform: rotate(300deg);
  transform: rotate(300deg);
  -webkit-animation-delay: -0.083333333333333s;
  animation-delay: -0.083333333333333s;
}
.lds-spinner div:nth-child(12) {
  -webkit-transform: rotate(330deg);
  transform: rotate(330deg);
  -webkit-animation-delay: 0s;
  animation-delay: 0s;
}
.lds-spinner {
  width: 100px !important;
  height: 100px !important;
  -webkit-transform: translate(-50px, -50px) scale(0.5) translate(50px, 50px);
  transform: translate(-50px, -50px) scale(0.5) translate(50px, 50px);
}

.svgicon {
  display: inline-flex;
  align-self: center;
  position: relative;
  padding-left: 5px;
  padding-right: 2px;
  fill: #3079b0;
}
.svgicon:hover svg path {
  fill: orange;
}
.svgicon-fill-none {
  fill: none !important;
}

.icon {
  display: inline-flex;
  align-self: center;
  position: relative;
  padding-left: 2px;
  padding-right: 2px;
}
.icon:hover {
  background-color: orange;
}

/*class for textarea autoresizing an positioning */

.textarea-container {
  position: relative;
}
.textarea-container textarea {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}
.textarea-container .smiley-icon {
  position: absolute;
  top: 0;
  right: 0;
}
.textarea-container .file-icon {
  position: absolute;
  top: 2;
  right: 0;
}


textarea {
  box-sizing: border-box;
  max-height: 94px; /* optional, but recommended */
  min-height: 31px;
  overflow-x: hidden; /* for Firefox (issue #5) */
}

textarea.textarea-autosize {
  height: 2.25rem;
  min-height: 2.25rem;
  resize: none;
  overflow-y: hidden;
}

textarea.textarea-autosize.form-control-lg {
  height: 3.75rem;
  min-height: 3.75rem;
}

textarea.textarea-autosize.form-control-sm {
  height: 2rem;
  min-height: 2rem;
}

.awesomplete > ul {
  position: absolute;
  left: 0;
  z-index: 1;
  min-width: 100%;
  box-sizing: border-box;
  list-style: none;
  padding: 0;
  margin: 0;
  background: #fff;
  height: auto !important; 
  max-height: 200px !important;
  overflow-x: hidden !important;
}

