
/* style user input field */
.bubble-container .input-wrap {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	font-family: "Helvetica Neue", Helvetica, sans-serif;
	color: #2c2c2c;
}
.bubble-container .input-wrap textarea {
	width: 80%;
	float: left;
	font-family: "Helvetica Neue", Helvetica, sans-serif;
	color: var(--bubbles-bot-font-color);
	background: var(--bubbles-bot-bg-color);
	font-size: 1em;
	letter-spacing: .5px;
	font-weight: 400;
	margin: 10px 0px 10px 10px;
	border-radius: 15px 0px 0px 15px;
	border: none;
	height:40px;
	padding: 10px 15px;
	outline: none;
	box-shadow: 1px 0 0 1px #d0d0d0 inset;
	line-height: 1.25em;
	resize:none;
	animation-name: fadeInOpacity;
	animation-iteration-count: 1;
	animation-timing-function: ease-in;
	animation-duration: 0.2s;
}

.bubble-container .input-wrap button{
	margin: 10px 10px 10px 0px;
	width: calc(20% - 25px);
	float:left;
	border-radius: 0px 15px 15px 0px;
	background-color: rgba(250, 250, 250, 0.95);
	padding: 0;
	height:60px;
	border: none;
	box-shadow: -1px 0 0 1px #d0d0d0 inset;
	cursor: pointer;
}

.bubble-container .input-wrap button:active{
    filter: grayscale(100%);
}

.bubble-container .input-wrap button img{
	height: 30px;
    margin-top: 5px;
	/*https://angel-rs.github.io/css-color-filter-generator/*/
	filter: var(--chat-send-filter);
}

.bubble.reply-freeform {
	margin: 8px 0 10px;
}
.bubble.reply.reply-freeform.say .bubble-content .bubble-button {
	margin-top: 1px;
	text-align: left;
}
.bubble.reply.say.bubble-hidden {
	margin: 0;
	transform: scale(0);
	height: 0;
}

@keyframes fadeInOpacity {
	0% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}

@keyframes fadeOutOpacity {
	0% {
		opacity: 1;
	}
	100% {
		opacity: 0;
	}
}

/* style user response reply */
.bubble.reply {
  background: transparent;
  box-shadow: none;
  float: right;
  position: relative;
  transform-origin: right top;
  margin: 8px 0 10px;
  padding: 0;
  max-width: 65%;
}
.bubble.reply.history {
  margin: 0 0 2px 0; /* remembered bubbles do not need to stand out via margin */
}
.bubble.reply.say {
  /*
  min-width: 350px;
 */
}
.bubble.reply .bubble-content {
  transition: all 200ms;
}
.bubble.reply .bubble-content .bubble-button {
  /*background: rgba(44, 44, 44, 0.67);*/
  background: var(--bubbles-user-bg-color);
  color: var(--bubbles-user-font-color);
  padding: 8px 16px;
  border-radius: 15px 15px 5px 5px;
  margin-left: 2px;
  text-align: center;
  display: inline-block;
  float: right;
  /*cursor: pointer;*/
  transition: all 200ms;
  text-decoration: none;
  word-break: normal;
	box-sizing: content-box;
  /* animation-duration: 1s; */
  animation-name: "animate-reply";
  animation-play-state: paused;
  animation-fill-mode: forwards;
  /* opacity: 0; */
  transform: translate3d(0px, 0px, 0px);
  animation-delay: -3s;
  -ms-animation-delay: -3;
  -webkit-animation-delay: -3s;
}
@keyframes animate-reply {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.bubble.reply.say .bubble-content .bubble-button {
  animation-play-state: running;
  margin-top: 3px;
  min-height: 24px;
  overflow: hidden;
}

.bubble.reply .bubble-content .bubble-button:first-child {
  border-radius: 15px 15px 15px 5px;
  margin-left: 2px;
}
.bubble.reply .bubble-content .bubble-button:last-child,
.bubble.reply .bubble-content .bubble-button.bubble-pick {
  border-radius: 15px 15px 5px 15px;
}
.bubble.reply.bubble-picked .bubble-content .bubble-button {
  transform: scale(0) translate3d(0px, 0px, 0px);
  padding: 0;
}
.bubble.reply:not(.bubble-picked) .bubble-content .bubble-button:hover,
.bubble.reply .bubble-content .bubble-button.bubble-pick {
  /*background: rgba(44, 44, 44, 1);
  transform: scale(1) translate3d(0px, 0px, 0px);
  padding: 8px 16px;
  height: auto;*/
}

/* interaction recall styles */
.bubble.history .bubble-content .bubble-button,
.bubble.history.reply:not(.bubble-picked) .bubble-content,
.bubble.history.reply .bubble-content .bubble-button.bubble-pick {
  background: rgba(44, 44, 44, 0.67);
  cursor: default;
}

/* input fields for bubbles */
.bubble .bubble-content input {
  background: linear-gradient(193deg, #1faced, #5592dc 100%) !important;
  box-shadow: 0 0px 1px 0px #000, 0 -1px 0 0px rgba(255, 255, 255, 0.38) inset;
  text-shadow: 0 1px rgba(0, 0, 0, 0.35);
  border: 0;
  outline: 0;
}
.bubble .bubble-content input::-webkit-input-placeholder {
  /* Chrome/Opera/Safari */
  color: rgba(255, 255, 255, .5);
  text-shadow: none;
}
.bubble .bubble-content input::-moz-placeholder {
  /* Firefox 19+ */
  color: rgba(255, 255, 255, .5);
  text-shadow: none;
}
.bubble .bubble-content input:read-only {
  background: linear-gradient(166deg, #48121d, #0d4058 100%) !important;
}
/* style bubbles */
.bubble,
.bubble-typing,
.bubble-thinking {
  color: #212121;
  background: rgba(255, 255, 255, 0.95);
  padding: 8px 16px;
  border-radius: 5px 15px 15px 15px;
  font-weight: 400;
  text-transform: none;
  text-align: left;
  font-size: 16px;
  letter-spacing: .5px;
  margin: 0 0 2px 0;
  max-width: 65%;
  float: none;
  clear: both;
  line-height: 1.5em;
  word-break: break-word;
  transform-origin: left top;
  transition: all 200ms;
  box-sizing: content-box;
}
.bubble .bubble-content {
  transition: opacity 150ms;
}
.bubble:not(.say) .bubble-content {
  opacity: 0;
}
.bubble-typing.imagine,
.bubble.imagine,
.bubble-thinking.imagine {
  transform: scale(0);
  transition: all 200ms, height 200ms 1s, padding 200ms 1s;
}
.bubble.imagine {
  margin: 0;
  height: 0;
  padding: 0;
}

/* style media that's inside bubbles */
.bubble .bubble-content img {
  width: calc(100% + 32px);
  margin: -8px -16px;
  overflow: hidden;
  display: block;
  border-radius: 5px 15px 15px 15px;
}

/* interaction recall styles */
.bubble.history,
.bubble.history .bubble-content,
.bubble.history .bubble-content .bubble-button,
.bubble.history .bubble-content .bubble-button:hover {
  transition: all 0ms !important;
}
.bubble.history {
  opacity: .25;
}
/* setup container styles */
@media (max-width: 499px){ /* Mobile */
	.bubble-container {
		background: var(--chat-mobile-bg-color);
		height: 520px;
		max-width: 750px;
		width: 100%;
		margin: 0 auto;
		overflow: hidden;
		position: relative;
	}
}
@media (min-width: 500px) and (max-width:999px){ /* Tablet */
	.bubble-container {
		background: var(--chat-tablet-bg-color);
		height: 520px;
		width: 100%;
		margin: 0 auto;
		overflow: hidden;
		position: relative;
	}
}
@media (min-width:1000px){ /* Desktop */
	.bubble-container {
		background: var(--chat-desktop-bg-color);
		height: 520px;
		max-width: 750px;
		width: 100%;
		margin: 0 auto;
		overflow: hidden;
		position: relative;
	}
}
.bubble-wrap {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: -1.7vw;
	padding: 10px calc(1.7vw + 10px) 30px 10px;
	overflow-y: scroll;
	-ms-overflow-style: none;  /* IE and Edge */
  	scrollbar-width: none;  /* Firefox */
	-webkit-overflow-scrolling: touch;
	-webkit-transform: translate3d(0, 0, 0);
}
.bubble-wrap::-webkit-scrollbar {
	display: none;
  }
/* optional page styles */
h1 {
	text-align: center;
	font-weight: 300;
	font-size: 4em;
	margin: .5em auto 0.15em;
}

/* style "loading" or "typing" stae */

.bubble-typing {
	width: 38px;
	padding: 12px 16px;
	height: 8px;
}
.dot {
	background-color: rgb(255,255,255);
	float: left;
	height: 7px;
	margin-left: 4px;
	width: 7px;
	animation-name: bounce_dot;
	animation-duration: 2.24s;
	animation-iteration-count: infinite;
	animation-direction: normal;
	border-radius: 5px;
}
.dot_1 { animation-delay: 0.45s; }
.dot_2 { animation-delay: 1.05s; }
.dot_3 { animation-delay: 1.35s; }
@keyframes bounce_dot {
	0% {}
	50% { background-color:rgb(0,0,0); }
	100% {}
}

.bubble-thinking {
	width: 150px;
	font-weight: bold;
	/*text-transform: uppercase;*/
}

.bubble-thinking > .think {
    position: relative;
    display: inline-block;
    text-align: center;
    animation: animate 0.2s infinite linear;
	color: #ffffff;
	/*background: linear-gradient(90deg, #5c5c5c 0, black 10%, #5c5c5c 20%);*/
	background: linear-gradient(90deg, #929191 0, black 10%, #929191 20%);
	background-position: 0;
	background-size:90%;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: animate 2s infinite linear;
	animation-fill-mode: forwards;
	-webkit-text-size-adjust: none;
}


@keyframes animate{
	0% {
    	background-position: -500%;
	}
	100% {
		background-position: 500%;
	}

 }

 #taBotInput {
    height: 100%;
 }