/* Game Styles extracted from stop_the_hacker.html */
#matrixCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.3;
    /* Subtle effect */
}

/* Landing Page Specific Styles */
body {
    background-color: #0d0d10;
    color: #eee;
    overflow-x: hidden;
}

#gameWrapper.fullscreen-active {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: #000;
}

#gameWrapper.fullscreen-active #gameContainer {
    height: 100vh !important;
    margin: 0;
    border: none;
}

#gameContainer {
    position: relative;
    height: 95vh;
    /* User Request: Full screen */
    min-height: 800px;
    display: flex;
    flex-direction: column;
    border: 1px solid #333;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    margin: 20px 0;
}

/* Top HUD */
#hud {
    background: #2c3e50;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #34495e;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 10001;
    position: relative;
    flex-wrap: wrap;
}

.stat-box {
    background: #1a1a1a;
    padding: 5px 15px;
    border-radius: 5px;
    border: 1px solid #444;
    min-width: 120px;
    text-align: center;
}

.stat-label {
    font-size: 0.8rem;
    color: #aaa;
    text-transform: uppercase;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
}

.blink {
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes scrollText {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(52, 152, 219, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
    }
}


/* Main Game Area */
#mainArea {
    flex: 1;
    display: flex;
    position: relative;
    overflow: hidden;
}

/* Network Map */
#networkMap {
    flex: 1;
    background: #000;
    position: relative;
}

/* SOC Console (Side/Bottom) */
#socConsole {
    width: 350px;
    background: #111;
    border-left: 2px solid #333;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.console-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #333;
    min-height: 200px;
}

.console-header {
    background: #222;
    padding: 10px;
    border-bottom: 1px solid #444;
    font-weight: bold;
    color: #0dcaf0;
    display: flex;
    justify-content: space-between;
}

#socLog {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    background: #000;
}

.log-entry {
    border-bottom: 1px solid #222;
    padding: 2px 0;
}

/* User List */
#userPanel {
    height: 250px;
    background: #151515;
    overflow-y: auto;
}

#userPanel table {
    margin-bottom: 0;
    font-size: 0.85rem;
}

#userPanel th {
    background: #222;
    color: #aaa;
    position: sticky;
    top: 0;
}

/* Overlays */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#helpOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 20000;
    /* Ensure above everything */
}

#storeOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 20000;
    /* Ensure above everything */
}

/* Fax Animation */
#faxPaper {
    display: none;
    width: 300px;
    height: 400px;
    background: white;
    color: black;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    font-family: 'Times New Roman', serif;
    text-align: center;
    position: relative;
    transform-origin: top center;
}

.fax-print-animation {
    animation: faxPrint 3s ease-out forwards;
}

@keyframes faxPrint {
    0% {
        height: 0;
        opacity: 0;
        transform: translateY(-50px);
    }

    100% {
        height: 400px;
        opacity: 1;
        transform: translateY(0);
    }
}

.fired-stamp {
    border: 5px solid red;
    color: red;
    font-weight: bold;
    font-size: 2rem;
    transform: rotate(-15deg);
    margin-top: 50px;
    padding: 10px;
    display: inline-block;
}

/* Police Lights Effect */
#policeLights {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    background: rgba(255, 0, 0, 0.3);
    display: none;
    mix-blend-mode: hard-light;
}

.lights-flashing {
    animation: policeStrobe 0.6s infinite;
}

@keyframes policeStrobe {
    0% {
        background: rgba(255, 0, 0, 0.4);
    }

    50% {
        background: rgba(0, 0, 255, 0.4);
    }

    100% {
        background: rgba(255, 0, 0, 0.4);
    }
}

#swatMessage {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    z-index: 9999;
    background: rgba(0, 0, 0, 0.9);
    border: 4px solid #fff;
    padding: 40px;
    text-align: center;
    color: white;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.5);
    display: none;
}

.swat-deploying {
    animation: swatEntrance 0.5s forwards, swatPulse 2s infinite;
}

@keyframes swatEntrance {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(-10deg);
        opacity: 0;
    }

    80% {
        transform: translate(-50%, -50%) scale(1.1) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@keyframes swatPulse {
    0% {
        border-color: #ff0000;
        box-shadow: 0 0 20px #ff0000;
    }

    50% {
        border-color: #0000ff;
        box-shadow: 0 0 40px #0000ff;
    }

    100% {
        border-color: #ff0000;
        box-shadow: 0 0 20px #ff0000;
    }
}