html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    color: #333;
    margin: 0;
    padding: 0;
}

body > *:not(footer) {
    flex: 1;
}

h1 {
    color: #007bff;
    text-align: center;
    margin: 0;
    padding: 20px;
    background-color: #f9f9f9;
}

p {
    margin-left: 20px;
}   

nav {
    background-color: #007bff;
    padding: 10px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav ul li a:hover {
    text-decoration: underline;
}
section {
    padding: 20px;
    margin: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
}

section h2 {
    color: #007bff;
}

section .gallery {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.gallery img {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.gallery img:hover {
    transform: scale(1.1);
    padding: 20px;
    margin: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
}

html {
    scroll-behavior: smooth;
}


form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

form input, form textarea, form button {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

form button {
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}

form button:hover {
    background-color: #0056b3;
}

#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#back-to-top:hover {
    background-color: #0056b3;
}

footer {
    text-align: center;
    padding: 10px;
    background-color: #333;
    color: white;
    margin-top: 20px; /* Dodaje odstęp od treści powyżej */
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 5px 0;
    }

    .gallery {
        flex-direction: column;
        align-items: center;
    }

    .services-container {
        flex-direction: column;
        align-items: center;
    }

    aside {
        display: none; /* Ukryj reklamę na małych ekranach */
    }

    section {
        margin: 10px;
    }

    section h2 {
        font-size: 20px;
    }

    form input, form textarea, form button {
        font-size: 14px;
    }
}

/* Animacja fade-in dla sekcji */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeIn 1s ease-in-out;
}
/* Styl dla przycisku "Zgłoś błąd" */
#report-error {
    position: fixed;
    bottom: 20px;
    left: 20px;
    padding: 10px 15px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: none; /* Ukryj przycisk na początku */
}

a {
    text-decoration: none;
    color: #007bff;
    transition: color 0.3s;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}
/* Styl dla ciemnego trybu */
body.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

body.dark-mode nav {
    background-color: #1e1e1e;
}

body.dark-mode footer {
    background-color: #1e1e1e;
}

body.dark-mode section {
    background-color: #1e1e1e;
    border: 1px solid #333;
}
/* Styl dla modala */
#modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    position: relative;
}

#close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 20px;
}
/* Styl dla przycisku "Zgłoś błąd" w trybie ciemnym */
body.dark-mode #report-error {
    background-color: #dc3545;
    color: white;
}
/* Styl dla przycisku "Zgłoś błąd" w trybie jasnym */
body #report-error {
    background-color: #dc3545;
    color: white;
}

/* Styl dla lightbox */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
}

.hidden {
    display: none;
}