/* General body styling */
body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa; /* Light gray background */
    margin: 0;
    padding: 20px;
    color: #333;
}

/* Header container styling */
#header-container {
    background-color: #007bff; /* Blue background */
    color: white; /* White text color */
    padding: 10px; 
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */
    margin-bottom: 40px;
    display: flex; /* Flexbox for alignment */
}

/* Search container styling */
#search-container {
    display: flex;
    justify-content: center; /* Center the search box */
    margin-bottom: 40px;
}

/* Styling for input within the search container */
#search-container input {
    width: 300px;
    padding: 10px;
    margin-right: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 1px 3px #ddd;
    font-size: 16px;
}

/* Styling for buttons within the search container */
#search-container button {
    padding: 10px 20px;
    background-color: #007bff; /* Blue button background */
    border: none;
    border-radius: 4px;
    color: white; /* White text on buttons */
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease; /* Smooth color transition on hover */
}

/* Button hover effect */
#search-container button:hover {
    background-color: #0056b3; /* Darker blue on hover */
}

/* Styling for current weather and forecast containers */
#current-weather-container, #forecast-container {
    background-color: white;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Styling for headings in weather and forecast containers */
#current-weather-container h2, #forecast-container h2 {
    color: white; /* White text for better visibility */
    margin-bottom: 20px;
}

/* Forecast display styling */
#forecast {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

/* Styling for individual forecast day */
.forecast-day {
    flex: 1;
    min-width: 150px;
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    background-color: #f9f9f9; /* Light background */
}

/* Search history container styling */
#search-history-container {
    margin-bottom: 20px;
}

/* Search history list styling */
#search-history {
    padding: 0;
}

/* Search history list item styling */
#search-history li {
    background-color: white;
    cursor: pointer;
    padding: 10px 15px;
    border: 1px solid #ddd;
    list-style-type: none;
    margin-bottom: 5px;
    border-radius: 4px;
    transition: all 0.3s ease; /* Smooth transition for hover effect */
}

/* Hover effect for search history list items */
#search-history li:hover {
    background-color: #007bff; /* Blue background on hover */
    color: white; /* White text on hover */
    transform: scale(1.02); /* Slight increase in size */
}

/* Styling for weather information display */
.weather-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Styling for weather images */
.weather-info img {
    width: 80px; /* Set the size of weather icons */
}
