.bg-image {
    position: fixed;
    inset: 0;
    background: url("../assets/background.jpg") no-repeat center center / cover;
    z-index: -3;
}


.clouds {
    position: fixed;
    top: 0;
    left: 0;
    width: 300%;
    height: 100%;
    background: url("../assets/clouds.png") repeat-x;
    opacity: 0.35;
    animation: moveClouds 60s linear infinite;
    z-index: -2;
}


@keyframes moveClouds {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-66%);
    }
}

.current-weather,
.forecast-card {
    animation: fadeUp 0.6s ease-in-out;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

body {
    background: linear-gradient(to right, #2193b0, #6dd5ed);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app {
    background: #ffffff;
    width: 90%;
    max-width: 900px;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

header {
    text-align: center;
    margin-bottom: 20px;
}
header h1 {
    color: #333;
}
.search-box {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}
.search-box input {
    padding: 10px;
    width: 60%;
    border-radius: 5px 0 0 5px;
    border: 1px solid #ccc;
    outline: none;
}
.search-box button {
    padding: 10px 20px;
    border: none;
    background: #2193b0;
    color: #fff;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
}
.search-box button:hover {
    background: #176f87;
}

.current-weather {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
}
.current-weather h2 {
    margin-bottom: 10px;
}

.weather-info h3 {
    font-size: 26px;
    margin-bottom: 5px;
}

.weather-info p {
    margin: 5px 0;
}
#temperature {
    font-size: 36px;
    font-weight: bold;
}

.forecast h2 {
    margin-bottom: 15px;
    text-align: center;
}

.forecast-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.forecast-card {
    background: #2193b0;
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.forecast-card h4 {
    margin-bottom: 5px;
}

footer {
    text-align: center;
    margin-top: 15px;
    color: #555;
}

@media (max-width: 600px) {
    .search-box input {
        width: 100%;
    }

    .search-box {
        flex-direction: column;
    }

    .search-box button {
        border-radius: 5px;
        margin-top: 10px;
    }
}