* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

body {
    background: #fdfdfd;
    transition: background 0.3s ease;
}

.card { 
    width: 90%; 
    max-width: 470px; 
    background: linear-gradient(135deg, #c2d3f2, #e0c3fc); 
    color: #333; 
    margin: 100px auto 0; 
    border-radius: 20px; 
    padding: 40px 35px; 
    text-align: center; 
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

.search { 
    width: 100%; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
}

.search input { 
    border: none; 
    outline: none; 
    background: #f0f4ff; 
    color: #333; 
    padding: 10px 25px; 
    height: 60px; 
    border-radius: 30px; 
    flex: 1; 
    margin-right: 16px; 
    font-size: 18px; 
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.search input:focus {
    background: #e4ecff;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.1);
}

.search button { 
    border: none; 
    outline: none; 
    background: #e0c3fc; 
    border-radius: 50%; 
    width: 60px; 
    height: 60px; 
    cursor: pointer; 
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
} 

.search button:hover {
    background: #d2b3f4;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.search button img { 
    width: 16px; 
}

.weather-icon { 
    width: 170px; 
    margin-top: 30px; 
    transition: transform 0.3s ease;
}

.weather h1 { 
    font-size: 80px; 
    font-weight: 500;
    color: #444;
}

.weather h2 { 
    font-size: 45px; 
    font-weight: 400;
    margin-top: -10px;
    color: #666;
}

.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;
    color: #555;
}

.weather {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error {
    text-align: left;
    margin-left: 10px;
    font-size: 14px;
    margin-top: 10px;
    display: none;
    color: #e74c3c;
}
