body fuse-splash-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    pointer-events: none;
    opacity: 1;
    visibility: visible;
    transition: opacity 400ms cubic-bezier(0.4, 0, 0.2, 1);
    background-color: black;
    background-image: url("/assets/images/backgrounds/background-03.jpg");
    background-position: center, right; /* Separate positions for each background */
    background-repeat: no-repeat;
    background-size: cover;
}

/* body fuse-splash-screen::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("/assets/images/backgrounds/background-03.jpg"); /* Use the background image */
/*   background-position: top; /* Position at the top */
/*  background-repeat: no-repeat; /* Repeat vertically */
/*  transform: scaleY(-1); /* Flip vertically */
/* }
*/

.knight-rider-flash {
    width: 33%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent 0%,
        white 50%,
        transparent 100%
    );
    animation: knightRider 2s ease-in-out infinite;
    opacity: 0.7;
}

@keyframes knightRider {
    0%,
    100% {
        transform: translateX(0%);
    }
    50% {
        transform: translateX(200%);
    }
}

body fuse-splash-screen img {
    width: 280px;
    max-width: 280px;
}

body:not(.fuse-splash-screen-hidden) {
    overflow: hidden;
}

body.fuse-splash-screen-hidden fuse-splash-screen {
    visibility: hidden;
    opacity: 0;
}

body fuse-splash-screen .loader {
    position: relative;
    width: 75px;
    height: 100px;
    background-repeat: no-repeat;
    background-image: linear-gradient(#ddd 50px, transparent 0),
        linear-gradient(#ddd 50px, transparent 0),
        linear-gradient(#ddd 50px, transparent 0),
        linear-gradient(#ddd 50px, transparent 0),
        linear-gradient(#ddd 50px, transparent 0);
    background-size: 8px 100%;
    background-position: 0px 90px, 15px 78px, 30px 66px, 45px 58px, 60px 50px;
    animation: pillerPushUp 4s linear infinite;
}

body fuse-splash-screen .loader:after {
    content: "";
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 10px;
    height: 10px;
    background: #de3500;
    border-radius: 50%;
    animation: ballStepUp 4s linear infinite;
}

@keyframes pillerPushUp {
    0%,
    40%,
    100% {
        background-position: 0px 90px, 15px 78px, 30px 66px, 45px 58px,
            60px 50px;
    }
    50%,
    90% {
        background-position: 0px 50px, 15px 58px, 30px 66px, 45px 78px,
            60px 90px;
    }
}

@keyframes ballStepUp {
    0% {
        transform: translate(0, 0);
    }
    5% {
        transform: translate(8px, -14px);
    }
    10% {
        transform: translate(15px, -10px);
    }
    17% {
        transform: translate(23px, -24px);
    }
    20% {
        transform: translate(30px, -20px);
    }
    27% {
        transform: translate(38px, -34px);
    }
    30% {
        transform: translate(45px, -30px);
    }
    37% {
        transform: translate(53px, -44px);
    }
    40% {
        transform: translate(60px, -40px);
    }
    50% {
        transform: translate(60px, 0);
    }
    57% {
        transform: translate(53px, -14px);
    }
    60% {
        transform: translate(45px, -10px);
    }
    67% {
        transform: translate(37px, -24px);
    }
    70% {
        transform: translate(30px, -20px);
    }
    77% {
        transform: translate(22px, -34px);
    }
    80% {
        transform: translate(15px, -30px);
    }
    87% {
        transform: translate(7px, -44px);
    }
    90% {
        transform: translate(0, -40px);
    }
    100% {
        transform: translate(0, 0);
    }
}

@keyframes electric-border {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

.electric-border {
    position: relative;
    padding: 40px;
}

.electric-border::before {
    inset: 12px 32px;
    content: "";
    position: absolute;
    border-radius: 0.5rem; /* match your div's rounded-lg */
    padding: 2px;
    background: linear-gradient(
        270deg,
        #1e3a8a,
        /* Dark Electric Blue */ #0f766e,
        /* Dark Teal (Water) */ #78350f,
        /* Dark Amber (Gas) */ #1e3a8a /* Repeat start for smooth loop */
    );
    background-size: 600% 600%;
    animation: electric-border 4s linear infinite;
    -webkit-mask: linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
}

@media (min-width: 1024px) {
  .electric-border::before {
    inset: 0; /* hug edges on desktop */
  }
}
