/* ========================= */
/* GLOBAL BASE STYLES */
/* ========================= */
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
}

body {
    font-family: "Courier New", monospace;
    background: #020b1f;
    color: #cfe8ff;

    overflow: hidden;
    cursor: default;
}

/* ========================= */
/* CURSOR STAR TRAIL */
/* ========================= */
.star {
    position: fixed;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        #9fd3ff 0%,
        #5fa8ff 40%,
        rgba(95,168,255,0.2) 70%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 9998;
    animation: starFade 0.8s ease-out forwards;
}

@keyframes starFade {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(2);
    }
}

/* ========================= */
/* STAR BACKGROUND (FIXED) */
/* ========================= */
canvas#stars {
    position: fixed;
    top: 0;
    left: 0;

    width: 100vw;
    height: 100vh;

    z-index: 0;               /* 🔥 FIXED */
    pointer-events: none;
}

/* ========================= */
/* SHELL NAVIGATION */
/* ========================= */
.shell-nav {
    position: fixed;
    top: 30px;
    left: 0;
    width: 100%;
    text-align: center;

    z-index: 2;               /* 🔥 ABOVE CANVAS */
}

.shell-nav a {
    margin: 0 16px;
    color: #9fd3ff;
    text-decoration: none;
    font-size: 1em;
    opacity: 0.85;
}

.shell-nav a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ========================= */
/* IFRAME CONTENT AREA */
/* ========================= */
#contentFrame {
    position: fixed;
    top: 100px;
    left: 0;

    width: 100%;
    height: calc(100vh - 100px);

    border: none;
    background: transparent;

    overflow-y: auto;
    overflow-x: hidden;

    z-index: 2;               /* 🔥 ABOVE CANVAS */
}

/* ========================= */
/* MUSIC PLAYER */
/* ========================= */
.music-frame {
    position: fixed;
    bottom: 20px;
    left: 20px;

    width: 220px;
    height: 70px;

    border: none;

    z-index: 9999;
    pointer-events: auto;
}

/* ========================= */
/* CONTAINER (IFRAME PAGES) */
/* ========================= */
.container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;

    padding: 80px 20px 140px;
    text-align: center;
}

/* ========================= */
/* TERMINAL INPUT SUPPORT */
/* ========================= */
.input-line {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.input-line input {
    background: transparent;
    border: none;
    outline: none;

    color: transparent;
    caret-color: transparent;

    font-family: inherit;
    font-size: 1em;
    width: 1px;
}

/* ========================= */
/* TERMINAL CURSOR BEHAVIOR */
/* ========================= */
.terminal,
.terminal-content,
pre {
    cursor: text;
}

/* ========================= */
/* FADE-IN ANIMATION */
/* ========================= */
.fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.fade.visible {
    opacity: 1;
    transform: translateY(0);
}
