*{margin: 0;
padding: 0;
font-family: 'Poppins',sans-serif;
box-sizing: border-box;
}
body{
    background-color: rgba(113, 113, 236, 0.856);
}
.card{
    width: 90%;
    max-width: 470px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    margin: 100px auto 0;
    border-radius: 20px;
    padding: 40px 35px;
    text-align: center;
}
.search input::placeholder{color: aliceblue;}
.search{
    position: relative;
    width:100% ;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.search input{
    color: white;
    font-size: 18px;
    width: 100%;
    padding: 10px 45px 16px;
    border-radius: 99px;
    border: 3px solid transparent;
    background: rgb(0, 0, 0,0.15);
    outline: none;
    font-weight: 500;
    transition: 0.25s border rgb(0, 0, 0,0.15);
}
.search input:focus{
      border: 3px solid rgb(0, 0, 0,0.15);
}
.search button{
    position: absolute;
   right: 16px;
   top: 50%;
   display: flex;
   border: none;
   transform: translateY(-50%);
   cursor: pointer;
   background: none;
   display: flex;
   color: white;

}
.search button img{
    width: 16px;
}
.weather-icon{
    width: 170px;
    margin-top: 30px;
}
.weather h1{
    font-size: 80px;
    font-weight: 500;
}
.weather h2{
    font-size: 45px;
    font-weight: 400;
    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{
    width: 40px;
    margin-right: 10px;
}
.humidity, .wind{
    font-size: 28px;
    margin-top: -6px;
}

 .weather{
    display:none ;
 }
 .error{
    text-align: left;
    margin-left: 10px;
    font-size: 14px;
    margin-top:10px ;
    display: none;
 }
 @media screen and (max-width: 768px) {
    .card {
        width: 90%;
        padding: 30px 25px;
        margin-top: 50px;
    }
    
    .search input {
        padding: 8px 30px;
        font-size: 16px;
    }
    
    .search button {
        width: 50px;
        height: 50px;
    }
    
    .weather-icon {
        width: 150px;
    }
    
    .weather h1 {
        font-size: 70px;
    }
    
    .weather h2 {
        font-size: 40px;
    }
    
    .details {
        flex-direction: column;
        margin-top: 30px;
        padding: 0;
    }
    
    .col {
        margin-bottom: 20px;
    }
    
    .humidity, .wind {
        font-size: 24px;
    }
}

/* Mobile Portrait and Smaller */
@media screen and (max-width: 480px) {
    .card {
        width: 100%;
        padding: 20px 15px;
        margin-top: 20px;
    }

    .search input {
        padding: 6px 20px;
        font-size: 14px;
    }

    .search button {
        width: 45px;
        height: 45px;
    }

    .weather-icon {
        width: 120px;
    }

    .weather h1 {
        font-size: 55px;
    }

    .weather h2 {
        font-size: 30px;
    }

    .details {
        flex-direction: column;
        padding: 0;
    }

    .col {
        margin-bottom: 10px;
    }

    .humidity, .wind {
        font-size: 20px;
    }
}

/* Very Small Phones */
@media screen and (max-width: 375px) {
    .card {
        width: 100%;
        padding: 15px 10px;
        margin-top: 15px;
    }

    .search input {
        padding: 5px 15px;
        font-size: 13px;
    }

    .search button {
        width: 40px;
        height: 40px;
    }

    .weather-icon {
        width: 100px;
    }

    .weather h1 {
        font-size: 45px;
    }

    .weather h2 {
        font-size: 25px;
    }

    .details {
        flex-direction: column;
        padding: 0;
    }

    .col {
        margin-bottom: 8px;
    }

    .humidity, .wind {
        font-size: 18px;
    }
}
