body {
    display: flex;
    flex-direction: column; 
    justify-content: flex-start; 
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-image: url('/Screenshot 2025-07-15 161423.png'); 
    background-size: cover; 
    background-position: center; 
    background-color: #000; 
    overflow: hidden; 
    font-family: sans-serif;
    padding-top: 20px; 
    box-sizing: border-box; 
    filter: url(#vhsWavyFilter); /* Apply the SVG filter for wavy effect */
}

#titleImage {
    display: block; 
    max-width: 80%; 
    height: auto;
    z-index: 10;
}

#warningButton {
    padding: 20px 40px;
    font-size: 2.2em; 
    color: white;
    background-color: #cc0000;
    border: 5px solid #ffcc00;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.7);
    transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s ease-in-out;
    z-index: 10; 
    margin: auto; 
}

#warningButton:hover {
    background-color: #ff0000;
    box-shadow: 0 0 30px rgba(255, 0, 0, 1);
    transform: scale(1.1);
    animation: shake 0.5s infinite; /* Add shake animation on hover */
}

/* New Keyframes for shake animation */
@keyframes shake {
    0% { transform: scale(1.1) translateX(0); }
    25% { transform: scale(1.1) translateX(-5px); }
    50% { transform: scale(1.1) translateX(5px); }
    75% { transform: scale(1.1) translateX(-5px); }
    100% { transform: scale(1.1) translateX(0); }
}

/* New Keyframes for jumpscare shake animation */
@keyframes jumpscare-shake-animation {
    0% { transform: translate(1px, 1px); }
    10% { transform: translate(-1px, -2px); }
    20% { transform: translate(-3px, 0px); }
    30% { transform: translate(3px, 2px); }
    40% { transform: translate(1px, -1px); }
    50% { transform: translate(-1px, 2px); }
    60% { transform: translate(-3px, 1px); }
    70% { transform: translate(3px, 1px); }
    80% { transform: translate(-1px, -1px); }
    90% { transform: translate(1px, 2px); }
    100% { transform: translate(1px, -2px); }
}

#fullScreenImage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: none; 
    z-index: 5; 
}

#fullScreenImage.jumpscare-shake {
    animation: jumpscare-shake-animation 0.1s infinite; /* Fast, continuous shake */
}

#romanticImage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    opacity: 0; 
    transition: opacity 10s ease-in-out; 
    z-index: 20; 
    pointer-events: none; 
}

#romanticImage.fade-in {
    opacity: 1;
}

#infoScreen {
    position: fixed;
    top: 0;
    left: 50%; 
    transform: translateX(-50%); 
    width: 100%;
    height: 100%;
    background-color: #000; 
    background-image: url('/Screenshot 2025-07-15 161423.png'); 
    background-size: cover; 
    background-position: center; 
    color: #00ff00; 
    display: none; 
    flex-direction: column;
    align-items: center;
    text-align: left; 
    font-family: 'Courier New', Courier, monospace; 
    font-size: 1.32em; 
    padding: 20px 5%; 
    box-sizing: border-box; 
    line-height: 1.4;
    z-index: 15; 
    overflow-y: auto; 
    max-width: 900px; 
}

#infoScreen p {
    margin-bottom: 1em; 
}

#initialInfoText {
    text-align: center; 
    margin-bottom: 20px; 
}

.file-item {
    cursor: pointer;
    padding: 10px 15px;
    margin: 0; 
    border: 1px solid #00ff00;
    border-radius: 5px;
    background-color: rgba(0, 255, 0, 0.1);
    transition: background-color 0.2s, color 0.2s;
    width: 180px; 
    height: auto; 
    box-sizing: border-box;
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-align: center; 
    font-size: 1em; 
}

.file-item img { 
    width: 60px; 
    height: auto;
    margin-bottom: 5px; 
    filter: drop-shadow(0 0 5px rgba(0,255,0,0.5)); 
}

.file-item:hover {
    background-color: rgba(0, 255, 0, 0.3);
    color: #ffffff;
}

#photoViewerOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    flex-direction: column; /* Changed to column to stack header above content */
    justify-content: center;
    align-items: center;
    z-index: 50;
    font-family: 'Courier New', Courier, monospace;
    color: #00ff00;
    box-sizing: border-box;
    padding: 20px;
}

#photoViewerHeader {
    color: #00ff00;
    font-size: 1.2em;
    margin-bottom: 15px; /* Space between header and grid */
    text-align: center;
    display: none; /* Hidden by default, managed by JS */
}

#photoViewerContent {
    background-color: #000;
    border: 2px solid #00ff00;
    padding: 20px;
    max-width: 80%;
    max-height: 80%;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    box-sizing: border-box;
}

.placeholder-photo {
    width: 100%; 
    aspect-ratio: 1 / 1; 
    position: relative; 
    border: 1px solid #00ff00;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
    color: #00ff00;
    text-align: center;
    box-sizing: border-box;
    cursor: pointer; 
    background-color: #0A1A0A; 
}

.placeholder-photo img {
    max-width: 90%; 
    max-height: 90%;
    object-fit: contain; 
}

.placeholder-photo[data-photo-id="pride-redacted"] img {
    filter: blur(5px) brightness(0.1); /* Further obscure pride flag */
}

.redacted-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: red;
    font-size: 1.5em;
    font-weight: bold;
    text-shadow: 0 0 5px black;
    pointer-events: none; /* Make sure it doesn't block clicks on the photo */
}

#enlargedPhotoView {
    position: fixed; 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%; 
    height: 90%;
    max-width: 800px; 
    max-height: 600px; 
    background-color: #000; 
    border: 3px solid #00ff00; 
    display: none; 
    z-index: 60; 
    padding: 20px;
    box-sizing: border-box;
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
    font-size: 2em; 
    overflow: auto; 
}

#enlargedPhotoView img { 
    max-width: 100%;
    max-height: calc(100% - 40px); 
    object-fit: contain; 
    margin-bottom: 10px; 
}

#enlargedPhotoView p {
    margin: 0; 
}

#enlargedPhotoClose {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2em;
    color: #ff0000; 
    cursor: pointer;
    z-index: 61; 
}

#enlargedPhotoClose:hover {
    color: #ffffff;
}

#passwordPrompt {
    display: none; 
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

#passwordPrompt p {
    text-align: center; 
}

#prideEmoji { 
    display: none; 
    width: 150px; 
    height: auto;
    margin-bottom: 10px;
}

#passwordInput {
    padding: 10px;
    font-size: 1.1em; 
    background-color: #333;
    color: #00ff00;
    border: 1px solid #00ff00;
    margin-bottom: 10px;
    text-align: center;
}

#passwordSubmit {
    padding: 10px 20px;
    font-size: 1.1em; 
    background-color: #008000;
    color: white;
    border: none;
    border-radius: 5_0px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#passwordSubmit:hover {
    background-color: #00b300;
}

#passwordBack:hover {
    background-color: #555;
}

#forgotPasswordButton:hover {
    background-color: #777;
}

#passwordFeedback {
    color: #ff0000; 
    margin-top: 10px;
    font-size: 0.99em; 
}

#dataWipeContainer {
    display: none; 
    flex-direction: column;
    align-items: center; 
    margin-top: 20px;
    width: 90%; 
    max-width: 500px; 
}

#dataWipeMessage {
    text-align: center; 
    color: #ff0000;
    margin-bottom: 10px;
    width: 100%; 
    box-sizing: border-box; 
}

#dataWipeProgressBarContainer { 
    width: 100%;
    background-color: #333;
    border: 1px solid #ff0000;
    height: 20px;
}

#dataWipeProgressBar {
    width: 0%;
    height: 100%;
    background-color: #ff0000;
    transition: width 0.1s linear;
}

#storyContentContainer {
    width: 100%; 
    white-space: pre-line; 
}

.carry-burden-button {
    padding: 15px 30px;
    font-size: 1.65em; 
    color: white;
    background-color: #8B0000; 
    border: 2px solid #FFD700; 
    border-radius: 8px;
    cursor: pointer;
    margin-top: 40px; 
    display: block; 
    margin-left: auto;
    margin-right: auto;
}

.carry-burden-button:hover {
    background-color: #B22222; 
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
}

.fading-story {
    color: red; 
    transition: opacity 10s ease-out, color 0.5s ease-in; 
    opacity: 0;
    pointer-events: none; 
}

#resetButton {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 20px;
    font-size: 1.1em; 
    color: white;
    background-color: #555;
    border: 2px solid #888;
    border-radius: 5px;
    cursor: pointer;
    z-index: 100; 
    display: none; 
    transition: background-color 0.2s, border-color 0.2s;
}

#resetButton:hover {
    background-color: #777;
    border-color: #AAA;
}

#osHeader {
    position: fixed;
    top: 20px;
    left: 20px;
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.99em; 
    z-index: 100; 
    display: none; 
}

#myBsodImage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none; 
    z-index: 1000; 
}

/* Styles for photo password prompt */
#photoPasswordPrompt p {
    text-align: center;
    margin-bottom: 10px;
}

#photoPasswordInput {
    padding: 10px;
    font-size: 0.8em; /* Smaller than main password input */
    background-color: #333;
    color: #00ff00;
    border: 1px solid #00ff00;
    margin-bottom: 10px;
    text-align: center;
    width: 80%; /* Adjust width for better fit in photo view */
    max-width: 300px;
}

#photoPasswordSubmit {
    padding: 8px 15px;
    font-size: 0.8em; /* Smaller than main password submit */
    background-color: #008000;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#photoPasswordSubmit:hover {
    background-color: #00b300;
}

#photoPasswordFeedback {
    color: #ff0000;
    margin-top: 10px;
    font-size: 0.7em;
}

/* New: VHS overlay for scanlines and static */
#vhsOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Allows clicks to pass through */
    z-index: 99; /* Below BSOD (1000), OS header (100), resetButton (100) but above other content */
    background-image: 
        linear-gradient(rgba(0, 255, 0, 0.05) 1px, transparent 1px); /* Subtle green scanlines */
    background-size: 100% 2px; /* Line thickness */
    animation: vhs-scanline-flicker 0.1s infinite; /* Quick flicker */
    opacity: 0.6; /* Toned down from 0.8 (25% reduction) */
}

@keyframes vhs-scanline-flicker {
    0%, 100% { background-position: 0 0; }
    50% { background-position: 0 1px; } /* Slight vertical shift to simulate flicker */
}