/*
Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
Click nbfs://nbhost/SystemFileSystem/Templates/ClientSide/css.css to edit this template
*/
/* 
    Created on : 12 gru 2025, 14:03:08
    Author     : Butch
*/



/* Kontener slidera – pełny ekran */
.slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}


/* Pasek tekstowy po prawej (desktop) */
.slide-bar {
    margin-right: auto;
    width: 30%;
    min-width: 0;        /* ważne */
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Tekst wewnątrz paska */
.slide-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.slide-text p {
    font-size: 1rem;
    line-height: 1.4;
}

/* Responsywność: na mniejszych ekranach pasek idzie do dołu */
@media (max-width: 768px) {
    .slide {
        flex-direction: column;
        justify-content: flex-end;
    }

    .slide-bar {
        width: 100%;
        min-width: 100%;
        padding: 1.5rem;
    }

    .slide-text h2 {
        font-size: 1.5rem;
    }

    .slide-text p {
        font-size: 0.95rem;
    }
}

/* Przyciski nawigacji */
.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    z-index: 10;
}

.nav:hover {
    background: rgba(0, 0, 0, 0.7);
}

.nav.prev {
    left: 10px;
}

.nav.next {
    right: 10px;
}


.slide {
    
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    display: flex;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 0;
    min-width: 0;        /* ważne */

}

.slide.active {
    opacity: 1;
    z-index: 1;
}
