/* General Page Styling */
body {
    width: 100%;
    margin: auto;
    text-align: left;
    font-family: Arial, sans-serif;
    color: #C0C0C0; /* Silver */
    background: url('../img/bg1.jpg') no-repeat center center fixed;
    background-size: cover;
}

/* Heading Colors */
h1, h2, h3, h4 {
    text-align: center;
    color: #FF0000; /* Red */
    text-shadow: -2px 1px 2px #C0C0C0, 2px -1px 0px #000080; /* Silver and Navy */
}

h5, h6 {
    font-weight: bold;
    text-align: left;
    color: navy; /* Silver */
    text-shadow: -1px 1px 2px #FF0000, 1px -1px 2px gold; /* Red and Navy */
}

/* Navbar Styling */
.navbar {
    background-color: rgba(0, 0, 128, 0.66); /* Navy with 66% opacity */
    color: #FFFFFF;
    width: 100%;
    height: 6vh; /* Start at 6% of viewport height */
    position: fixed; /* Keep the navbar fixed at the top */
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional shadow for clarity */
    transition: height 0.5s ease; /* Smooth height transition */
}

/* Expanded Navbar */
.navbar-expanded {
    height: 66vh; /* Expand to 66% of viewport height */
    align-items: flex-start; /* Align items to the top when expanded */
}

/* Logo Styling */
.logo-image {
    width: 10%; /* Start at 10% width on the left */
    position: relative;
    left: 0;
    transition: left 0.5s ease, transform 0.5s ease;
}

/* Centered Logo on Toggle */
.logo-centered {
    left: 50%; /* Move to center */
    transform: translateX(-50%); /* Center-align by shifting half its width */
}

/* Toggle Button Styling */
.navbar-toggle {
    margin-left: auto;
    font-size: 24px;
    background: none;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
}

/* Menu Styling */
.menu-container {
    display: none; /* Hidden initially */
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.menu-container.open {
    display: block; /* Show menu on toggle */
}

/* Countdown Styling */
.countdown {
    text-align: center;
    margin-top: 20px;
    width: 100%; /* Ensures it spans across the navbar */
    color: #FF0000; /* Red */
}

.countdown-text {
    color: #C0C0C0; /* Silver */
    font-size: 1em;
}

/* Platform Menu and Subcategory Styling */
.main-category {
    display: none;
    font-size: 1.5em;
    color: #FF0000; /* Red */
    cursor: pointer;
    margin: 10px 0;
}

.subcategory {
    font-size: 1.2em;
    color: #C0C0C0; /* Silver */
    cursor: pointer;
    padding-left: 10px;
    margin: 5px 0;
}

.subcategory-container {
    display: none;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.5s ease;
    background-color: rgba(255, 255, 255, 0.7); /* White with 70% opacity */
    padding-left: 15px;
}

.subcategory-container.show {
    display: block;
    opacity: 1;
}

/* Accordion Button Styling */
button.accordion {
    display: block;
    width: 100%;
    padding: 15px;
    font-size: 18px;
    color: #ffffff;
    background-color: #002855; /* Presidential blue */
    border: 2px solid gold; /* Gold border */
    cursor: pointer;
    text-align: left;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

button.accordion:hover {
    background-color: #001c4b; /* Darker shade of presidential blue on hover */
}

/* Accordion Content Styling (Collapsed by Default) */
.accordion-box {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.5s ease, padding 0.3s ease;
    background-color: #002855; /* Presidential blue background for accordion content */
    border: 2px solid gold; /* Gold border for accordion content */
    padding: 0 15px; /* Set padding to 0 initially */
    margin-top: 10px;
}

/* Expanded Accordion */
.accordion-box.open {
    max-height: 500px; /* Large enough to contain content; adjust as necessary */
    opacity: 1;
    padding: 15px;
}

/* General .box Styling (Non-Accordion Elements) */
.box {
    display: block;
    padding: 15px;
    background-color: silver;
    opacity: 95%;
    Margin-top: 10px;
}

.container {
    display: block;
    padding: 15px;
    background-color: silver;
    opacity: 50%;
    Margin-top: 10px;
}

/* Main Content Styling */
.main-content {
    margin: 0;
    padding-top: 90px; /* Add padding equal to nav height + spacing to avoid overlap */
}

/* Mobile Compatibility */
@media (max-width: 768px) {
    .navbar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .navbar-toggle {
        align-self: center;
    }
}