* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
	background: black;
    color: white;
    text-align: center;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.hero {
    background: url('/assets/images/webpbackground/background33.png') no-repeat center center;
    background-size: 110%; /* Zachowanie proporcji */
	background-position: center;
    background-repeat: no-repeat;
    width: 100%;
	height: 100vh; 
    will-change: transform;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: background-image 1s ease-in-out; 
    position: relative;
    overflow: hidden;
}

h1 {
    font-size: 4rem;
    font-family: 'Arial Black', Impact, sans-serif;
    font-weight: 900;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 5px;
    padding: 10px; /* Dodajemy padding, żeby efekt był lepiej widoczny */
    transition: all 0.3s ease-in-out;
    text-shadow: 4px 4px 12px rgba(0, 0, 0, 0.7);
}

h1:hover {
    background: #002b5c;
    color: #ffffff;
    border-radius: 3px;
}

.buttons a {
    display: inline-block;
    margin: 10px;
    padding: 10px 20px;
    font-size: 1.5rem;
    text-decoration: none;
    color: white;
    border: 2px solid white;
    border-radius: 5px;
    transition: 0.3s;
}

.buttons a:hover {
    background: #002b5c;
    color: #ffffff;
}

.footer {
    position: absolute;
    bottom: 10px;
    left: 20px;
    font-size: 0.7rem;
    color: white;
    opacity: 0.7; /* Delikatne przyciemnienie, żeby nie dominowało */
}

.footer2 {
    position: absolute;
    bottom: 10px;
    right: 30px;
    font-size: 0.7rem;
    color: white;
    opacity: 0.7; /* Delikatne przyciemnienie, żeby nie dominowało */
}

.category-section {
    display: flex;
    width: 100%;
    margin-top: 40px; /* Odstęp od przycisków */
}

.category {
    flex: 1; /* Obie sekcje zajmują równą przestrzeń */
    display: flex;
    flex-direction: column; /* Ustawiamy elementy w kolumnie */
    justify-content: center; /* Wyśrodkowanie */
    align-items: center;
    height: 80px; /* Wysokość sekcji */
    background-color: transparent; /* Czarne tło */
    color: white;
    font-size: 20px; /* Większa czcionka */
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s;
    position: relative; /* Potrzebne do prawidłowego pozycjonowania strzałek */
    padding: 0 60px; /* Odsunięcie tekstu od krawędzi */
}

.category:hover {
    background-color: #002b5c; /* Efekt hover */
}

/* Tekst */
.category-text {
    margin-bottom: 2px; /* Odstęp między tekstem a strzałką */
    width: 100%;
}

/* Strzałki */
.arrow {
    position: absolute;
    bottom: 20px; /* Umieszczenie strzałek na dole sekcji */
    width: 87%; /* Strzałki będą zajmować 80% szerokości sekcji */
    height: 1px; /* Grubość strzałki */
    background-color: white; /* Kolor strzałki */
}

/* Tworzenie grotu strzałki */
.arrow::before {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    border-right: 2px solid white;
    border-top: 2px solid white;
}

/* Lewa strzałka */
.left-arrow {
    left: 10%;
}

.left-arrow::before {
    left: 0;
    transform: translateY(-50%) rotate(-135deg);
}

/* Prawa strzałka */
.right-arrow {
    right: 10%;
}

.right-arrow::before {
    right: 0;
    transform: translateY(-50%) rotate(45deg);
}

/* 🔹 Wyrównanie tekstu Kitchen do prawej */
.category:nth-child(1) .category-text {
    text-align: right;
}

/* 🔹 Wyrównanie tekstu Wardrobe do lewej */
.category:nth-child(2) .category-text {
    text-align: left;
}

a {
    text-decoration: none;
}

.background-control {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-evenly;
    width: 280px;
}

.prev-background, .next-background {
    background-color: rgb(190, 190, 190);
    color: white;
    padding: 10px 50px; /* Zwiększamy padding w poziomie, aby były szerokie */
    border: none;
    padding: 3px;
    font-size: 3px;
    cursor: pointer;
    border-radius: 20px; /* Zaokrąglone rogi */
    border-radius: 5px;
    width: 40em;
}

.prev-background:hover, .next-background:hover {
    background-color: rgb(255, 255, 255);
}

.pdf-link {
    color: red; /* Kolor ikony */
    text-decoration: none;
    font-size: 16px;
}

@keyframes slowBackgroundMoveVertical {
    0% { background-position: center top; }
    50% { background-position: center bottom; }
    100% { background-position: center top; }
}

@keyframes slowBackgroundMoveVerticalReverse {
    0% { background-position: center bottom; }
    50% { background-position: center top; }
    100% { background-position: center bottom; }
}

@keyframes slowBackgroundMoveHorizontal {
    0% { background-position: left center; }
    50% { background-position: right center; }
    100% { background-position: left center; }
}

@keyframes slowBackgroundMoveHorizontalReverse {
    0% { background-position: right center; }
    50% { background-position: left center; }
    100% { background-position: right center; }
}

@keyframes slowBackgroundMoveDiagonal1 {
    0% { background-position: left top; }
    50% { background-position: right bottom; }
    100% { background-position: left top; }
}

@keyframes slowBackgroundMoveDiagonal2 {
    0% { background-position: right top; }
    50% { background-position: left bottom; }
    100% { background-position: right top; }
}

@keyframes slowBackgroundMoveDiagonal3 {
    0% { background-position: left bottom; }
    50% { background-position: right top; }
    100% { background-position: left bottom; }
}

@keyframes slowBackgroundMoveDiagonal4 {
    0% { background-position: right bottom; }
    50% { background-position: left top; }
    100% { background-position: right bottom; }
}

.move-vertical {
    animation: slowBackgroundMoveVertical 80s infinite linear;
}

.move-vertical-reverse {
    animation: slowBackgroundMoveVerticalReverse 80s infinite linear;
}

.move-horizontal {
    animation: slowBackgroundMoveHorizontal 80s infinite linear;
}

.move-horizontal-reverse {
    animation: slowBackgroundMoveHorizontalReverse 80s infinite linear;
}

.move-diagonal-1 {
    animation: slowBackgroundMoveDiagonal1 80s infinite linear;
}

.move-diagonal-2 {
    animation: slowBackgroundMoveDiagonal2 80s infinite linear;
}

.move-diagonal-3 {
    animation: slowBackgroundMoveDiagonal3 80s infinite linear;
}

.move-diagonal-4 {
    animation: slowBackgroundMoveDiagonal4 80s infinite linear;
}

/* Dla ekranów mniejszych niż 768px */
@media (max-width: 768px) {
    body {
        min-height: 100vh; /* Umożliwia przewijanie, jeśli treść się rozciągnie */
    }

    .hero {
        width: 100%;
        min-height: 100vh; /* Umożliwia przewijanie, jeśli treść się rozciągnie */
        background-size: auto 100vh !important; /* Nadal pełna wysokość ekranu */
        background-position: center center !important; /* Zapewnienie centrowania */
        will-change: transform;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: background-image 1s ease-in-out;
        position: relative;
        overflow: hidden;
    }
}

