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

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: url("images.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Yeh CSS apni main CSS file me paste karo */
#loader{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
}
.logo-box{
    text-align: center;
    animation: zoomIn 2s ease;
}

.logo-box img{
    width: 220px;
    filter: drop-shadow(0 0 25px gold);
    animation: float 2s infinite ease-in-out;
}

.logo-box h1{
    color: white;
    margin-top: 20px;
    font-size: 28px;
    letter-spacing: 3px;
    font-family: serif;
}

/* Animations */

@keyframes zoomIn{
    0%{
        transform: scale(0);
        opacity: 0;
    }
    100%{
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes float{
    0%{
        transform: translateY(0px);
    }
    50%{
        transform: translateY(-10px);
    }
    100%{
        transform: translateY(0px);
    }
}


/* ======================================================= */
/* NAVBAR SYSTEM                                           */
/* ======================================================= */
nav {
    background-color: #2a40e3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 15px 5%;
    width: 100%;
    gap: 15px;
}

.img1 {
    width: 7rem;
    color: white;
    flex-shrink: 0;
}

.links {
    display: flex;
    align-items: center;
    gap: 30px; 
    flex-wrap: wrap;
}

.font-bold {
    font-weight: bold;
}

.a1 {
    text-decoration: none;
    color: white;
    font-size: 1rem;
}

.btn {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.searchbar {
    height: 35px;
    width: 100%;
    max-width: 17rem;
    padding: 5px 12px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 0.9rem;
    outline: none;
}

.a2 {
    padding: 8px 16px;
    text-decoration: none;
    color: white;
    border-radius: 5px;
    border: 1px solid white;
    transition: 0.3s;
    white-space: nowrap;
}

.a2:hover {
    background-color: white;
    color: #2a40e3;
}

/* ======================================================= */
/* MAIN CONTENT SYSTEM                                     */
/* ======================================================= */
main {
    flex: 1;
    min-height: 80vh;
    background-image: url("/picutres/16d494c4-37ec-4643-943d-0a43f2dc8adf.png");
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-bottom: 40px; /* Cards k niche spacing k liye */
}

.content {
    color: #F5F5F5;
    margin: 47px 5%; /* Mobile friendly margin */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#p1 {
    color: white;
}

.blocks {
    display: flex;
    flex-wrap: wrap; /* Cards mobile par niche automatically move honge */
    justify-content: center; /* Center me align karne k liye */
    gap: 15px; /* Margin ki bajaye gap standard hai */
    padding: 0 5%;
}

.block {
    border-radius: 5px;
    border: 2px solid rgb(22, 22, 132);
    transition: 0.3s;
    width: 10rem;
    height: 196px;
    background-color: white;
    color: black;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
}

.a3 {
    padding: 8px 16px;
    text-decoration: none;
    color: black;
    border-radius: 5px;
    border: 1px solid black;
    transition: 0.3s;
}

/* ======================================================= */
/* FOOTER SYSTEM                                           */
/* ======================================================= */
footer {
    background-color: #2a40e3;
    color: white;
    margin-top: auto;
    padding: 20px;
    text-align: center;
}

.socialmedia {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.img2 {
    width: 3rem;
    height: 50px;
    object-fit: contain;
}

.about {
    text-decoration: none;
    color: white;
}

.home {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.copyright2, .name {
    justify-content: center;
    align-items: center;
    display: flex;
    font-size: 0.9rem;
}

/* ======================================================= */
/* RESPONSIVE MEDIA QUERIES                                */
/* ======================================================= */
@media (max-width: 768px) {
    nav {
        justify-content: center; /* Small screens par navbar center ho jaye */
        text-align: center;
    }
    .links {
        justify-content: center;
        width: 100%;
    }
    .searchbar {
        max-width: 100%; /* Mobile par searchbar full width thori behtar lagti hai */
    }
    .btn {
        justify-content: center;
        width: 100%;
    }
    .content {
        text-align: center; /* Text screen k center me ho jaye */
        margin: 30px 20px;
    }
}



/* ========================================= */
/* PRAYER BUTTON */
/* ========================================= */

#prayerBtn{
    padding: 8px 16px;
    border: 1px solid white;
    background: transparent;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.95rem;
}

#prayerBtn:hover{
    background-color: white;
    color: #2a40e3;
}

/* ========================================= */
/* POPUP SYSTEM */
/* ========================================= */

.popup{
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.6);

    display: none;
    justify-content: center;
    align-items: center;

    z-index: 1000;
}

.popup-content{

    width: 90%;
    max-width: 400px;

    background: white;

    padding: 25px;

    border-radius: 10px;

    text-align: center;

    position: relative;
}

.popup-content h2{
    margin-bottom: 20px;
    color: #2a40e3;
}

#cityInput{

    width: 100%;
    padding: 12px;

    border: 1px solid #ccc;

    border-radius: 5px;

    margin-bottom: 15px;

    outline: none;
}

#getTimeBtn{

    padding: 10px 20px;

    border: none;

    background-color: #2a40e3;

    color: white;

    border-radius: 5px;

    cursor: pointer;

    transition: 0.3s;
}

#getTimeBtn:hover{
    opacity: 0.9;
}

#closeBtn{

    position: absolute;

    top: 10px;
    right: 15px;

    font-size: 28px;

    cursor: pointer;

    color: #2a40e3;
}

#result{

    margin-top: 20px;

    line-height: 2;

    font-weight: bold;
}

/* ========================================= */
/* RESPONSIVE */
/* ========================================= */

@media (max-width:768px){

    #prayerBtn{
        width: 100%;
    }

    .popup-content{
        width: 95%;
    }
}