.body {
    padding: 10px;
    font: 20px Verdana,sans-serif;
    line-height: 1.6;
}

.body a {
    font: 1em Verdana,sans-serif;
    text-decoration: none;
    color: #920000;
}

.body a:visited {
    font: 1em Verdana,sans-serif;
    color: grey;
    text-decoration: none;
}

.head {
    border-bottom: 1px solid #717171;
    color: white;
    padding: 8px 0 9px 5px;
    font: 16px Verdana,sans-serif;
    font-weight: bold;
    background: #aaa;
    clear: both;
    margin-bottom: 10px;
}

.head a {
    color: white;
    font-size: 0.6em;
}

.head span.desc {
    font-size: 0.6em;
}

.pub_data {
    margin: 15px 0;
}

.nav-menu li {
    padding: 12px 16px !important;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-bottom: 20px;
}

ul li {
    border-bottom: 1px solid #ccc;
    list-style: none;
    padding: 10px 0;
}

div.copy {
    padding-top: 10px;
    font: 13px Verdana,sans-serif;
    color: white;
    margin-bottom: 30px;
    text-align: center;
}

.copy #link-copy, 
.copy #link-copy:visited {
    font: 14px Verdana,sans-serif !important;
    color: white !important;
    text-decoration: none !important;
}

div.pub_data {
    color: grey;
    font-size: 14px;
    margin: 15px 0 20px 0;
}

div.pub_title h2 {
    padding: 0;
    margin: 0;
}

div#pub_lead,
div#pub_content {
    line-height: 1.5em;
}

div#pub_lead a,
div#pub_content a {
    text-decoration: underline;
}

div#navifoot {
    padding: 10px 0;
    clear: both;
}

div.copy a {
    font-size: 10px;
    color: #4C0000;
}

.data {
    color: grey;
    font-size: 12px;
}

hr {
    color: grey;
    border: 1px solid #ccc;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
}

/* Menu styles */
.menu-container {
    z-index: 1000;
}

.hamburger-button {
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #666;
    transition: all 0.3s;
}

.nav-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 250px;
}

.nav-menu.active {
    display: block;
}

.nav-menu ul {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.nav-menu li {
    padding: 8px 16px;
}

.nav-menu li:hover {
    background-color: #f7fafc;
}

.czerw a { color: #e53e3e; }
.szaryc a { color: #4a5568; }
.nieb a { color: #3182ce; }

/* Hamburger button animations */
.hamburger-button.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-button.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-button.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Dark mode styles */
@media (prefers-color-scheme: dark) {
    /* Force dark background for Safari iOS */
    html {
        background-color: #222;
    }
    
    body {
        background-color: #222;
    }
    
    * {
        background-color: #222;
    }

    /* Basic elements */
    body, 
    .body,
    .nav-menu,
    .nav-menu ul,
    article,
    #pub_content,
    #pub_lead {
        background-color: #222 !important;
        color: #eee !important;
    }
    
    /* Links */
    .body a {
        color: #ff6b6b !important;
    }
    
    /* Header */
    .head,
	.head a,
	.head * {
    background: #222 !important;
}
    
    /* Hamburger menu */
    .hamburger-button {
        background: #333 !important;
    }
    
    .hamburger-line {
        background-color: #eee !important;
    }
    
    .nav-menu {
        box-shadow: 0 4px 12px rgba(0,0,0,0.4) !important;
    }
    
    /* Menu items */
    .nav-menu li:hover {
        background-color: #333 !important;
    }
    
    /* Menu link colors */
    .czerw a { 
        color: #ff8080 !important;
    }
    .szaryc a { 
        color: #cccccc !important;
    }
    .nieb a { 
        color: #80b3ff !important;
    }
    
    /* Secondary text */
    .data, 
    .desc, 
    .pub_data,
    .copy,
    [style*="color: gray"] {
        color: #aaa !important;
    }
    
    /* Horizontal lines */
    hr {
        border-color: #444 !important;
    }
    
    /* All bottom links */
    .body > ul a,
    .copy a,
    #navifoot a,
    div[style*="clear:both"] a,
    .body h3 a,
    div[id^="pub_content"] a,
    a[href^="https://www."],
    a[href^="http://www."],
    a[href*="wirtualne"],
    article a,
    a[href*="katalog.di"],
    a strong,
    a > strong,
    a[href*="di.com.pl"],
    a[href*="/news/"],
    a[href*="/porady/"] {
        color: #ff6b6b !important;
    }

    /* Visited links */
    .body > ul a:visited,
    .copy a:visited,
    #navifoot a:visited,
    div[style*="clear:both"] a:visited,
    .body h3 a:visited,
    div[id^="pub_content"] a:visited,
    a[href^="https://www."]:visited,
    a[href^="http://www."]:visited,
    a[href*="wirtualne"]:visited,
    article a:visited,
    a[href*="katalog.di"]:visited,
    a[href*="di.com.pl"]:visited,
    a[href*="/news/"]:visited,
    a[href*="/porady/"]:visited {
        color: #cc5757 !important;
    }

    /* Hover effects */
    .body > ul a:hover,
    .copy a:hover,
    #navifoot a:hover,
    div[style*="clear:both"] a:hover,
    .body h3 a:hover,
    div[id^="pub_content"] a:hover,
    a[href^="https://www."]:hover,
    a[href^="http://www."]:hover,
    a[href*="wirtualne"]:hover,
    article a:hover,
    a[href*="katalog.di"]:hover,
    a[href*="di.com.pl"]:hover,
    a[href*="/news/"]:hover,
    a[href*="/porady/"]:hover {
        color: #ff8080 !important;
    }
}