/* General styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f0f8ff;
    margin: 0;
    padding: 20px;
}

h1 {
    text-align: center;
    color: #333;
}

/* Container styles */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
}

/* Input section styles */
input[type="text"] {
    padding: 10px;
    width: 300px;
    border: 2px solid #007BFF;
    border-radius: 5px;
    margin: 10px 0;
    transition: border-color 0.3s;
}

input[type="text"]:focus {
    border-color: #0056b3;
}

/* Button styles */
button {
    padding: 10px 15px;
    background-color: #007BFF;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

/* Weather display styles */
.weather-info {
    text-align: center;
    margin-bottom: 20px;
}

.day-forecast, .hourly-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 20px;
}

.day, .hour {
    background-color: #007BFF;
    color: white;
    border-radius: 8px;
    padding: 15px;
    margin: 10px;
    flex: 1 1 180px; /* Flex grow, shrink and base width */
    min-width: 180px; /* Ensures at least this width */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.day:hover, .hour:hover {
    transform: scale(1.05);
}

/* Responsive design */
@media (max-width: 600px) {
    input[type="text"] {
        width: 100%; /* Full width on small screens */
    }

    .day, .hour {
        flex: 1 1 100%; /* Full width for day/hour cards */
    }
}
