/* Button used to open the chat form - fixed at the bottom of the page */
.open-button {
  color: white;
  padding: 25px 25px;
  border: none;
  cursor: pointer;
  position: fixed;
  bottom: 10px;
  right: 20px;
  z-index:99;
  background:url("./images/chat-button-test.png");
  background-repeat: no-repeat;
  background-size: 50px 50px;
    outline: none;
}

/* The popup chat - hidden by default */
.chat-popup {
  position: fixed;
  bottom: 80px;
  right: 20px;
  /*border: 3px solid #f1f1f1;*/
  z-index: 99999;
  height: 400px;
  
  background:#fff;
 /* overflow-y: auto;*/
  border-radius: 10px;
  box-shadow: 5px 10px 18px #888888;
  width: 360px;
  -webkit-animation-name: animatetop;
  -webkit-animation-duration: 0.4s;
  animation-name: animatetop;
  animation-duration: 0.5s
}
.chat-head{
    position:relative;
    top:0;
}
.chat-tail{
    position:relative;
    bottom:0;
}

/* Add styles to the form container */
.form-container {
  /*padding: 10px;*/
  background-color: white;
}

/* Full-width textarea */
.form-container textarea, .chat-footer textarea {
  width: 100%;
  padding: 5px;
  margin: 5px 0 22px 0;
  border: none;
  background: #f1f1f1;
  resize: none;
  min-height: 80px;
}



/* When the textarea gets focus, do something */
.form-container textarea:focus, .chat-footer textarea:focus{
  background-color: #ddd;
  outline: none;
}

/* Set a style for the submit/send button */
.form-container .btn , .chat-footer .btn {
  background-color: #84b544;
  color: white;
  padding: 12px 15px;
  border: none;
  cursor: pointer;
  width: 100%;
  opacity: 0.8;
}

/* Add a red background color to the cancel button */
.form-container .cancel {
  background-color: red;
}

/* Add some hover effects to buttons */
.form-container .btn:hover, .open-button:hover {
  opacity: 1;
}


.container {
  border: 2px solid #dedede;
  background-color: #f1f1f1;
  border-radius: 5px;
  padding: 5px 10px;
  margin: 10px 0;
  max-width: 100%;
  font-size:14px;
}

.darker {
  border-color: #ccc;
  background-color: #ddd;
}

.container::after {
  content: "";
  clear: both;
  display: table;
}

.container img {
  float: left;
  max-width: 60px;
  width: 100%;
  margin-right: 20px;
  border-radius: 50%;
}

.container img.right {
  float: right;
  margin-left: 20px;
  margin-right:0;
}

.time-right {
  float: right;
  color: #aaa;
}

.time-left {
  float: left;
  color: #999;
}
#btn-scrollup{display:none}
.to-top-container {
    display: none !important;
}

.chat-content {
  position: relative;
  border-radius: 10px;
  background:#fff;
  
}

/* Add Animation */
@-webkit-keyframes animatetop {
  from {bottom:40px; opacity:0;height: 50px}
  to {bottom:80px; opacity:1;height: 400px}
}

@keyframes animatetop {
  from {bottom:40px; opacity:0;height: 50px}
  to {bottom:80px; opacity:1;height: 400px}
}
.chat-header {
  padding: 2px 10px;
  background-color: #84b544;
  color: white;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    font-size: 14px;
}

.chat-body {padding: 0px 0px;
height:320px;
background-color: #fff;
  overflow-y: auto;
    
}

.chat-footer {
    padding: 2px 5px 0px;
    text-align: left;
    background-color: #fff;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.form-inline {  
  display: flex;
  flex-flow: row wrap;
  align-items: center;
}

.form-inline label {
  margin: 5px 10px 5px 0;
}

.form-inline input[type="text"] {
  
    width: 310px;
    height:40px;
    padding-right: 80px;
}

.form-inline input[type="button"] {
   margin-left: -66px;
   padding: 5px 18px;
   height: 40px;
   font-size: 12px;
    /*width: 50px;
    background: blue;
    color: white;*/
    border: 0;
    -webkit-appearance: none;
}

.form-inline button {
  padding: 10px 20px;
  background-color: dodgerblue;
  border: 1px solid #ddd;
  color: white;
  cursor: pointer;
}

.form-inline button:hover {
  background-color: royalblue;
}



.chat{
  max-width:500px;
  margin: auto;
  font-family: Verdana, sans-serif;
}
/* NNTA this the outer most div you already have that is connected to be maxmized and minimized by the round message button */
/* I think this will match your #chat-content div. You might need overlow:hidden to hide overflow. I'm not sure */
#chat_window{
  box-shadow:
  0 2.8px 2.2px rgba(0, 0, 0, 0.034),
  0 6.7px 5.3px rgba(0, 0, 0, 0.048),
  0 12.5px 10px rgba(0, 0, 0, 0.06),
  0 22.3px 17.9px rgba(0, 0, 0, 0.072),
  0 41.8px 33.4px rgba(0, 0, 0, 0.086),
  0 100px 80px rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  background-color: #ffffff;
  height:700px;
  overflow: hidden;
}

#chat_heading{
  background-color: #649b39;
  height:5%;
  padding: 5px;/*10px*/
  /*text-align: center;
  font-size: 15pt;*/
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    
  color:#ffffff;
}
#chat_body{
  height:100%;/*80%*/
  overflow-y:scroll;
  /* border: 2px solid gray; */
  padding: 10px;
  background-color: #eeeeee;
}
#chat_input{
  height:5%;
  text-align: center;
}
.chat_bubble_right{
  text-align: right;
}
.chat_bubble{
  border-radius: 20px;
  padding: 10px;
  background-color: #96c346;
  display: inline-block;
  font-family: Verdana, sans-serif;
  font-size: 10pt;
}
.chat_bubble_user{
  text-align: left;
  background-color: #dae3f3;
}
.chat_bubble_bot{
  position:relative;
  right:0;
  background-color: #96c346;
  margin: 3px 0px;
}
/* links */
a.chat_link:link {
  color: #ffffff;
}
/* visited link */
a.chat_link:visited {
  color: #ffffff;
}
/* mouse over link */
a.chat_link:hover {
  color: #5c89e0;
}
#trova_chatbot_message {
  width: 80%;
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  box-sizing: border-box;
  font-size: 12pt;
}
#trova_chatbot_send {
  width: 18%;
  background-color: #96c346;
  color: white;
  padding: 6px 10px;
  margin: 8px 0;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12pt;
  
    outline: none;
}
#trova_chatbot_send:hover {
  background-color: #5c89e0;
}

