/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #7ed5ea;
    font-family: 'Rubik', sans-serif;
}

/* Background Slideshow */
.slideshow {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0.3;
}

.slideshow div {
    position: absolute;
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0;
    animation: slideshow 36s linear infinite;
}

.slideshow div:nth-child(1) {
    background-image: url("../../images/DSCN1947.jpg");
}

.slideshow div:nth-child(2) {
    background-image: url("../../images/DSCN1991.JPG");
    animation-delay: 6s;
}

.slideshow div:nth-child(3) {
    background-image: url("../../images/Rush Point Beach.jpg");
    animation-delay: 12s;
}

.slideshow div:nth-child(4) {
    background-image: url("../../images/DSCN2082.JPG");
    animation-delay: 18s;
}

.slideshow div:nth-child(5) {
    background-image: url("../../images/Picture 108.jpg");
    animation-delay: 24s;
}

.slideshow div:nth-child(6) {
    background-image: url("../../images/DSCN2039.jpg");
    animation-delay: 30s;
}

@keyframes slideshow {
    0% { opacity: 0; }
    4% { opacity: 1; }
    16% { opacity: 1; }
    20% { opacity: 0; }
    100% { opacity: 0; }
}

/* Main Styles */
body {
    font-family: 'Rubik', sans-serif;
    line-height: 1.6;
    background-color: #7ed5ea;
    min-height: 100vh;
}

header {
    background-color: #0a2647;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Navbar container */
.navbar {
    overflow: hidden;
    background-color: #4b9fe1;
    font-family: Arial;
    margin-bottom: 2rem;
}

/* Links inside the navbar */
.navbar a {
    float: left;
    font-size: 16px;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

/* The dropdown container */
.dropdown {
    float: left;
    overflow: hidden;
}

/* Dropdown button */
.dropdown .dropbtn {
    font-size: 16px;
    border: none;
    outline: none;
    color: white;
    padding: 14px 16px;
    background-color: inherit;
    font-family: inherit; /* Important for vertical align on mobile phones */
    margin: 0; /* Important for vertical align on mobile phones */
}

/* Add a red background color to navbar links on hover */
.navbar a:hover, .dropdown:hover .dropbtn {
    background-color: #0a2647;
}

/* Dropdown content (hidden by default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
    float: none;
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

/* Add a grey background color to dropdown links on hover */
.dropdown-content a:hover {
    background-color: #ddd;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Flight Category Styles */




/* Add responsiveness - on screens less than 600px, make the navigation links stack on top of each other */
@media screen and (max-width: 600px) {
    .navbar a, .dropdown .dropbtn {
        display: block;
        width: 100%;
        text-align: left;
    }
    
    .dropdown-content {
        position: relative;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.menu-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(5px);
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.icon-group {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.menu-item i {
    font-size: 2.5rem;
    color: #28559a;
}

.menu-item i.fa-info-circle, 
.menu-item i.fa-cloud-sun {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.menu-item h2 {
    color: #333;
    margin-bottom: 1rem;
}

.menu-item p {
    color: #666;
    margin-bottom: 1.5rem;
}



/* Weather Data */
.weather-data {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.data-row {
    margin: 0.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.data-row:last-child {
    border-bottom: none;
}

.label {
    font-weight: 500;
    color: #0a2647;
    margin-right: 0.5rem;
}

.value {
    color: #333;
    font-weight: 500;
}

/* Flight Category Colors */
.value.vfr {
    color: #28a745;
    font-weight: bold;
}

.value.mvfr {
    color: #007bff;
    font-weight: bold;
}

.value.ifr {
    color: #dc3545;
    font-weight: bold;
}

.value.lifr {
    color: #6f42c1;
    font-weight: bold;
}

.timestamp {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.5rem;
    text-align: right;
}

/* Wind data specific styles */
.wind-data {
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    margin: 10px;
}

/* Weather warnings styling */
.weather-warnings {
    margin: 10px 0;
    padding: 10px;
    border-radius: 5px;
    background-color: rgba(255, 220, 220, 0.9);
}

.warning-list {
    list-style: none;
}

.warning-item {
    padding: 5px;
    margin: 5px 0;
    color: #721c24;
    font-size: 0.9em;
}

/* Flight Categories */
.value.vfr {
    color: #28a745;
    font-weight: bold;
}

.value.mvfr {
    color: #007bff;
    font-weight: bold;
}

.value.ifr {
    color: #dc3545;
    font-weight: bold;
}

.value.lifr {
    color: #6f42c1;
    font-weight: bold;
}

/* Quick Links Section */
.quick-links-title {
    font-size: 0.9em;
    color: #666;
    margin: 25px 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quick-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Main Button */
.main-btn-container {
    margin-top: 25px;
    text-align: center;
}

.btn {
    display: inline-block;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
}

/* Primary (All About) Button */
.btn-primary {
    padding: 1rem 2rem;
    font-size: 1.1em;
    background-color: #4b9fe1;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-width: 200px;
}

.btn-primary:hover {
    background-color: #0a2647;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Small (Quick Links) Buttons */
.btn-small {
    padding: 0.6rem 1.2rem;
    font-size: 0.9em;
    background-color: #4b9fe1;
    color: white;
}

.btn-small:hover {
    background-color: #0a2647;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.description {
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin: 1rem 0;
    font-size: 1.1em;
}

/* Weather Details Styles */
.weather-detail, .wind-detail, .marine-detail {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.weather-detail:last-child, .wind-detail:last-child, .marine-detail:last-child {
    border-bottom: none;
}

.label {
    font-weight: 500;
    color: #0a2647;
    margin-right: 0.5rem;
}

.value {
    color: #333;
}



/* Footer Styles */
footer {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1rem 0;
    margin-top: 2rem;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #e6dbc9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-section {
    margin: 0.5rem 0;
    font-size: 0.8rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .menu-item {
        padding: 1.5rem;
    }

    header {
        padding: 1.5rem 0;
    }
}

/* Weather Details Styles */
.weather-detail, .wind-detail {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.weather-detail:last-child, .wind-detail:last-child {
    border-bottom: none;
}

.label {
    font-weight: 500;
    color: #0a2647;
    margin-right: 0.5rem;
}

.value {
    color: #333;
}

/* ACE Air Cargo Styles */
.airline-logo {
    max-width: 200px;
    height: auto;
    margin: 10px auto;
    display: block;
    text-align: center;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.track-button {
    display: inline-flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.track-button i {
    margin-right: 8px;
}

.track-button.flightaware {
    background-color: #1a73e8;
}

.track-button.flightradar {
    background-color: #f57c00;
}

.track-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
