/* Position the custom cursor container */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* Style the canvas for Cursor Effect 1 */
#cursor-effect1 {
    width: 100%;
    height: 100%;
    display: block;
}

/* Cursor Effect 2 Styles */
.cursor-effect2 {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid #6c6c6c;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: all 0.1s ease;
    z-index: 9999;
}

.cursor-effect2-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background-color: #6c6c6c;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

/* Cursor Effect 3 Styles */
.cursor-effect3 {
    position: fixed;
    width: 60px;
    height: 60px;
    background-color: #fff600;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: background-color 1.0s ease;
    mix-blend-mode: difference;
    z-index: 9999;
}

.hoverable {
    cursor: none;
}

/* Cursor Effect 4 Styles (mix-blend-mode: difference) */
.cursor-effect4 {
    --cursor-x: -100px;
    --cursor-y: -100px;
    --cursor-size: 20px;
    --cursor-scale: 1;
    --cursor-gray: #b4b4b4;
    --cursor-transition: 0.15s ease-in;
    --cursor-fancy-transition: 0.25s cubic-bezier(0.78, 0, 0.22, 1);

    position: fixed;
    z-index: 99999;
    box-sizing: border-box;
    width: var(--cursor-size);
    height: var(--cursor-size);
    left: var(--cursor-x);
    top: var(--cursor-y);
    background: #fff;
    border-radius: 9999px;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%) scale(var(--cursor-scale));
    pointer-events: none;
    transition:
        transform var(--cursor-fancy-transition),
        border-width var(--cursor-transition);
    /* "scale - 1" makes the border 0 when scale = 1, and fills the circle when scale = 2 */
    border-width: max(0px, calc(var(--cursor-size) * (var(--cursor-scale) - 1) / 2));
    border-style: solid;
    border-color: var(--cursor-gray);
}

/* Cursor Effect 4 keeps the native cursor (pointer) visible; the custom circle is drawn alongside it. */

/* Never show on touch devices */
@media (hover: none), (pointer: coarse) {
    .cursor-effect4 {
        display: none;
    }
}

/* Cursor Effect 5 Styles (grid cube trail) */
.cursor-effect5 {
    --cursor5-color: #6C6C6C;
    --cursor5-size: 24px;

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    pointer-events: none;
    overflow: hidden;
}

.cursor-effect5-cube {
    position: absolute;
    width: var(--cursor5-size);
    height: var(--cursor5-size);
    background: var(--cursor5-color);
    will-change: opacity, transform;
    transition:
        opacity 350ms ease,
        transform 350ms ease;
}

.cursor-effect5-cube.is-dying {
    opacity: 0;
    transform: scale(0.85);
}

/* Never show on touch devices */
@media (hover: none), (pointer: coarse) {
    .cursor-effect5 {
        display: none;
    }
}

/* Cursor Effect 6 Styles (neon cursor, WebGL) */
.cursor-effect6 {
    /* The WebGL canvas has a black background, so it is blended with the page.
       "difference" works on light and dark pages; use "screen" for dark-only sites. */
    --cursor6-blend: difference;

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    pointer-events: none;
    overflow: hidden;
    mix-blend-mode: var(--cursor6-blend);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cursor-effect6.is-active {
    opacity: 1;
}

.cursor-effect6 canvas {
    display: block;
}

/* Never show on touch devices */
@media (hover: none), (pointer: coarse) {
    .cursor-effect6 {
        display: none;
    }
}