body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: linear-gradient(rgba(100, 99, 99, 0.5), rgba(83, 82, 82, 0.5)), url('https://images.unsplash.com/photo-1717446586299-41283dbe7e87?fm=jpg&q=60&w=3000&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8Nnx8Y2xlYXIlMjB3ZWF0aGVyfGVufDB8fDB8fHww');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#logo-img {
    width: 200px;
}

nav {
    padding: 10px 15px;
}

.search {
    height: 40px;
    width: 320px;
    border-radius: 30px;
    padding: 0 15px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    transition: all 0.3s ease;
}

.search::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search:focus,
.search:active {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transform: scale(1.03);

}

.btn {
    height: 40px;
    width: 90px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    color: white;
    border: none;
    transition: 0.3s;
}

.btn:hover,
.btn:active {
    background: rgba(255, 255, 255, 0.6);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    text-align: center;
    color: white;

    padding: 30px;
    border-radius: 20px;

    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);

    width: 90%;
    max-width: 500px;
}

.hero-content h1 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.weather-message {
    display: none;
    font-size: 18px;
    font-style: italic;
    color: #ffd700;
    margin-top: 15px;
    transition: 0.5s;
}

.weather-message.active {
    display: block;
}

.weather-result {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    color: white;
    padding: 30px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 90%;
    max-width: 420px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: all 0.4s ease;
}

.weather-result h1 {
    font-size: 28px;
    margin-bottom: 15px;
}

.weather-result h2 {
    font-size: 24px;
    margin: 10px 0;
}

.weather-result p {
    font-size: 16px;
    margin: 8px 0;
    opacity: 0.9;
}

#temp {
    font-size: 40px;
    font-weight: bold;
    margin: 10px 0;
}

#weatherImg {
    width: 100px;
    animation: float 3s ease-in-out infinite;
}

@media (max-width: 768px) {
    body {
        padding-top: 20px;
    }

    #logo-img {
        width: 140px;
        margin-bottom: 10px;
    }

    #searchForm {
        padding: 0 10px;
    }

    .search {
        width: 70%;
    }

    .btn {
        width: 30%;
        margin-top: 0;
    }

    .hero-content {
        top: 60%;
        transform: translate(-50%, -50%);
        width: 95%;
        padding: 25px;
    }

    .hero-content h1 {
        font-size: 30px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .search {
        width: 60vw;
        height: 35px;
    }

    .btn {
        width: 20vw;
        height: 35px;
    }

    .weather-result {
        top: 60%;
        width: 95%;
        padding: 25px;
    }

    .weather-result h1 {
        font-size: 24px;
    }

    .weather-result h2 {
        font-size: 20px;
    }

    .weather-result p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    #logo-img {
        width: 120px;
    }

    .hero-content {
        padding: 20px;
    }

    .hero-content h1 {
        font-size: 22px;
    }

    .hero-content p {
        font-size: 13px;
    }

    #temp {
        font-size: 45px;
    }

    .search {
        width: 55vw;
        height: 32px;
    }

    .btn {
        width: 25vw;
        height: 32px;
        font-size: 12px;
    }

    .weather-result {
        width: 90%;
        padding: 15px;
    }

    .weather-result h1 {
        font-size: 20px;
    }

    .weather-result h2 {
        font-size: 18px;
    }

    .weather-result p {
        font-size: 12px;
    }
}


@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}