* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #222;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.card {
    width: 100%;
    max-width: 420px;
    background: linear-gradient(135deg, #00feba, #5b548a);
    color: #fff;
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
}

.search {
    width: 100%;
    display: flex;
    gap: 12px;
}

.search input {
    flex: 1;
    height: 52px;
    border-radius: 30px;
    border: none;
    outline: none;
    padding: 0 20px;
    font-size: 16px;
}

.search button {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: #ebfffc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search button img {
    width: 18px;
}

.weather {
    margin-top: 24px;
    display: none;
}

.weather-icon {
    width: 140px;
    max-width: 100%;
    margin: 20px auto 0;
}

.weather h1 {
    font-size: 3.5rem;
    font-weight: 500;
    margin-top: 16px;
}

.weather h2 {
    font-size: 1.8rem;
    font-weight: 400;
}

.details {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    gap: 20px;
}

.col {
    display: flex;
    align-items: center;
    gap: 10px;
}

.col img {
    width: 36px;
}

.humidity,
.wind {
    font-size: 1.2rem;
}

.error {
    font-size: 14px;
    margin-top: 10px;
    display: none;
    color: #ffdddd;
}

@media (max-width: 480px) {
    .card {
        padding: 24px 16px;
    }

    .weather h1 {
        font-size: 3rem;
    }

    .weather h2 {
        font-size: 1.5rem;
    }

    .details {
        flex-direction: column;
        align-items: center;
    }

    .col {
        justify-content: center;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .card {
        max-width: 460px;
    }
}

@media (min-width: 1200px) {
    .card {
        max-width: 480px;
    }
}
