:root {
    --background-color: #ddfcad;
    --main-color: #0000FF;
    --accent-pink: #fbcaef;
    --dark-pink: #D741A7;
    --dark-purple: #331E36;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
/* css for phone layouts - may make more specific later */
/* need to add phone layout for book shelf */
@media screen and (max-width: 510px) {
.nav-button {
    width: 3.75em;
    height: 2em;
}
.nav-button span {
    width: 3.5em;
    height: 1.75em;
}
}
@media screen and (max-width: 768px) {
    .container {
        margin-top: 70px;
        margin-bottom: 50px;
    }
    
}

/* general styles - body etc */
html {
    scroll-behavior: smooth;
}
body {
    background-color: var(--background-color);
    color: var(--main-color);
    font-family: 'Mister Pixel', 'Steps', monospace !important;
    text-transform: lowercase;
    font-weight: 500;
    
}
h2 {
    text-shadow: 0 0 10px var(--background-color);
    font-size: 2em;
    font-weight: bold;
}
h3 {
    text-shadow: 0 0 10px var(--background-color);
    font-size: 1.5em;
    font-weight: bold;
}
h4 {
    font-size: 1.25em;
    padding-right: 10px;
    display: inline;
    font-style: oblique;
}

/* custom fonts
font credit: 
Basteleur by Keussel. Distributed by velvetyne.fr.
Steps Mono by Jean-Baptiste Morizot, Raphaël Bastide. Distributed by velvetyne.fr. 
*/

@font-face {
    font-family: "Basteleur";
    src: url('Basteleur-Bold.woff2');
    src: url('Basteleur-Bold.woff2') format('woff2'),
        url('Basteleur-Moonlight.woff2') format('woff2');
}
@font-face {
    font-family: "Steps";
    src: url('Steps-Mono.otf');
    src: url('Steps-Mono-Thin.otf');
}
@font-face {
    font-family: "Mister Pixel";
    src: url('mp16reg-webfont.woff2');
    
}

/* grid layout styles */

.layout {
    width: 100%;

    display: grid;
    grid:
    "fixed-header" auto
    "container" 1fr
    "fixed-footer" auto
    / 1fr;
    gap: 8px;
}

.fixed-header { 
    grid-area: fixed-header; 
    text-align: left;
    font-size: 1.1rem;
    margin-top: 0;
    position: sticky; /* Changed from fixed to sticky */
    top: 0;
    z-index: 1000;
}
.container { 
    grid-area: container; 
    min-height: 60vh;
    overflow: visible;
    padding: 20px 0;
    margin-top: 80px; /* Space for header */
    margin-bottom: 60px; /* Space for footer */
}
.fixed-footer { 
    grid-area: fixed-footer;
    position: sticky; 
    bottom: 0;
    width: 100%;
    z-index: 100;
    padding: 2px;
}

/* header */
.name {
    font-family: 'Basteleur', monospace;
    font-size: 3em;
    margin: -5px 2px;
    z-index: 9000;
}

/* Chrome/Safari (WebKit) - keeps -webkit-text-stroke */
@supports (-webkit-text-stroke: 0.5px var(--background-color)) {
    .name {
        -webkit-text-stroke: 0.5px var(--background-color);
        text-shadow: 0 0 10px var(--background-color);
    }
}

/* Firefox/Non-WebKit - uses text-shadow instead */
@supports not (-webkit-text-stroke: 0.5px var(--background-color)) {
    .name {
        /* Simulate a stroke using multiple text-shadows */
        text-shadow: 
            1.5px  0     0 var(--background-color),
            -1.5px  0     0 var(--background-color),
            0      1.5px  0 var(--background-color),
            0     -1.5px  0 var(--background-color),
            0 0 10px var(--background-color); 
    }
}

/* Button Styles */

.nav-button {
    padding: 0.1em 0.25em;
    width: 5.75em;
    height: 2em;
    background-color: var(--main-color);
    border: 0.05em solid var(--main-color);
    border-radius: 10em;
    font-size: 0.8em;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 0 1px 2px hsla(84, 93%, 83%, 70%);
}
.nav-button span {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    bottom: 0.4em;
    width: 5.5em;
    height: 1.75em;
    transform: translateX(-3px);
    background-color: var(--accent-pink);
    border-radius: 10em;
    color: var(--main-color);
    border: 0.1em solid var(--main-color);
    box-shadow: 0 0.1em 0.2em 0.019em var(--main-color);
    font-family: inherit;

}
.nav-button span:hover {
    transition: all 0.5s;
    transform: translate(-3.5px, 4.5px);
    box-shadow: 0 0 0 0 var(--main-color);
}
.nav-button span:not(hover) {
    transition: all 1s;
}

/* footer */
.projects {
    padding: 10px;
    margin: 10px;
    border: solid 2px var(--main-color);
    border-radius: 30px;
    background-color: var(--background-color);

}

/* main content styles */
section {
    display: block;
}
.section-header {
    display: block;
    margin-left: 20px;
}
.content-right {
    float: right;
    text-align: right;
}


/* headers 4 screen readerz */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

@media print{
    @page {
        size: A5;
        margin: 10mm 15mm;
        bleed: 3mm;
        marks: crop cross;
    }
    @page:left {
        margin-left: 35mm;
        margin-right: 15mm;
    }
    @page:right {
        margin-left: 15mm;
        margin-right: 35mm;
    }
    .chapter{
        break-before: right;
    }
    @bottom-left {
    content: "Page " counter(page) " of " counter(pages);
}
@bottom-center {
    content: string(title);
}
/* base zine styles */
body {
    font-size: 0.75rem;
    font-family: 'Mister Pixel', 'Steps', monospace !important;

}
a::after {
content: " (" attr(href) ")";
}
h1 {
    font-size: 2em;
    color: var(--background-color);
    font-weight: bold; 
}

h2 {
string-set: title content(text);
}
}
p {
    display: inline;
    margin: 5px;
}

/* zine styles */
/* front cover */
.zamzcover {
background-image: url(/zines/images/zamz-cover.png);
background-size: 100% 100%;
margin: auto;
width: 100%;
height: 100%;
}
.titletext {
    padding: 5px;
    margin: 5px 0px 0px 5px;
    color: var(--background-color);
}
.rewimage {
    width: 70%;
    height: auto;
    border: solid 2px var(--main-color);
    border-radius: 30px;
    display: inline;
    vertical-align: top;
    margin: 2px;
}
.zamzimage {
    max-width: 70%;
    height: auto;
    border: solid 2px var(--main-color);
    border-radius: 40px;
    box-shadow: 10px 10px 5px var(--main-color);
    margin: 20px 10px 20px 2.5px;
    display: inline;
    vertical-align: top;
}
.rosediv {
    height: 80px;
    width: auto;
    margin: 30px;
    display: inline-block;
    align-content: center;

}
.pagesjsimg {
margin: auto;
width: 100%;
height: 100%;
z-index: -999;
}
.fosstext {
    width: 100%;
    height: auto;
    margin: auto;
}
