@import url('https://fonts.googleapis.com/css2?family=Bowlby+One+SC&family=Bree+Serif&family=Caprasimo&family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=Geist+Pixel&family=Staatliches&family=Ultra&display=swap');

body {
    background-color: rgb(0, 0, 0);
    min-height: 100vh;
    margin: 0;
    display: flex;
}

.sidenav {
    width: fit-content;
    padding: 2vh 1.5rem 2vh 1vh;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-right: 2px dotted lime;
    min-height: 100vh;
    box-sizing: border-box;
}

.ascii {
    font-size: 4pt;
    padding: 1vh;
    color: black;
    background-color: lime;
    font-family: monospace;
    margin: 0 0 2vh 0;
    cursor: pointer;
    /* Smooth transition for movement and shadow */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 5vh;
}

.ascii:hover {
    /* Lifts up (-4px) and nudges right (8px) */
    transform: translate(8px, -4px);
    /* Creates a 3D drop-shadow using lime glow and black shadow */
    box-shadow: -8px 8px 0px 0px rgba(0, 255, 0, 0.4);
}

.sidenav a,
.sidenav a:visited {
    text-decoration: none;
    color: lime;
    font-family: "Geist Pixel", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "ELSH" 0;
    font-size: 20pt;
    display: block;
    padding: 0.5rem 1rem;
    transition: transform 0.2s ease;
}

.sidenav a:hover,
.sidenav a:visited:hover {
    color: black;
    background-color: lime;
    transform: translateX(10px);
}

.main {
    flex-grow: 1;
    padding: 2rem;
    color: white;
    font-family: "Geist Pixel", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "ELSH" 0;

}

.sidenav a.active,
.sidenav a.active:visited {
    color: rgb(66, 66, 66);
    background-color: #88ff98; /* Lighter lime hue */
    transform: perspective(30); /* Keeps the item nudged to the right */
}

/* Push the CC statement to the bottom of the sidenav */
.sidenav {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.cc-license {
    margin-top: auto; /* Pushes the element to the bottom left of the container */
    padding: 0.5rem 1rem;
    font-family: "Geist Pixel", sans-serif;
    font-size: 10pt;
    color: lime;
    opacity: 0.8;
}

.cc-license p {
    margin: 0;
}

/* CRT Overlay Container */
body::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    /* Creates thin horizontal scanlines */
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.25) 50%
    ), 
    linear-gradient(
        90deg,
        rgba(255, 0, 0, 0.03),
        rgba(0, 255, 0, 0.01),
        rgba(0, 0, 255, 0.03)
    );
    z-index: 1000;
    background-size: 100% 4px, 6px 100%;
    pointer-events: none; /* Allows clicking on links beneath the overlay */
}

/* Subtle CRT Screen Flicker */
body::after {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(18, 16, 16, 0.1);
    opacity: 0;
    z-index: 1000;
    pointer-events: none;
    animation: flicker 0.15s infinite;
}

@keyframes flicker {
    0% { opacity: 0.27861; }
    5% { opacity: 0.34769; }
    10% { opacity: 0.23604; }
    15% { opacity: 0.90626; }
    20% { opacity: 0.18128; }
    25% { opacity: 0.83891; }
    30% { opacity: 0.65583; }
    35% { opacity: 0.67807; }
    40% { opacity: 0.26559; }
    45% { opacity: 0.84693; }
    50% { opacity: 0.96019; }
    55% { opacity: 0.08594; }
    60% { opacity: 0.20313; }
    65% { opacity: 0.71988; }
    70% { opacity: 0.53455; }
    75% { opacity: 0.37288; }
    80% { opacity: 0.71428; }
    85% { opacity: 0.70419; }
    90% { opacity: 0.7003; }
    95% { opacity: 0.36108; }
    100% { opacity: 0.24387; }
}

/* Adds a phosphor glow effect to green text */
.sidenav a, .ascii{
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.7);
}
/* Sets main text color to white and overrides any text shadow/glow */
.main, .main h1, .main p, .main li, .main a {
    color: #ffffff;
    text-shadow: 0 0 5px rgba(255,255,255, 0.7);
}
/* Container Spacing */
.main {
    padding: 2rem 3rem;
    max-width: 800px;
    line-height: 1.6;
    font-family: "Geist Pixel", monospace;
}

/* Headings */
.main h1 {
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: lowercase;
    border-bottom: 1px dashed #444;
    padding-bottom: 0.5rem;
}

/* Paragraphs */
.main p {
    font-size: 1rem;
    margin-bottom: 1.2rem;
    color: #e0e0e0;
}

/* Lists */
.main ul {
    list-style-type: square;
    padding-left: 1.2rem;
    margin-bottom: 1.5rem;
}

.main li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Inline Links */
.main a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.main a:hover {
    background-color: #ffffff;
    color: #000000;
    text-decoration: none;
}
/* Custom Retro Cursor Setup */
body, a {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Crect width='10' height='10' fill='%2300ff00'/%3E%3C/svg%3E"), auto;
}

/* Custom Blooming Glow Cursor Element */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    background-color: lime;
    pointer-events: none;
    z-index: 9999;
    /* Phosphor bloomy glow */
    box-shadow: 
        0 0 4px #00ff00,
        0 0 10px #00ff00,
        0 0 20px rgba(0, 255, 0, 0.9),
        0 0 30px rgba(0, 255, 0, 0.6);
    /* Smooth scaling and positioning transitions */
    transform: translate(-50%, -50%) scale(1);
    transition: transform 0.08s ease-out;
}

/* Shrink effect when clicking */
.custom-cursor.active {
    transform: translate(-50%, -50%) scale(0.5);
}

/* Optional: Custom green square cursor override */
body, a {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Crect width='10' height='10' fill='%2300ff00'/%3E%3C/svg%3E"), auto;
}

/* Blinking Underscore on Active Nav Link */
.sidenav a.active::after {
    content: "_";
    display: inline-block;
    margin-left: 2px;
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}
/* Custom Retro Video Container */
.retro-player {
    border: 2px solid lime;
    background-color: #000000;
    padding: 8px;
    max-width: 640px;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.4);
}

.retro-player video {
    width: 100%;
    display: block;
    background: #000;
}

/* Control Bar */
.player-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    font-family: "Geist Pixel", monospace;
}

/* Retro Square Button */
.retro-btn {
    background: black;
    color: lime;
    border: 1px solid lime;
    font-family: inherit;
    
    /* Set fixed dimensions to form a square */
    width: 32px;
    height: 32px;
    padding: 0;
    
    /* Center text or SVG icons inside the square */
    display: flex;
    align-items: center;
    justify-content: center;
    
    cursor: pointer;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.7);
    box-sizing: border-box;
}

.retro-btn:hover {
    background: lime;
    color: black;
}

/* Ensure SVG icons stay crisp and centered inside the square */
.retro-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* Square Progress Bar Track */
#seek-bar {
    -webkit-appearance: none;
    appearance: none;
    flex-grow: 1;
    height: 12px;
    background: #000000;
    border: 1px solid lime;
    border-radius: 0; /* Ensures square edges */
    outline: none;
    cursor: pointer;
    box-shadow: inset 0 0 4px rgba(0, 255, 0, 0.3);
}

/* Square Thumb for WebKit (Chrome, Safari, Edge) */
#seek-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: lime;
    border-radius: 0; /* Square thumb */
    cursor: pointer;
    box-shadow: 0 0 5px lime;
}

/* Square Thumb for Firefox */
#seek-bar::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: lime;
    border: none;
    border-radius: 0; /* Square thumb */
    cursor: pointer;
    box-shadow: 0 0 5px lime;
}

/* Remove default Firefox focus outline */
#seek-bar::-moz-focus-outer {
    border: 0;
}

#time-display {
    color: lime;
    font-size: 0.85rem;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.7);
}
/* Retro Audio Container */
.retro-audio-player {
    border: 2px solid lime;
    background-color: #000000;
    padding: 12px;
    max-width: 520px;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.4);
}

.audio-card {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Square Cover Art Box */
.cover-art-container {
    width: 90px;
    height: 90px;
    border: 1px solid lime;
    flex-shrink: 0;
    background-color: #000;
}

.cover-art-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Metadata Text */
.audio-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.track-meta {
    display: flex;
    flex-direction: column;
    font-family: "Geist Pixel", monospace;
}

.track-meta .title {
    color: lime;
    font-size: 1.1rem;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.7);
}

.track-meta .artist {
    color: #aaa;
    font-size: 0.85rem;
}
/* Square Audio Progress Bar Track */
#audio-seek-bar {
    -webkit-appearance: none;
    appearance: none;
    flex-grow: 1;
    height: 12px;
    background: #000000;
    border: 1px solid lime;
    border-radius: 0;
    outline: none;
    cursor: pointer;
    box-shadow: inset 0 0 4px rgba(0, 255, 0, 0.3);
}

/* Square Thumb for WebKit (Chrome, Safari, Edge) */
#audio-seek-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: lime;
    border-radius: 0;
    cursor: pointer;
    box-shadow: 0 0 5px lime;
}

/* Square Thumb for Firefox */
#audio-seek-bar::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: lime;
    border: none;
    border-radius: 0;
    cursor: pointer;
    box-shadow: 0 0 5px lime;
}

.retro-playlist li {
    font-family: "Geist Pixel", monospace;
    font-size: 0.9rem;
    color: lime;
    padding: 6px 8px;
    cursor: pointer;
    transition: background 0.1s ease, color 0.1s ease;
    white-space: nowrap;
}

.retro-playlist li .marker {
    display: inline-block;
    width: 1.2em;
    font-weight: bold;
}

.retro-playlist li:hover {
    background-color: rgba(0, 255, 0, 0.2);
}

.retro-playlist li.active-track {
    background-color: lime;
    color: black;
    font-weight: bold;
}