/* Base Styling */
* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

/* Body with Gradient Background */
body {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: linear-gradient(135deg, #6a0dad, #1e90ff, #ff69b4);
    color: #fff;
    text-align: center;
}
#search-form{
    display: flex;
    width: 100%;
    justify-content: space-between;
}

/* Main Card Styling */
.card {
    width: 90%;
    max-width: 470px;
    background: linear-gradient(135deg, #6a0dad, #1e90ff, #ff69b4);
    color: #fff;
    border-radius: 20px;
    padding: 40px 35px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.3);
}

/* Search Bar Styling */
.search {
    width: 100%;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.search input {
    border: 0;
    outline: 0;
    background: #f0e6ff;
    color: #555;
    padding: 10px 25px;
    height: 60px;
    border-radius: 30px;
    flex: 1;
    margin-right: 10px;
    font-size: 18px;
}

.search button {
    border: 0;
    outline: 0;
    background: #f0e6ff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
}

.search button img {
    width: 20px;
    height: auto;
}

/* Weather Content Styling */
.weather {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.weather-icon {
    width: 150px;
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 50%;
}

.weather h1 {
    font-size: 70px;
    font-weight: 500;
    margin: 10px 0;
}

.weather h2 {
    font-size: 35px;
    font-weight: 400;
    margin-top: -10px;
    text-transform: capitalize;
}

/* Details Section */
.details {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding: 0 20px;
    color: #eee;
    width: 100%;
}

.col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.col img {
    width: 30px;
    margin-bottom: 10px;
}

.humidity, .wind {
    font-size: 20px;
    font-weight: 500;
}

/* Not Found Message */
.location-not-found {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 20px;
}

.location-not-found h1 {
    font-size: 20px;
    color: #fff;
    font-weight: 300;
    margin-bottom: 15px;
}

.location-not-found img {
    width: 80%;
}

/* Media Queries */

/* Tablet Styling */
@media (max-width: 768px) {
    .card {
        padding: 30px;
    }

    .search input {
        font-size: 16px;
        height: 50px;
    }

    .search button {
        width: 50px;
        height: 50px;
    }

    .weather-icon {
        width: 120px;
    }

    .weather h1 {
        font-size: 50px;
    }

    .weather h2 {
        font-size: 28px;
    }

    .details {
        flex-direction: column;
        gap: 15px;
    }

    .humidity, .wind {
        font-size: 18px;
    }
}

/* Mobile Styling */
@media (max-width: 480px) {
    .card {
        padding: 20px;
    }

    .search {
        flex-direction: column;
    }

    .search input {
        width: 100%;
        height: 45px;
        font-size: 14px;
        margin-bottom: 10px;
    }

    .search button {
        width: 45px;
        height: 45px;
    }

    .search button img {
        width: 16px;
    }

    .weather-icon {
        width: 100px;
        padding: 10px;
    }

    .weather h1 {
        font-size: 40px;
    }

    .weather h2 {
        font-size: 24px;
    }

    .details {
        padding: 0;
        gap: 10px;
        flex-direction: column;
    }

    .col img {
        width: 25px;
    }

    .humidity, .wind {
        font-size: 16px;
    }

    .location-not-found h1 {
        font-size: 18px;
    }

    .location-not-found img {
        width: 60%;
    }
}
