#chatbot{
	position: fixed; 
	background: #212121;  
	padding: 10px; 
	display: flex; 
	flex-direction: column; 
	right: 0; 
	width:100%;
	bottom: 0;
	height: 100%;
	font-size: 1.3rem;
	overflow: hidden;
	line-height: 1;
	transform: scale(0);
	opacity: 0.1;
	transition-duration: .5s;
	transform-origin: right bottom;
}

.chatbot_mini_nowyouseemeenowyoudont{
	transform: scale(0);
	opacity: 0.1;
	transition-duration: .5s;
}

#chatbot.chatbot_show{
	transform: scale(1);
	opacity: 1;
	z-index: 999999999;
}

.chatbot_mini{
	position: fixed; 
	right: 30px; 
	width: 60px;
	bottom: 30px;
	height: 60px;
	padding: 8px;
	border-radius: 8px;
	background: rgb(22, 23, 44);
	box-shadow: 0 0 2px 0 white, 0 0 2px 0 inset white;
	cursor: pointer;
	transition-duration: .5s;
}


#chatbot [handle]{
	position: relative;
	background: rgb(10, 104, 230); 
	color: white; 
	padding: 10px; 
	border-radius: 8px;
	display: flex;
	gap:20px;
	align-items: center;
}

#chatbot [close]{
	position: absolute;
	right: 10px;
	cursor: pointer;
}

#chatbot [contentwrapper]{
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	height: 100%;
	min-height: 0;
}

#chatbot_output{
	display: flex;
	flex: 1;               
	min-height: 0;     
	overflow-y: auto;
	flex-direction: column; 
	margin-top: 10px;
	gap: 10px; 
	padding: 2px;
	isolation: isolate;
	position: relative; 
	transform: translateZ(0);
	overscroll-behavior: none;
}

.input_wrapper{
	display: flex;
	flex-basis: 42px;
	position: relative;
	background: #303030;
	border-radius: 8px;
}

#chatbot_input{ 
	padding: 8px 20px;
	font-size: 1rem;
	background: rgba(0,0,0,0);
	color: white;
	border: none;
	resize: none;
	overflow-y: auto;
	max-height: 150px;
	width: 100%;
	padding-right: 35px;
	font-family: inherit;
}
#chatbot_input:active, #chatbot_input:focus{
	outline: none;
}

.chatbot_message{
	padding: 15px;
	box-shadow: 0 0 1px 0 rgba(255,255,255, .3) inset; 
	max-width: 80%;
	white-space: pre-line;
	font-size: 1rem;
	word-break: break-word;
	overflow-wrap: anywhere;
	list-style-position: inside;
	user-select: text;
}

.chatbot_message pre,
.chatbot_message code {
  white-space: pre-wrap;     /* sortörés engedélyezése */
  word-break: break-word;    /* hosszú szavak törése */
  overflow-wrap: anywhere;   /* modern megoldás */
}

.bot_message{
	margin: 0 auto 0 0;
	background: rgba(0, 0, 255, .1);
	color: white;
	border-radius: 25px 25px 0 25px;
}

.user_message{
	margin: 0 0 0 auto;
	background: #532d8d;
	color: white;
	border-radius: 0 25px 25px 25px;
}

#aiMessageSend{
	position: absolute;
	right:10px;
	top: 1px;
	width: 40px;
	aspect-ratio: 1;
	border-radius: 200px;
	background-color: #059781;
	display: grid;
	place-items: center;
	box-sizing: border-box;
	font-size: 0.8rem;
	color: #0c4df0;
	font-family: 'Clash Grotesk Semibold';
	line-height: 100%;
	font-weight: 600;
	cursor: pointer;
}

#aiMessageSend img{
	transform: scale(.55);
}

.chatbot-loading{
  display: inline-flex;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  width: fit-content;
}

.chatbot-loading span{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #555;
  animation: chatbotDots 1.4s infinite ease-in-out;
}

.chatbot-loading span:nth-child(2){
  animation-delay: .2s;
}

.chatbot-loading span:nth-child(3){
  animation-delay: .4s;
}

@keyframes chatbotDots{
  0%, 80%, 100%{
    transform: scale(0.4);
    opacity: .3;
  }
  40%{
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
  100% { transform: translateX(0); }
}

.shake {
  animation: shake 0.4s ease;
}

@keyframes shake-violent {
  0% { transform: translate(0, 0) rotate(0); }
  20% { transform: translate(-8px, 2px) rotate(-2deg); }
  40% { transform: translate(8px, -2px) rotate(2deg); }
  60% { transform: translate(-6px, 1px) rotate(-1deg); }
  80% { transform: translate(6px, -1px) rotate(1deg); }
  100% { transform: translate(0, 0) rotate(0); }
}

.shake-hard {
  animation: shake-violent 0.35s cubic-bezier(.36,.07,.19,.97);
}

@media screen and (min-width: 750px) {
	#chatbot{
		flex-direction: column; 
		/* right: calc(50% - min(600px, 70%)/2 );  */
		right: 30px; 
		width: min(600px, 70%);
		/* bottom: calc(50% - min(800px, 70%)/2 ); */
		bottom: 30px;
		height: min(800px, 70%);
		font-size: 1.3rem;
	}
}