
@use '../utils' as *;

/*----------------------------------------*/
/*  2.8 Magic Cursor
/*----------------------------------------*/


body.tp-magic-cursor #magic-cursor {
    display: block;
}

#magic-cursor {
	position: absolute;
	display: none;
	width: 10px;
	height: 10px;
	pointer-events: none;
	z-index: 99999;
	opacity: 0;
	top: 0;
	left: 0;
}

#ball {
	position: fixed;
	display: flex;
	align-items: center;
	pointer-events: none;
	border-radius: 50%;
	color: transparent;
	justify-content: center;
    mix-blend-mode: difference;
	background-color: #000000;
}
.cursor-bg-red{
	#ball{
		background-color: #FF535B !important;
	}
	#ball .ball-view {
		color: var(--tp-common-white);
	}
}

.cursor-bg-red-2{
	#ball{
		background-color: #FF481F !important;
	}
	#ball .ball-view {
		color: var(--tp-common-white);
	}
}

.cursor-bg-yellow{
	#ball{
		background-color: #FFF669 !important;
	}
	#ball .ball-view {
		color: #000000;
	}
}

.cursor-white-bg{
	#ball .ball-view {
		color: #000000;
	}
}


/* Ball view 
============= */
#ball .ball-view {
	position: absolute;
	opacity: 0;
	visibility: hidden;
	padding: 0 5px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3;
	text-align: center;
	transform: scale(0);
	color: #000000;
}

/* Ball drag 
============= */
#ball .ball-drag {
	position: absolute;
	display: block;
	width: 100%;
	padding: 0 5px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	transition: all 0.3s;
	color: #000000;
}
#ball .ball-drag::before,
#ball .ball-drag::after {
	position: absolute;
	top: 50%;
	margin-top: -5px;
	font-size: 19px;
	height: 10px;
	line-height: 10px;
	font-weight: 900;
	display: inline-block;
	font-style: normal;
	font-variant: normal;
	text-rendering: auto;
	color: var(--tp-common-white);
	font-family: "Font Awesome 6 Pro";
	-webkit-font-smoothing: antialiased;
}

#ball .ball-drag::before {
	content: "\f104"; /* Font Awesome */
	left: 0;
	transform: translate3d(-30px, 0, 0);
	transition: all 0.25s;
}
#ball .ball-drag::after {
	content: "\f105"; /* Font Awesome */
	right: 0;
	transform: translate3d(30px, 0, 0);
	transition: all 0.25s;
}
#ball.with-blur {
	-webkit-backdrop-filter: blur(5px);
	backdrop-filter: blur(5px);
	-webkit-transform: translate3d(0, 0, 0);
	transform: translate3d(0, 0, 0);		
}


/* Ball close 
============== */
#ball.ball-close-enabled {
	opacity: 1 !important;
}
#ball .ball-close {
	position: absolute;
	padding: 0 5px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-align: center;
	color: #000000;
}

.tp-magnetic-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
}