@media (max-width: 600px) {
    #ascii-stars-bg {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        font-size: 3vw !important;
        opacity: 0.35 !important;
        z-index: 0 !important;
        pointer-events: none !important;
    }
}
/* ASCII Stars Background */
#ascii-stars-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    font-family: monospace;
    color: #000000;
    opacity: 0.35;
    white-space: pre;
    background: transparent;
    user-select: none;
    font-size: 1.2vw;
    line-height: 1.1;
}
}
.top-navbar, .side-navbar, .container, .cards, .card, .typewriter-border {
    position: relative;
    z-index: 200;
}

/* Ensure <br> works in paragraphs */
p {
    white-space: normal !important;
}
.hide-top-navbar {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(.4,0,.2,1), opacity 0.3s;
}
@media (min-width: 900px) {
    .side-navbar {
        background: rgba(255,255,255,0.13);
        border-right: 2px solid #000;
        z-index: 250;
        box-shadow: 2px 0 12px rgba(0,0,0,0.08);
    }
}
/* Persistent top nav */
.top-navbar {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 300;
    background: rgba(255,255,255,0.10);
    border-bottom: 2px solid #000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}


/* Side nav overlay (hidden by default) */
.side-navbar {
    display: none;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}
@media (min-width: 900px) {
    .side-navbar {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 180px;
        height: 100vh;
        background: rgba(255,255,255,0.13);
        border-right: 2px solid #000;
        box-shadow: 2px 0 12px rgba(0,0,0,0.08);
        z-index: 250;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        transform: translateX(-200px);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.4s cubic-bezier(.4,0,.2,1), opacity 0.2s;
    }
    .side-navbar.visible {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }
    .side-nav-content {
        margin-top: 48px;
        display: flex;
        flex-direction: column;
        gap: 40px;
        width: 100%;
        align-items: flex-start;
        padding-left: 0;
    }
    .side-nav-content .nav-link {
        width: 100%;
        margin-bottom: 24px;
    }
}
@media (min-width: 900px) {
    .navbar.side-nav {
        position: fixed !important;
        left: 0;
        background: #d1a87b;
        width: 180px;
        height: 100vh;
        border-right: 2px solid #000;
        border-bottom: none;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        background: rgba(255,255,255,0.13);
        box-shadow: 2px 0 12px rgba(0,0,0,0.04);
        margin-bottom: 0;
        padding: 0;
        z-index: 200;
    }
    .container {
        margin-left: auto;
        margin-right: auto;
        max-width: 800px;
        box-sizing: border-box;
        position: relative;
        z-index: 1;
    }
    body.side-nav-active {
        padding-left: 0 !important;
        transition: none;
    }
}
/* Stylish link buttons */
.card-btn {
    display: inline-block;
    background: rgba(255,255,255,0.18);
    color: #111;
    border: 1.5px solid #000;
    border-radius: 8px;
    padding: 10px 22px;
    font-family: 'OCR-A', Arial, monospace;
    font-size: 1.08rem;
    text-decoration: none;
    margin: 6px 0;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s, border 0.18s;
    box-shadow: 1px 2px 8px rgba(0,0,0,0.04);
    cursor: pointer;
}
.card-btn:hover:not(.disabled) {
    background: rgba(0,0,0,0.08);
    color: #000;
    border-color: #222;
    box-shadow: 2px 4px 16px rgba(0,0,0,0.10);
}
.card-btn.disabled, .card-btn[disabled] {
    background: rgba(0,0,0,0.04);
    color: #888;
    border-color: #bbb;
    cursor: not-allowed;
    box-shadow: none;
    pointer-events: none;
}
/* Navigation Bar Styles */
/* Stylish nav links */
.nav-link {
    color: #000;
    text-decoration: none;
    font-size: 1.1rem;
    letter-spacing: 1px;
    padding: 8px 18px;
    border-radius: 8px;
    border: 1.5px solid transparent;
    background: rgba(255,255,255,0.13);
    transition: background 0.18s, color 0.18s, border 0.18s, box-shadow 0.18s;
    margin: 0 0 0 0;
    box-shadow: 1px 2px 8px rgba(0,0,0,0.03);
    display: inline-block;
    border-bottom: 2px solid transparent;
}
.nav-link:hover, .nav-link.active {
    background: rgba(0,0,0,0.08);
    color: #2d2d2d;
    border: 1.5px solid #000;
    box-shadow: 2px 4px 16px rgba(0,0,0,0.10);
    border-bottom: 2px solid #000;
}
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        background: rgba(255,255,255,0.10);
        margin-bottom: 24px;
        transition: all 0.4s cubic-bezier(.4,0,.2,1);
        z-index: 200;
    }
    .navbar.side-nav {
        position: fixed !important;
        left: 0;
        top: 0;
        width: 180px;
        height: 100vh;
        border-right: 2px solid #000;
        border-bottom: none;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        background: rgba(255,255,255,0.13);
        box-shadow: 2px 0 12px rgba(0,0,0,0.04);
        margin-bottom: 0;
        padding: 0;
        z-index: 200;
    }
    .nav-content {
        flex-direction: row;
        gap: 32px;
        padding: 12px 20px;
        align-items: center;
        max-width: 800px;
        margin: 0 auto;
        width: 100%;
        transition: all 0.4s cubic-bezier(.4,0,.2,1);
    }
    .navbar.side-nav .nav-content {
        flex-direction: column;
        gap: 40px;
        padding: 48px 0 0 0;
        width: 100%;
        align-items: flex-start;
        max-width: none;
        margin: 0;
    }
    .nav-link {
        width: auto;
        text-align: left;
        font-size: 1.15rem;
        padding: 10px 24px;
        border-radius: 0 16px 16px 0;
        border-bottom: none;
        border-left: 4px solid transparent;
        transition: background 0.2s, color 0.2s, border-left 0.2s;
    }
    .navbar.side-nav .nav-link {
        width: 100%;
        margin-bottom: 24px;
    }
    .nav-link:hover, .nav-link.active {
        background: rgba(0,0,0,0.07);
        color: #2d2d2d;
        border-left: 4px solid #000;
    }
    .container {
        margin-left: auto;
        margin-right: auto;
        transition: padding 0.4s cubic-bezier(.4,0,.2,1);
        max-width: 800px;
        box-sizing: border-box;
    }
    /* No left padding when nav is side-nav; content always centered */
}

/* Mobile: Top nav with pop-out */
@media (max-width: 899px) {
    .navbar {
        position: sticky;
        top: 0;
        width: 100%;
        height: auto;
        border-bottom: 2px solid #000;
        border-right: none;
        background: rgba(255,255,255,0.10);
        margin-bottom: 24px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 0;
    }
    .nav-content {
        display: none;
        flex-direction: column;
        gap: 0;
        background: rgba(255,255,255,0.97);
        position: absolute;
        top: 56px;
        left: 0;
        width: 100vw;
        box-shadow: 0 4px 24px rgba(0,0,0,0.10);
        z-index: 201;
    }
    .nav-content.open {
        display: flex;
    }
    .nav-link {
        width: 100%;
        text-align: left;
        font-size: 1.1rem;
        padding: 16px 24px;
        border-radius: 0;
        border-bottom: 1px solid #eee;
        border-left: none;
        transition: background 0.2s, color 0.2s;
    }
    .nav-link:hover, .nav-link.active {
        background: rgba(0,0,0,0.07);
        color: #2d2d2d;
    }
    .nav-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 2rem;
        margin: 0 16px;
        cursor: pointer;
        color: #000;
        z-index: 202;
    }
    .container {
        margin-left: 0;
    }
}

/* Always hide nav-toggle on desktop */
@media (min-width: 900px) {
    .nav-toggle {
        display: none;
    }
}
@font-face {
    font-family: 'OCR-A';
    src: url('./font/OCR-A.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    background: #d1a87b;
    color: #000000;
    font-family: 'OCR-A', Arial, sans-serif;
    margin: 0;
    min-height: 100vh;
}


.container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .container {
        padding: 8px 2vw;
        margin: 12px 0 0 0;
        max-width: 100vw;
        box-sizing: border-box;
    }
    .typewriter-border {
        padding: 12px 2vw;
        font-size: 1rem;
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }
    .cards {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
        width: 100%;
        box-sizing: border-box;
    }
    .card {
        min-width: 0;
        width: 100%;
        padding: 12px 4vw;
        font-size: 1rem;
        box-sizing: border-box;
        word-break: break-word;
    }
}

.typewriter-border {
    border: 2px solid #000000;
    padding: 24px 32px;
    margin-bottom: 32px;
    display: block;
    border-radius: 8px;
    background: #c9a06b;
    flex-direction: column;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}


.typewriter {
    font-size: 2.2rem;
    font-weight: bold;
    border-right: 2px solid #000000;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #000000; }
}

.cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

.card {
    background: #c9a06b;
    border: 1.5px solid #000000;
    border-radius: 8px;
    padding: 24px 32px;
    min-width: 180px;
    min-height: 120px;
    color: #000000;
    font-size: 1.1rem;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.04);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 4px 8px 24px rgba(0,0,0,0.10);
}
