* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: poppins, sans-serif;
}


body {
    background: #222;
    display: flex;
    justify-content: center; /* center horizontally */
    align-items: center;     /* center vertically */
    min-height: 100vh;       /* full height of screen */
    margin: 0;
}



body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background-image: url('images/istockphoto-612023744-612x612.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    position: relative; /* so the overlay positions correctly */
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2); /* 0.2 = slightly dark */
    z-index: 0; /* keep it behind content */
}

* {
    position: relative; /* ensures your content stays above the overlay */
    z-index: 1;
}

   
.card {
    width: 90%;
    max-width: 470px;
    background: rgba(255, 255, 255, 0.2); /* semi-transparent */
    border-radius: 20px;
    padding: 40px 35px;
    margin: 100px auto;
    color: #fff;
    text-align: center;

    /* Glass effect */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    /* Border and shadow for separation */
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}



.search {
    display: flex;
    align-items: center;
    justify-content: space-between;
    display: flex;
}
.search input {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 35px;
    outline: 0;
    border: 0;
    background: #ebfffc;
    margin-right: 16px;
    font-size: 18px;
    flex:1;

}
.search button {
    border: 0;
    outline: 0;
    background: #ebfffc;
    border-radius: 50px;
    width: 60px;
    height: 60px;
    cursor: pointer;
}
.search button img {
    width: 16px;
   
}
.weather-icon {
    width: 170px;
    margin-top: 30px;
}
.whether h1{
    font-size: 80px;
    font-weight: 500;
}
.whether h2 {
    font-size: 45px;
    margin-top: -10px;
    font-weight: 400;
}
.details {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    align-items: center;
    padding: 0 20px;
}
.col {
    display: flex;
text-align: left;
    align-items: center;
}
.col img {
    width: 40px;
    margin-right: 10px;
}
.humidity , .wind {
    color: #00feba;
    font-size: 28px;
    margin-top: -20px;
}

.weather{
    display: none;
}
.error {
    text-align: left;
    margin-left: 10px ;
    font-size: 14px;
    margin-top: 10px;
    display: none;
}

@media (max-width: 600px) {
    .card {
        padding: 20px 15px; /* smaller padding */
    }

    .search input {
        font-size: 14px;
    }
}
