/*
.·:'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''':·.
: :                                                                                                     : :
: :                                                                                                     : :
: :   49  66 69 6E 64  79 6F 75 72  6C 61 63 6B  6F 67  73 74 79 6C 65  64 69 73 74 75 72 62 69 6E 67 2E   : :
: :                  57 45 4C 43 4F 4D 45  54 4F  42 52 55 43 45 42 59 54 45 53 21                       : :
: :                                                                                                     : :
: :                                                                                                     : :
'·:......................................................................................................:·'
*/

/* 
I MUST ADMIT.. I DID STEAL THE CODE BLOCK STYLING FROM https://afflicted.sh/blog/ 
if you've never seen afflicted.sh... what are you doing here???? It's way better than anything you'll see here.
*/

@font-face {
    font-family: 'FiraCode';
    src: url('/assets/fonts/FiraCode-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-color: #0b0b0b;
    --main-green: #08c839;
    --dim-green: #003b00;
    --font-family-mono: 'Fira Code', monospace;
}

html {
    font-size: 18px;
    font-family: var(--font-family-mono);
    scrollbar-color: var(--dim-green) var(--bg-color);
    scrollbar-width: thin;
}

body {
    background-color: var(--bg-color);
    color: var(--main-green);
    font-size: 1rem;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    text-shadow: 0 0 6px var(--dim-green);
}

/* Force inputs & buttons to use the custom font and scaled size */
input, button, textarea, select {
    font-family: inherit;
    font-size: inherit;
    color: var(--main-green);
}

/* scanlines/scrolllines */
body::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%),
                linear-gradient(90deg, rgba(255, 0, 0, 0.02), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.03));
    z-index: 2;
    background-size: 100% 5px, 2px 100%;
    pointer-events: none;
}

@keyframes scrollLines {
    from { background-position: 0 0; }
    to { background-position: 0 100%; }
}

body::after {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(0, 255, 65, 0.03);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.4);
    z-index: 5;
    pointer-events: none;
    animation: sweep 12s linear infinite;
}

@keyframes sweep {
    0% { transform: translateY(-100px); }
    100% { transform: translateY(100vh); }
}

/* Outline Structure */
.wrapper {
    max-width: 80%;
    margin: 40px auto;
    padding: 45px;
    border: 1px dashed var(--dim-green);
    position: relative;
    z-index: 1;
}

header {
    border-bottom: 2px dashed var(--main-green);
    margin-bottom: 20px;
    padding-bottom: 10px;
    width: 100%;
    overflow-x: auto;
}

.logo {
    padding: 0;
    margin: 0 0 15px;
    font-family: var(--font-family-mono);
    font-size: 1.1rem;
    line-height: 1.1;
    text-align: center;
    letter-spacing: 2px;
    font-weight: bold;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.header-nav {
    text-align: center;
    margin: 10px;
}

.header-nav a {
    color: var(--main-green);
    text-decoration: none;
    margin: 0 25px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: inline-block;
}

.header-nav a:hover {
    background: var(--main-green);
    color: var(--bg-color);
}

/* table of contents nav bar */
.layout-container {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 45px;
    align-items: start;
    width: 100%;
    box-sizing: border-box;
}

.main-content {
    min-width: 0;
}

/* ==========================================================================
   FONTS & CODEBLOCKS
   ========================================================================== */
p {
    color: #e0e0e0;
    font-size: 1rem;
    line-height: 1.7;
    margin-top: 0;
    margin-bottom: 1.25rem;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.25;
    font-weight: 700;
    color: var(--main-green);
}

h1 { 
    font-size: 2.25rem;
    letter-spacing: -0.5px;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

h2 { 
    font-size: 1.65rem;
    letter-spacing: -0.25px;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

h3 { 
    font-size: 1.35rem;
    letter-spacing: 0;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}