/* Splash Screen Styles */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    display: flex;
    flex-direction: column;
    /* Stack items vertically */
    align-items: center;
    justify-content: center;
    z-index: 9999;
    /* Ensure it's on top */
    color: white;
    font-family: 'Outfit', sans-serif;
    /* Using a font already imported */
    font-size: 3em;
    text-align: center;
    opacity: 1;
    transition: opacity 1s ease-out;
    /* Smooth fade-out */
}

#splash-screen p {
    margin-bottom: 20px;
    /* Space between text and image */
    max-width: 90%;
    /* Ensure it doesn't take full width */
}

.splash-logo {
    max-width: 150px;
    /* Adjust size as needed */
    height: auto;
}

.splash-logo {
    max-width: 250px;
    /* Adjust size as needed */
    height: auto;
}


@media (max-width: 480px) {
    #splash-screen p {
        font-size: 0.7em;
        /* Smaller font size for tablets and mobiles */
        max-width: 100%;
        /* Allow text to take full width */
    }

    .splash-logo {
        max-width: 150px;
        /* Smaller logo for small mobile devices */
    }
}



@media (max-width: 320px) {
    #splash-screen p {
        font-size: 0.4em;
        /* Even smaller font size for very small mobile devices */
        max-width: 100%;
        /* Allow text to take full width */
    }

    .splash-logo {
        max-width: 120px;
        /* Smaller logo for very small mobile devices */
    }
}


#splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    /* Hide completely after transition */
}

/* Keyframe for bounce-in effect */
@keyframes bounceIn {

    0%,
    20%,
    40%,
    60%,
    80%,
    100% {
        -webkit-transition-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
        transition-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
    }

    0% {
        opacity: 0;
        -webkit-transform: scale3d(0.3, 0.3, 0.3);
        transform: scale3d(0.3, 0.3, 0.3);
    }

    20% {
        -webkit-transform: scale3d(1.1, 1.1, 1.1);
        transform: scale3d(1.1, 1.1, 1.1);
    }

    40% {
        -webkit-transform: scale3d(0.9, 0.9, 0.9);
        transform: scale3d(0.9, 0.9, 0.9);
    }

    60% {
        opacity: 1;
        -webkit-transform: scale3d(1.03, 1.03, 1.03);
        transform: scale3d(1.03, 1.03, 1.03);
    }

    80% {
        -webkit-transform: scale3d(0.97, 0.97, 0.97);
        transform: scale3d(0.97, 0.97, 0.97);
    }

    100% {
        opacity: 1;
        -webkit-transform: scale3d(1, 1, 1);
        transform: scale3d(1, 1, 1);
    }
}

.splash-text-animate {
    animation: bounceIn 1s ease-out;
}

/* Keyframe for flash effect */
@keyframes flash {
    0% {
        opacity: 1;
    }

    33% {
        opacity: 0;
    }

    66% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.splash-logo-animate {
    animation: flash 1s ease-in-out 3;
    /* 1 second duration, 3 repetitions */
}