/* Set font, background color, and padding for the entire page */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #456fc3;
    padding: 2vw;
}

/* Set styles for the main header (h1) */
h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #000000;
    background-image: linear-gradient(to right, #456fc3, #fff);
    padding: 1rem;
}

/* Set styles for the search form container */
#search-form {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 5px;
    max-width: 90%;
    margin: 0 auto;
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.1);
}

/* Set styles for the search form label */
#search-form label {
    display: block;
    margin-bottom: 0.7rem;
    color: #1d1d1d;
}

/* Set styles for the search form input field */
#search-form input {
    width: 90%;
    padding: 0.8rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    font-size: 1rem;
    color: #1d1d1d;
}

/* Set styles for the search form button */
#search-form button {
    display: block;
    width: 100%;
    padding: 0.8rem;
    background-color: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 0.25rem;
    margin-top: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Set hover effect for the search form button */
#search-form button:hover {
    background-color: #0069d9;
}

/* Set styles for the search history container */
#search-history {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 0.25rem;
    max-width: 90%;
    margin: 2rem auto 0;
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.1);
}

/* Set styles for search history list items */
#search-history li {
    list-style-type: none;
    padding: 0.8rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Set hover effect for search history list items */
#search-history li:hover {
    background-color: #f6f7f9;
}

/* Set styles for the current weather container */
#current-weather {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 0.25rem;
    max-width: 90%;
    margin: 2rem auto;
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.1);
}

/* Set styles for the weather forecast container */
#forecast {
    display: flex;
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 0.25rem;
    max-width: 90%;
    margin: 2rem auto;
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.1);
}

/* Set styles for the five-day forecast header (h2) */
#fiveday h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #000000;
    background-image: linear-gradient(to left, #456fc3, #fff);
    padding: 1rem;
    margin-left: 3.7rem;
}

/* Set styles for each forecast day's container */
#forecast div {
    display: inline-block;
    width: 18%;
    text-align: center;
    margin-right: 2%;
    margin-bottom: 1.5rem;
    background-color: #456fc3;
    padding: 0.8rem;
    border-radius: 0.25rem;
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.1);
    color: white;
}

/* Remove right margin for the last forecast day's container */
#forecast div:last-child {
    margin-right: 0;
}

/* Set styles for the main container with two columns */
.container {
    display: flex;
    flex-wrap: wrap;
}

/* Set styles for the left column */
.left-column {
    flex: 1;
    max-width: 300px;
    margin-right: 1.5rem;
}

/* Set styles for the right column */
.right-column {
    flex: 2;
}

/* Set responsive styles for small screens */
@media screen and (max-width: 767px) {
    /* Change flex direction to column for small screens */
    .container {
        flex-direction: column;
    }

    /* Adjust max width and remove right margin for left column on small screens */
    .left-column {
        max-width: 100%;
        margin-right: 0;
    }
}
