body {
    background-color: #222034;
    margin: 0;
    padding: 0;
    color: #eeeeee;
    font-family: arial, helvetica;
    font-size: 11pt;
}

.small {
    font-size: 9pt;
}

h3 {
    color: #d9d9ff;
    font-size: 11pt;
}

h2 {
    font-size: 13.5pt;
    font-weight: bold;
    color: #9999FF;
    margin-top: 20px;
}

h1 {
    font-family: "arial narrow", arial, helvetica;
    font-size: 24pt;
    font-weight: bold;
    color: #9999FF;
    text-align: center;
    letter-spacing: 6px;
}

em {
    color: #d9d9ff;
}

a:link {
    color: #9999FF;
}

a:visited {
    color: #999999;
}

a:active {
    color: #999999;
}

a:hover {
    color: #cccccc;
    cursor: pointer;
}

ul {
    font-family: "Geist Pixel", sans-serif;
    list-style-type: circle;
}

blockquote {
    margin-left: 2px;
    padding-left: 15px;
    border-left: 2px solid #9999FF;
}

/* ========== FIXED HEADER ========== */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #222034;;
    z-index: 1000;
}

/* Header */
.head {
    width: 750px;
    height: 180px;
    margin: 0 auto;
    color: #222034;
    background-image: url(images/top.gif);
    border-bottom: solid 0.5px #9999FF;
    border-left: 2px solid #9999FF;
    border-right: 2px solid #9999FF;
    text-align: left;
    font-family: "UnifrakturCook", cursive;
    font-weight: 700;
    font-style: normal;
}

.headarea {
    display: flex;
    height: 100%;
}

.headarea a {
    text-decoration: none;
    font-size: 20px;
    line-height: 40px;
    letter-spacing: 3px;
    padding-left: 10px;
    padding-top: 140px;
}

.headarea a:hover {
    text-shadow: 0 0 3px #eee;
}

/* ========== NAVIGATION ========== */
.navi {
    width: 750px;
    margin: 0 auto;
    height: 30px;
    border-bottom: solid 0.5px #9999FF;
    border-left: 2px solid #9999FF;
    border-right: 2px solid #9999FF;
}
.dropbtn {
    font-size: 7px;
    padding-left: 1px;
    padding-right: 24px;
    white-space: nowrap;
}

.navi ul {
    display: flex;
    height: 100%;
    justify-content: space-between;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.navi li {
    padding: 5px;
    display: block;
    align-content: center;
    width: 100px;
    overflow-x: hidden;
}

.navi li.dropdown {
    display: inline-block;
    background: transparent;
}

.navi li:hover, .navigation li.dropdown:hover {
    background-color: #2b2b2b;
    color: var(--bright);
    text-shadow: 0 0 3px #eee;
}

.navi a {
    display: inline-block;
    text-decoration: none;
    background: transparent;
    text-align: center;
    margin-bottom: 4px;
    padding-bottom: 2px;
    padding-top: 2px;
    line-height: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #9999FF;
    width: inherit;
}

.navi a:hover {
    color: white;
    text-decoration: underline;
}

.dropdown-content {
    display: none;
    position: absolute;
    width: 90px;
    padding: 4px;
    border: 1px solid #9999FF;
    background-color: black;
    z-index: 1;
}

.dropdown-content a {
    padding: 4px;
    text-decoration: none;
    display: block;
    text-align: center;
    width: auto;
}

.dropdown-content a:hover {
    background-color: #9999FF;
    width: auto;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* ========== MAIN WRAPPER ========== */
.main-wrapper {
    display: flex;
    justify-content: center;
    max-width: 1100px;
    margin: 30px auto;
    gap: 20px;
    padding: 0 10px;
}

.content-offset {
    margin-top: 75px; /* offset dla fixed header */
}

/* ========== SIDEBAR (LEWA STRONA) ========== */
.sidebar {
    width: 250px;
    flex-shrink: 0;
    background-color: #1a1a1a;
    border: 2px solid #9999FF;
    padding: 15px;
    padding-top: 30px;
    box-sizing: border-box;
    align-self: flex-start;
    position: sticky;
    top: 220px;
    height: fit-content;
    min-height: 200px;
    font-family: "Geist Pixel", sans-serif;
}

.sidebar h3 {
    margin-top: 0;
}

.sidebar p {
    font-size: 10pt;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar ul li {
    padding: 5px 0;
    border-bottom: 1px solid #2b2b2b;
}

.sidebar ul li:last-child {
    border-bottom: none;
}

/* ========== MAIN CONTENT (PRAWA STRONA) ========== */
.main-content {
    flex: 1;
    min-width: 0;
    max-width: 750px; /* ogranicza szerokoÅ›Ä‡ do oryginalnego kontenera */
    box-sizing: border-box;
}

.body {
    margin-top: 150px;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.body img {
    max-width: 100%;
}

/* ========== FOOTER ========== */
.main-wrapper.content-offset {
    flex: 1;
}

.foot {
    width: 100%;
    max-width: 750px;
    margin: 10px auto;
    text-align: center;
    border-top: solid 0.5px #9999FF;
    border-left: 1px solid #9999FF;
    border-right: 1px solid #9999FF;
    border-bottom: 1px solid #9999FF;
    padding-top: 10px;
    padding-bottom: 2px;
    font-size: 9pt;
    box-sizing: border-box;
}
/* ========== FONTS ========== */
.unifrakturcook-bold {
    font-family: "UnifrakturCook", cursive;
    font-weight: 700;
    font-style: normal;
    /* ========== RESPONSIVE / MOBILE ========== */

@media (max-width: 1050px) {
    .main-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .sidebar {
        width: 90%;
        max-width: 750px;
        position: static;
    }
}

@media (max-width: 768px) {
    .head {
        width: 100%;
        height: auto;
        padding: 20px;
        box-sizing: border-box;
    }

    .headarea a {
        padding-top: 20px;
        font-size: 16px;
    }

    .navi {
        width: 100%;
        flex-wrap: wrap;
        height: auto;
    }

    .navi ul {
        flex-direction: column;
        align-items: center;
    }

    .navi li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #9999FF;
    }

    .dropbtn {
        font-size: 11px;
        padding: 10px;
    }

    .dropdown-content {
        position: static;
        width: 100%;
        text-align: center;
    }

    .main-content {
        width: 100%;
        max-width: 100%;
    }

    .body {
        margin-top: 20px;
        padding: 15px;
    }

    h1 {
        font-size: 18pt;
        letter-spacing: 3px;
    }

    h2 {
        font-size: 11pt;
    }

    .foot {
        width: 100%;
        max-width: 100%;
        margin: 10px 0;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 100%;
        padding: 10px;
    }

    .sidebar ul li {
        border-bottom: 1px solid #333;
    }

    .sidebar img {
        width: 40px;
        height: auto;
    }

    .content-offset {
        margin-top: 120px;
    }

    .body img {
        max-width: 100%;
        height: auto;
    }
}
}
