
.main-content {
    padding-top: 80px; /* Dopasowane do wysokości menu */
    max-width: 1200px; /* Ograniczenie szerokości treści */
    margin: 0 auto; /* Wyśrodkowanie treści */
    overflow-x: hidden;
}

/* Styl ogólny */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-image: url('/assets/images/photo-1736843638421-9c3770d28c91.jpeg'); /* Dodaj swój obrazek */
    background-position: center;
    background-size: cover;
    overflow-x: hidden;
}

/* Baner */
.bannner {
    position: relative;
    width: 100%;
    height: 100vh; /* Pełna wysokość okna */
    background-image: url('/assets/images/tunel.webp'); /* Dodaj swój obrazek */
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    animation: zoomEffect 40s infinite alternate ease-in-out;
}

.bannner-content h1 {
    color: white;
    font-size: 3rem;
    margin-left: 200px;
    margin-right: 200px;
    padding-top: 20px;
    text-shadow: 4px 4px 12px rgba(0, 0, 0, 0.7);
}

.bannner-content h2 {
    color: white;
    font-size: 2rem;
    margin-left: 200px;
    margin-right: 200px;
    margin-bottom: 20px;
    padding-top: 20px;
    text-shadow: 4px 4px 12px rgba(0, 0, 0, 0.7);
}

.scroll-down {
    font-size: 24px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 20px;
}

.scroll-down span {
    font-size: 40px;
    display: block;
}

/* Kolejna sekcja */
.about-section {
    padding: 50px;
    background-color: #f4f4f4;
}

#about {
    padding-top: 100px; /* Przestrzeń na menu */
}

.scroll-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 20px;
    background-color: #ffffff;
    color: rgb(18, 4, 58);
    font-size: 50px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.scroll-btn:hover {
    background-color: rgb(18, 4, 58);
    color: white;
}

.scroll-btn span {
    display: block;
    font-size: 24px;
    margin-top: 10px;
}

.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;
}

.naglowek {
  text-align: center;
}

.two-column-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 50px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.left-column {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.left-column img {
    width: auto;
    height: 60vh; /* Zawsze 60% wysokości okna */
    border-radius: 20px; /* Zaokrąglone rogi */
    object-fit: cover;
    max-width: 100%;
    opacity: 0;
    transform: translateX(-100%);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.right-column img {
    width: auto;
    height: 60vh; /* Zawsze 60% wysokości okna */
    border-radius: 20px; /* Zaokrąglone rogi */
    object-fit: cover;
    max-width: 105%;
}

.right-column {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.text-box {
    background-color: rgba(50, 50, 50, 0.8); /* Ciemnoszare półprzezroczyste tło */
    padding: 40px;
    border-radius: 20px;
    color: white;
    max-width: 100%;
    position: absolute;
    left: -20%;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.text-box1 {
    background-color: rgba(50, 50, 50, 0.8); /* Ciemnoszare półprzezroczyste tło */
    padding: 40px;
    border-radius: 20px;
    color: white;
    max-width: 100%;
    position: absolute;
    right: -20%;
    z-index: 9999;
}

#next-section {
    margin-top: 20px;
    color: white;
    text-align: center;
    font-size: 2rem;
}

/* Efekt aktywacji po przewinięciu */
.show .left-column img {
    opacity: 1;
    transform: translateX(0);
}

.show .text-box {
    opacity: 1;
    transform: translateX(0);
}

.show {
    opacity: 1;
    transform: translateY(0);
}

@keyframes zoomEffect {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1); /* Przybliżenie */
    }
    100% {
        transform: scale(1);
    }
}

@media (max-width: 800px) {
    .two-column-section {
        flex-direction: column; /* Ustawia elementy w kolumnie */
        text-align: center; /* Wyśrodkowanie treści */
        gap: 10px; /* Mniejszy odstęp między elementami */
        padding: 30px 10px; /* Dopasowanie paddingu */
    }

    .left-column, .right-column {
        flex: none; /* Resetuje elastyczność */
        width: 100%; /* Pełna szerokość */
    }

    .left-column img, .right-column img {
        height: auto; /* Pozwala obrazom dostosować wysokość */
        max-width: 90%; /* Ogranicza szerokość obrazka */
    }

    .text-box, .text-box1 {
        position: static; /* Usuwa przesunięcia */
        max-width: 90%; /* Zapobiega zbyt dużej szerokości */
        margin: 0 auto; /* Wyśrodkowanie */
    }
}
