/* pages/assets/styles.css
   Keeps the background image top-aligned with the viewport while
   page content scrolls. The image `background.jpg` lives in the same folder. */

:root {
    --footer-height: 3.5rem;
    --nav-width: min(20%, 250px);
}

html, body {
    height: 100%;
    margin: 0;
}

a, a:visited, a:active, a:focus {
    text-decoration: none;
    color:#ffffff;
}

body {
    display: grid;
    grid-template-columns: minmax(0, min(20%, 250px)) 1fr;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
        "header header"
        "nav main"
        "footer footer";
    column-gap: 1rem;
    background-image: url('background.jpg');
    background-position: top center; /* keep image top aligned with viewport top */
    background-repeat: no-repeat;
    background-size: cover; /* scale to cover viewport while preserving top alignment */
    background-attachment: fixed; /* image stays fixed while content scrolls */
    background-color: #000814; /* fallback color */
    min-height: 100vh;
    color: #ffffff;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    text-shadow:
        -1px -1px 0 black,
        1px -1px 0 black,
        -1px 1px 0 black,
        1px 1px 0 black,
        -2px 0 0 black,
        2px 0 0 black,
        0 -2px 0 black,
        0 2px 0 black;
}

nav ul {
    list-style: none;
    margin-left: 0; /* reset negative shift so items are fully visible */
    padding-left: 12px; /* small inset for readability */
}

nav ul li {
    padding: 0.5rem;
}

nav a, nav a:visited, nav a:active, nav a:focus,
header h2 {
    color: #E3056C;
    text-shadow:
        -1px -1px 0 white,
        1px -1px 0 white,
        -1px 1px 0 white,
        1px 1px 0 white,
        -2px 0 0 white,
        2px 0 0 white,
        0 -2px 0 white,
        0 2px 0 white;
}

header {
    text-align: center;
}

header, main {
    padding-top: 0;
    padding-bottom: 0rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

footer {
    grid-area: footer;
    height: var(--footer-height);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    z-index: 1000;
    box-sizing: border-box;
    padding: 0 1rem;
}

/* Fixed-position left navigation */
nav {
    grid-area: nav;
    box-sizing: border-box;
    min-width: 0;
    padding: 2rem;
    z-index: 1000;
    overflow: auto; /* scroll inside nav if content is tall */
}

@media (max-width: 480px) {
    nav, main {
        padding: 0.5rem;
    }
    main {
        padding-right: 0.75rem;
    }
}

/* shift page content to the right of the fixed nav; keep header/footer full-width */
main {
    grid-area: main;
}

header {
    grid-area: header;
    width: 100%;
    box-sizing: border-box;
}
