@import url('https://fonts.googleapis.com/css2?family=Rubik&display=swap');

/* Center body contents, both horizontally and vertically */
body{
  margin: 0;
  padding: 0; 
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Rubik", sans-serif;
}

/* Style the outer container. Centralize contents, both horizontally and vertically */
#bot {
  margin: 50px 0;
  height: 600px;
  width: 350px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 3px 3px 15px rgba(0, 0, 0, 0.2) ;
  border-radius: 20px;
}

/* Make container slightly rounded. Set height and width to 90 percent of .bots' */
#container {
  height: 93%;
  border-radius: 6px;
  width: 90%;
  background: #F3F4F6;
}

/* Style header section */
#header {
  width: 100%;
  /*height: 10%;*/
  border-radius: 6px;
  background: #3B82F6;
  color: white;
  text-align: center;
  font-size: 24px;
  /*padding-top: 12px;*/
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
  font-weight: bold;
}

/* Style body */
#body {
  width: 100%;
  height: 83%;
  background-color: #F3F4F6;
  overflow-y: auto;
}

/* Style container for user messages */
.userSection {
  width: 100%;
}

/* Seperates user message from bot reply */
.seperator {
  width: 100%;
  height: 50px;
}

/* General styling for all messages */
.messages {
  max-width: 90%;
  margin: .5rem;
  font-size: 14px;
  padding: .5rem;
  border-radius: 7px;
}

/* Targeted styling for just user messages */
.user-message {
  margin-top: 0.4rem;
  text-align: left;
  background: #3B82F6;
  color: white;
  float: left;
}

/* Targeted styling for just bot messages */
.bot-reply {
  text-align: right;
  background: #E5E7EB;
  margin-top: 0.4rem;
  float: right;
  color: black;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
  margin-left: 20px
}

/* Style the input area */
#inputArea {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 10%;
  padding: 1rem;
  background: transparent;
  margin:1px;
}

/* Style the text input */
#userInput {
  height: 20px;
  width: 80%;
  background-color: white;
  border-radius: 6px;
  padding: 1rem;
  font-size: 1rem;
  border: none;
  outline: none;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
}

/* Style send button */
#send {
  height: 40px;
  padding: .5rem;
  font-size: 1rem;
  text-align: center;
  width: 20%;
  color: white;
  background: #3B82F6;
  cursor: pointer;
  border: none;
  border-radius: 6px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
  margin:1px;
}

#buttons{
  color: white;
  background-color: #3B82F6;
  border: none;
  margin: 2px;
}


/*  */


.chat-btn {
  position: absolute;
  right: 14px;
  bottom: 30px;
  cursor: pointer
}

.chat-btn .close {
  display: none
}

.chat-btn i {
  transition: all 0.9s ease
}

#check:checked~.chat-btn i {
  display: block;
  pointer-events: auto;
  transform: rotate(180deg)
}

#check:checked~.chat-btn .comment {
  display: none
}

.chat-btn i {
  font-size: 30px;
  color: #fff !important
}

.chat-btn {
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  background-color: #3B82F6;
  color: #fff;
  font-size: 22px;
  border: none
}

.wrapper {
  position: absolute;
  right: 20px;
  bottom: 50px;
  width: 300px;
  background-color: #fff;
  border-radius: 5px;
  opacity: 0;
  transition: all 0.4s
}

#check:checked~.wrapper {
  opacity: 1
}



.chat-form {
  padding: 15px
}

.chat-form input,
textarea,
button {
  margin-bottom: 10px
}

.chat-form textarea {
  resize: none
}

.form-control:focus,
.btn:focus {
  box-shadow: none
}



#check {
  display: none !important
}

.card-text{ 
  font-size: 13px;
}

/* dot animation */
.loading{
  background-color: #E5E7EB;
  height: 20px;
  width: 57px;
  border-radius: 10px;
  margin-left: 80%;
  margin-top:20px;
}

.jumping-dots span {
position: relative;
margin-left: auto;
margin-right: auto;
animation: jump 1s infinite;
display: inline-block;
}

.jumping-dots .dot-1 {
background-color: grey;
width: 10px;
height: 10px;
border-radius: 50%;
margin-right: 3px;
animation-delay: 200ms;
}

.jumping-dots .dot-2 {
background-color: grey;
width: 10px;
height: 10px;
border-radius: 50%;
margin-right: 3px;
animation-delay: 400ms;
}

.jumping-dots .dot-3 {
background-color: grey;
width: 10px;
height: 10px;
border-radius: 50%;
margin-right: 3px;
animation-delay: 600ms;
}

@keyframes jump {
0% {
  bottom: 0px;
}
20% {
  bottom: 5px;
}
40% {
  bottom: 0px;
}
}

/* card image */
.rw-carousel-card-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  background-color: #b5b5b5;
  cursor: pointer;
}