/* 🌍 Global Navigation */
.main-nav {
    background: rgba(0, 0, 0, 0.6); /* Dark semi-transparent background */
    padding: 15px;
    text-align: center;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.main-nav li {
    display: inline-block;
}

.main-nav a {
    text-decoration: none;
    color: white;
    font-size: 1.2em;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(255, 255, 255, 0.3);
}


.site-nav {
    background: rgba(0, 0, 0, 0.6); /* Dark transparent bar */
    padding: 15px;
    text-align: center;
}

.site-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-nav ul li {
    display: inline-block;
    margin: 0 15px;
}

.site-nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.2em;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}

.site-nav ul li a:hover,
.site-nav ul li a.active {
    background: rgba(255, 255, 255, 0.3);
}

/* General Styles */
body {
    font-family: Arial, sans-serif;
    background: linear-gradient(to bottom, #FFB75E, #ED8F03); /* Sunset gradient */
    color: white;
    text-align: center;
    margin: 0;
    padding: 0;
}

/* Weather Container */
.weather-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 25px;
    background: rgba(0, 0, 0, 0.6); /* Darker transparent background like 404 page */
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
}


/* Location Links */
.location-links {
    font-size: 0.8em;
    font-weight: normal;
    margin-left: 10px;
}

.location-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin: 0 5px;
    transition: color 0.3s ease;
}

.location-links a:hover {
    color: white;
    text-decoration: underline;
}

/* Forecast Card */
.forecast-card {
    background: rgba(255, 255, 255, 0.3);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 1.2em;
}

/* Alerts */
.alert {
    font-size: 1.1em;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
    font-weight: bold;
}

.alert-danger {
    background: rgba(255, 0, 0, 0.7);
}

.alert-info {
    background: rgba(0, 128, 255, 0.7);
}

.alert-cold {
    background: rgba(0, 170, 255, 0.7);
}

/* Hourly Forecast Table */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
}

th {
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    font-weight: bold;
    position: sticky;
    top: 0;
}

tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.15);
}

tr:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* UV Index Styling */
.uv-index {
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
}

/* UV Index Color Coding */
.uv-low { background: #4CAF50; } /* Green (Safe) */
.uv-moderate { background: #FFC107; } /* Yellow (Moderate) */
.uv-high { background: #FF9800; } /* Orange (Caution) */
.uv-very-high { background: #F44336; } /* Red (Risky) */
.uv-extreme { background: #9C27B0; } /* Purple (Danger) */

/* Tanning Forecast Highlighting */
.tanning-good { background: rgba(0, 255, 0, 0.3); } /* Green */
.tanning-moderate { background: rgba(255, 165, 0, 0.3); } /* Orange */
.tanning-bad { background: rgba(255, 0, 0, 0.3); } /* Red */


/* Responsive Table */
@media (max-width: 600px) {
    table {
        font-size: 0.9em;
    }
    th, td {
        padding: 8px;
    }
}

/* 🍔 Mobile Menu */
.menu-toggle {
    display: none;
    font-size: 1.8em;
    cursor: pointer;
    color: white;
    padding: 10px 15px;
    text-align: center;
}

/* Hide the navigation links on small screens by default */
@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* Show the hamburger menu icon */
    }

    .main-nav ul {
        display: none; /* Hide menu by default */
        flex-direction: column;
        background: rgba(0, 0, 0, 0.9);
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        padding: 0;
        text-align: center;
    }

    .main-nav ul li {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .main-nav ul li:last-child {
        border-bottom: none;
    }

    .main-nav ul li a {
        display: block;
        padding: 10px;
        color: white;
        font-size: 1.2em;
    }

    .main-nav ul.show {
        display: flex; /* Show menu when toggled */
    }
}

