/* AETHERIS - MASTER STYLE SHEET 
   Theme: High-End Terminal / Deep Space
   Optimized for: Chrome, Edge, Safari, Firefox
*/

* { box-sizing: border-box; }

body, html {
    margin: 0; padding: 0; width: 100%; height: 100%;
    background-color: #000; color: #fff;
    font-family: 'Segoe UI', sans-serif;
    display: flex; justify-content: center; align-items: center;
    overflow-x: hidden;
}

/* --- STARFIELD BACKGROUND --- */
.stars, .stars2 { position: fixed; top: 0; left: 0; width: 100%; height: 100%; }
.stars { background: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/123163/stars.png') repeat; opacity: 0.5; animation: move-stars 200s linear infinite; }
.stars2 { background: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/123163/twinkling.png') repeat; opacity: 0.3; animation: move-stars 100s linear infinite; }
@keyframes move-stars { from { background-position: 0 0; } to { background-position: -10000px 5000px; } }

/* --- GLOBAL CONTAINERS --- */
.container { position: relative; z-index: 10; text-align: center; max-width: 900px; padding: 40px 20px; }
.logo { width: 140px; filter: grayscale(100%) brightness(2.5); margin-bottom: 25px; }
h1 { font-size: 3.5rem; letter-spacing: 1.2rem; margin: 0; font-weight: 200; text-transform: uppercase; }
.subtitle { color: #666; letter-spacing: 0.4rem; font-size: 0.75rem; margin-top: 15px; margin-bottom: 50px; text-transform: uppercase; }

/* --- BUTTONS & GLOW --- */
.button-group { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.btn { padding: 15px 35px; text-decoration: none; font-size: 0.8rem; font-weight: bold; letter-spacing: 2px; text-transform: uppercase; transition: 0.4s; border: 1px solid #fff; border-radius: 2px; display: inline-block; cursor: pointer; }
.primary-btn { background: #000; color: #fff; }
.primary-btn:hover { background: #fff; color: #000; box-shadow: 0 0 25px #fff; transform: translateY(-3px); }
.secondary-btn { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.secondary-btn:hover { border-color: #fff; box-shadow: 0 0 20px rgba(255,255,255,0.4); transform: translateY(-3px); }

/* --- GALLERY PAGE (2x2 GRID & EDGE FIX) --- */
body.gallery-page { display: block !important; overflow-y: auto !important; height: auto !important; min-height: 100vh; }
.gallery-page .container { max-width: 1100px !important; margin: 0 auto !important; display: block !important; padding-top: 80px; }
.preview-grid { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 25px; margin-top: 50px; width: 100%; }
.preview-card { background: rgba(5,5,5,0.9); border: 1px solid #222; transition: 0.4s; cursor: pointer; text-align: left; }
.image-box { width: 100%; aspect-ratio: 16/9; overflow: hidden; border-bottom: 1px solid #222; }
.image-box img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: 0.5s; cursor: zoom-in; }
.preview-card:hover { border-color: #fff; transform: translateY(-5px); }
.preview-card:hover img { filter: grayscale(0%); }
.card-info { padding: 15px; }
.serial { font-size: 0.6rem; color: #444; letter-spacing: 2px; }
.card-info p { margin: 5px 0 0; font-size: 0.8rem; color: #888; }
.back-btn { display: block; margin-bottom: 30px; text-decoration: none; color: #555; font-size: 0.7rem; letter-spacing: 3px; }
.back-btn:hover { color: #fff; }

/* --- SUCCESS PAGE & TYPEWRITER --- */
body.success-page { display: flex !important; height: 100vh !important; }
.status-box { background: rgba(5, 5, 5, 0.9); border: 1px solid #fff; padding: 60px 40px; position: relative; overflow: hidden; box-shadow: 0 0 40px rgba(255, 255, 255, 0.1); max-width: 600px; width: 100%; }
.glow-text { text-shadow: 0 0 20px rgba(255, 255, 255, 0.8); }
.success-details p { font-family: 'Courier New', monospace; font-size: 0.9rem; color: #888; min-height: 1.2rem; margin: 8px 0; text-align: left; }
.highlight { color: #fff; }

/* Blinking Cursor */
#type-header::after { content: "|"; animation: blink 0.8s infinite; color: #fff; margin-left: 5px; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Scanline Effect */
.scanline { width: 100%; height: 10px; background: rgba(255, 255, 255, 0.05); position: absolute; top: -10px; left: 0; animation: scan 4s linear infinite; }
@keyframes scan { from { top: -10%; } to { top: 110%; } }

/* --- MODAL / LIGHTBOX --- */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); justify-content: center; align-items: center; }
.modal-content { max-width: 90%; max-height: 90%; border: 1px solid #333; animation: zoom 0.3s ease; }
@keyframes zoom { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.close { position: absolute; top: 20px; right: 35px; color: #fff; font-size: 40px; cursor: pointer; }

/* --- RESPONSIVENESS --- */
@media (max-width: 800px) {
    .preview-grid { grid-template-columns: 1fr !important; }
    h1 { font-size: 2rem; letter-spacing: 0.5rem; }
    .btn { width: 100%; margin-bottom: 10px; }
}
/* --- TOP NAVIGATION --- */
.top-nav {
    position: fixed;
    top: 0;
    right: 0;
    padding: 30px 40px;
    z-index: 100;
}

.login-link {
    text-decoration: none;
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 3px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 25px;
    transition: 0.3s;
}

.login-link:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 0 15px #fff;
}

/* --- LOGIN PAGE SPECIFICS --- */
.login-box {
    background: rgba(5, 5, 5, 0.95);
    border: 1px solid #222;
    padding: 50px;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.05);
}

.login-options {
    margin-top: 30px;
}

.discord-login {
    width: 100%;
    margin-bottom: 20px;
    background: #5865F2 !important; /* Discord Blurple */
    border: none !important;
}

.or-divider {
    margin: 25px 0;
    position: relative;
    text-align: center;
}

.or-divider::before {
    content: "";
    position: absolute;
    top: 50%; left: 0; width: 100%; height: 1px;
    background: #222;
    z-index: 1;
}

.or-divider span {
    background: #050505;
    padding: 0 15px;
    color: #444;
    font-size: 0.6rem;
    position: relative;
    z-index: 2;
}

.login-input {
    width: 100%;
    background: #000;
    border: 1px solid #222;
    padding: 15px;
    color: #fff;
    font-family: monospace;
    margin-bottom: 10px;
    outline: none;
    transition: 0.3s;
}

.login-input:focus {
    border-color: #fff;
}

/* Ensure centering on the login page */
body.login-page {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}
}