
#start-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
}

.start-text {
    font-size: 1.5em;
    padding: 2rem;
    animation: blink 1.5s infinite;
}


body {
    background-color: #000;
    color: #aaffaa; 
    font-family: 'Press Start 2P', cursive;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    overflow: hidden; 
}


.crt-container {
    width: 100%;
    height: 100%;
    position: relative;
    background: #040804;
    padding: 2rem;
    box-sizing: border-box;
    animation: flicker 0.15s infinite;
    display: none; 
}


.crt-container::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% 4px, 3px 100%;
    pointer-events: none;
}


.crt-container::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 2;
    pointer-events: none;
}


@keyframes flicker {
    0% { opacity: 0.95; }
    50% { opacity: 1; }
    100% { opacity: 0.98; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes glitch {
    2%,64% { transform: translate(2px,0) skew(0deg); }
    4%,60% { transform: translate(-2px,0) skew(0deg); }
    62% { transform: translate(0,0) skew(5deg); }
}


.system-info {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.8em;
    opacity: 0.8;
}

.rec-dot {
    position: absolute;
    top: 0;
    right: 1rem;
    color: #ff4136;
    animation: blink 1.5s infinite;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 5rem;
}

.image-container {
    animation: glitch 1s linear infinite reverse;
}

.foxy-art {
    max-width: 300px;
    width: 80%;
    border: 3px solid #3d4a3d;
    filter: sepia(0.3) brightness(0.9) contrast(1.2);
}

h1 {
    font-size: 1.5em;
    color: #ff6b6b;
    text-shadow: 0 0 5px #ff6b6b;
    margin-top: 1.5rem;
}

h2 {
    font-size: 1em;
    margin-top: 0;
}

.text-content p {
    max-width: 600px;
    line-height: 1.6;
    font-size: 0.9em;
}


.controls {
    margin-top: 2rem;
    text-align: center;
}

.nav-button {
    display: inline-block;
    border: 2px solid #aaffaa;
    padding: 10px 15px;
    margin: 5px;
    text-decoration: none;
    color: #aaffaa;
    transition: background-color 0.2s, color 0.2s;
    cursor: pointer;
}

.nav-button:hover {
    background-color: #aaffaa;
    color: #000;
    text-shadow: none;
}

.door-button {
    font-size: 1.2em;
    padding: 15px 25px;
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.door-button:hover {
    background-color: #ff6b6b;
    color: #000;
}

.button-subtext {
    font-size: 0.7em;
    opacity: 0.7;
    margin-top: 5px;
}

.camera-panel {
    border: 2px solid #3d4a3d;
    padding: 1rem;
    margin-top: 2rem;
    display: inline-block;
}

.camera-title {
    margin-bottom: 1rem;
    opacity: 0.8;
}

.system-log {
    position: absolute;
    bottom: 0.5rem;
    left: 1rem;
    font-size: 0.6em;
    opacity: 0.4;
}

#jumpscare-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 9999; 
    display: none; 
    justify-content: center;
    align-items: center;
}

#jumpscare-video {
    width: 100%;
    height: 100%;
    
    object-fit: cover; 
}

#game-over-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5em;
    color: #ff0000;
    text-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000;
    display: none; 
    animation: flicker 0.1s infinite; 
}