html, body {
    height: 100%;
    font-family: 'Source Sans Pro', serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal overflow */
    background:#f9f9f9;
    font-display: swap;
    overflow-y: auto;
    line-height: 1.4;
}

header {
    background-color: black; /* Change header color to black */
    padding: 20px;
    text-align: left; /* Align header text to the left */
    position: relative; /* Position relative for the button */
}

header h1 {
    color: white; /* Keep header text color white */
    display: inline; /* Keep header text inline with the button */
    margin-left:80px;
    margin-right:100px;
}

h1, h2, h3 {
    font-family: 'Source Sans Pro', serif;
    font-size: 36px;
    text-align: center;
}

.menu-toggle {
    background-color: black; /* Change menu toggle button color to black */
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    position: absolute; /* Position the button */
    right: 20px; /* Align to the right */
    top: 20px; /* Align to the top */
    display: none; /* Hide by default */
}

nav {
    background-color: black; /* Change nav background color to black */
    width: 100%; /* Ensure nav takes full width */
    
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end; /* Align menu items to the right */
    flex-wrap: wrap; /* Allow items to wrap if necessary */
    margin-left:100px;
    margin-right:100px;
}

nav ul li {
    margin: 0 10px; /* Horizontal spacing */
}

nav ul li a {
    color: white; /* Keep menu item text color white */
    text-decoration: none;
    padding: 10px 15px;
    transition: color 0.3s; /* Smooth color transition */
}

/* Kolor zmieniający się na hover - tylko tekst */
nav ul li a:hover {
    color: #ce9341; /* Kolor tekstu podczas najechania */
}

/* Aktywny element menu - zmiana koloru tekstu */
nav ul li a.active {
    color: #ce9341; /* Kolor tekstu dla aktywnej zakładki */
    font-weight: bold; /* Opcjonalnie pogrubienie aktywnej zakładki */
}

#fb_icon{
    max-width: 40px;
    max-height: 40px;
}


.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 65vh; /* Zapewnia pełną wysokość ekranu */
    margin-left:100px;
    margin-right:100px;
    background:#f9f9f9;
}

.content {
    flex-grow: 1; /* Wypełnia dostępne miejsce */
}

.footer {
    font-family: "Source Sans Pro", serif !important;
    background: black;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center; /* Wyrównanie zawartości w stopce */
}

.footer-left {
    font-family: "Source Sans Pro", serif !important;
    flex: 1;
    margin-left:80px;
}

.footer-right {
    text-align: right;
    margin-right:80px;
}

.footer-right .logo {
    margin-bottom: 10px;
}

#footer-site-link {
    margin-top: 5px;
}

.footer a {
    color: #ce9341;
    text-decoration: none;
}

/* Stylizacja formularza kontaktowego */
#contact_form {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background-color: #f9f9f9;
}

.contact_form {
    width: 100%;
    max-width: 600px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact_form h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.contact_form input, .contact_form textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.contact_form textarea {
    height: 150px;
    resize: none;
}

.contact_form input[type="submit"] {
    background-color: #ce9341;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 12px;
    transition: background 0.3s;
}

.contact_form input[type="submit"]:hover {
    background-color: #f8950a;
}

.contact_form p {
    font-size: 14px;
    color: #666;
    text-align: center;
}


.gallery-container {
    width: 80%;
    margin: auto;
}

.gallery-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.gallery-row img {
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.gallery-row img:hover {
    transform: scale(1.1);
}

.horizontal img {
    width: 200px;
    height: auto;
}

.vertical img {
    width: auto;
    height: 250px;
}

.preview {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.preview img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 24px;
    cursor: pointer;
}



/* Mobile Styles */
@media (max-width: 999px) {
    .menu-toggle {
        display: block; /* Show the menu toggle button on mobile */
    }

    nav {
        display: none; /* Hide the nav by default on mobile */
        width: 100%; /* Full width */
    }

    nav.active {
        display: block; /* Show nav when active */
    }

    nav ul {
        flex-direction: column; /* Stack menu items vertically */
        align-items: flex-start; /* Align items to the left */
    }

    nav ul li {
        margin: 10px 0; /* Add margin for vertical spacing */
    }

    nav ul li a {
        padding: 10px; /* Adjust padding for mobile */
    }

    .contact_form {
        padding: 20px;
        width: 80%;
    }

    header h1 {
        color: white; /* Keep header text color white */
        display: inline; /* Keep header text inline with the button */
        margin-left:5px !important;
        margin-right:5px !important;
    }

    .wrapper {
        display: flex;
        flex-direction: column;
        min-height: 50vh; /* Zapewnia pełną wysokość ekranu */
        margin-left:10px !important;
        margin-right:10px !important;
    }

    h1, h2, h3 {
        font-family: "Source Sans Pro", serif;
        font-size: 20px;
        text-align: center;
    }

    .footer-left {
        flex: 1;
        margin-left:5px;
    }
    
    .footer-right {
        text-align: right;
        margin-right:5px;
    }

    .contact_form input, .contact_form textarea {
        width: 80%;
        padding: 10px;
        margin: 10px 0;
        border: 1px solid #ccc;
        border-radius: 5px;
        font-size: 16px;
        
    }

    .gallery-container {
        width: 100%;
        padding: 10px;
    }

    .gallery-row {
        flex-direction: column;
        align-items: center;
    }

    .horizontal img,
    .vertical img {
        width: 90%;
        height: auto;
    }


    .preview {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.8);
        align-items: center;
        justify-content: center;
    }

    .preview img {
        max-width: 90%;
        max-height: 90%;
        border-radius: 10px;
    }

    .close-btn {
        position: absolute;
        top: 20px;
        right: 20px;
        color: white;
        font-size: 24px;
        cursor: pointer;
    }
        
    

    
}

/* Desktop Styles */
@media (min-width: 1000px) {
    .menu-toggle {
        display: none; /* Hide the menu toggle button on desktop */
    }

    nav {
        display: flex; /* Show the nav by default on desktop */
    }

    nav ul {
        flex-direction: row; /* Keep menu items in a row */
        justify-content: flex-end; /* Align menu items to the right */
    }

    nav ul li {
        margin: 0 15px; /* Horizontal spacing */
    }
}
