/* Pengaturan Dasar */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #011011;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Pastikan body juga setinggi layar */
    margin: 0;
    padding: 0; /* Hapus padding agar frame bisa menempel sempurna */
    box-sizing: border-box;
    overflow: hidden; /* Mencegah scrollbar yang tidak diinginkan */
}

/* Kontainer Utama untuk Frame - INI BAGIAN UTAMA YANG DIUBAH */
.frame-container {
    position: relative;
    height: 100vh; /* KUNCI 1: Paksa tinggi container setinggi layar */
    width: auto; /* Biarkan lebar mengikuti isi */
    display: flex; /* Gunakan flex untuk memusatkan gambar di dalamnya */
    justify-content: center;
    align-items: center;
}

/* Gambar Background Frame - INI BAGIAN UTAMA YANG DIUBAH */
.background-frame {
    height: 100%; /* KUNCI 2: Buat gambar mengisi tinggi container */
    width: auto; /* KUNCI 3: Biarkan lebar gambar menyesuaikan agar tidak gepeng */
    max-width: 100vw; /* Pengaman agar tidak lebih lebar dari layar di monitor ultra-wide */
    display: block;
}

/* Wrapper untuk Semua Konten Teks (Tidak ada perubahan, sudah responsif) */
.content-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 15% 10% 5% 10%;
    box-sizing: border-box;
}

/* Styling Teks di dalam Frame (Tidak ada perubahan) */
header h1 {
    font-size: 2em;
    color: #013220;
    margin-bottom: 8px;
    margin-top: 20;
}
header #lokasi {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 5px;
    min-height: 1.5em;
}
#info-tanggal p { margin: 0; line-height: 1.4; }
#tanggal-masehi { font-size: 0.9em; color: #555; }
#tanggal-hijriyah { font-size: 0.9em; color: #555; }
#countdown-timer {
    font-size: 1.1em;
    font-weight: bold;
    color: #d9534f;
    min-height: 1.2em;
    margin-top: 5px;
    margin-bottom: 20px;
}

/* Grid untuk Jadwal Shalat (Tidak ada perubahan) */
#jadwal-shalat {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
}

/* Box Waktu Shalat (Tidak ada perubahan) */
.waktu {
    padding: 10px 5px;
    border: 1px solid rgba(0,0,0,0.08);
	background-image: url(bg.png);
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	border-radius: 10px;
	/*
    background-color: #e4ebb7;
    border-radius: 12px;
    transition: transform 0.2s, background-color 0.3s;
	*/
	
}
.waktu.active {
    background-color: #1b5e20;
    color: white;
    transform: scale(1.05);
}
.waktu h2 { margin: 0 0 8px 0; font-size: 1.1em; font-weight: bold; color: #333; }
.waktu.active h2 { color: white; }
.waktu p { margin: 0; font-size: 1.8em; font-weight: bold; color: #013220; }
.waktu.active p { color: white; }

/* Notifikasi Audio (Tidak ada perubahan) */
.notifikasi-audio-hidden { display: none; }
.notifikasi-audio-visible {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffc107;
    color: #333;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    animation: pulse 2s infinite;
    z-index: 100;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 193, 7, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
}
#clock {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	top: 18%;
	padding: 4px 10px;
	border-radius: 4px;
	background-color: #014917;
	color: wheat;
	font-weight: bold;
}
canvas {
	display: block; position: fixed; width: 100vw; height: 100vh; z-index: -1;
}

/* Media Query untuk layar yang sangat kecil (Tidak ada perubahan) */
@media screen and (max-width: 400px) {
    header h1 { font-size: 1.5em; }
    .waktu p { font-size: 1.2em; }
    .waktu h2 { font-size: 1em; }
    #countdown-timer { font-size: 1em; }
    #jadwal-shalat { gap: 8px; grid-template-columns: repeat(2, 1fr); }
	#clock { top: 30%; }
	
}