html, body {
    width: 100%;
    overflow-x: hidden; /* Ukrywa przewijanie w poziomie */
}

/* Ekran ładowania */
#loading-screen {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1s ease-in-out; /* Płynne zanikanie */
    opacity: 1; /* Początkowa widoczność */
}

/* Ukrycie z płynnym efektem */
#loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}


/* Animacja ładowania */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #ddd;
    border-top-color: #81c134;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


#popup-container {
    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: 9999;

}

#popup {
    position: relative;
    border-radius: 8px;
    max-width: 90%;
    max-height: 90%;
    overflow: hidden;
    text-align: center;
    border: 5px solid #81c134;
}

#popup img {
    display: block;
    max-width: 100%;
    height: auto;
}

#close-popup {
    position: absolute;
    width: 40px;
    height: 40px;
    top:20px;
    right:20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: black;
    cursor: pointer;
    background: none;
    border: none;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    overflow: hidden;
    background-color: #81c134;
}

#close-popup #progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: conic-gradient(
        #ecf2db var(--progress, 100%),
        transparent var(--progress, 100%),
        transparent 100%
    );
    border-radius: 50%;
    z-index: -1;
    transition: background 0.1s linear; /* Płynna zmiana gradientu */
}


/* Karuzela główna */
.main-slider .item-slider {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 0.5s ease-in-out;
}

.item-slider {
    position: relative; /* Ustawienie pozycji względem kontenera */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden; /* Ukrycie nadmiarowego pseudoelementu */
}

.item-slider::before {
    content: ''; /* Wymagane dla pseudoelementu */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Półprzezroczysta czarna warstwa */
    z-index: 1; /* Pseudoelement pod treścią */
}

.item-slider .event-info, .item-slider .order-info {
    position: relative; /* Przesunięcie treści nad przyciemnione tło */
    z-index: 2; /* Treść nad pseudoelementem */
}

.event-info, .order-info {
    height: 400px; /* Domyślna wysokość dla większych ekranów */
    background-size: cover;
    background-position: center;
    color: white;
    padding: 20px;
    margin: 0 5%;
    text-align: left;
    border-radius: 5px;
    text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.7);
    display: flex; /* Użycie flexboxa dla lepszego układu */
    flex-direction: column;
    justify-content: center; /* Wyśrodkowanie treści w pionie */

}

/* Karuzela główna */
.item-slider .event-info, .item-slider .order-info {
    font-size: 1.8rem; /* Zwiększenie rozmiaru fontów */
    padding: 30px; /* Większe odstępy wewnętrzne */
    line-height: 1.6; /* Poprawiona czytelność */
}

.event-info h1, .order-info h1 {
    font-size: 4rem; /* Powiększenie głównych nagłówków */
    font-weight: 900;
    margin-bottom: 20px;
}

.event-info p, .order-info p {
    font-size: 1.8rem; /* Większy tekst dla opisów */
}

/* Responsywność dla mobilnych urządzeń */
@media (max-width: 768px) {
    .event-info h1, .order-info h1 {
        font-size: 2.5rem; /* Mniejszy rozmiar na mobilnych */
    }
    .event-info p, .order-info p {
        font-size: 1.2rem;
    }
}

/* Sekcja kategorii */

.category-container {
    margin-top: -500px;
    padding-right: 20px;
    padding-left: 20px;
}

.homepage-categories .category-slider .item {
    background-color: #ecf2db;
    text-align: center;

    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .homepage-categories .category-slider .item {
        height: 350px;
    }
}


.homepage-categories .category-slider .image-holder {
    aspect-ratio: 16 / 9; /* Zapewnienie proporcji obrazów */
    background-size: cover;
    background-position: center;
    border-radius: 10px;
}

.homepage-categories h2 {
    font-size: 1.5rem;
    margin-top: 15px;
}
.homepage-categories .category-slider .button {
    display: inline-block;
    margin-top: 10px;
    padding: 12px 25px;
    color: #fff;
    background-color: #28a745;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1rem; /* Większe przyciski */
}
.homepage-categories .category-slider .button:hover {
    background-color: #218838;
}





/* Sekcja call-us */
.call-us {
background: linear-gradient(135deg, #ecf2db, #a8d5ba, #5ca4a9);

    padding: 50px 0; /* Odstępy u góry i na dole */
    text-align: center; /* Wycentrowanie treści */
    font-family: 'Arial', sans-serif;
}

/* Nagłówki */
.call-us h2 {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 20px;
}

.call-us h3 {
    font-size: 1.5rem;
    color: #555;
    margin-top: 20px;
}

/* Link akcji */
.call-us .category-link {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    background-color: #28a745; /* Zielone tło */
    color: #fff; /* Biały tekst */
    border-radius: 5px; /* Zaokrąglone rogi */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Delikatny cień */
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.call-us .category-link:hover {
    background-color: #218838; /* Ciemniejsza zieleń na hover */
    transform: scale(1.05); /* Delikatne powiększenie */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Większy cień na hover */
}

/* Responsywność */
@media (max-width: 992px) {
    .call-us h2 {
        font-size: 1.8rem;
    }
    .call-us h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .call-us h2 {
        font-size: 1.5rem;
    }
    .call-us h3 {
        font-size: 1.1rem;
    }
    .call-us .category-link {
        padding: 8px 15px;
        font-size: 1rem;
    }
}



/* Responsywność */
@media (max-width: 768px) {


    .main-slider .item {
        height: 300px;
    }

    .homepage-categories .category-slider .item {
        padding: 10px;
    }

    footer .row {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    footer .col-md-3, footer .col-md-4 {
        margin-bottom: 20px;
    }

    .event-info, .order-info {
        height: 300px; /* Zmniejszenie wysokości na tabletach */
        padding: 15px; /* Mniejszy padding */
        font-size: 0.9rem; /* Dostosowanie rozmiaru tekstu */
        text-align: center; /* Wyśrodkowanie tekstu */
    }
}

@media (max-width: 576px) {
    .homepage-categories h2 {
        font-size: 1.25rem;
    }

    footer h4 {
        font-size: 1rem;
    }

    .event-info, .order-info {
        height: auto; /* Automatyczna wysokość dla mniejszych ekranów */
        padding: 10px; /* Minimalny padding */
        font-size: 0.8rem; /* Jeszcze mniejszy tekst */
    }
}

