/* General body styling */
html, body {
    height: 100%; /* Ensure the body and html take up the full height of the viewport */
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    font-family: 'Josefin Sans', sans-serif; /* Art deco font */
    color: #333; /* Dark text for contrast */
    line-height: 1.6; /* Improve text readability */
    box-sizing: border-box;
}

/* Canvas background */
#backgroundCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    display: block;
}

#backgroundFlat {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2; /* Place behind all other content */
    background-color: rgba(10, 10, 10); /* Semi-transparent dark background*/
}

/* Main content styling */
main {
    flex: 1; /* Allow the main content to grow and fill available space */
    width: 100%; /* Ensure the main content spans the full width */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content horizontally */
    justify-content: center; /* Center content vertically */
    background-color: transparent; /* Make the main background transparent */
}

/* Header styling */
header {
    width: 100%;
    background-color: rgba(30, 30, 30, 0.2); /* Less transparent dark background */
    color: #f5f5dc; /* Pale yellow text for contrast */
    padding: 0.5rem 0; /* Adjust padding for the header */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* Subtle border for contrast */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    box-sizing: border-box; /* Include padding in the width calculation */
}

/* Header container to constrain content */
.header-container {
    max-width: 1200px; /* Limit the width of the content */
    margin: 0 auto; /* Center the content horizontally */
    padding: 0 2rem; /* Add horizontal padding */
    display: flex; /* Use flexbox for layout */
    align-items: center; /* Vertically center content */
    justify-content: space-between; /* Space out title and menu links */
}

/* Title styling */
.site-title {
    font-size: 2.5rem; /* Increase font size for a larger title */
    font-weight: bold;
    margin: 0;
    font-family: "Josefin Sans", serif;
    color: #ffffff; /* White text for the title */
    text-align: left; /* Align text to the left */
    flex-shrink: 0; /* Prevent the title from shrinking */
}

/* Navigation links styling */
.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; /* Display links inline */
    gap: 1.5rem; /* Add spacing between links */
    flex-wrap: wrap; /* Allow links to wrap if necessary */
}

.nav-links a {
    color: #f5f5dc; /* Pale yellow text for links */
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem; /* Slightly larger font size for links */
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ffd700; /* Bright yellow hover effect */
}

/* Section styling */
.landing-section {
    width: 100%;
    max-width: 800px; /* Limit the width for better readability */
    padding: 3rem;
    background-color: rgba(30, 30, 30, 0.4); /* Semi-transparent dark background for sections */
    border-radius: 8px;
    margin: 2rem 0; /* Consistent vertical spacing */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Subtle shadow for depth */
    color: #f5f5dc; /* Pale yellow text for readability */
    text-align: center; /* Center text inside sections */
    /* border: 2px solid #2c3e50; Dark border */
}

/* Section headings */
.landing-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-family: "Playfair Display", serif;
    color: #ffffff; /* White text for headings */
    font-weight: 700; /* Bold weight for headings */
    letter-spacing: 2px; /* Add spacing for an art deco aesthetic */
    text-transform: uppercase; /* Capitalize headings */
}

/* Section paragraphs */
.landing-section p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #f5f5dc; /* Pale yellow text for paragraphs */
    margin-bottom: 1rem;
}

/* Footer styling */
footer {
    width: 100%; /* Ensure footer spans the full width of the screen */
    text-align: center;
    padding: 2rem;
    background-color: rgba(30, 30, 30, 0.7); /* Less transparent dark background */
    color: #f5f5dc; /* Pale yellow text */
    border-top: 1px solid rgba(255, 255, 255, 0.2); /* Subtle border for contrast */
    font-size: 1rem;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.5);
    margin-top: auto; /* Push the footer to the bottom of the page */
    position: relative;
}

/* Hide sections by default */
.hidden {
    display: none;
}

/* Show sections when active */
.active {
    display: block;
}

/* Style links with an art deco hover effect */
a {
    color: #007BFF; /* Bright blue color */
    text-decoration: none; /* Remove underline */
    font-weight: bold; /* Make links stand out */
    font-size: 1.2rem; /* Slightly larger font size for links */
    text-shadow: 10px rgba(55,55,55,0.9); /* Add dark drop shadow for visibility */
}

a:hover {
    color: #0056b3; /* Slightly darker blue on hover */
    text-decoration: underline; /* Add underline on hover */
    text-shadow: 0 5px 12px rgba(0,0,0,0.9); /* Stronger shadow on hover */
}

.no-bullet {
    list-style: none; /* Remove bullet points from lists */
    padding: 0; /* Remove padding */
    margin: 0; /* Remove margin */
}

.pipe-format {
    color: #f5f5dc; /* Pale yellow text for separators */
}

/* Responsive layout for mobile */
@media (max-width: 600px) {
    html, body {
        font-size: 15px;
    }
    .site-title {
        font-size: 1.5rem;
    }
    .landing-section h2 {
        font-size: 1.3rem;
    }
    .landing-section p {
        font-size: .95rem;
    }
    .nav-links a,
    a {
        font-size: .95rem;
    }
    footer {
        font-size: 0.95rem;
        padding: 1rem;
    }
    .header-container, main, footer {
        max-width: 100%;
        padding: 0.5em;
    }
    .landing-section {
        padding: 0.5em;
        font-size: 1em;
        border-radius: 0 !important;
        margin: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        box-sizing: border-box !important;
        position: relative !important;
    }
    h2 {
        font-size: 1.3em;
    }
    ul.nav-links {
        flex-direction: column;
        gap: 0.5em;
    }
    main {
        padding: 0 !important;
        margin: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }
}

.panel, .card, .modal, .content-container, .landing-section {
    /* background: rgba(30, 30, 40, 0.45); Slightly transparent for blur effect */
    backdrop-filter: blur(3px); /* Apply background blur */
    -webkit-backdrop-filter: blur(3px); /* Safari support */
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}

/* Hamburger button hidden by default */
#hamburgerBtn {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    color: #ffd799;
    cursor: pointer;
    margin-left: auto;
}

/* Responsive: show hamburger, hide nav-links on small screens */
@media (max-width: 700px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background: rgba(30,30,30,0.95);
        position: absolute;
        top: 60px;
        right: 10px;
        border-radius: 8px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.7);
        padding: 1em;
        z-index: 1001;
    }
    .nav-links.show {
        display: flex;
    }
    #hamburgerBtn {
        display: block;
    }
    .header-container {
        position: relative;
    }
}

/* Additional mobile styles */
@media (max-width: 600px) {
    .panel,
    .card,
    .modal,
    .content-container,
    .landing-section {
        border-radius: 0 !important;
        margin: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        box-sizing: border-box !important;
        position: relative !important;
    }
    main {
        padding: 0 !important;
        margin: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }
}