@import url('https://fonts.googleapis.com/css2?family=Amiri&family=Great+Vibes&family=Poppins:wght@400;700&display=swap');

body {
    background: linear-gradient(145deg, #1a3c34, #2a6041 80%, #ffd700 100%);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: auto;
    position: relative;
    padding: 20px;
}

/* Fireworks Background */
.fireworks {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    background: url('../image/eid-adha-fireworks.png') center/cover no-repeat;
    opacity: 0.13;
    animation: fireworksFade 8s infinite alternate;
}
@keyframes fireworksFade {
    0%,100% { opacity: 0.13; }
    50% { opacity: 0.22; }
}
.firework {
    position: absolute;
    width: 5px;
    height: 5px;
    background: #ffd700;
    border-radius: 50%;
    animation: explode 2s infinite;
    opacity: 0.7;
}
@keyframes explode {
    0% { transform: scale(0); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 0.5; }
    100% { transform: scale(0); opacity: 0; }
}

/* Eid Clock Container */
.clock-container {
    position: relative;
    width: 350px;
    height: 350px;
    border: 12px solid #ffd700;
    border-radius: 50%;
    background: radial-gradient(circle at center, #fffbe7 20%, #ffd700 80%);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.7), inset 0 0 20px rgba(255, 215, 0, 0.4);
    overflow: visible;
    z-index: 1;
    margin: 0 auto 2.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gnomon {
    position: absolute;
    width: 8px;
    height: 130px;
    background: linear-gradient(to top, #2a6041, #ffd700);
    border-radius: 4px;
    top: 50%;
    left: 50%;
    transform-origin: bottom center;
    transform: translate(-50%, -100%) rotate(0deg);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.9);
    transition: transform 0.5s ease-in-out;
    z-index: 2;
}
.mosque-silhouette {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 70px;
    background: url('../image/eid-adha-mosque.png') center/contain no-repeat;
    z-index: 1;
}
.crescent-moon {
    position: absolute;
    width: 60px;
    height: 60px;
    top: 15px;
    right: 15px;
    background: url('../image/eid-adha-crescent.png') center/contain no-repeat;
    animation: glow 3s infinite;
    z-index: 3;
}
@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 10px #fff); }
    50% { filter: drop-shadow(0 0 20px #ffd700); }
}

/* Event Text & Countdown */
.event-text {
    font-family: 'Amiri', serif;
    font-size: 1.6rem;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.9);
    margin-top: 20px;
    animation: fadeIn 2s ease-in-out;
    background: rgba(42, 96, 65, 0.3);
    padding: 10px 20px;
    border-radius: 10px;
    z-index: 2;
}
.countdown {
    font-size: 1.5rem;
    color: #fff;
    margin-top: 10px;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.7);
    background: rgba(42, 96, 65, 0.3);
    padding: 8px 18px;
    border-radius: 8px;
    z-index: 2;
    font-family: 'Amiri', serif;
}
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Headings */
h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 2.7rem;
    color: #ff9800;
    margin-top: 2.5rem;
    text-align: center;
    text-shadow: 0 0 1.5rem #ffd700, 0 0 2.5rem #ff9800;
    letter-spacing: 0.04em;
    background: rgba(42, 96, 65, 0.3);
    padding: 10px 20px;
    border-radius: 10px;
    z-index: 2;
}
h2 {
    font-family: 'Playfair Display', serif;
    color: #ffd700;
    font-size: 2.1rem;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 0 0 1.5rem #ff9800;
    letter-spacing: 0.08em;
    background: rgba(42, 96, 65, 0.3);
    padding: 8px 16px;
    border-radius: 10px;
    z-index: 2;
}

/* Timezone Input */
.input-group {
    margin-top: 20px;
    max-width: 300px;
    z-index: 2;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}
.form-control {
    background: #fff;
    color: #1a3c34;
    border: 2px solid #ffd700;
    border-radius: 2rem;
    font-size: 1.1rem;
    padding: 0.7rem 1.2rem;
    box-shadow: 0 0.2rem 0.7rem rgba(255,215,0,0.08);
    text-align: center;
}
.btn-warning {
    background: linear-gradient(90deg, #ffd700 0%, #ff9800 100%);
    color: #1a3c34;
    border: none;
    font-weight: bold;
    border-radius: 2rem;
    padding: 0.7rem 2rem;
    font-size: 1.1rem;
    box-shadow: 0 0.2rem 1rem rgba(255,215,0,0.13);
    transition: all 0.3s ease;
}
.btn-warning:hover {
    background: linear-gradient(90deg, #ff9800 0%, #ffd700 100%);
    color: #fff;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.9);
    transform: scale(1.07);
}

/* Responsive Design */
@media (max-width: 600px) {
    .clock-container { width: 98vw; height: 98vw; max-width: 320px; max-height: 320px; }
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.1rem; }
    .event-text { font-size: 1.1rem; padding: 6px 8px; }
    .countdown { font-size: 1rem; padding: 5px 8px; }
    .mosque-silhouette { width: 70px; height: 45px; }
    .crescent-moon { width: 36px; height: 36px; top: 8px; right: 8px; }
    .gnomon { height: 80px; width: 6px; }
}