.plexin-splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000; /* Night sky gradient */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden; /* Prevent stars from overflowing */
    transition: opacity 0.5s ease; 
    color:#fff;
}

.plexin-splash.fade-out {
    opacity: 0; /* Fade out by reducing opacity */
    pointer-events: none; /* Prevent interaction during fade-out */
}

.splashStar {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 2s infinite ease-in-out;
    opacity: 0.8;
}

.plexin-splash img {
    width: 100px;
    height: 100px;
    animation: bounce 2s infinite;
    z-index: 1000;
}

.splash-text {
    text-align: center;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap:10px;
    justify-content: center;
    align-items: center;
}

#splash-progress {
    width: 80%;
    height: 6px; /* Slightly increase the height for better visibility */
    background: rgba(255, 255, 255, 0.2); /* Light white background for the progress bar container */
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    border-radius: 10px; /* Add rounded corners */
    --progress-width: 0%; /* Default value for the progress bar width */
}

#splash-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: var(--progress-width); /* Use the CSS variable */
    height: 100%;
    background: #ffffff; /* White color for the progress bar */
    border-radius: 10px; /* Match the container's rounded corners */
    transition: width 0.2s ease; /* Smooth transition for progress updates */
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Twinkling effect for stars */
@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.5); /* Slightly enlarge the star */
    }
}