 
 

.chat-window {
  width: 320px;
  height: 325px;
  position: fixed; 
  bottom: 0;
  font-family: consolas;
  font-size: 12px;
  font-weight: bold;
}

input[type=checkbox]{display:none}

.top {
  box-shadow: 0px 0px 2px 0px rgba(0,0,0,0.3);
  background: #009688;
  padding: 10px; 
  display: block;
  cursor: pointer; 
  border-top-right-radius: 4px;
  border-top-left-radius: 4px;
}

#trigger:checked ~ .chat,
#trigger:checked ~ .chat-input {
  display: none
}

#trigger:checked ~ .top {
  bottom: 0;
  position: absolute;
}
#close:checked ~ .chat-window {
  display: none}

.online {
  background: lightgreen;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 10px;
  display: inline-block;
}

.close {
  font-size: 1.3em;
  float: right;
  padding: 0 7px;
  transition: .3s;
  cursor: pointer;
}
.close:hover {
  background: rgba(255,0,0,.2);
  box-shadow: 0 0 10px 1px rgba(0,0,0,.2) inset;
}

.chat {
  box-shadow: 0px 0px 2px 0px rgba(0,0,0,0.3);
  background-color: #fafafa;
  background-image: url('../image/chatback.jpg');
  background-size: cover;
  height: 250px;
  overflow-y: scroll;
}

.damn {
  margin: 10px 0;
  clear: both;
  padding: 10px;
}

.damn img {
  float: left; 
  border-radius: 10px;
  /*
  width: 30px;
  height: 30px;*/
  margin: 5px;
  position: relative;
  z-index: 1; 
}

.chat-message {
  background: white;
  color: black;
  box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.14);
  float: left; 
  display: block;
  max-width: 220px;
  border-radius: 3px;
  position: relative;
  padding-bottom: 8px;
  padding-top: 4px;
  padding-left: 5px;
  padding-right: 5px;
  margin-bottom: 5px;
} 
.chat-message .t { 
  right: 2px;
  bottom: 2px;
  color: gray;
  margin: 5px;
  margin-bottom: -3px;
  font-size: 8px;
} 

.human .chat-message {
  background-color: #dcf8c6;
  float: right;
}

.chat-input {
  width: 100%;
  height: 35px;
  border: 0;
  padding: 5px;
  box-shadow: 0px 0px 2px 0px rgba(0,0,0,0.3);
  box-sizing: border-box;
  background-color: #efefef; 
}

.chat-input input {
  border-radius: 5em;
  width: 100%;
  border: none;
  padding: 5px;
}

::-webkit-scrollbar {
  width: 6px;
}
 
::-webkit-scrollbar-track {
  border-radius: 0;
}
 
::-webkit-scrollbar-thumb {
  margin: 2px;
  border-radius: 5px;
}

.chat-window:hover ::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: #F6F7F8;
}

.chat-spinner {
  position: relative;
  margin-top: 2px;
  text-align: center;
  
/*  width: 10px;
  height: 10px;*/
  
  margin-left: auto;
  margin-right: auto;
}
.chat-spinner .dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin-right: 3px;
  background: #303131;
  animation: wave 1.3s linear infinite;
}
.chat-spinner .dot:nth-child(2) {
  animation-delay: -1.1s;
}
.chat-spinner .dot:nth-child(3) {
  animation-delay: -0.9s;
}

@keyframes wave {
  0%, 60%, 100% {
    transform: initial;
  }
  30% {
    transform: translateY(-15px);
  }
}

