/* ==========================================================================
   1. GENERAL PAGE & LAYOUT STYLING
   ========================================================================== */
body {
    /* 🌄 FULL-PAGE BACKGROUND IMAGE */
    background-image: url("https://actually3raccoons.neocities.org/images/white-flowers-lawn-top-view-seamless-texture-background-white-flowers-lawn-daisies-top-view-meadow-seamless-111010619.webp");
    background-color: #f0f4f8; /* Fallback color while image loads */
    background-attachment: fixed; /* Keeps background locked in place while scrolling */
    background-size: repeat; /* Stretches the image to fill the whole screen */
    background-position: center;
    color: #333333;
    font-family: "Courier New", Courier, monospace;
    margin: 0;
    padding: 10px;
}

/* Master wrapper that centers content on desktop and scales down on phones */
#container {
    max-width: 900px;
    margin: 0 auto;
    border: 3px double #333333;
    padding: 15px;
    box-shadow: 5px 5px 0px #cccccc;
    box-sizing: border-box;
    margin-top: 60px; /* Essential offset so sticky navbar doesn't block layout */
    
    /* 🔴 SEMI-TRANSPARENT SOLID COLOR (Currently set to a tinted white) */
    background: rgba(30, 30, 30, 0.80); /* 0.85 means 85% solid, 15% see-through */
}

/* Photo Header Styling Container */
header.photo-header {
    padding: 0;
    border: 2px solid #333333;
    margin-bottom: 20px;
    background-color: #333333; /* Dark background to fill any side gaps cleanly */
    overflow: hidden; 
    display: flex;
    justify-content: center; /* Centers the image if it shrinks horizontally */
    align-items: center;
}

/* Forces the header image to shrink and fit within a specific height limit */
header.photo-header img {
    width: 100%;
    max-height: 250px; /* ⬅️ Adjust this number (e.g., 200px to 300px) to change how short it is */
    object-fit: cover; /* Keeps the collage from stretching or looking squished */
    display: block;
}

/* Base side-by-side layout properties */
#main-content {
    display: flex;
    flex-direction: column; /* Stacks layout elements on mobile devices */
    gap: 20px;
}

main {
    background: #CFB6FA;
    border: 1px dashed #999999;
    padding: 15px;
}

aside {
    background: #e6f2ff;
    border: 1px solid #333333;
    padding: 15px;
}

footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #333333;
    font-size: 0.9em;
}

/* ==========================================================================
   2. RESPONSIVE NAVIGATION STYLING (PC Default / Sticky View)
   ========================================================================== */
nav {
    background-color: #333333;
    padding: 10px;
    position: fixed; /* Freezes navbar position on viewport scroll */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999; /* Forces menu to stay layered over page content */
    box-sizing: border-box;
    border-bottom: 2px solid #ffb6c1;
}

/* Hide navigation trigger mechanisms on standard desktop displays */
#menu-toggle, .menu-icon {
    display: none;
}

#nav-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    padding: 5px 15px;
    font-weight: bold;
}

nav a:hover, nav a.active {
    background-color: #ffb6c1;
    color: #333333;
}

/* ==========================================================================
   3. 📱 MOBILE SCREEN OPTIMIZATION (Screens smaller than 768px wide)
   ========================================================================== */
@media (max-width: 767px) {
    /* Expose the tap target for the mobile navigation panel */
    .menu-icon {
        display: block;
        color: #ffffff;
        text-align: center;
        font-weight: bold;
        cursor: pointer;
        padding: 5px;
    }

    /* Force mobile link lists into a hidden dropdown panel */
    #nav-links {
        display: none;
        flex-direction: column;
        gap: 5px;
        margin-top: 10px;
        text-align: center;
    }

    /* PURE CSS TRIGGER: Opens dropdown layout instantly when checkbox is checked */
    #menu-toggle:checked ~ #nav-links {
        display: flex;
    }

    nav a {
        display: block;
        padding: 12px; /* Amplifies clickable zones for touch navigation */
    }
}

/* ==========================================================================
   4. 🖥️ DESKTOP MONITOR OPTIMIZATION (Screens 768px and wider)
   ========================================================================== */
@media (min-width: 768px) {
    body {
        padding: 20px;
    }

    #main-content {
        flex-direction: row; /* Transforms stacked grid into classic layout rows */
    }

    main {
        flex: 3; /* Allocates 75% screen real estate to readable content blocks */
    }

    aside {
        flex: 1; /* Allocates 25% screen real estate to navigation badges or tools */
    }

    /* Ensures standard menus stay locked visible on wide screens */
    #nav-links {
        display: flex !important;
    }
}





