body {
    /* Replace 'lain.png' with the actual path to your file */
    background-image: url('/media/images/lain.png'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* This keeps it from scrolling with the content */
    
    /* Fallback color if the image fails to load */
    background-color: #0a0a0f; 
    
    overflow: hidden;
    color: #00ffff;
    font-family: 'Courier New', Courier, monospace;
    display: flex;
    justify-content: center;
    padding: 20px;
    margin: 0;
    min-height: 100vh;
}

.container {
    background-color: rgba(10, 10, 15, 0.8); 
    width: 500px; 
    height: 500px; 
    aspect-ratio: 1 / 1;
    margin-top: 5vh; 
    
    /* The Glow */
    border: 2px solid #00ffff;
    animation: wired-glow 3s infinite ease-in-out;
    
    padding: 25px;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Optional: Add a CRT Scanline effect over the container */
.container::before {
    content: " ";
    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));
    background-size: 100% 4px, 3px 100%;
    pointer-events: none;
    z-index: 2;
}

@keyframes wired-glow {
    0% { box-shadow: 0 0 10px rgba(0, 255, 255, 0.4), inset 0 0 5px rgba(0, 255, 255, 0.2); }
    50% { box-shadow: 0 0 25px rgba(0, 255, 255, 0.7), inset 0 0 10px rgba(0, 255, 255, 0.4); }
    100% { box-shadow: 0 0 10px rgba(0, 255, 255, 0.4), inset 0 0 5px rgba(0, 255, 255, 0.2); }
}

@keyframes text-flicker {
    0% { opacity: 0.9; text-shadow: 0 0 5px #00ffff; }
    50% { opacity: 1; text-shadow: 0 0 15px #00ffff, 0 0 20px #00ffff; }
    100% { opacity: 0.9; text-shadow: 0 0 5px #00ffff; }
}

@font-face {
    font-family: 'LainFont';
    src: url('LoveLetterTypewriter.ttf');
}

p, .download-btn {
    font-family: 'JetBrains Mono', monospace;
}
h1 {
    font-family: 'LainFont', 'Courier New', monospace;
    font-size: 2rem;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
    letter-spacing: 10px; /* Makes it look more like the title cards */
}

h1, h2 {
    text-align: center;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.status {
    text-align: center;
    color: #ff00ff; /* Purple accent like your terminal lambda */
    font-size: 0.8rem;
    margin-bottom: 40px;
}

.download-btn {
    display: block;
    width: 200px;
    margin: 20px auto;
    padding: 15px;
    text-align: center;
    border: 1px solid #00ffff;
    color: #00ffff;
    text-decoration: none;
    transition: all 0.3s;
}

.download-btn:hover {
    background-color: #00ffff;
    color: #0a0a0f;
    box-shadow: 0 0 20px #00ffff;
}

.grid img {
    width: 100%;
    border: 1px solid #333;
    filter: grayscale(50%);
    transition: 0.3s;
}

.grid img:hover {
    filter: grayscale(0%);
    border-color: #00ffff;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 10px;
}

.gallery-img {
    width: 100%;
    aspect-ratio: 16 / 9; /* Keeps thumbnails consistent */
    object-fit: cover;
    border: 1px solid #00ffff;
    cursor: pointer;
}

/* ... keep your previous CSS here ... */

.gallery-img:hover {
    border-color: #00ffff;
    box-shadow: 0 0 10px #00ffff;
}

/* The Lightbox Background */
.modal {
    display: none; 
    position: fixed; /* Fixes it to the screen, not the container */
    z-index: 9999; 
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9); /* Deep dark background */
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
    backdrop-filter: blur(15px); /* Blurs the matrix background behind the image */
}

/* The Image itself */
.modal-content {
    max-width: 85%;
    max-height: 85%;
    border: 2px solid #00ffff;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: zoom-in;
    object-fit: contain;
}

/* The 2nd Click Zoom */
.modal-content.zoomed {
    transform: scale(1.4); /* Makes it push past the 85% limit */
    cursor: zoom-out;
}