
/* ================================
   FERNANDO_OS — DARK FOREST CRT
   ================================ */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0;

    background: #0b120d;
    color: #c8d5c9;

    font-family: "Courier New", monospace;
    line-height: 1.6;

    border: 2px solid #29452f;

    box-shadow:
        0 0 25px rgba(20, 70, 35, 0.25),
        inset 0 0 40px rgba(0, 30, 10, 0.5);
}


/* ================================
   CRT EFFECT
   ================================ */

body::before {
    content: "";
    position: fixed;
    inset: 0;

    pointer-events: none;
    z-index: 1000;

    background:
        repeating-linear-gradient(
            to bottom,
            rgba(120, 255, 150, 0.025) 0px,
            rgba(120, 255, 150, 0.025) 1px,
            transparent 1px,
            transparent 4px
        );
}

body::after {
    content: "";
    position: fixed;
    inset: 0;

    pointer-events: none;
    z-index: 999;

    box-shadow:
        inset 0 0 120px rgba(0, 0, 0, 0.85);
}


/* ================================
   NAVIGATION / COMPUTER WINDOW
   ================================ */

nav {
    border-bottom: 2px solid #29452f;
    background: #111c14;
}

.window-title {
    padding: 6px 12px;

    background: #17251a;
    color: #8fc49a;

    font-size: 14px;
    font-weight: bold;

    border-bottom: 1px solid #29452f;

    text-shadow:
        0 0 6px rgba(100, 220, 120, 0.3);
}

nav ul {
    display: flex;
    gap: 0;

    list-style: none;
    margin: 0;
    padding: 0;
}

nav li {
    border-right: 1px solid #29452f;
}

nav a {
    display: block;

    padding: 10px 18px;

    color: #7f9d84;

    text-decoration: none;

    font-weight: bold;
    font-size: 14px;

    transition:
        background 0.15s,
        color 0.15s;
}

nav a:hover {
    background: #203524;
    color: #b9e8c0;

    text-shadow:
        0 0 7px rgba(100, 220, 120, 0.35);
}

nav .current a {
    background: #29452f;
    color: #d0f0d5;

    text-shadow:
        0 0 7px rgba(100, 220, 120, 0.35);
}


/* ================================
   HEADINGS
   ================================ */

body > h1,
body > h2,
body > h3,
body > h4,
body > h5,
body > p,
body > iframe,
body > ul {
    margin-left: 40px;
    margin-right: 40px;
}

h1 {
    margin-top: 40px;

    font-size: 32px;
    letter-spacing: 2px;

    color: #d8e8da;

    text-shadow:
        0 0 8px rgba(100, 220, 120, 0.25);
}

h2 {
    color: #8fb497;
    font-size: 20px;

    border-bottom: 1px dashed #315638;
    padding-bottom: 8px;
}

h3 {
    margin-top: 50px;

    padding: 8px 12px;

    background: #17251a;

    border-left: 5px solid #4f8a5b;

    color: #b9d7bd;
    font-size: 18px;

    box-shadow:
        inset 0 0 15px rgba(40, 100, 50, 0.08);
}

h4 {
    color: #a9c5ad;
    margin-top: 30px;
}

h5 {
    color: #78977e;
}

.week-section {
    margin: 35px 40px;
    border: 1px solid #29452f;
    background: #0f1912;
}

.week-section summary {
    cursor: pointer;
    padding: 10px 12px;
    background: #17251a;
    border-left: 5px solid #4f8a5b;
    color: #b9d7bd;
    font-size: 18px;
    font-weight: bold;
    list-style: none;
    transition: all 0.15s ease;
}

.week-section summary:hover {
    background: #1c3020;
    color: #d0f0d5;
    text-shadow: 0 0 7px rgba(100, 220, 120, 0.35);
}

.week-section summary::-webkit-details-marker {
    display: none;
}

.week-section summary::before {
    content: "▶ ";
    color: #83c98d;
    font-size: 14px;
}

.week-section[open] summary::before {
    content: "▼ ";
}

.week-section > p,
.week-section > h4,
.week-section > ul {
    margin-left: 40px;
    margin-right: 40px;
}

.week-section > img {
    display: block;
    width: auto;
    max-width: 90%;
    max-height: 500px;
    height: auto;
    margin: 10px auto 15px auto;
}

.week-section .video-box {
    margin: 10px auto 20px auto;
}

/* ================================
   TEXT
   ================================ */

p {
    max-width: 900px;
}

a {
    color: #83c98d;

    text-decoration: underline;
    text-decoration-color: #416d48;
}

a:hover {
    color: #baf5c1;

    text-shadow:
        0 0 6px rgba(100, 230, 120, 0.35);
}


/* ================================
   IMAGES
   ================================ */

img {
    display: block;
    width: auto;
    max-width: 90%;
    max-height: 500px;
    height: auto;

    margin: 10px auto 15px auto;


    border: 2px solid #29452f;
    box-shadow:
        0 0 12px rgba(0, 30, 10, 0.7);
}

img:hover {
    border-color: #5d9567;

    box-shadow:
        0 0 12px rgba(80, 170, 95, 0.2);
}


/* ================================
   VIDEO
   ================================ */

.video-box {
    width: 400px;
    max-width: calc(100% - 80px);
    margin: 10px auto 20px auto;
    border: 2px solid #29452f;
    background: #0b120d;
    box-shadow:
        0 0 15px rgba(20, 70, 30, 0.4),
        inset 0 0 15px rgba(0, 30, 10, 0.4);
    overflow: hidden;
}

.video-box video {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    border: none;
    box-shadow: none;

    scroll-margin: 0;
}

.video-box:hover {
    border-color: #5d9567;
    box-shadow:
        0 0 15px rgba(80, 170, 95, 0.25),
        inset 0 0 15px rgba(0, 30, 10, 0.4);
}


/* ================================
   EXISTING CLASSES
   ================================ */

.indent1 {
    margin-left: 70px !important;
}
.indent1 img {
    width: 600px;
}

.tallImg {
    max-height: 350px;
    width: auto;
}

.bigImg {
    max-width: 800px;
}


/* ================================
   MOBILE
   ================================ */

@media (max-width: 700px) {

    body {
        margin: 0;
        padding: 0;
    }

    body > h1,
    body > h2,
    body > h3,
    body > h4,
    body > h5,
    body > p,
    body > iframe,
    body > ul {
        margin-left: 15px;
        margin-right: 15px;
    }

    nav ul {
        flex-direction: column;
    }

    nav li {
        border-right: none;
        border-bottom: 1px solid #29452f;
    }

    h1 {
        font-size: 24px;
    }
    
    .week-section {
        margin: 25px 15px;
    }

    .week-section > p,
    .week-section > h4,
    .week-section > ul {
        margin-left: 15px;
        margin-right: 15px;
    }
}

/* ================================
   WEEK NAVIGATION
   ================================ */

.week-list {
    margin: 25px 40px 50px 40px;

    max-width: 850px;

    display: flex;
    flex-direction: column;
    gap: 10px;
}

.week-card {
    display: flex;
    align-items: center;

    padding: 12px;

    border: 1px solid #29452f;
    background: #111c14;

    color: #a9c5ad;
    text-decoration: none;

    transition: all 0.15s ease;
}

.week-card:hover {
    background: #1c3020;
    border-color: #5d9567;

    color: #d0f0d5;

    transform: translateX(5px);

    box-shadow:
        0 0 12px rgba(80, 170, 95, 0.15);
}

.week-number {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 50px;
    height: 40px;

    margin-right: 15px;

    background: #17251a;
    border: 1px solid #416d48;

    color: #83c98d;

    font-size: 18px;
    font-weight: bold;
}

.week-card strong {
    display: block;

    color: #c8dfcb;
    font-size: 16px;
}

.week-card small {
    display: block;

    margin-top: 2px;

    color: #718c76;
    font-size: 12px;
}
.week-nav {
    margin: 15px 40px 30px 40px;
    display: flex;
    gap: 10px;
}

.week-nav a {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #29452f;
    background: #111c14;
    color: #83c98d;
    text-decoration: none;
    font-size: 13px;
}

.week-nav a:hover {
    background: #1c3020;
    border-color: #5d9567;
    color: #d0f0d5;
}