*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
   
}

body{
    background-color: #222;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}


.card{
    width: 90%;
    max-width: 470px;
    background: linear-gradient(135deg, #00feba, #5b548a);
    color: #fff;
    margin: 100px auto 0;
    border-radius: 25px;
    padding: 40px 35px;
    text-align: center;
    box-shadow: 2px 2px 20px rgba(0, 0, 0, 0.37);
}

.search{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    
}

.search input{
      border: 0;
      outline: 0;
      background-color: #ebfffc;
      color: #000000;
      padding: 15px 30px;
      height: 65px;
      border-radius: 30px;
      flex: 1;
      margin-right: 16px;
      font-size: 20px;

}


.search button{
    border: 0;
    outline: 0;
    border-radius: 50px;
    background: #ebfffc;
    width: 60px;
    cursor: pointer;
    height: 60px;

}


.search button img{
    width: 25px;
    
}


.weather-icon{
    width: 290px;
    margin-top: 30px;
    border-radius: 70px;
}

.weather h1{
  font-size: 80px;
  font-weight: bold;
}

.weather h2{
  font-size: 50px;
  font-weight: 500;
  margin-top: -10px;
}


.details{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    margin-top: 50px;

}

.col{
    display: flex;
    align-items: center;
    text-align: left;

}

.col img{
    margin-top: -8px;
    width: 68px;
    margin-right: 12px;
}

.humidity, .Wind{
    font-size: 28px;
    margin-top: -10px;

}

/* --- Responsive Design for Mobile --- */

@media (max-width: 600px) {
    .card {
        width: 90%;
        padding: 30px 20px;
        margin: 50px auto 0;
    }

    .search input {
        padding: 10px 20px;
        height: 50px;
        font-size: 16px;
    }

    .search button {
        width: 50px;
        height: 50px;
    }

    .weather-icon {
        width: 170px;
    }

    .weather h1 {
        font-size: 50px;
    }

    .weather h2 {
        font-size: 32px;
    }
}

@media (max-width: 420px) {
    .search input {
        padding: 10px 15px;
        height: 50px;
        font-size: 14px;
        margin-right: 10px;
    }

    .search button {
        width: 50px;
        height: 50px;
    }

    .search button img {
        width: 20px;
    }

    .weather-icon {
        width: 150px;
    }

    .weather h1 {
        font-size: 40px;
    }

    .weather h2 {
        font-size: 24px;
    }

    .details {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .col {
        justify-content: center;
    }
}
