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

body {
    background: linear-gradient(135deg, #000001, #2a09ff);
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

h1 {
    color: rgb(241, 241, 234);
    margin: 0.4rem;
    padding: 0.4rem;
}

/* Main card */
.card {
    box-shadow: 1px 1px 17px 7px rgb(236, 236, 18);
    width: 90%;
    max-width: 600px;
    background: linear-gradient(135deg, #06b8c5, #23203a);
    color: #fff;
    border-radius: 20px;
    padding: 25px;
    text-align: center;
}

/* Search section */
.search {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

}

.search input {
    border: 0;
    outline: 0;
    background: #ebfffc;
    color: #555;
    padding: 10px 25px;
    height: 50px;
    border-radius: 30px;
    flex: 1;
    font-size: 16px;
}

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

.search button img {
    width: 16px;
}

/* Weather section */
.weather-icon {
    width: 100px;
    margin-top: 20px;
}

.weather h1 {
    font-size: 20px;
    font-weight: 500;
}

.weather h2 {
    font-size: 35px;
    font-weight: 400;
    margin-top: -10px;
}

.details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    margin-top: 30px;
}

.col {
    display: flex;
    align-items: center;
    text-align: left;
}

.col img {
    width: 30px;
    margin-right: 8px;
}

.humidity,
.wind {
    font-size: 24px;
    margin-top: -4px;
}

.weather {
    display: none;
}

.error {
    text-align: left;
    margin-left: 10px;
    font-size: 14px;
    margin-top: 10px;
    display: none;
}

/*  Mobile Responsive Styling */
@media (max-width: 480px) {
    .card {
        padding: 20px;
    }

    .search {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .search input {
        margin-right: 0;
        width: 100%;
    }

    .search button {
        width: 100%;
        height: 45px;
        border-radius: 30px;
    }

    .weather-icon {
        width: 80px;
        margin-top: 15px;
    }

    .weather h1 {
        font-size: 18px;
    }

    .weather h2 {
        font-size: 26px;
    }

    .details {
        flex-direction: column;
        gap: 20px;
        margin-top: 25px;
        padding: 0;
    }

    .humidity,
    .wind {
        font-size: 20px;
    }

    .col {
        justify-content: center;
    }
}