/* Ustawienie globalne dla box-sizing */
* {
    box-sizing: border-box;
}

/* Istniejący style */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 100vh;
    background: #eee;
}

.header {
    width: 100%;
    display: flex;
    justify-content: center;
    background: #eee;
    padding: 0;
}

.header img {
    display: block;
    max-width: 100%;
    height: auto;
}

.container {
    width: 1200px;
    display: flex;
    background: #fff;
    position: relative;
}

.menu {
    display: flex;
    flex-direction: column;
    background: #eee;
    padding-top: 0;
    width: 150px;
}

.menu a {
    text-decoration: none;
    color: #000;
    padding: 15px;
    text-align: center;
    background: #e4e4e4;
    border-bottom: 1px solid #eee;
    transition: 0.3s;
}

a.active {
    background: #fff;
}

.menu a:hover {
    background: #fff;
}

.content {
    flex-grow: 1;
    background-color: #fff;
    max-width: 850px;
    margin: 0 auto;
    padding: 0;
    text-align: center;
    line-height: 2em;
}

.wciecie {
    text-indent: 80px;
}

h1 {
    text-align: center;
    font-size: 1em;
    color: #000;
}

h2 {
    font-family: Arial;
    text-align: left;
    font-size: 1.1em;
}

p {
    font-family: Georgia;
    text-align: justify;
    font-size: 1em;
    margin-bottom: 0;
}

p.right {
    text-align: right;
    margin-right: 10px;
}

.pmain {
    margin: 0 10px;
}

ul {
    list-style-type: disc;
    background-color: transparent;
}

.center {
    text-align: center;
}

.menu-toggle {
    position: fixed;
    top: 0;
    right: 0;
    margin: 0;
    padding: 0;
    appearance: none;
    border: none;
    outline: none;
    display: none;
    z-index: 1001;
}

.img1 {
width: 45%;
float: right;
margin: 0px 0px 0px 15px;
}

.div1 {
float: left;
width: 50%;
padding: 10px;
}

.div2 {
float: left;
width: 50%;
padding: 10px;
}

.header-mobile {
    display: none;
    width: 100%;

    img {
        width: 100%;
        height: auto;
    }
}

/* Media Queries dla responsywności */

/* Ekrany o szerokości do 1200px */
@media (max-width: 1200px) {
    body {
        padding-top: 41px;
    }
    .header{
        display: none;
    }
    .header-mobile {
        display: flex;
    }
    .container {
        width: 100%;
        flex-direction: column;
    }
    .menu-toggle {
        display: flex;
    }
    .menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 66.67%;
        flex-direction: column;
        background: #eee;
        box-shadow: -2px 0 5px rgba(0,0,0,0.5);
        z-index: 1000;
    }
    .menu.open {
        display: flex;
        top: 41px;
    }
    .menu a {
        flex: 1;
        font-size: 12px;
    }
    .content {
        padding: 24px;
        max-width: 100%;
        margin: 0;
    }
.img1 {
width: 50%;
float: right;
margin: 0px 0px 0px 15px;
}

.div1 {
margin: auto;
text-align: center;
float: none;
width: 60%;
padding: 10px;
}

.div2 {
margin: auto;
text-align: center;
float: none;
width: 60%;
padding: 10px;
}    
    
}

/* Ekrany o szerokości do 768px */
@media (max-width: 768px) {
    .menu {
        left: 0;
        width: 66.67%;
    }
    .header img {
        max-width: 90%;
    }
    .menu a {
        padding: 10px;
        font-size: 14px;
    }
    .content {
        font-size: 0.9em;
    }
    

.img1 {

float: none;
width: 95%;
margin: 0px 0px 0px 15px;
}

.div1 {
margin: auto;
text-align: center;
float: none;
width: 80%;
padding: 10px;
}

.div2 {
margin: auto;
text-align: center;
float: none;
width: 80%;
padding: 10px;
}    
    
    
}

/* Ekrany o szerokości do 480px */
@media (max-width: 480px) {
    .header img {
        max-width: 100%;
    }
    .menu a {
        padding: 8px;
        font-size: 12px;
    }
    .content {
        font-size: 0.85em;
    }
}

/* Overlay for mobile menu */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

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

.menu-toggle {
    align-items: center;
    justify-content: right;
    gap: 5px;
    padding: 8px 12px !important;
    font-size: 14px;
    font-weight: bold;
    height: 41px;
    background: #eeeeee;
    width: 100%;
    border-bottom: 1px solid #f7f7f7;
}

.menu-toggle img {
    width: 24px;
    height: 24px;
}

.menu-toggle span {
    color: #000;
    font-family: Arial, sans-serif;
}
