body {
    font-family: 'Comic Sans MS', 'Chalkboard SE', 'Marker Felt', sans-serif;
    background-color: #f0f8ff;
    color: #333;
    text-align: center;
    padding: 2em;
}

h1 {
    color: #FFC300;
}

.container {
    background-color: #fff;
    border-radius: 15px;
    padding: 2em;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    max-width: 800px; /* Allow wider layout on larger screens */
    margin: 2em auto;
}

.input-section input[type="text"] {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    width: 60%;
}

.input-section button {
    padding: 10px 15px;
    border-radius: 5px;
    border: none;
    background-color: #FFC300;
    color: white;
    cursor: pointer;
    margin-left: 10px;
}

.input-section button:hover {
    background-color: #fcae1e;
}

.results-section {
    margin-top: 2em;
}

#safety-message {
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
}

#sun-icon {
    font-size: 1.5em;
    margin-right: 10px;
}

#suggestions-container {
    position: relative;
    width: 60%;
    margin: 0 auto;
}

.suggestion-item {
    padding: 10px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
}

.suggestion-item:hover {
    background-color: #f1f1f1;
}

.info-container {
    margin-top: 2em;
    padding: 1.5em;
    background-color: #fafafa;
    border-radius: 10px;
    text-align: left;
    max-width: 500px;
    margin: 2em auto;
    border: 1px solid #eee;
}

.info-container h2 {
    color: #FFC300;
    text-align: center;
}

.info-container h3 {
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.info-container ul {
    list-style-type: '☀️';
    padding-left: 20px;
}

.sources {
    font-size: 0.8em;
    color: #666;
    text-align: center;
    margin-top: 1em;
}

.celsius {
    color: #888;
    font-size: 0.9em;
}

#last-updated {
    font-size: 0.8em;
    color: #999;
    margin-bottom: 1em;
}

/* --- Table Styles --- */
#forecast-table {
    width: 100%;
    border-collapse: collapse; /* Use collapse for cleaner lines */
    margin-top: 1.5em;
    font-size: 0.9em; /* Slightly smaller font for more density */
}

#forecast-table th, #forecast-table td {
    border: 1px solid #ddd; /* Grid lines */
    padding: 12px; /* More padding for readability */
    text-align: center;
}

#forecast-table th {
    background-color: #f8f8f8;
    font-weight: bold;
    color: #333;
}

#forecast-table tbody tr:nth-child(even) {
    background-color: #fdfdfd; /* Subtle zebra-striping for rows */
}

#forecast-table .current-hour {
    background-color: #fff2ab; /* A gentle yellow highlight */
    font-weight: bold;
}

.forecast-controls {
    margin-top: 1em;
    text-align: center;
}

.forecast-controls button {
    padding: 8px 16px;
    border-radius: 5px;
    border: 1px solid #FFC300;
    background-color: #fff;
    color: #FFC300;
    cursor: pointer;
    margin: 0 5px;
}

.forecast-controls button:hover {
    background-color: #FFC300;
    color: white;
}


/* --- Responsive Design --- */
@media (max-width: 820px) {
    .container, .info-container {
        padding: 1em;
        margin: 1em;
    }

    body {
        padding: 1em;
    }

    .input-section {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .input-section input[type="text"] {
        width: 100%;
        box-sizing: border-box; /* Include padding and border in the element's total width and height */
    }

    .input-section button {
        width: 100%;
        margin-left: 0;
    }

    #suggestions-container {
        width: 100%;
    }

    #forecast-container {
        overflow-x: auto; /* Allow horizontal scrolling for the table on small screens */
    }
}