/* Reset & Dasar */
* { margin: 0; padding: 0; box-sizing: border-box; }
body, html { height: 100vh; width: 100vw; overflow: hidden; font-family: sans-serif; background: #000; }

/* Wrapper dengan jarak ke pinggir layar */
.wrapper { 
    display: flex; 
    flex-direction: column; 
    height: 100vh; 
    width: 100vw; 
    position: relative; 
    z-index: 2; 
    padding: 5px 15px; /* Margin luar diperkecil */
}

/* Background Slider Smooth */
.slider-bg { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background-size: cover; background-position: center; 
    transition: opacity 1.5s ease-in-out; z-index: 1; opacity: 0;
}
.slider-bg.active { opacity: 1; }

/* HEADER RAMPING */
header {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px; /* Padding dikurangi agar tipis */
    border-radius: 10px;
    margin-bottom: 5px;
    min-height: 80px; /* Batasi tinggi maksimal */
}
.h-left p.blue-text { font-size: 1.4rem; color: #2196f3; font-weight: bold; }
.h-left p { font-size: 1rem; }

.h-center { text-align: center; flex: 1; }
.h-center h1 { color: #2196f3; font-size: 2.2rem; letter-spacing: 1px; line-height: 1; }
.h-center p { font-size: 1rem; margin-top: 3px; color: #fff; }

.h-right h1 { font-size: 4rem; font-weight: bold; color: #2196f3; }

/* MAIN AREA (SLIDER JADI LEBIH LUAS) */
main { flex: 1; display: flex; justify-content: center; align-items: center; }
.arabic-box { 
    text-align: center; 
    color: white; 
    text-shadow: 2px 2px 15px #000; 
    width: 90%; 
}
.arabic-box h1 { font-size: 5rem; margin-bottom: 10px; font-family: serif; }
.arabic-box p { font-size: 2.2rem; font-style: italic; font-weight: 500; line-height: 1.2; }

/* FOOTER RAMPING TAPI PADAT */
footer { 
    background: rgba(0, 0, 0, 0.85); 
    padding: 10px 15px; 
    border-radius: 12px; 
    margin-top: 5px; 
}

.footer-top { 
    display: flex; 
    gap: 8px; /* Jarak antar kotak sedikit diperlebar agar rapi */
}

/* Kotak Jadwal Sholat - Dibuat Lebih Presisi */
.box { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
    padding: 12px 2px; 
    border-radius: 10px; 
    color: white; 
    min-height: 120px; /* Menjaga tinggi kotak tetap stabil */
}

/* Nama Sholat (Subuh, Dzuhur, dll) */
.box span { 
    font-size: 1.4rem; /* Diperbesar agar presisi */
    font-weight: bold; 
    text-transform: uppercase; 
    letter-spacing: 1px;
}

/* Angka Jam Sholat (Paling Dominan) */
.box strong { 
    font-size: 3.5rem; /* Ukuran diperbesar maksimal */
    line-height: 1; 
    margin: 8px 0; 
    font-family: 'Arial Black', sans-serif; /* Agar angka terlihat lebih tebal */
}

/* Nama Imam */
.nama-imam { 
    font-size: 1.1rem; 
    font-weight: bold; 
    border-top: 2px solid rgba(255,255,255,0.2); 
    width: 85%; 
    text-align: center; 
    padding-top: 5px;
    margin-top: 2px;
}

/* Warna Kotak Tetap Sesuai Permintaan Sebelumnya */
.green { background: #007d40; } 
.blue { background: #005696; } 
.yellow { background: #fbc02d; color: #000 !important; }
.purple { background: #6a1b9a; } 
.red { background: #b71c1c; } 
.cyan { background: #00838f; }

.marquee-container { 
    color: white; 
    padding-top: 8px; 
    font-size: 1.4rem; 
    font-weight: bold;
}