*{
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}
body{
    background: #222;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.card{
    width: 100%;
    max-width: 470px;
    background: linear-gradient(135deg, #00feba, #5b548a);
    color: #fff;
    border-radius: 20px;
    padding: 40px 35px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.search{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.search input{
    border: none;
    outline: none;
    background: #ebfffc;
    color: #555;
    padding: 10px 25px;
    height: 60px;
    border-radius: 30px;
    flex: 1;
    font-size: 18px;
}
.search button{
    border: none;
    outline: none;
    background: #ebfffc;
    border-radius:50% ;
    width: 60px;
    height: 60px;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.search button:hover{
    transform: scale(1.05);
}
.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;
    gap: 20px;
}
.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;
    color: #222;
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .card {
        padding: 30px 25px;
        margin: 0;
    }
    
    .search input {
        height: 50px;
        font-size: 16px;
        padding: 10px 20px;
    }
    
    .search button {
        width: 50px;
        height: 50px;
    }
    
    .weather-icon {
        width: 140px;
        margin-top: 20px;
    }
    
    .weather h1 {
        font-size: 60px;
    }
    
    .weather h2 {
        font-size: 35px;
    }
    
    .details {
        padding: 0 10px;
        margin-top: 40px;
        flex-direction: column;
        gap: 30px;
    }
    
    .col {
        justify-content: center;
        width: 100%;
    }
    
    .humidity, .wind {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 25px 20px;
    }
    
    .search {
        flex-direction: column;
        gap: 15px;
    }
    
    .search input {
        width: 100%;
        margin-right: 0;
    }
    
    .search button {
        align-self: center;
    }
    
    .weather-icon {
        width: 120px;
    }
    
    .weather h1 {
        font-size: 50px;
    }
    
    .weather h2 {
        font-size: 28px;
    }
    
    .details {
        margin-top: 30px;
    }
    
    .col img {
        width: 35px;
    }
    
    .humidity, .wind {
        font-size: 20px;
    }
}

@media (max-width: 320px) {
    .card {
        padding: 20px 15px;
    }
    
    .weather-icon {
        width: 100px;
    }
    
    .weather h1 {
        font-size: 40px;
    }
    
    .weather h2 {
        font-size: 24px;
    }
    
    .col img {
        width: 30px;
    }
    
    .humidity, .wind {
        font-size: 18px;
    }
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap')