@keyframes fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.slide {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    animation: fade 0.5s ease-in-out;
}

/* Custom CSS for the pop-up bounce animation */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(50px);
    }
    50% {
        opacity: 1;
        transform: scale(1.05) translateY(-10px); /* Slightly larger and bounce up */
    }
    70% {
        transform: scale(0.95) translateY(5px); /* Slightly smaller and bounce down */
    }
    100% {
        transform: scale(1) translateY(0);
    }
}

.animate-bounce-in {
    animation: bounceIn 0.8s ease-out forwards; /* Apply the animation */
}

.slide.active {
    display: flex;
}

:root {
    --bs-primary: #0eae30;
    --bs-secondary: #008fbc;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}


.marquee {
    display: inline-block;
    animation: marquee 24s linear infinite;
    will-change: transform;
}

.marquee span {
    display: inline-block;
    min-width: 100%;
    padding-right: 2rem;
    /* Jarak antar teks */
}

@keyframes marquee {
    from {
        transform: translateX(100vw);
        /* Fully off-screen */
    }

    to {
        transform: translateX(-100%);
        /* Moves completely left */
    }
}


.prayer-time.active {
    background: orange;
}

.custom-bg {

    background-size: contain;
    background-position: bottom right;
    background-repeat: no-repeat;
}

.bg-gradient {
    background: linear-gradient(90deg, var(--bs-secondary), var(--bs-primary));
}

.bg-thru-gradient>* {
    background: linear-gradient(90deg, var(--bs-secondary), var(--bs-primary));
    background-size: 800% 100%;
    /* Pastikan gradasi menyambung */
    color: white;
}

/* Mengatur posisi background untuk tiap card agar gradasinya menyambung */
.bg-thru-gradient>*:nth-child(1) {
    background-position: 0% 50%;
}

.bg-thru-gradient>*:nth-child(2) {
    background-position: 14% 50%;
}

.bg-thru-gradient>*:nth-child(3) {
    background-position: 28% 50%;
}

.bg-thru-gradient>*:nth-child(4) {
    background-position: 42% 50%;
}

.bg-thru-gradient>*:nth-child(5) {
    background-position: 56% 50%;
}

.bg-thru-gradient>*:nth-child(6) {
    background-position: 70% 50%;
}

.bg-thru-gradient>*:nth-child(7) {
    background-position: 84% 50%;
}

.bg-thru-gradient>*:nth-child(8) {
    background-position: 100% 50%;
}

.text-primary {
    color: var(--bs-primary);
}

.text-secondary {
    color: var(--bs-secondary);
}

.text-gradient {
    background: linear-gradient(90deg, var(--bs-secondary), var(--bs-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}


.flash {
    animation: flash 1s infinite alternate;
}

@keyframes flash {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

#timeMagicModal.flex #timeMagicModalContent {
    transform: scale(1);
    opacity: 1;
}

.slide3-image {
    /* opacity-0 and transition are already in the inline example, but good to have here too */
    opacity: 0;
    transition: opacity 1s ease-in-out; /* Sesuaikan durasi transisi jika perlu */
}

.slide3-image.opacity-100 { /* Atau .active-slide3-image jika Anda memilih nama kelas itu */
    opacity: 1;
}

/* Pastikan kontainer #list-slides memiliki dimensi dan posisi yang tepat */
#list-slides {
    position: relative; /* Diperlukan agar gambar absolute diposisikan relatif terhadapnya */
    width: 100%;
    height: 100%;
    overflow: hidden; /* Mencegah gambar meluap jika ada masalah ukuran */
}