/* Define and load the local CERN Meyrin font asset */
@font-face {
    font-family: 'Meyrin';
    src: url('Meyrin.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Deep black abyss styling */
html, body {
    background-color: #000000;
    color: #22cc22; /* Classic low-intensity phosphor green */
    font-family: 'Meyrin', monospace;
    font-size: 16px; 
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;

    /* Turn off browser anti-aliasing to preserve crisp, blocky pixel edges */
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: none;
    font-smoothing: none;
    text-rendering: optimizeSpeed;

    /* CRITICAL FIX: Apply a global, sub-pixel text stroke to ALL text.
       This expands the width of every line segment by a fraction of a pixel,
       perfectly replicating that thicker, high-readability terminal presence.
    */
    -webkit-text-stroke: 0.3px #22cc22;
}

.crt-screen {
    position: relative;
    width: 100vw;
    height: 100vh;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    padding-top: 40px;
    background-color: #000000;
}

/* Container limits line length exactly like old 80-column screens */
.document-container {
    width: 100%;
    max-width: 720px;
    padding: 0 20px;
    box-sizing: border-box;
}

/* A soft, consistent phosphor glow layer behind all text */
.top-meta, .main-title, .summary-text, .info-grid, .prompt-text {
    text-shadow: 0 0 1px rgba(34, 204, 34, 0.4);
}

.top-meta {
    text-align: right;
    font-size: 14px;
    margin-bottom: 40px;
}

.main-title {
    text-align: center;
    font-size: 18px;
    font-weight: normal;
    letter-spacing: 1px;
    margin-bottom: 40px;
}

.summary-text {
    line-height: 1.6;
    text-align: justify;
    margin-bottom: 40px;
}

/* Grid layout matching the dual-column metadata list from the screen capture */
.info-grid {
    display: grid;
    grid-template-columns: 160px 1fr;
    row-gap: 30px;
    column-gap: 20px;
    line-height: 1.5;
    margin-bottom: 60px;
}

.grid-label {
    color: #22cc22;
    white-space: pre-line;
}

.grid-desc {
    text-align: justify;
}

/* Bottom Command Prompt formatting */
.prompt-container {
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 40px;
    transition: opacity 0.5s ease-in-out;
}

.prompt-text {
    margin-right: 12px; /* Leaves space so cursor never overlaps prompt colon */
    white-space: nowrap;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    flex-grow: 1;
}

#terminal-input {
    background: transparent;
    border: none;
    color: transparent; 
    text-shadow: 0 0 0 #22cc22; 
    font-family: inherit;
    font-size: inherit;
    outline: none;
    width: 100%;
    z-index: 2;
    caret-color: transparent; 
    -webkit-text-stroke: 0.3px #22cc22;
}

/* Authentic physical glowing block cursor trailing the text */
.block-cursor {
    position: absolute;
    left: 0;
    width: 12px;
    height: 20px;
    background-color: #22cc22;
    box-shadow: 0 0 5px #22cc22;
    z-index: 1;
    pointer-events: none;
}

/* SCANLINE EFFECTS */
.scanlines {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Kept light so it does not degrade the text thickness */
    background: linear-gradient(rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.12) 50%);
    background-size: 100% 3px;
    pointer-events: none;
    z-index: 10;
}

.flicker {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(34, 204, 34, 0.003);
    pointer-events: none;
    z-index: 9;
    animation: crt-flicker 0.15s infinite;
}

@keyframes crt-flicker {
    0% { opacity: 0.95; }
    50% { opacity: 1; }
    100% { opacity: 0.93; }
}