* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #eef7ff;
    --text: #002a42;
    --box-bg: rgba(255, 255, 255, 0.85);
    --accent: #0088cc;
    --clock-glow: #00d9ff;
}

.darkMode {
    --bg: #052c46;
    --text: #d9f2ff;
    --box-bg: rgba(1, 11, 15, 0.70);
    --accent: #4fc3ff;
    --clock-glow: #5edfff;
}

body {
    background: var(--bg);
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    min-height: 100vh;
    margin: 0;
    transition: 0.4s ease-in-out;
}

.page-title {
    display: none;
}

@media (max-width: 900px) {
    .page-title {
        font-size: 36px;
        margin-bottom: 20px;
    }
}

#darkModeToggle {
    display: none;
}

.overlay {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    gap: 40px;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .overlay {
        flex-direction: column;
        align-items: center;
    }
}

.prayer-box {
    width: 450px;
    max-width: 480px;
    background: var(--box-bg);
    border-radius: 20px;
    padding: 15px;
    text-align: center;
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: 0.3s ease;
    flex: 1;
    min-width: 300px;
}

.prayer-box:hover {
    transform: scale(1.02);
    box-shadow: 0 0 25px var(--accent);
}

.inside-img, .calligraphy {
    width: 100%;
    border-radius: 20px;
    margin-bottom: 10px;
}

.calligraphy {
    max-width: 250px;
    filter: drop-shadow(0 0 5px var(--accent));
}

.prayer-box h2 {
    font-size: 32px;
    color: var(--text);
    margin-bottom: 10px;
    text-shadow: 0 0 5px var(--accent);
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 15px var(--clock-glow); }
    50% { box-shadow: 0 0 45px var(--clock-glow); }
    100% { box-shadow: 0 0 15px var(--clock-glow); }
}

#countdown {
    font-size: 42px;
    font-weight: bold;
    background: #000;
    color: #00eaff;
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 10px;
    animation: pulseGlow 2.5s infinite ease-in-out;
}

@media (max-width: 900px) {
    #countdown {
        font-size: 40px;
    }
}

#next, #lastPrayer {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    background: rgba(255, 255, 255, 0.25);
    padding: 8px 20px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.right-box {
    max-width: 400px;
    color: var(--text);
    font-weight: 600;
    text-align: center;
    padding: 20px;
    background: var(--box-bg);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    flex: 1;
    min-width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.right-box p {
    font-size: 20px;
    margin-top: 10px;
}

@media (max-width: 900px) {
    .prayer-box {
        width: 92%;
        padding: 30px;
    }

    .inside-img {
        height: 220px;
    }

    .right-box {
        max-width: 90%;
    }
}
