html, body {
    margin: 0;
    padding: 0;
}

html {
    overflow-x: hidden;
}

@font-face {
    font-family: 'PixelFont', monospace;
    src: url("PixelCode.woff2") format("woff2");
}

@font-face {
    font-family: 'DepartureMono';
    src: local('DepartureMono'),
        url('DepartureMono-Regular.woff2') format('woff2'),
        url('DepartureMono-Regular.woff') format('woff'),
        url('DepartureMono-Regular.otf') format('opentype');
}


@font-face {
    font-family: 'Antilag';
    src: local('Antilag'),
        url('Antilag.woff2') format('woff2');
        url('Antilag.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}


@font-face {
    font-family: 'RetroByte';
    src: local('RetroByte'),
        url('RetroByte.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'NeueBit-Bold';
    src: local('NeueBit-Bold'),
        url('PPNeueBit-Bold.woff2') format('woff2');
}
.content {
            z-index: 5;
            position: relative;
            background: rgba(0, 0, 0, 0);
            padding-bottom: 20px;
            max-width: 800px;
            margin-left: auto;
            margin-right: auto;
        }

        .fuzzy-overlay {
            position: fixed;
            background-position-y: top;
            inset: -250%;
            background-image: url("noise.png");
            opacity: 15%;
            z-index: 1;
            pointer-events: none;

            animation: shift 0.2s linear infinite both;
        }

        @keyframes shift {
            0% {
                transform: translateX(10%) translateY(10%);
            }

            100% {
                transform: translateX(-10%) translateY(-10%);
            }
        }




.writtencontents {
    padding-left: 80px;
    padding-right: 80px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* ── Group headings (h2) in .writtencontents ── */
.writtencontents h2 {
    font-family: 'RetroByte', sans-serif;
    font-size: clamp(24px, 5vw, 36px);
    line-height: 1.2;
    margin-top: 40px;
    margin-bottom: 10px;
}
.writtencontents h2:first-of-type {
    margin-top: 0;
}

/* Bold inline paragraph links */
.writtencontents p a {
    -webkit-text-stroke: .5px currentColor;
    text-shadow: 0 0 0.5px currentColor;
}

/* ── Section color variable (override per page) ── */
:root { --section-color: #FFCE55; }

/* ── Section headings (h3) in .writtencontents ── */
.writtencontents h3 {
    font-family: 'DepartureMono', monospace;
    font-size: clamp(14px, 2.5vw, 18px);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--section-color);
    border-bottom: 1px solid color-mix(in srgb, var(--section-color) 30%, transparent);
    padding-bottom: 6px;
    margin-top: 25px;
    margin-bottom: 8px;
}

.body-image {
    text-align: center;
}



/* Reset/Global */
body {
      background: rgba(0, 0, 0, 1);
    color: #F5F5F5;
  font-family: 'DepartureMono', monospace;
    font-style: normal;
    font-size: clamp(12px, 2.2vw, 17px);
    text-align: justify;
}

strong {
    -webkit-text-stroke: .5px currentColor;
    text-shadow: 0 0 0.5px currentColor;
}

summary {
    display: none;
    height: 0px;
}


table {
    border: 3px solid #F5F5F5;
      border-collapse: collapse;

}

table tr:first-child {
    background-color: #494949;  /* Light gray background */
    font-weight: bold;  /* Make text bold */
    text-align: center;  /* Center-align text */
}

td {
    border: 3px solid #ffffff;
    padding: 10px;
}

/* Container */
.container {
  margin-left: 20px;
  margin-right: 20px;
}

.fuzzcontainer {
    overflow: hidden;
    min-height: 100vh;
    width: 100vw;
}

/* Header */
header {
  font-size: clamp(22px, 3vw, 28px);
  text-align: center;
  font-family: 'RetroByte';
  font-style: normal;
  height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

h1 {
    margin-top: 0;
    margin-bottom: 5px;
    text-transform: uppercase;
}

h3 {
    margin-top: 40px;
    text-align: center;
    font-size: clamp(20px, 3vw, 30px);
}

/* Page navigation (breadcrumb + prev/next) */
nav.page-nav {
    font-family: 'DepartureMono', monospace;
    font-size: 14px;

    margin: 0 auto 20px;
    padding: 0;
    text-align: center;
}

nav.page-nav .breadcrumb {
    font-size: clamp(11px, 2vw, 17px);
    color: #888;
    margin-bottom: 10px;
    text-align: center;
}

nav.page-nav .breadcrumb a {
    color: #aaa;
    text-decoration: none;
}

nav.page-nav .breadcrumb a:hover {
    color: #FFCE55;
    text-decoration: underline;
}

nav.page-nav .breadcrumb .bc-sep {
    margin: 0 4px;
    color: #555;
}

nav.page-nav .breadcrumb span:last-child {
    color: #F5F5F5;
}

nav.page-nav .prev-next {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid #333;
    font-size: clamp(11px, 2vw, 17px);
}

nav.page-nav .nav-prev,
nav.page-nav .nav-next {
    color: #FFCE55;
    text-decoration: none;
    text-transform: uppercase;
    min-width: 40%;
}

nav.page-nav a.nav-prev:hover,
nav.page-nav a.nav-next:hover {
    text-decoration: underline;
}

nav.page-nav .nav-prev { text-align: left; }
nav.page-nav .nav-next { text-align: right; }

a {
    color: whitesmoke;
    text-decoration: underline;
}

.underlined {
    text-decoration: underline;
}

.headersymbol {
    height: 100px;
    width: auto;
    margin: 20px;
}

.source {
    display: block;
}

/* Page preamble — author note / introduction */
.preamble {
    position: relative;
    font-family: 'DepartureMono', monospace;
    font-size: clamp(13px, 1.3vw, 16px);
    font-style: italic;
    line-height: 1.6;
    color: #D0D0D0;
    max-width: 720px;
    margin: 48px auto 32px;
    padding: 28px 24px 20px;
    border-left: 2px solid var(--section-color, #FFCE55);
    background: color-mix(in srgb, var(--section-color, #FFCE55) 6%, transparent);
}
.preamble::before {
    content: "EDITOR'S NOTE";
    position: absolute;
    top: -10px;
    left: 16px;
    padding: 0 8px;
    background: #0a0a0a;
    font-family: 'RetroByte', monospace;
    font-style: normal;
    font-size: clamp(11px, 1vw, 13px);
    letter-spacing: 0.12em;
    color: var(--section-color, #FFCE55);
}

/* Folders Grid */
.folders {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
  font-family: 'DepartureMono';

    text-align: center;
}

/* Individual Folder Link */
.folder {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #F5F5F5;
  transition: transform 0.2s ease;
}

.folder:hover {
  transform: scale(1.03);
}

/* SVG Container */
.folder .icon {
  width: 100%;
  height: 48px;
  margin-bottom: 8px;
}

/* SVG Itself */
.folder .icon png {
  width: 100%;
  fill: #1D1B20; /* Folder color */
}


.file {
    display: flex;
    flex-direction: column;
    align-items: center;
    word-break: break-word;
    text-align: center;
    font-size: clamp(13px, 1.4vw, 16px);
    line-height: 1.3;
    text-decoration: none;
    color: #F5F5F5;
    transition: transform 0.2s ease;
}

.file:hover {
    transform: scale(1.03);
}

/* Folder Label */
.folder span {
  text-align: center;
text-transform: uppercase;

}

@media (max-width: 800px) {

    .content {
        padding-bottom: 0px;
    }

    .icon {
        padding-top: 20px;
        height: 64px;
    }

    .container {
        margin-left: auto;
        margin-right: auto;
        width: 90vw;
    }

    img {
        margin-left: 30px;
        margin-right: 30px;
        width: 150px;
    }

    .writtencontents {
        padding: 15px;
    }

    /* Header */
    header {
        height: auto;
        min-height: 140px;
        overflow: visible;
        padding: 15px 10px;
    }

    h1 {
        font-size: clamp(20px, 5vw, 28px);
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Breadcrumb and nav full width */
    nav.page-nav {
        max-width: 100%;
        padding: 0;
    }

    nav.page-nav .breadcrumb {
        font-size: clamp(16px, 4.5vw, 22px);
    }

    nav.page-nav .prev-next {
        font-size: clamp(16px, 4.5vw, 22px);
    }

    /* Body text bigger for readability */
    body {
        font-size: clamp(14px, 3.5vw, 17px);
    }

    /* Folders Grid — single column with bigger icons */
    .folders {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
        font-size: clamp(14px, 3.5vw, 18px);
        text-align: center;
        width: 100%;
    }

    .folder .icon {
        width: 100%;
        height: 64px;
    }

    .folder .icon svg {
        width: 80px;
        height: 64px;
    }

    /* File display text bigger */
    .file {
        width: 100%;
        font-size: clamp(14px, 3.5vw, 16px);
    }

    /* Individual Folder Link */
    .folder {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #F5F5F5;
        transition: transform 0.2s ease;
    }

    .folder:hover {
        transform: scale(1.03);
    }

    /* Static fuzz background on mobile */
    .fuzzy-overlay {
        animation: none;
        opacity: 15%;
    }

}

/* ── Accordion headings in .writtencontents ── */
.writtencontents h3.accordion-toggle {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 30px;
    transition: color 0.2s;
}
.writtencontents h3.accordion-toggle::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'DepartureMono', monospace;
    font-size: 0.8em;
    opacity: 0.5;
    transition: opacity 0.3s;
}
.writtencontents h3.accordion-toggle.accordion-open::after {
    content: '\2212';
    opacity: 0.7;
}
.writtencontents h3.accordion-toggle:hover {
    color: var(--section-color);
}
.writtencontents h3.accordion-toggle:hover::after {
    opacity: 0.8;
}
.writtencontents .accordion-body {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}
.writtencontents .accordion-body.accordion-open {
    max-height: 3000px;
    opacity: 1;
}

