#preloader-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Make sure it stays above other content */
    backdrop-filter: blur(10px); /* Apply blur to the background */
    -webkit-backdrop-filter: blur(
        10px
    ); /* Ensure compatibility with WebKit browsers */
    background: rgb(173 173 173 / 43%);
}

#circle-loader {
    width: 120px;
    height: 120px;
    border-style: solid;
    border-width: 5px;
    border-top-color: #0080ff;
    border-right-color: #0080ff;
    border-bottom-color: #d5eaff;
    border-left-color: #d5eaff;
    border-radius: 50%;
    animation: spinLoader 2s linear infinite;
}

@keyframes spinLoader {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#centre-logo {
    position: fixed;
    width: 140px;
    /* height: 70px; */
    padding-bottom: 10px;
}

.animatePageIn {
    animation-name: animatePageIn;
    animation-duration: 3s;
}

@keyframes animatePageIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#preloader-background .card {
    width: 200px;
    aspect-ratio: 2/3;
    background: rgb(250 250 250 / 30%);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-radius: 10px;
    border: 1px solid rgb(103 105 168 / 65%);
    display: flex;
    justify-content: center;
    align-items: center;
}

#preloader-background .text {
    position: absolute;
    font-size: 50px;
    text-shadow: 0 0 20px rgba(31, 38, 135, 0.37);
    pointer-events: none;
}

#preloader-background .outerCard {
    position: absolute;
    width: 300px;
    aspect-ratio: 2/3;
}

#preloader-background ul {
    position: absolute;
    width: 350px;
    aspect-ratio: 2/3;
}

#preloader-background .bubble {
    position: absolute;
    aspect-ratio: 1;
    border-radius: 100%;
    list-style-type: none;
    z-index: -1;
}

#preloader-background .bubble:nth-child(1) {
    background: #6528f7;
    top: 75%;
    left: 54%;
    height: 100px;
    animation: float-sus 5s ease-in-out infinite;
}

#preloader-background .bubble:nth-child(2) {
    background: #a076f9;
    top: 20%;
    left: 0%;
    height: 130px;
    animation: float-diff 6s ease-in-out infinite;
}

#preloader-background .bubble:nth-child(3) {
    background: #d7bbf5;
    top: 60%;
    left: 13%;
    height: 90px;
    animation: float-offset 7s ease-in-out infinite;
}

#preloader-background .bubble:nth-child(4) {
    background: #ede4ff;
    top: 6%;
    left: 56%;
    height: 160px;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    20% {
        transform: translate(12px, 18px) rotate(5deg) scale(1.05);
    }
    40% {
        transform: translate(-18px, -25px) rotate(-10deg) scale(0.95);
    }
    60% {
        transform: translate(20px, -30px) rotate(15deg) scale(1.1);
    }
    80% {
        transform: translate(-12px, 15px) rotate(-5deg) scale(1.02);
    }
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
}

@keyframes float-offset {
    0% {
        transform: translate(0, 0) scale(1);
    }
    10% {
        transform: translate(-12px, -15px) scale(1.05);
    }
    30% {
        transform: translate(20px, -25px) scale(0.97);
    }
    50% {
        transform: translate(-18px, 20px) scale(1.02);
    }
    70% {
        transform: translate(15px, -10px) scale(0.98);
    }
    100% {
        transform: translate(0, 0) scale(1);
    }
}

@keyframes float-diff {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    15% {
        transform: translate(-10px, -20px) rotate(7deg);
    }
    33% {
        transform: translate(25px, 15px) rotate(-12deg);
    }
    47% {
        transform: translate(-15px, 30px) rotate(10deg);
    }
    64% {
        transform: translate(10px, -15px) rotate(-8deg);
    }
    85% {
        transform: translate(-20px, 10px) rotate(6deg);
    }
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

@keyframes float-sus {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    17% {
        transform: translate(-18px, -25px) scale(1.07) rotate(-5deg);
    }
    30% {
        transform: translate(22px, 10px) scale(0.95) rotate(8deg);
    }
    59% {
        transform: translate(-20px, 30px) scale(1.1) rotate(-12deg);
    }
    70% {
        transform: translate(10px, -22px) scale(0.98) rotate(5deg);
    }
    100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
}

#preloader-background .cursor {
    position: absolute;
    width: 75px;
    aspect-ratio: 1;
    border-radius: 100%;
    border: solid 1px #7149c6;
    z-index: -1;
    opacity: 0;
    transition: 200ms ease-in-out infinite, transform 400ms ease-in-out;
}
@media only screen and (max-width: 520px) {
    #preloader-background .card {
        width: 100px;
    }

    #centre-logo {
        width: 60px;
    }

    #preloader-background ul {
        width: 200px;
    }

    #preloader-background .bubble:nth-child(1) {
        height: 40px;
    }

    #preloader-background .bubble:nth-child(2) {
        height: 60px;
    }

    #preloader-background .bubble:nth-child(3) {
        height: 30px;
    }

    #preloader-background .bubble:nth-child(4) {
        height: 80px;
    }
}
