/* Reset for all elements */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Container for the whole page */
#page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: Arial, sans-serif;
    width: 100%;
}

/* Tabs */
.tabs {
    display: flex;
    width: 100%;
    gap: 4px;
    margin-bottom: 20px;
}
.tab {
    flex: 1;
    padding: 10px 0;
    color: white;
    cursor: pointer;
    font-weight: bold;
    background-color: #004080;
    text-align: center;
    border-radius: 10px 10px 0 0;
}
.tab.active {
    background-color: black;
}

/* Dropdown menu styling */
.dropdown-container {
    position: relative;
    width: 100%;
}
.dropdown {
    position: fixed; /* Use fixed positioning */
    background-color: #333;
    color: white;
    padding: 10px;
    border-radius: 0 0 5px 5px;
    min-width: 200px;
    display: none;
    text-align: left;
    z-index: 1000; /* Ensure it appears above other elements */
}
.dropdown-item {
    padding: 8px 12px;
    color: white;
    text-decoration: none;
    display: block;
    cursor: pointer;
}
.dropdown-item:hover {
    background-color: #555;
}

/* Location Info */
.location-info {
    text-align: center;
    margin-bottom: 10px;
}
.location-info h1 {
    font-size: 2em;
    color: #007acc;
    margin-bottom: 5px;
}
.location-info p {
    font-size: 1em;
    color: #555;
}

/* Layout for the forecast and timing sections */
.forecast-section {
    background-color: transparent;
    border: none;
    display: flex;
    width: 100%;
    gap: 10px;
}

/* Styling for forecast and timing info boxes */
.forecast-official, .forecast-probabilistic {
    flex: 1;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #ddd;
}
.forecast-official h2, .forecast-probabilistic h2, .timing-info h2 {
    font-size: 1.5em;
    color: #007acc;
    margin-bottom: 10px;
}
.forecast-official p, .forecast-probabilistic p {
    font-size: 1.2em;
    color: #333;
}
.forecast-official .large-text {
    font-size: 3.5em;
    color: #ff8c00;
    margin-top: 100px;
}

/* Radio options for probabilistic forecast */
.radio-options {
    margin-bottom: 5px;
}

/* Canvas styling for Chart.js */
.chart-container {
    width: 100%;
    max-height: 300px;
    overflow: hidden;
}

/* Styling for timing details */
.timing-info {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #ddd;
    width: 100%; /* Span the width of both forecast boxes, accounting for gaps */
    max-width: 1000px;
    box-sizing: border-box;
}
.timing-details {
    display: flex;
    justify-content: space-around;
    padding: 5px;
    font-size: 1em;
    gap: 10px;
}
.timing-details div {
    flex: 1;
    padding: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    border: 1px solid #ddd;
}

/* Hazards Banner */
.hazard-banner {
    color: #ffffff;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    min-width: 800px;
}
.hazard-banner.no-hazards {
    background-color: #cccccc;
    color: #333333;
}