* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    height: 100vh;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    justify-content: center;
    align-items: center;
}

.card {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(15px);
    padding: 25px;
    width: 320px;
    border-radius: 20px;
    color: white;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.card h2 {
    margin-bottom: 15px;
}

.search {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search input {
    flex: 1;
    padding: 10px;
    border-radius: 30px;
    border: none;
    outline: none;
}

.search button {
    width: 45px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: white;
    font-size: 18px;
}

.weather img {
    width: 100px;
}

.weather h1 {
    font-size: 45px;
}

.weather p {
    text-transform: capitalize;
    opacity: 0.9;
}

.details {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.details div {
    text-align: center;
    font-size: 14px;
}

.error {
    margin-top: 10px;
    color: #ffdddd;
}
