*, ::before, ::after {
    box-sizing: border-box;
}

:root {
    --procyon-green: #33ff33;
    --font: "Courier New", Courier, monospace;
}

html, body {
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: var(--font);
}

.monitor-wrapper {
    --light-frame: #2a2a2a;
    --dark-frame: #202020;

    position: relative;
    width: 100vw;
    height: 100vh;

    /* The Bezel */
    background-color: var(--dark-frame);
    border: 2vw solid var(--light-frame);
    border-left-color: var(--dark-frame);
    border-right-color: var(--dark-frame);
    border-bottom-width: 10vh;
    border-top-width: 5vh;
}

/* The CRT Screen Area */
.crt-screen {
    --outer-glow-color: rgba(0,0,0,1);
    --inner-glow-color: var(--outer-glow-color);

    position: relative;
    overflow: hidden;
    background: #050505;
    height: 100%;

    border-radius: 60px;
    box-shadow: inset 0 0 100px var(--inner-glow-color), 0 0 20px var(--outer-glow-color);
    z-index: 5;
}

/* Vignette and Tube Curvature */
.crt-screen::after {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.2) 40%, rgba(0,0,0,0.3) 100%);
    z-index: 6;
    pointer-events: none;
}

/* Scanlines and Glow Overlays */
.scanlines {
    position: fixed;
    top:5vh; left:2vw; right:2vw; bottom:10vh;

    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.2) 50%
    );
    background-size: 100% 4px;
    border-radius: 60px;

    z-index: 5;
    pointer-events: none;
}

.terminal-content {
    padding: 1vh 1.5vw;
    height: 100%;
    overflow-x: hidden;
    overflow-y: scroll;

    font-weight: bold;
    font-size: 1.1em;

    color: var(--procyon-green);
    text-shadow: 0 0 15px rgba(51, 255, 51, 0.8);
}

#procyon {
    line-height: 0%;
}

.terminal-content a {
    color: #0080FF;
    text-shadow: 0 0 15px #0080FFFF;
}

.terminal-content a:visited {
    color: #A050FF;
    text-shadow: 0 0 15px #A050FFFF;
}

/* The Manufacturer Badge */
.manufacturer-badge {
    position: absolute;
    bottom: -8.75vh;

    height: 7vh;
    max-width: 30vw;

    z-index: 20;
}

#speakers {
    position: absolute;
    bottom: -9vh;
    left: 27vw;

    width: 46vw;
    height: 8.1vh;

    background-image: radial-gradient(black 3px, transparent 0);
    background-size: 10px 10px;

    border-radius: 50px;

    z-index: 20;
}

/* Physical Buttons */
.bezel-controls {
    position: absolute;
    bottom: -7.5vh;
    right: 1vw;
    width: 100%;

    display: flex;
    justify-content: right;
    gap: 0.3vw;
}

.hw-btn {
    position: relative;
    width: 6vw;
    height: 5vh;

    color: lightgray;
    font-weight: 900;
    text-shadow: 0px 2px 2px rgba(255, 255, 255, 0.5);
    
    cursor: pointer;
    transition: all 0.3s ease;

    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    box-shadow: 
        0 6px 0 #262626,
        inset 0 0 20px rgba(255, 255, 255, 0.25),
        inset .1vw .2vh .05vw rgba(255,255,255,0.3);
}

/* Hover State: Partially depressed */
.hw-btn:hover {
    transform: translateY(2px);
    box-shadow: 
        0 4px 0 #111,
        inset 0 0 20px rgba(175, 175, 175, 0.25),
        inset 1px 1px 1px rgba(255,255,255,0.3);
}

/* Active/Selected State: Fully depressed and INTERNAL Backlight */
.hw-btn.active {
    transform: translateY(6px);
    box-shadow: 
        0 0px 0 #111,
        inset 0 0 20px rgba(51, 255, 51, 0.25),
        inset 0 0 5px rgba(255, 255, 255, 0.5);
    background: rgba(32, 162, 32, 0.3);
    border: 1px solid #33ff33;
}

/* === Scrollbar === */
/* Width */
::-webkit-scrollbar {
    margin-right: 10vw;
    width: 0.5vw;
}

::-webkit-scrollbar-track {
    margin-right: 10vw;
    height: 50%
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: var(--procyon-green);
}