*{
    margin:0;
    padding:0;
    font-family:"Poppins",sans-serif;
    box-sizing: border-box;
}
body{
    background-image: url("./pexels-lum3n-44775-1410224.jpg");
     background-repeat: no-repeat;
     background-size: cover; 
    /* backdrop-filter: blur(5px); */
    background-position: center;
      display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
   width:100%;

}
.card{
    background:linear-gradient(rgb(0,0,0,0.39) );
    color:#fff;
    margin:70px auto 0;
    width:60%;
    /* max-width:830px; */
    border-radius: 20px;
    padding: 40px 35px;;
    text-align: center;  
    backdrop-filter: blur(15px);  
    display:flex;
}
.card2{
    margin:10px 10px 0;
    width:40%;
    border-radius: 20px;
    padding: 20px 35px;
    text-align: center;  
    background:linear-gradient(135deg,#05320f,#375a46);
    background-repeat: no-repeat;
    background-size: cover; 
   backdrop-filter: blur(15px); 
   /* display: none;  */

}
.search {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 70px;
}

.search input {
    border-radius: 30px;
    height: 50px;
    width: 350px;
    border: 0;
    outline: 0;
    background: #ebfffc;
    color: #555;
    padding: 10px 25px;
    margin-right: 10px; /* slight increase for better spacing */
    font-size: 18px;
}

.search button {
    border: 0;
    outline: 0;
    background: #ebfffc;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 5px rgba(0,0,0,0.1); /* optional for clarity */
    padding: 0; /* remove padding to avoid distortion */
}

.search img {
    width: 40px;
    height: 20px; /* added to ensure square image */
    object-fit: contain;
}

.weather-img{
   width:170px;
   margin-top: 30px;
}
.weather h1{
      margin-top: 30px;
    font-size: 90px;
    font-weight: 500;
}
.weather h2{
    font-size: 45px;
    font-weight: 400;
    margin-top: -10px;
}
.details{
    align-items: center;
    padding: 0 20px;
    margin-top:80px;

}
.sub1{
    background:linear-gradient(rgba(0, 0, 0, 0.474) );
    display:flex;
    gap:60px;
    align-items: center;
    text-align: left;
    margin-top: 50px;
    padding:10px;
    border-radius: 20px;
    width: 380px;
}
.sub1 img{
    width: 40px;
    margin: 0 10px 0 10px;

}
.humidity,.pressure.wind{
    font-size: 20px;
    margin-top: -6px;

}
.card3{
    margin-left: 50px;
    display: none;
}
.datetime {
      font-size: 20px;
    margin-top: 16px;
    display: flex;
    gap:100px

}
.desc{
    margin-top: 20px;

}
.desc .temps{
    font-size: 35px;
    font-weight: 1;
    margin-bottom: 20px;
}
.citys{
    font-size: 40px;
    font-weight: 10;
    color: antiquewhite;
}
.dt{
    margin-top: 16px;
    font-size: 18px;
    display: inline-block;
    transform: scaleX(0.85); /* Makes it look narrower */
    transform-origin: left;
 
}
.time ,.date{
    font-size: 20px;
    margin: 10px 0;
    font-weight: 10;
    color: antiquewhite;
}
.weather{
    display: none;
}
.error{
    text-align: left;
    margin-left: 10px;
    font-size: 18px;
    margin-top:20px;
    display: none;
    color: red;
}

@media (max-width: 1024px) {
    .card {
      flex-direction: column;
      width: 90%;
      padding: 30px 20px;
    }
  
    .search {
      width: 100%;
      flex-direction: column;
      margin-left: 0;
    }
  
    .search input {
      width: 90%;
      margin-right: 0;
      margin-bottom: 10px;
    }
  
    .search button {
      width: 45px;
      height: 45px;
    }
  
    .card2 {
      width: 100%;
      margin-top: 20px;
      padding: 20px;
    }
  
    .card3 {
      margin-left: 0;
      margin-top: 20px;
    }
  
    .datetime {
      flex-direction: column;
      gap: 10px;
      align-items: center;
    }
  
    .sub1 {
      width: 100%;
      gap: 20px;
      flex-wrap: wrap;
      justify-content: center;
    }
  
    .weather h1 {
      font-size: 60px;
    }
  
    .weather h2 {
      font-size: 32px;
    }
  
    .desc .temps {
      font-size: 28px;
    }
  
    .citys {
      font-size: 30px;
    }
  }
  