html, body {
    height: 100%;
    margin: 0;
    font-family: 'Libre Baskerville', serif;
    background-image: url('images/bg.jpg');
    background-repeat: repeat;
    color: #c4c4c4;
}


#navigation {
    animation: interference 8s infinite;
}


.main-container {
    margin-top: -120px;
    opacity: 0.85;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    padding: 40px;
}

/* --- NAVIGATION NA PRAWEJ --- */
#navigation {
    order: 2;
    width: 240px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 50px 20px;
}

/* efekt rozsypujących się liter */
@keyframes scatter {
    0% { letter-spacing: normal; transform: translateX(0); }
    30% { letter-spacing: 6px; transform: translateX(2px); }
    60% { letter-spacing: -1px; transform: translateX(-3px); }
    100% { letter-spacing: normal; transform: translateX(0); }
}

#navigation a {
    display: block;
    width: 100%;
    padding: 18px 20px;
    text-align: center;
    background: linear-gradient(to bottom, #2b2b2b, #1a1a1a);
    border: 2px solid #5a3c2f;
    border-radius: 14px;
    font-size: 17px;
    font-weight: bold;
    text-transform: uppercase;
    color: #d0c7be;
    text-decoration: none;
    box-shadow: 0 0 12px rgba(255, 120, 60, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

#navigation a:hover {
    background: #242424;
    border-color: #804b2b;
    box-shadow: 0 0 18px rgba(255, 120, 60, 0.25);
    animation: scatter 0.45s ease;
}

#navigation a::before {
    content: "✢";
    display: block;
    font-size: 20px;
    margin-bottom: 6px;
    color: #805c46;
}

/* --- CONTENT LEWA STRONA --- */
#content {
    order: 1;
    flex: 1;
    max-width: 820px;
}

.contentx {
    border: 3px double #6a4a35;
    background: rgba(18, 18, 18, 0.8);
    padding: 34px;
    border-radius: 12px;
    font-size: 18px;
    line-height: 1.85;
    color: #d1c6b7;
    letter-spacing: 0.6px;
    box-shadow: 0 0 30px rgba(255, 130, 80, 0.08);
    backdrop-filter: blur(3px);
    position: relative;
}

#header {
    background-image: url('images/head.jpg');
    background-repeat: no-repeat;
    background-position: center;
    height: 551px;
    width: 100%;
    margin-top: 0; 
    position: relative;
    z-index: 0; 
}

h1 {
    position: relative;
    display: inline-block;
    padding: 28px 50px;
    font-size: 26px;
    font-family: 'Cinzel Decorative', serif;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #d2c6b1;

    background: linear-gradient(to bottom, #241c17, #17120e);
    border: 2px solid #7a553c;

    /* TRAPEZ */
    clip-path: polygon(10% 0%, 90% 0%, 100% 100%, 0 100%);

    text-shadow: 0 0 8px rgba(255, 200, 150, 0.12);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

/* --- Blockquote old/abandoned dossier vibe --- */
blockquote {
    position: relative;
    border-left: 10px solid #6a4a35;
    border-right: 10px solid #6a4a35;
    border-top: 3px dashed #4f3a2e;
    border-bottom: 3px dashed #4f3a2e;
    padding: 34px 44px;
    background: linear-gradient(to right, #1c1c1c, #111);
    border-radius: 14px;
    box-shadow: 0 0 18px rgba(0,0,0,0.45);
    font-family: 'Georgia', serif;
    color: #c7b39a;
    margin: 40px auto;
    max-width: 880px;
    opacity: 0.85;
}

blockquote::before {
    content: "❛";
    font-size: 50px;
    color: #644832;
    position: absolute;
    top: 10px;
    left: 25px;
    opacity: 0.25;
}

blockquote::after {
    content: "❜";
    font-size: 50px;
    color: #644832;
    position: absolute;
    bottom: 10px;
    right: 25px;
    opacity: 0.25;
}

/* --- FORM ELEMENTS --- */
textarea, input, select {
    width: 100%;
    max-width: 600px;
    padding: 18px;
    margin: 14px 0;
    font-size: 16px;
    background: #181818;
    border: 2.5px solid #4d3a2c;
    border-radius: 8px;
    color: #d3c8be;
    box-shadow: inset 0 0 7px rgba(0, 0, 0, 0.4);
    caret-color: #b87a52;
    transition: all 0.3s ease;
}

textarea:focus, input:focus, select:focus {
    outline: none;
    background-color: #1f1f1f;
    border-color: #805434;
    box-shadow: 0 0 14px rgba(200, 120, 70, 0.5);
}

/* --- FOOTER --- */
#footer {
    background: linear-gradient(135deg, #1b1b1b 0%, #111 60%, #0c0c0c 100%);
    color: #a08c74;
    text-align: center;
    padding: 80px 34px;
    margin-top: 90px;
    border-top: 4px double #503c2d;
    clip-path: polygon(0 60px, 12% 48px, 22% 60px, 32% 50px, 42% 68px, 
                       50% 55px, 62% 70px, 72% 56px, 84% 66px, 100% 78px, 
                       100% 100%, 0 100%);
    box-shadow:
        inset 0 12px 24px rgba(0,0,0,0.4),
        0 12px 18px rgba(0,0,0,0.6);
    font-family: 'Cinzel Decorative', serif;
    font-size: 19px;
    letter-spacing: 0.9px;
    position: relative;
    overflow: hidden;
}

#footer a {
    color: #d1b29a;
    text-decoration: none;
    border-bottom: 1.8px dashed #7a5b43;
    padding-bottom: 2px;
    transition: color 0.3s ease, border-color 0.3s ease, text-shadow 0.3s ease;
}

#footer a:hover {
    color: #f8e7d2;
    border-bottom: 1.8px solid #926d4c;
    text-shadow: 0 0 10px rgba(255, 230, 200, 0.6);
}

/* --- Misc Typography --- */
b, strong {
    background-color: #3a2c22;
    color: #e2d5c3;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: bold;
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

i, em {
    color: #c39b73;
    font-style: italic;
    background: #1b1b1b;
    padding: 2px 6px;
    border-radius: 4px;
}

a {
    color: #c8b59f;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid #5f4735;
    transition: color 0.3s ease, border-color 0.3s ease;
}

a:hover, a:focus {
    color: #f0dac1;
    border-bottom-color: #8a6a52;
    text-shadow: 0 0 6px rgba(255, 200, 150, 0.6);
}

a:active {
    color: #b89a7c;
    border-bottom-color: #705340;
}