* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: none;
    outline: none;
    font-family: sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
}

.container {
    width: 400px;
    height: min-content;
    background: linear-gradient(135deg, rgb(141, 141, 255), aqua);
    border-radius: 12px;
    padding: 28px;
}

.search-box {
    width: 100%;
    height: min-content;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-box input {
    width: 84%;
    font-size: 20px;
    text-transform: capitalize;
    color: #000;
    background-color: #e6f5fb;
    padding: 12px 16px;
    border-radius: 14px;
}

.search-box input::placeholder {
    color: #000;
}

.search-box button {
    width: 46px;
    height: 46px;
    background-color: #e6f5fb;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
}

.search-box button:hover {
    color: #fff;
    background-color: #ababab;
}

.weather-body {
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-block: 20px;
    display: none;
}

.weather-body img {
    width: 60%;
}

.weather-box {
    margin-block: 20px;
    text-align: center;
}

.weather-box .temperature {
    font-size: 40px;
    font-weight: 800;
    position: relative;
}

.weather-box .temperature sup {
    font-size: 20px;
    position: absolute;
    font-weight: 600;
}

.weather-box .description {
    font-size: 20px;
    font-weight: 700;
    text-transform: capitalize;
}

.weather-details {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.address-box {
    text-align: center;
    margin-top: 10px;
}

.address-box .city {
    font-size: 24px;
    font-weight: bold;
}

.address-box .country {
    font-size: 18px;
    margin-top: 5px;
}

.humidity,
.wind {
    display: flex;
    align-items: center;
}

.humidity {
    margin-left: 20px;
}

.wind {
    margin-right: 20px;
}

.weather-details i {
    font-size: 36px;
}

.weather-details .text {
    margin-left: 10px;
    font-size: 16px;
}

.text span {
    font-size: 20px;
    font-weight: 700;
}

.location-not-found {
    margin-top: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.location-not-found h1 {
    font-size: 20px;
    color: #6b6b6b;
    margin-block-end: 15px;
}

.location-not-found img {
    width: 80%;
}

footer {
    width: 100%;
    position: absolute;
    bottom: 0%;
    left: 0%;
    right: 0%;
    background: linear-gradient(135deg, rgb(141, 141, 255), aqua);
    padding: 20px 0;
    text-align: center;
    bottom: 0;
}

.footer-content p {
    font-size: 16px;
    margin: 5px 0;
}

.footer p:first-child {
    font-weight: 700;
}

.footer p:last-child {
    font-style: italic;
}

@media screen and (max-width: 360px) {
    .container {
        width: 300px;
        padding: 20px;
    }

    .search-box input {
        font-size: 16px;
        padding: 10px 14px;
    }

    .search-box button {
        font-size: 18px;
        width: 40px;
        height: 40px;
    }

    .weather-box .temperature {
        font-size: 32px;
    }

    .weather-box .description {
        font-size: 18px;
    }

    .weather-details i {
        font-size: 30px;
    }

    .weather-details .text {
        font-size: 14px;
    }

    .address-box .city {
        font-size: 20px;
    }

    .address-box .country {
        font-size: 16px;
    }

    .footer {
        padding: 15px 0;
    }

    .footer-content p {
        font-size: 12px;
    }
}

@media screen and (max-width: 480px) {
    .container {
        width: 350px;
        padding: 24px;
    }

    .search-box input {
        font-size: 18px;
        padding: 10px 14px;
    }

    .search-box button {
        font-size: 20px;
        width: 44px;
        height: 44px;
    }

    .weather-box .temperature {
        font-size: 36px;
    }

    .weather-box .description {
        font-size: 18px;
    }

    .weather-details i {
        font-size: 32px;
    }

    .weather-details .text {
        font-size: 15px;
    }

    .address-box .city {
        font-size: 22px;
    }

    .address-box .country {
        font-size: 18px;
    }

    .footer {
        padding: 18px 0;
    }

    .footer-content p {
        font-size: 13px;
    }
}

@media screen and (max-width: 600px) {
    .container {
        width: 380px;
        padding: 26px;
    }

    .search-box input {
        font-size: 18px;
        padding: 12px 16px;
    }

    .search-box button {
        font-size: 22px;
        width: 46px;
        height: 46px;
    }

    .weather-box .temperature {
        font-size: 38px;
    }

    .weather-box .description {
        font-size: 19px;
    }

    .weather-details i {
        font-size: 34px;
    }

    .weather-details .text {
        font-size: 16px;
    }

    .address-box .city {
        font-size: 23px;
    }

    .address-box .country {
        font-size: 19px;
    }

    .footer {
        padding: 18px 0;
    }

    .footer-content p {
        font-size: 14px;
    }
}