/* General body style */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: url('assets/abstract-digital-grid-black-background_1_11zon.jpg') no-repeat center center;
    background-size: cover;
}

/* Container with a fixed background image */
.container {
    background-size: cover;
    padding: 20px;
    backdrop-filter: blur(8px);
    background: transparent;
    text-align: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 300px; /* Adjusted width */
    height: auto;
    min-height: 500px;
    border-radius: 30px;
    border: 4px solid rgb(17, 16, 14);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Search bar styling */
.search-bar {
    margin-bottom: 15px; /* Reduced margin for better fit */
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%; /* Make search bar width smaller */
}

/* City input styling */
#city {
    flex: 1;
    padding: 10px 15px; /* Adjusted padding */
    height: 20px; /* Set height */
    width: 80px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 15px 0 0 15px;
    outline: none;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    transition: 0.3s;
}

/* Search button styling */
#search {
    padding: 10px 15px; /* Adjusted padding */
    height: 43px; /* Set height */
    background: #70c1b3;
    border: none;
    color: white;
    border-radius: 0 15px 15px 0;
    cursor: pointer;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    font-size: 1rem;
    transition: 0.3s ease;
}

#search:hover {
    background: #45a29e;
}

/* Weather info styling */
.weather-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Styling for City Name */
.weather-info h2 {
    margin: 10px 0;
    font-size: 1.8rem;
    color: #ffffff;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    animation: fadeIn 1s ease-out;
}

/* Styling for Temperature */
#temp {
    font-size: 3rem;
    font-weight: bold;
    color: #ffffff;
    margin-top: 20px;
    font-family: 'Comic Sans MS', cursive, sans-serif;
}

/* Styling for Other Info (Humidity, Wind) */
.weather-info p {
    margin: 5px 0;
    color: #ffffff;
    font-family: 'Comic Sans MS', cursive, sans-serif;
}

/* Weather Icon Styling */
.weather-info img {
    width: 80px;
    margin: 10px auto;
}

/* Animation for fading in */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Mobile view fixes */
@media (max-width: 480px) {
    .container {
        width: 90%;
        max-width: 90%;
        min-height: 550px;
    }

    #city {
        font-size: 0.9rem;
    }

    #search {
        font-size: 0.9rem;
    }

    #temp {
        font-size: 2.5rem;
    }

    .weather-info h2 {
        font-size: 1.5rem;
    }
}
