/**
 * MindBridge Animation Text Widget Styles
 *
 * @package MindBridge_Essentials_Addons
 * @since 1.0.0
 */

.mindbridge-animation-text {
	display: block;
	position: relative;
	line-height: 1.2;
	width: 100%;
}

.mindbridge-animation-text .animation-wrapper {
	display: block;
	margin: 0;
	padding: 0;
	width: 100%;
}

.mindbridge-animation-text .heading-text {
	display: inline;
	margin: 0;
	padding: 0;
}

.mindbridge-animation-text .animated-text {
	display: inline;
	position: relative;
	transition: all 0.3s ease;
	color: var(--e-global-color-text);
	margin: 0;
	padding: 0;
}

@keyframes blink {

	0%,
	50% {
		opacity: 1;
	}

	51%,
	100% {
		opacity: 0;
	}
}

/* Typing animation styles */
.mindbridge-animation-text .animated-text {
	min-width: 1ch;
	/* Ensure minimum width for cursor */
}

/* Ensure cursor is always visible during typing */
.mindbridge-animation-text .animated-text::after {
	content: '';
	position: absolute;
	right: -3px;
	bottom: 6px;
	height: 60px;
	width: 2px;
	background-color: currentColor;
	animation: blink 1s infinite;
	display: inline-block;
}
.mindbridge-animation-text .animated-text::before {
	content: ' ';
	display: inline-block;
}

.mindbridge-animation-text .animated-text.no-animation::after {
	display: none;
}

/* Ensure proper styling for different HTML tags */
.mindbridge-animation-text .animation-wrapper {
	margin: 0;
	padding: 0;
	line-height: inherit;
	color: var(--e-global-color-primary);
}

/* Ensure alignment works properly */
.mindbridge-animation-text.text-left .animation-wrapper {
	text-align: left;
}

.mindbridge-animation-text.text-center .animation-wrapper {
	text-align: center;
}

.mindbridge-animation-text.text-right .animation-wrapper {
	text-align: right;
}

.mindbridge-animation-text.text-justify .animation-wrapper {
	text-align: justify;
}

/* Ensure typography inheritance works properly */

.mindbridge-animation-text .heading-text,
.mindbridge-animation-text .animated-text {
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	font-style: inherit;
	line-height: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
	text-decoration: inherit;
}
.mindbridge-animation-text .animated-text {
	display: block;
	max-width: max-content;
}
/* Responsive adjustments */
@media (max-width: 1200px) {
	.mindbridge-animation-text .heading-text,
	.mindbridge-animation-text .animated-text {
		/* font-size: 64px; */
	}
}
@media (max-width: 992px) {
	.mindbridge-animation-text .heading-text,
	.mindbridge-animation-text .animated-text {
		/* font-size: 48px; */
	}
	.mindbridge-animation-text .animated-text::after {
		height: 40px;
	}
}

@media (max-width: 768px) {
	.mindbridge-animation-text {
		/* font-size: 0.9em; */
	}
}

@media (max-width: 480px) {
	.mindbridge-animation-text {
		/* font-size: 0.8em; */
	}
}