body {
    margin: 0;
    justify-content: center;
}
.slider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60vh;
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: auto;
}
.slider-wrapper {
    overflow: hidden;
    width: 80vw;
}
.slider {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
    width: max-content;
}
.slide {
    width: calc(80vw / 4 - 20px);
    height: calc(80vw / 4 - 20px);
    max-width: 400px;
    max-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    cursor: pointer;
    position: relative;
    transform-style: preserve-3d;
    border: 2px solid;
    transition: border-color 0.6s ease-in-out;
}

.slide-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s ease-in-out, background 0.6s ease-in-out;
    background: white;
}
.slide-content, .slide-image {
    position: absolute;
    width: 100%;
	height: 100%; 
    display: flex;
    align-items: center;
    justify-content: center;
    backface-visibility: hidden;
    text-align: center;
    font-size: 1.3rem;
}
.slide-image {
    background: url('assets/images/produkty/16.jpg') center/contain no-repeat;
    width: 100%;
    height: 100%;
}
.slide-content {
    color: #fff;
    transform: rotateX(180deg);
}
.slide:hover .slide-inner {
    transform: rotateX(180deg);
    background: inherit;
}
.slide:hover {
    border-color: inherit;
}
.slide:nth-child(1) { border-color: #3a3df8; }
.slide:nth-child(1) .slide-content { background: #3a3df8; }
.slide:nth-child(2) { border-color: #3d60fd; }
.slide:nth-child(2) .slide-content { background: #3d60fd; }
.slide:nth-child(3) { border-color: #190e7e; }
.slide:nth-child(3) .slide-content { background: #190e7e; }
.slide:nth-child(4) { border-color: #4144ff; }
.slide:nth-child(4) .slide-content { background: #4144ff; }
.slide:nth-child(5) { border-color: rgb(24, 0, 238); }
.slide:nth-child(5) .slide-content { background: rgb(24, 0, 238); }
.slide:nth-child(6) { border-color: rgb(76, 79, 253); }
.slide:nth-child(6) .slide-content { background: rgb(76, 79, 253); }
/* Synchronizacja kolorów dla każdego slajdu */
.slide:nth-child(1) .slide-label { background: #3a3df8; }
.slide:nth-child(2) .slide-label { background: #3d60fd; }
.slide:nth-child(3) .slide-label { background: #190e7e; }
.slide:nth-child(4) .slide-label { background: #4144ff; }
.slide:nth-child(5) .slide-label { background: rgb(24, 0, 238);}
.slide:nth-child(6) .slide-label { background: rgb(76, 79, 253); }

.button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgb(255, 255, 255);
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 2rem;
    border: 2px solid blue;
}
.buttonlewo { left: 40px; }
.buttonprawo { right: 40px; }

.slide {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slide-label {
    width: 90%;
    color: rgb(255, 255, 255);
    text-align: center;
    padding: 10px;
    font-size: auto;
    font-weight: bold;
    position: absolute;
    height: 95px;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    /* Najważniejsze - zawsze na wierzchu */
    z-index: 100; /* Większy niż slide-inner */
    pointer-events: none; /* Uniemożliwia interakcję */
    /* Dodane obramowanie */
    border: 2px solid black;
}




