
/*  GENERAL */

@import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap");

#bot-container {
  z-index: 1;
  display: none;
  position:fixed;
  width: 50vw;
  height: 500px;
  max-width: 450px;
  min-width: 390px;
  right:0px;
  bottom:80px;
  border: 2px;
  border-radius: 25px 25px 0px 0px;
  background-color: #818486cc;
}

#bot-icon {
  position:fixed;
  display:block;
  right:20px;
  bottom:80px;
  width: 80px;
  height: 80px;
  background-image:url("bot-icon.svg");
  background-repeat: no-repeat;

}

#bot-close {
  position:absolute;
  display:block;
  right:16px;
  top:13px;
  width: 40px;
  height: 40px;
  background-size: contain;
  background-image:url("bot-close.svg");
  background-repeat: no-repeat;
}
#bot-avatar {
  position:absolute;
  display:block;
  left:23px;
  top:8px;
  width: 150px;
  height: 58px;
  background-size: contain;
  background-image:url("avatar.webp");
  background-repeat: no-repeat;
}

#bot-tittle {
  position:absolute;
  display:block;
  left:93px;
  top:15px;
  font-size: 26px;
  color: #ffffff;
  font-family: poppins;
  font-weight: 400;
}

#bot-send {
  position:absolute;
  display:block;
  right:20px;
  bottom:13px;
  width: 50px;
  height: 50px;
  background-size: contain;
  background-image:url("bot-send.svg");
  background-repeat: no-repeat;
}

#bot-input {
  font-family: poppins;
  /* font-size: 14px; */
  font-weight: 400;

  position:absolute;
  display:block;
  left:5%;
  bottom:10px;
  width: 75%;
  height: 4rem;
  line-height: normal;
  font-size: 1rem;
  border:0px solid;
  border-color: #a8bbe7;
  background-color: #ffffff;
  border-radius: 10px;
  padding: 10px;
  overflow-y: auto;
}

#bot-input:focus {
  outline:none;
}

#bot-chat {
  font-family: poppins;
  position:absolute;
  left:5%;
  top: 70px;
  width: 90%;
  height: 70%;
  padding: 10px;
  border-radius: 15px;
  border: 0px solid;
  border-color: #a8bbe7;
  background-color: rgb(255, 255, 255);
  overflow-y: auto;
}

#bot-chat::-webkit-scrollbar-track {
  border-radius: 5px;
  margin-bottom:5px;
  margin-top:5px;
}
#bot-chat::-webkit-scrollbar-thumb {
  background: #1ea0f0; 
  border-radius: 10px;
}
#bot-chat::-webkit-scrollbar {
  width: 15px;
}

.msgContainer {
  display: block;
  margin-bottom: 5px;
}

.waitanim {
  width:100px;
  height: 50px;
  background-size: contain;
  background-image:url("typing.gif");
  background-repeat: no-repeat;
}

.commonMsg {
  font-size: 0.85rem;
  position:relative;
  clear:both;
  right:0px;
  padding: 10px;
  border: 0px none;
  margin-bottom: 5px;
  max-width: 70%;
  overflow-x:hidden;
}

.userMsg {
  border-radius: 15px 15px 2px 15px;
  float:right;
  background-color: #ffc107;
}

.botMsg {
  border-radius: 15px 15px 15px 2px;
  float:left;
  color: #ffffff;
  background-color: #1ea0f0;
}

.msgFromText {
  font-family: poppins;
  font-size: 0.7rem;
  float:right;
  clear:both;
  margin: 0px 10px 0px 0px;
}

.msgToText {
  font-family: poppins;
  font-size: 0.7rem;
  float:left;
  clear:both;
  margin: 0px 10px 0px 0px;
}

/* placeholder code */
[contentEditable=true]:empty:before {
  content: attr(placeholder);
  opacity: 0.6;
}



/* ANIMACIÓN TYPING */

.chat-bubble {
  background-color:#e8e8e8;
  padding:16px 28px;
  -webkit-border-radius: 20px;
  -webkit-border-bottom-left-radius: 2px;
  -moz-border-radius: 20px;
  -moz-border-radius-bottomleft: 2px;
  border-radius: 20px;
  border-bottom-left-radius: 2px;
  display:inline-block;
}
.typing {
  align-items: center;
  display: flex;
  height: 17px;
}
.typing .dot {
  animation: mercuryTypingAnimation 1.8s infinite ease-in-out;
  background-color: #6ca2ad ;
  border-radius: 50%;
  height: 7px;
  margin-right: 4px;
  vertical-align: middle;
  width: 7px;
  display: inline-block;
}
.typing .dot:nth-child(1) {
  animation-delay: 200ms;
}
.typing .dot:nth-child(2) {
  animation-delay: 300ms;
}
.typing .dot:nth-child(3) {
  animation-delay: 400ms;
}
.typing .dot:last-child {
  margin-right: 0;
}

@keyframes mercuryTypingAnimation {
  0% {
    transform: translateY(0px);
    background-color:#89b7d5;
  }
  28% {
    transform: translateY(-7px);
    background-color:#517d9a; 
  }
  44% {
    transform: translateY(0px);
    background-color: #a3c4d9; 
  }
}

/*                 */
