The question/task: Create a rip current hazard forecast: bathymetry, wave conditions, and lifeguard advisories.
My reasoning:
/ Minimal styling for the forecast box /
.forecast-container {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
border: 1px solid #ccc;
border-radius: 8px;
padding: 20px;
max-width: 800px;
margin: 0 auto;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.section-header {
font-weight: bold;
font-size: 1.2em;
color: #2c3e50;
border-bottom: 2px solid #eee;
padding-bottom: 5px;
margin-top: 15px;
}
.data-row {
display: flex;
justify-content: space-between;
padding: 5px 0;
border-bottom: 1px dotted #eee;
}
.red-flag {
background-color: #ffdddd;
border-left: 5px solid #ff4d4d;
padding: 10px;
margin-top: 15px;
}
.yellow-flag {
background-color: #fffacd;
border-left: 5px solid #ffd700;
padding: 10px;
margin-top: 15px;
}