
@use '../utils' as *;

/*----------------------------------------*/
/*  2.6 Magic Cursor css start
/*----------------------------------------*/


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: var(--tp-common-black);
}
.cursor-bg-red{
	#ball{
		background-color: var(--tp-theme-secondary) !important;
	}
	#ball .ball-view {
		color: var(--tp-common-white);
	}
}
.cursor-white-bg{
	#ball{
		background-color: var(--tp-common-white) !important;
	}
	#ball .ball-view {
		color: var(--tp-common-black);
	}
}
.cursor-black-bg{
	#ball{
		background-color: var(--tp-common-black) !important;
	}
	#ball .ball-view {
		color: var(--tp-common-white);
	}
}
.cursor-bg-green{
	#ball{
		background-color: var(--tp-theme-1) !important;
	}
	#ball .ball-view {
		color: var(--tp-common-white);
	}
}


/* Ball view 
============= */
#ball .ball-view {
	position: absolute;
	opacity: 0;
	visibility: hidden;
	padding: 0 5px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.1;
	text-align: center;
	transform: scale(0);
	font-family: var(--tp-ff-dm);
	color: var(--tp-common-black);
}

/* Ball drag 
============= */
#ball .ball-drag {
	position: absolute;
	display: block;
	width: 100%;
	padding: 0 5px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	transition: all 0.3s;
	font-family: var(--tp-ff-dm);
	color: var(--tp-common-black);
}
#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: var(--tp-common-black);
}

.tp-magnetic-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
}
  