body {
    background-image: url('/media/images/lain.png'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    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: 550px; 
    aspect-ratio: 1 / 1;
    margin-top: 5vh; 
    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;
}

.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;
}

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

.status {
    text-align: center;
    color: #ff00ff;
    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 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

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

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

.gallery-img {
    width: 100%;
    cursor: pointer;
    border: 1px solid #333;
    transition: 0.3s;
}

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

.modal {
    display: none; 
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.modal-content {
    width: 80vw;
    max-height: 85vh;
    border: 2px solid #00ffff;
    box-shadow: 0 0 30px #00ffff;
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.modal-content.zoomed {
    transform: scale(1.2);
    cursor: zoom-out;
}