/* --- FUNDAMENTY --- */
body {
    background-color: #000;
    background-image: url('https://web.archive.org/web/20091027082333im_/http://geocities.com/Paris/6141/stars.gif');
    background-attachment: fixed;
    color: #00FF00; /* Klasyczny zielony terminal */
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    margin: 0;
    padding: 0;
    /* KURSOR (Magiczna Różdżka) */
    cursor: url('https://web.archive.org/web/20091023151929im_/http://geocities.com/Area51/Cavern/3132/wand.ani'), auto;
}

/* --- KONTENER GŁÓWNY --- */
#wrapper {
    width: 95%;
    max-width: 1200px;
    margin: 20px auto;
    background: rgba(0, 0, 0, 0.8);
    border: 4px ridge #FF00FF; /* Różowa ramka */
    padding: 15px;
    box-shadow: 0 0 20px #FF00FF, 0 0 40px #00FFFF;
}

/* --- NAGŁÓWEK --- */
.glitch-text {
    font-size: 3.5rem;
    color: #fff;
    text-shadow: 4px 4px #FF00FF, -4px -4px #00FFFF;
    letter-spacing: 5px;
    animation: shake 0.5s infinite;
}

@keyframes shake {
    0% { transform: translate(0,0); }
    25% { transform: translate(2px, 2px); }
    50% { transform: translate(-2px, 2px); }
    75% { transform: translate(2px, -2px); }
    100% { transform: translate(0,0); }
}

.divider {
    width: 80%;
    height: 30px;
    margin: 10px 0;
}

.marquee-zone {
    background: #FF00FF;
    color: #000;
    font-weight: bold;
    border: 2px inset #fff;
    margin: 10px 0;
}

/* --- LAYOUT SIATKA --- */
#layout {
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    gap: 15px;
}

/* --- STYLIZACJA OKIENEK WINDOWS --- */
.win-box {
    background: #c0c0c0; /* Klasyczny szary */
    border: 3px outset #fff;
    margin-bottom: 15px;
    color: #000;
}

.win-title {
    background: linear-gradient(90deg, #000080, #0080ff);
    color: #fff;
    padding: 3px 8px;
    font-weight: bold;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid #000;
}

.win-body {
    padding: 10px;
}

.win-body.center {
    text-align: center;
}

/* --- NAWIGACJA --- */
.nav-links {
    list-style: none;
    padding: 5px;
    margin: 0;
}

.nav-links li a {
    display: block;
    background: #fff;
    border: 1px solid #000;
    color: #000;
    text-decoration: none;
    margin-bottom: 5px;
    padding: 5px;
    text-align: center;
}

.nav-links li a:hover {
    background: #FFFF00;
    color: #FF00FF;
    font-weight: bold;
    transform: scale(1.05);
}

/* --- EFEKTY TREŚCI --- */
.main-window h2 {
    color: #000080;
    text-decoration: underline;
}

.blink {
    animation: blink-animation 0.8s steps(5, start) infinite;
}

@keyframes blink-animation {
    to { visibility: hidden; }
}

.counter {
    background: #000;
    color: #f00;
    font-family: 'Courier New', sans-serif;
    font-size: 2rem;
    padding: 5px;
    border: 2px inset #888;
    display: inline-block;
}

.gif-grid img {
    width: 60px;
    height: 60px;
    margin: 5px;
    border: 1px solid #000;
}

/* --- PŁYWAJĄCE ELEMENTY --- */
.floating-gif {
    position: fixed;
    z-index: 1000;
    pointer-events: none;
}

/* --- RESPONSYWNOŚĆ --- */
@media (max-width: 800px) {
    #layout {
        grid-template-columns: 1fr;
    }
}