/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    font-family: Arial, sans-serif;
}

#container {
    background-image: url(sky.avif);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Search Box */
#main {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00feba, #5b548a);
    color: #fff;
    border-radius: 20px;
    padding: 20px;
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
    gap: 10px;
    flex-wrap: wrap;
}

#input {
    border: 0;
    outline: 0;
    color: #555;
    background: #ebfffc;
    padding: 10px 20px;
    border-radius: 30px;
    flex: 1 1 200px;
    min-width: 150px;
}

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

#img {
    border-radius: 50%;
    width: 20px;
}

/* Weather Info */
#inner {
    width: 100%;
    max-width: 800px;
    margin-top: 30px;
    padding: 0 15px;
    text-align: center;
}

.detail {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 15px;
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.details {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 30px;
}

.col {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 150px;
    min-width: 150px;
}

.img {
    width: 40px;
    height: 40px;
}

.img1 {
    width: 60px;
    height: auto;
}

.wind, .humidity {
    font-size: 1.1rem;
    margin: 0;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    #main {
        flex-direction: column;
        max-width: 90%;
    }

    #input {
        width: 100%;
        max-width: 100%;
    }

    .detail {
        flex-direction: column;
        font-size: 1rem;
    }

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

@media (max-width: 480px) {
    #main {
        padding: 15px;
    }

    #input {
        padding: 10px 15px;
    }

    #search {
        width: 35px;
        height: 35px;
    }

    .img {
        width: 30px;
        height: 30px;
    }

    .img1 {
        width: 50px;
    }

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

    .detail {
        font-size: 0.95rem;
    }
}
