/* Jurassic Escape - Terminal Game Styling */

/* Game wrapper - fits within Apollo theme layout */
.jurassic-escape-wrapper {
    background: #000000;
    background-image: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.95) 0px,
            rgba(0, 0, 0, 0.95) 2px,
            rgba(32, 32, 32, 0.2) 2px,
            rgba(32, 32, 32, 0.2) 4px
        );
    font-family: 'Courier New', monospace;
    padding: 20px;
    border: 1px solid #444444;
    border-radius: 4px;
}

/* Game console screen */
#game-console {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Game screen with terminal aesthetic */
.game-screen {
    color: #ffffff;
    font-family: 'Courier New', 'Lucida Console', monospace;
    font-size: 12px;
    line-height: 1.1;
    white-space: pre;
    margin: 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #333333;
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 0.1),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
    position: relative;
    max-width: 100%;
    overflow: auto;
}

/* CRT effect overlay */
.game-screen::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px
        );
    pointer-events: none;
    z-index: 1;
}

/* Phosphor glow effect */
.game-screen::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        rgba(0, 0, 0, 0.4) 100%
    );
    pointer-events: none;
    z-index: 2;
}

/* Teal accent highlights for important elements */
.game-screen .highlight {
    color: #27c3b8;
    text-shadow: 0 0 5px #27c3b8;
}

/* Flicker animation for CRT effect */
@keyframes flicker {
    0% { opacity: 0.97; }
    5% { opacity: 1; }
    10% { opacity: 0.98; }
    15% { opacity: 1; }
    20% { opacity: 0.99; }
    25% { opacity: 1; }
    30% { opacity: 0.98; }
    35% { opacity: 1; }
    40% { opacity: 0.97; }
    45% { opacity: 1; }
    50% { opacity: 0.99; }
    55% { opacity: 1; }
    60% { opacity: 0.98; }
    65% { opacity: 1; }
    70% { opacity: 0.99; }
    75% { opacity: 1; }
    80% { opacity: 0.97; }
    85% { opacity: 1; }
    90% { opacity: 0.98; }
    95% { opacity: 1; }
    100% { opacity: 0.97; }
}

.game-screen {
    animation: flicker 8s infinite;
}

/* Scanline animation */
@keyframes scanlines {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 10px;
    }
}

.jurassic-escape-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255, 255, 255, 0.01) 50%,
        transparent 100%
    );
    background-size: 100% 4px;
    animation: scanlines 8s linear infinite;
    pointer-events: none;
    z-index: 1;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .game-screen {
        font-size: 9px;
        padding: 5px;
    }
    
    .jurassic-escape-wrapper {
        padding: 10px;
        min-height: 50vh;
    }
}

/* Special characters glow */
.game-screen:not(:empty) {
    /* Player character @ */
    & :contains("@") {
        color: #27c3b8;
    }
    
    /* Danger indicators */
    & :contains("WARNING") {
        color: #ff6666;
        text-shadow: 0 0 3px #ff6666;
    }
}

/* Hide scrollbars */
.jurassic-escape-wrapper,
#game-console,
.game-screen {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.jurassic-escape-wrapper::-webkit-scrollbar,
#game-console::-webkit-scrollbar,
.game-screen::-webkit-scrollbar {
    display: none;
}