/* Ogólne ustawienia */
html, body {
    height: 100%;
    margin: 0;
}

* {
    box-sizing: border-box;
}

body {
    max-width: 100%; /* Upewnia się, że strona nie przekracza szerokości ekranu */
    overflow-x: hidden; /* Ukrywa przewijanie poziome */
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

body {
    /*padding-top: 60px; /* Wysokość headera (dopasuj w zależności od designu) */
}

header {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*position: fixed;*/
    top: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
}

header .logo h1 {
	font-size: 24px;
    padding: 10px 10px;
}

header nav {
    margin-left: -20px; /* Ujemny margines przesunie całą nawigację w lewo */
}

header nav ul {
    list-style: none;
    display: flex;
    margin: 10px;
    padding: 0;
}

header nav ul li {
    margin-left: 10px;
	
}

header nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
}

/* Stylizacja listy nawigacyjnej */
.nav-buttons {
    list-style-type: none; /* Usunięcie punktów z listy */
    display: flex; /* Wyświetlenie elementów w jednej linii */
    gap: 10px; /* Odstęp między przyciskami */
    padding: 0;
    margin: 0;
}

/* Stylizacja każdego elementu nawigacji */
.nav-buttons li {
    margin: 0;
}

/* Stylizacja linków (przycisków) */
.nav-buttons li a {
    display: inline-block; /* Umożliwia nadanie rozmiaru linkowi */
    padding: 10px 20px; /* Padding w środku przycisku */
    background-color: #ff6f61; /* Kolor tła przycisków */
    color: white; /* Kolor tekstu */
    text-decoration: none; /* Usunięcie podkreślenia */
    border-radius: 5px; /* Zaokrąglenie rogów przycisków */
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.2s ease; /* Płynne przejścia przy efektach */
}

/* Efekt hover dla przycisków */
.nav-buttons li a:hover {
    background-color: #e05b50; /* Zmiana koloru tła po najechaniu */
    transform: scale(1.05); /* Delikatne powiększenie przycisku */
}

/* Stylizacja aktywnego przycisku */
.nav-buttons li a.active {
    background-color: #004085; /* Kolor tła aktywnego przycisku */
}


/* Logo i tekst obok siebie */
.logo {
    display: flex;
    align-items: center; /* Wyśrodkowanie logo i tekstu w pionie */
}

.logo a {
	color: #fff;
	font-size: 24px;
	text-decoration: none;
	font-family: Beatrice;
}

/* Ustawienia obrazu logo */
.logo-image {
    width: 50px; /* Początkowy rozmiar logo */
    height: 50px;
    margin-right: 10px; /* Odstęp między logo a tekstem */
    transition: transform 0.3s ease; /* Płynne powiększanie */
}

/* Powiększenie logo na hover */
.logo-image:hover {
    transform: scale(1.1); /* Powiększenie logo o 10% */
}

/* Ustawienia tekstu */
.logo h1 {
    font-size: 24px;
    margin: 0;
}

/* Sekcja hero */
.hero {
	background-image: url('images/background.webp');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 20px;
}

.hero h2 {
    font-size: 36px;
    margin: 0;
	color: white; 
	text-shadow: black 0.1em 0.1em 0.2em
}

.hero p {
    font-size: 18px;
    margin: 10px 0;
	text-shadow: black 0.1em 0.1em 0.2em
}

.cta-button {
    background-color: #ff6f61;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 18px;
    border-radius: 5px;
}

.cta-button:hover {
    background-color: #e05b50;
	transform: scale(1.05);
}

/* Sekcja produktów */
.products {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 40px; /* Odstęp między produktami */
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.product {
    display: flex;
    align-items: center;
    gap: 20px; /* Odstęp między obrazkiem a tekstem */
	transition: transform 1s ease;
}

/* Obrazek produktu */
.product-image {
    width: 40%; /* Szerokość obrazka */
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Delikatny cień dla obrazka */
}

/* Tekst produktu */
.product-info {
    width: 60%;
}

/* Reverse - zmiana kolejności obrazka i tekstu */
.product.reverse {
    flex-direction: row-reverse; /* Obrazek po prawej stronie */
}

/* Responsywność - ustawienie produktów jeden pod drugim na mniejszych ekranach */
@media (max-width: 768px) {
    .product {
        flex-direction: column; /* Produkty jeden pod drugim */
        text-align: center; /* Wyrównanie tekstu do środka */
    }

    .product.reverse {
        flex-direction: column; /* Resetowanie reverse dla mniejszych ekranów */
    }

    .product-image {
        width: 100%; /* Pełna szerokość obrazka na mniejszych ekranach */
    }

    .product-info {
        width: 100%; /* Pełna szerokość dla tekstu */
    }
}

.product img {
    max-width: 300px;
	max-height: 300px;
    border-radius: 10px;
}

.product h4 {
    margin: 15px 0 10px;
}

.product:hover {
    transform: scale(1.05);
}

/* Stopka */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
    width: 100%;
	transform: translate(0%, 200%);
}

/* Stylizacja linków społecznościowych w stopce */
.social-links {
    display: flex;
    justify-content: center; /* Wyśrodkowanie linków */
    gap: 20px; /* Odstępy między ikonami */
    padding: 20px 0;
}

.social-icon {
    text-decoration: none; /* Usunięcie podkreślenia z linków */
    color: white; /* Kolor ikon */
    font-size: 24px; /* Wielkość ikon */
    transition: color 0.3s ease; /* Płynne przejście zmiany koloru */
}

.social-icon:hover {
    color: #007bff; /* Zmiana koloru ikony po najechaniu myszką */
}

/* media */
@media (max-width: 768px) {
    header {
        flex-direction: column; /* Przeniesienie elementów nagłówka w jednej kolumnie */
        align-items: center; /* Wycentrowanie zawartości */
    }

    header nav ul {
        flex-direction: column; /* Menu w jednej kolumnie na mniejszych ekranach */
        align-items: center;
    }

    header nav ul li {
        margin: 10px 0; /* Zwiększenie marginesu między linkami w menu */
    }
}

/* Sekcja uploads */
.uploads {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.uploads h2 {
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.upload-form label {
    font-weight: bold;
}

.upload-form input[type="text"],
.upload-form input[type="email"],
.upload-form input[type="file"],
.upload-form input[type="order_no"] {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.upload-form button {
    background-color: #ff6f61;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.upload-form button:hover {
    background-color: #e05b50;
}

/* Ukrywanie nawigacji i dodanie hamburgera na urządzeniach mobilnych */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: white;
    transition: 0.3s;
}

/* Styl nawigacji mobilnej (menu schowane domyślnie) */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #333;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    nav.show {
        display: flex;
    }

    /* Przycisk hamburgera w stanie aktywnym (animacja) */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

.alert-success {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%); /* Przesunięcie o połowę szerokości i wysokości, aby wyśrodkować */
            background-color: #4CAF50;
            color: white;
            padding: 20px 30px;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            font-family: Arial, sans-serif;
            display: none; /* Domyślnie ukryty */
            z-index: 1000;
            font-size: 18px;
        }
		
.alert-failed {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%); /* Przesunięcie o połowę szerokości i wysokości, aby wyśrodkować */
            background-color: #ab3333;
            color: white;
            padding: 20px 30px;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            font-family: Arial, sans-serif;
            display: none; /* Domyślnie ukryty */
            z-index: 1000;
            font-size: 18px;
        }		
		/* Galeria */
.gallery {
    padding: 50px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.gallery h2 {
    font-size: 32px;
    margin-bottom: 40px;
    color: #333;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    justify-items: center;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Responsywność dla mniejszych ekranów */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    display: block;
    border-radius: 10px;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover, .close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}