@import url('https://fonts.googleapis.com/css2?family=Monofett&family=Share+Tech+Mono&display=swap');

html {
    color: #BCC6CC;
    background-color: black;
     background-image: 
    linear-gradient(45deg, rgba(0,255,0,0.05) 25%, transparent 25%, transparent 75%, rgba(0,255,0,0.05) 75%), 
    linear-gradient(45deg, rgba(0,255,0,0.05) 25%, transparent 25%, transparent 75%, rgba(0,255,0,0.05) 75%);
  background-size: 8px 8px;
}

body {
    font-family: "Share Tech Mono", mono;
  font-weight: 400;
  font-style: normal;
    background: black ;
    color: orange !important;
    text-align: left;
    cursor: default;
    max-width: 36em;
    margin: 0 auto;
    padding: 50px;
    hyphens: auto;
    overflow-wrap: break-word;
    text-rendering: optimizeLegibility;
    font-kerning: normal;
    
    
   
}

img {
    max-width: 100%;
    height: auto;
    image-rendering: pixelated; /* Forces pixelated scaling */
    image-rendering: crisp-edges;
    border: 4px solid black; /* Adds a classic frame */
    filter: contrast(120%) saturate(120%) brightness(90%);
    background-color: black;
    padding: 5px;
}

img::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        to bottom,
        rgba(0, 255, 0, 0.1) 0px,
        rgba(0, 255, 0, 0.05) 2px,
        transparent 4px
    );
    pointer-events: none;
}





@media (max-width: 600px) {
    body {
        font-size: 0.9em;
        padding: 12px;
    }
    h1 {
        font-size: 1.8em;
    }
}

@media print {
    html {
        background-color: black;
    }
    body {
        background-color: transparent;
        color: white;
        font-size: 12pt;
    }
    p, h2, h3 {
        orphans: 3;
        widows: 3;
    }
    h2, h3, h4 {
        page-break-after: avoid;
    }
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 1.4em;
    color: #BCC6CC;
    text-shadow: none;
}

p {
    margin: 1em 0;
}

a {
    color: #BCC6CC;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img, svg {
    max-width: 100%;
    height: auto;
}

ol, ul {
    padding-left: 1.7em;
    margin-top: 1em;
}

blockquote {
    margin: 1em 0 1em 1.7em;
    padding-left: 1em;
    border-left: 2px solid silver;
    color: silver;
}

code {
    font-family: Menlo, Monaco, Consolas, 'Lucida Console', monospace;
    font-size: 85%;
}

pre {
    margin: 1em 0;
    overflow: auto;
    background: #222;
    padding: 10px;
    border: 2px solid silver;
}

table {
    margin: 1em 0;
    border-collapse: collapse;
    width: 100%;
    border: 2px solid silver;
}

table th, table td {
    border: 1px solid silver;
    padding: 0.5em;
    text-align: left;
}

.back-button {
    font-family: "VT323", system-ui !important;
    font-size: 14px;
    padding: 10px;
    background-color: darkblue !important;
    color: black !important;
    border: 2px solid silver;
    cursor: pointer;
    text-transform: uppercase;
    margin: 10px;
}

.back-button:active {
    transform: translate(2px, 2px);
}

/* Table of Contents Styles */
.toc-container {
    background: black;
    border: 2px solid silver;
    padding: 10px;
    margin-bottom: 20px;
    position: fixed;
    left: 10px;
    top: 50px;
    width: 200px;
}
.toc-title {
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: silver;
    text-align: center;
    padding: 5px;
}
.toc-list {
    display: none;
    list-style: none;
    padding-left: 0;
}
.toc-list a {
    display: block;
    color: silver;
    padding: 5px;
    text-decoration: none;
}
.toc-list a:hover {
    background: darkgray;
}