@font-face {
    font-family: 'DigitalClock';
    src: url('DigitalClock.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.fontjam {
    font-family: 'DigitalClock', sans-serif;
}

@font-face {
    font-family: 'FontArabic';
    src: url('FontArabic.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

#iqamahTimer {
    font-size: 15rem;
    color: #ff1313ff;
    text-shadow:
        0 0 5px #ff1313ff,
        0 0 10px #ff1313ff,
        0 0 20px #ff1313ff,
        0 0 40px #ff1313ff,
        0 0 80px #ff1313ff;
    animation: glowFlicker 1.5s infinite alternate;
}

@keyframes glowFlicker {
    0% {
        text-shadow:
            0 0 5px #ff0000ff,
            0 0 10px #ff0000ff,
            0 0 20px #ff0000ff,
            0 0 40px #ff0000ff;
        opacity: 1;
    }
    100% {
        text-shadow:
            0 0 2px #ff2b2b,
            0 0 5px #ff2b2b,
            0 0 10px #ff0000,
            0 0 20px #ff0000;
        opacity: 0.85;
    }
}

.fontarab {
    font-family: 'FontArabic', sans-serif;
}

body, html {
    height: 100%;
    width: 100%;
    overflow: hidden;
    font-family: 'Roboto', sans-serif;
}

.bree-serif-regular {
    font-family: "Bree Serif", serif;
    font-weight: 400;
    font-style: normal;
}

.background-swiper {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    z-index: -2;
}

.swiper-slide {
    background-size: cover;
    background-position: center;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.126); /* Overlay hitam 60% */
    z-index: -1;
}

/* Bar atas yang mengambang */
.top-bar {
    position: fixed;
    width: 100%;
    background: rgb(244 244 244 / 71%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(7.1px);
    -webkit-backdrop-filter: blur(7.1px);
    color: #333;
    border-radius: 0 0 2rem 2rem;
    padding: .8rem 2.5rem;
    align-items: center;
    top: 0;
    z-index: 10;
}

/* Bar bawah yang mengambang */
.bottom-bar {
    position: fixed;
    width: 100%;
    background: rgb(244 244 244 / 71%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(7.1px);
    -webkit-backdrop-filter: blur(7.1px);
    color: #333;
    border-radius: 2rem 2rem 0 0;
    padding: .8rem 1.5rem;
    align-items: center;
    bottom: 56px;
    z-index: 10;
}

.header-clock {
    font-weight: 700;
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 0;
    color: #000;
}

.mosque-info h4 {
    font-weight: 700;
    margin-bottom: 0;
    color: #000;
    font-size: 36px;
}
.mosque-info p {
    font-size: 0.75rem;
    margin-bottom: 0;
    color: #000;
}

.date-info {
    text-align: right;
}
.date-info #date {
    margin-bottom: 0;
    font-weight: 400;
    font-size: 20px;
}
.date-info #hijri-date {
    font-weight: bold !important;
    color: #000;
    margin-bottom: 0;
    font-size: 18px;
}

.prayer-item h5 {
    font-weight: 500;
    font-size: 1.25rem;
    text-transform: uppercase;
}
.prayer-item p {
    font-weight: 700;
    font-size: 2.25rem;
    margin-bottom: 0;
    line-height: 1;
    color: #000;
}

/* Update pada Container */
.running-text-container {
    width: 100%;
    overflow: hidden;
    display: flex;
}

/* Update pada Content */
.running-text-content {
    display: inline-block;
    white-space: nowrap;
    font-size: 28px;
    font-weight: bold;
    color: #000;
    padding-left: 100%;
    /* Gunakan translate3d untuk akselerasi hardware agar halus */
    will-change: transform;
    /* Naikkan angka ini untuk memperlambat: 200s = lambat, 300s = sangat lambat */
    animation: marquee 200s linear infinite; 
}

@keyframes marquee {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        /* Tetap gunakan -100% agar teks lewat sampai habis baru reset */
        transform: translate3d(-100%, 0, 0);
    }
}

/* Pause animation on hover (optional) */
.running-text-container:hover .running-text-content {
    animation-play-state: paused;
}

/* Layar Gelap untuk Adzan */
.screen-dimmer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 1);
    z-index: 9998; /* Di bawah tombol demo, tapi di atas segalanya */
    opacity: 0;
    visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 1.5s ease-in-out, visibility 1.5s;
}
.screen-dimmer.visible {
    opacity: 1;
    visibility: visible;
}
.divpengumuman {
    width: 60%;
    position: fixed;
    z-index: 23;
    left: 50%;
    top: 48%;
    transform: translate(-50%, -50%);
}

.cardepengumuman {
    background: rgba(244, 244, 244, 0.65);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(7.1px);
    -webkit-backdrop-filter: blur(7.1px);
}

.animate-text {
    animation: animate-text 1s ease-in-out infinite;
}

@keyframes animate-text {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.floating-countdown {
    position: fixed;
    top: 140px;
    left: 20px;
    background: #ff1212d9;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 9;
    animation: floatUpDown 4s ease-in-out infinite;
}

@keyframes floatUpDown {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}