@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

:root {
    --bg-color: #050505;
    --term-green: #33ff00;
    --term-glow: #33ff0080;
    --term-dim: #1a8000;
    --scanline: rgba(0, 0, 0, 0.5);
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--term-green);
    font-family: 'VT323', monospace;
    font-size: 24px;
    margin: 0;
    padding: 20px;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-shadow: 0 0 5px var(--term-glow);
}

/* CRT Effect Overlay */
body::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 2;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

.terminal-container {
    width: 100%;
    max-width: 800px;
    height: 90vh;
    border: 2px solid var(--term-green);
    padding: 20px;
    display: flex;
    flex-direction: column;
    background: #000;
    position: relative;
    box-shadow: 0 0 20px var(--term-dim);
}

.screen-header {
    border-bottom: 1px solid var(--term-green);
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    text-transform: uppercase;
}

.scene-image {
    width: 100%;
    height: 300px;
    border: 1px solid var(--term-dim);
    margin-bottom: 20px;
    background-color: #111;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.scene-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Pixel art scaling */
    image-rendering: pixelated;
}

.scene-description {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 20px;
    line-height: 1.4;
}

.scene-description p {
    margin-bottom: 15px;
}

.actions {
    border-top: 1px solid var(--term-green);
    padding-top: 15px;
}

.action-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.action-btn {
    background: none;
    border: none;
    color: var(--term-green);
    font-family: 'VT323', monospace;
    font-size: 24px;
    cursor: pointer;
    text-transform: uppercase;
    text-shadow: 0 0 5px var(--term-glow);
    padding: 5px 10px;
    transition: 0.2s;
}

.action-btn:hover {
    background-color: var(--term-green);
    color: #000;
    box-shadow: 0 0 10px var(--term-green);
}

.action-btn::before {
    content: "[ ";
}

.action-btn::after {
    content: " ]";
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: var(--term-dim);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--term-green);
}