/* Retro CRT Terminal Theme - V2 (Optimized) */

/* 1. GLOBAL & BODY STYLING */
html {
    background-color: #0d0d0d;
}

body {
    background-color: #0d0d0d;
    color: #33ff33;
    font-family: "Courier New", Courier, monospace;
    padding: 50px;
    line-height: 1.6;
    margin: 0;

    /* Subtle Scanlines */
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%,
        rgba(0, 0, 0, 0.1) 50%
    );
    background-size: 100% 3px;

    /* Monitor Flicker Effect */
    animation: monitor-flicker 0.1s infinite;
}

/* Add a slight green glow to all text */
* {
    text-shadow: 0 0 5px rgba(51, 255, 51, 0.3);
}

/* 2. HEADINGS & LINKS */
h1 {
    text-transform: uppercase;
    text-shadow: 0 0 10px #33ff33;
    border-bottom: 2px solid #33ff33;
    display: inline-block;
    padding-bottom: 5px;
}

a {
    color: #33ff33;
    text-decoration: none;
    padding: 2px 5px;
    transition: 0.1s;
}

a:hover {
    background-color: #33ff33;
    color: #0a0a0a;
    box-shadow: 0 0 15px #33ff33;
}

ul {
    list-style-type: "[DISK] ";
    margin-top: 20px;
    padding-left: 20px;
}

.back-link {
    font-weight: bold;
    margin-bottom: 30px;
    display: block;
}

/* 3. SEARCH CONTAINER & INPUT */
.search-container {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    background: rgba(51, 255, 51, 0.05);
    padding: 10px;
    border: 1px solid #33ff33;
    transition: box-shadow 0.2s;
}

/* Glow effect when the user is typing */
.search-container:focus-within {
    box-shadow: 0 0 15px rgba(51, 255, 51, 0.4);
}

.prompt {
    color: #33ff33;
    margin-right: 10px;
    font-weight: bold;
    flex-shrink: 0;
}

#fileSearch {
    background: transparent;
    border: none;
    color: #33ff33;
    font-family: "Courier New", Courier, monospace;
    font-size: 1.2rem;
    outline: none;
    width: 100%;

    /* RETRO BLOCK CURSOR: 
       This turns the standard line into a block 
       and moves it automatically as you type. */
    caret-shape: block; 
    caret-color: #33ff33;
}

/* 4. ANIMATIONS */

/* Smoother Flicker Animation */
@keyframes monitor-flicker {
    0% { opacity: 0.99; }
    50% { opacity: 1; }
    100% { opacity: 0.99; }
}

/* Container for the icons */
.icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 10px;
    background-color: #33ff33; /* This sets the icon color! */
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

/* The Amiga 'Tick' (using a checkmark icon) */
.amiga-icon {
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 411 150"><path d="M7.7 93.3L61 146.7H104L28.1 70.8L7.7 93.3Z M296 146.7H340L63.3 22.1L42.9 42.1L296 146.7Z M319 146.7H363L135 46.7L114.6 66.7L319 146.7Z M145 146.7H189L359.6 0H315.6L145 146.7Z"/></svg>');
}



/* The Apple Logo */
.apple-icon {
    -webkit-mask-image: url('https://api.iconify.design/simple-icons:apple.svg');
    mask-image: url('https://api.iconify.design/simple-icons:apple.svg');
}

/* The IBM Logo (using a mainframe/chip icon) */
.ibm-icon {
    -webkit-mask-image: url('https://api.iconify.design/material-symbols:memory.svg');
    mask-image: url('https://api.iconify.design/material-symbols:memory.svg');
}

/* Hover Effect: Make them glow more when hovered */
a:hover .icon {
    box-shadow: 0 0 8px #33ff33;
    background-color: #ffffff; /* Turns white-green when highlighted */
}
