/* ==== Base ==== */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Courier New', Courier, monospace;
    background: #0f111a;
    color: #e2e8f0;
    line-height: 1.6;
    font-size: 16px;
}

header {
    background: #1a1c29;
    padding: 20px;
    text-align: center;
    border-bottom: 4px solid #fbbf24;
    box-shadow: 0 4px 0 rgba(0,0,0,0.5);
}

h1 { 
    color: #fbbf24; 
    margin-bottom: 10px; 
    text-transform: uppercase;
    letter-spacing: 2px;
}

h2 { 
    color: #8b5cf6;
    margin: 20px 0 10px; 
    text-transform: uppercase;
}

main { max-width: 1100px; margin: 20px auto; padding: 0 20px; }

footer {
    text-align: center;
    padding: 20px;
    background: #1a1c29;
    margin-top: 40px;
    font-size: 0.9em;
    color: #94a3b8;
    border-top: 2px solid #1a1c29;
}

/* ==== Class 1: .nav-link ==== */
nav { margin-top: 15px; }

.nav-link {
    display: inline-block;
    margin: 0 10px;
    padding: 8px 16px;
    color: #e2e8f0;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.nav-link:hover { 
    border-color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
}

.nav-link[aria-current="page"] {
    background: #fbbf24;
    color: #0f111a;
    box-shadow: 3px 3px 0px #b45309;
}

/* ==== Class 2: .gallery-grid ==== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* ==== Class 3: .gallery-img ==== */
.gallery-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 4px solid #1a1c29;
    background: #0f111a;
    transition: transform 0.1s steps(2, end), border-color 0.2s;
    image-rendering: pixelated;
    cursor: pointer;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.5);
}

.gallery-img:hover { 
    transform: translate(-20px, -20px);
    border-color: #fbbf24;
    box-shadow: 6px 6px 0px rgba(0,0,0,0.6); 
}

/* ==== Links list (selektory elementów) ==== */
main ul { list-style: none; margin-top: 15px; }

main ul li {
    background: #1a1c29;
    margin: 10px 0;
    padding: 12px 18px;
    border-left: 4px solid #8b5cf6;
    box-shadow: 2px 2px 0px rgba(0,0,0,0.5);
    transition: background 0.2s;
}

main ul li:hover { background: #232738; }

main ul li a { 
    color: #60a5fa;
    text-decoration: none; 
    font-weight: bold;
}

main ul li a:hover { text-decoration: underline; color: #fbbf24; }