/* ============================
   🌟 Modern Base Style
   ============================ */
body {
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    text-align: center;
    padding: 20px;
    margin: 0;
}

/* Mobile-friendly layout */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    padding: 10px;
}

.imgbox {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.imgbox:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.imgbox img {
    width: 100%;
    border-radius: 6px;
    cursor: pointer;
}

/* Buttons (GLOBAL) */
.mode-btn, .btn {
    padding: 12px 20px;
    background: #333;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    margin: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.mode-btn:hover, .btn:hover {
    background: #555;
    transform: scale(1.05);
}

/* Push notification */
#push {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ff0066;
    color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    display: none;
    font-size: 18px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    z-index: 9999;
}

#overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

#overlayImg {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain; /* verhindert Verzerrung */
    border-radius: 10px;
}


/* Countdown */
#countdownL, #countdownF {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 20px;
}


/* ============================
   💥 EXTREME 90ies / Windows 95 Mode
   ============================ */

body.nineties {
    background: url('../images/nyan.gif') repeat;
    font-family: "Comic Sans MS", cursive;
    color: #00ffea;
    text-shadow: 2px 2px 2px black;
    cursor: url('https://cur.cursors-4u.net/cursors/cur-2/cur116.cur'), auto;
}

body.nineties .imgbox {
    background: #c0c0c0;
    border: 4px solid #000;
    box-shadow: inset -2px -2px 0 #fff, inset 2px 2px 0 #7b7b7b,
                0 0 20px yellow, 0 0 40px magenta;
    padding: 0;
    transform: rotate(-2deg);
}

body.nineties .imgbox::before {
    content: "📁 95-Window";
    display: block;
    background: linear-gradient(to right, #000080, #0000aa);
    color: white;
    padding: 6px;
    font-weight: bold;
    font-size: 0.9rem;
    text-align: left;
}

body.nineties .imgbox img {
    width: 100%;
    border: 3px inset #fff;
}

body.nineties .btn,
body.nineties .mode-btn {
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    border: 4px ridge yellow;
    color: black;
    font-weight: bold;
    font-size: 1.3rem;
    padding: 14px;
    box-shadow: 0 0 15px #ff00ff, 0 0 25px #00ffff;
    animation: wiggle 0.3s infinite, neonPulse 1s infinite;
}

@keyframes wiggle {
    0% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg); }
    100% { transform: rotate(-2deg); }
}

@keyframes neonPulse {
    0% { box-shadow: 0 0 10px #ff00ff; }
    50% { box-shadow: 0 0 25px #00ffff; }
    100% { box-shadow: 0 0 10px #ff00ff; }
}

body.nineties #overlay {
    background: rgba(0,0,0,0.9);
    border: 8px dotted magenta;
}

body.nineties h1, body.nineties h2 {
    animation: blinkText 0.6s infinite;
    font-family: "Comic Sans MS", cursive;
}

@keyframes blinkText {
    0% { opacity: 1; }
    50% { opacity: 0.2; }
    100% { opacity: 1; }
}

body.nineties::after {
    content: "";
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 120px;
    height: 120px;
    background: url('../images/nyan.gif');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 99999;
}


/* ============================
   🔐 Modern Login Page
   ============================ */

.login-container {
    max-width: 380px;
    margin: 60px auto;
    background: #fff;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    text-align: center;
}

.login-container h1 {
    margin-bottom: 25px;
    font-size: 2rem;
    color: #333;
}

.login-form input {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-form input:focus {
    border-color: #666;
    box-shadow: 0 0 6px rgba(0,0,0,0.15);
    outline: none;
}

/* 🔥 FIX: Override global .btn inside login form */
.login-form .btn,
.login-form .btn-secondary {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
}

/* Secondary button (Password Reset) */
.btn-secondary {
    padding: 14px;
    font-size: 1.05rem;
    background: #666;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
    margin-top: 10px !important; /* Abstand zum Login-Button */
}

.btn-secondary:hover {
    background: #555;
    transform: scale(1.03);
}

.error-box {
    background: #ffdddd;
    color: #a00000;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #ffaaaa;
}

.link {
    display: inline-block;
    margin-top: 15px;
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.link:hover {
    color: #555;
}

.success-box {
    background: #ddffdd;
    color: #006600;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #aaffaa;
}
