@use '../utils' as *;
/*----------------------------------------*/
/* 2.6 Magic Cursor css start
/*----------------------------------------*/
body.mt-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(--mt-common-black);
}
.cursor-bg-red{
#ball{
background-color: var(--mt-theme-secondary) !important;
}
#ball .ball-view {
color: var(--mt-common-white);
}
}
.cursor-white-bg{
#ball{
background-color: var(--mt-common-white) !important;
}
#ball .ball-view {
color: var(--mt-common-black);
}
}
.cursor-black-bg{
#ball{
background-color: var(--mt-common-black) !important;
}
#ball .ball-view {
color: var(--mt-common-white);
}
}
.cursor-bg-green{
#ball{
background-color: var(--mt-theme-1) !important;
}
#ball .ball-view {
color: var(--mt-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(--mt-ff-dm);
color: var(--mt-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(--mt-ff-dm);
color: var(--mt-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(--mt-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(--mt-common-black);
}
.mt-magnetic-wrap {
display: flex;
align-items: center;
justify-content: center;
}