﻿body {
    margin: 0px;
    font-family: "Lora", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    color: black;
    background-color: #f4f4f4;
}

main {
    margin: 0px;
    padding: 0px !important;
}

.backgroundImage {
    position: absolute;
    z-index: 4;
    height: 50px;
    left: 0;
    top: 250px;
    cursor: pointer;
}

.spadanie {
    position: absolute;
    z-index: 4;
    height: 50px;
    animation: spadanie 1s linear;
}


.page-size {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.page-main-contain {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    position: relative;
    background-position: center;
    max-width: none !important;
    min-height: 100vh;
    color: black;
    overflow: hidden;
    padding: 0;
}

    .container h1 {
        position: relative;
        z-index: 2;
        font-size: 5em;
        margin-top: 0;
        padding-top: 20px;
        text-align: center;
        color: black;
    }

    .container > * {
        position: relative;
        z-index: 2;
    }

#naszeProduktyContainer {
    margin-top: 30px;
}

    #naszeProduktyContainer h3 {
        margin-right: auto;
        margin-left: auto;
        max-width: 1000px;
        padding-left: 10px;
    }

#products {
   
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 30px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

    #products .product {
        display: block;
        width: 300px;
        margin: 10px;
        text-decoration: none;
    }

        #products .product .productDiv {
            height: 400px;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 10px;
            background: white;
            border: 2px solid orange;
            border-radius: 5px;
            text-decoration: none;
            transition: 0.1s ease;
            color: black;
        }

        #products .product .kolor {
            background: orange;
        }

        #products .product .productDiv:hover {
            transform: scale(1.05);
        }

        #products .product .productDiv .miodImage {
            width: 250px;
            height: 200px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 20px;
            overflow: hidden;
        }

            #products .product .productDiv .miodImage img {
                max-width: 100%;
                max-height: 100%;
                object-fit: contain;
            }

        #products .product img {
            width: 200px;
        }

        #products .product h3 {
            text-align: center;
        }

        #products .product p {
            text-align: center;
        }

        #products .product button {
            background-color: orange;
            border: none;
            color: white;
            padding: 10px 20px;
            text-align: center;
            text-decoration: none;
            display: inline-block;
            font-size: 16px;
            margin: 4px 2px;
            cursor: pointer;
            border-radius: 5px;
        }

            #products .product button:hover {
                background-color: white;
                color: orange;
            }

@media(max-width: 1000px) {
    #products {
        justify-content: space-around;
    }
}

#zobaczWszystkie {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    align-content: flex-end;
}

    #zobaczWszystkie a {
        width: 200px;
    }

h2 {
    text-align: center;
    font-size: 4em;
    margin-top: 0px;
    z-index: 1;
    font-weight: 700;
    color: white;
    background: orange;
    padding: 10px;
}

.image-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 400%;
    height: 100%;
    z-index: 0;
    display: flex;
    animation: slide 30s infinite;
    background-color: yellow;
    overflow: visible;
}

.image-slider-div {
    width: 100vw;
    height: 100%;
    border-right: 2px solid orange;
    border-left: 2px solid orange;
}

.image-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes slide {
    0% {
        transform: translateX(0%);
    }

    16% {
        transform: translateX(-25%);
    }

    32% {
        transform: translateX(-50%);
    }

    50% {
        transform: translateX(-75%);
    }

    66% {
        transform: translateX(-50%);
    }

    82% {
        transform: translateX(-25%);
    }

    100% {
        transform: translateX(0%);
    }
}


.tiles-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    z-index: 1;
    width: 100%;
}

.tile {
    border-radius: 10px;
    text-align: center;
    width: 300px;
    height: 400px;
    perspective: 1000px;
}

.tile-inner {
    position: relative;
    width: 300px;
    height: 400px;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.tile-inner img 
{
    height:150px;
}

.tile:hover .tile-inner {
    transform: rotateY(180deg);
}

.tile-front, .tile-back {
    position: absolute;
    width: 300px;
    height: 400px;
    backface-visibility: hidden; 
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
}

.tile-back {
    transform: rotateY(180deg); 
    background-color: #fafafa;
}

.tile-icon {
    width: 100px;
    height: auto;
    margin: 20px 0;
}

.description {
    font-size: 1em;
    color: #777;
    margin-top: 10px;
}

/* Responsive design */
@media (max-width: 768px) {
    .tiles-container {
        flex-direction: column;
        align-items: center;
    }
}

#info-page-div {
    margin-top: 50px;
    flex-direction: column;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}


.info-div {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateX(-100%);
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

    .info-div.slide-in-left {
        opacity: 1;
        transform: translateX(0);
    }

    .info-div.slide-in-right {
        opacity: 1;
        transform: translateX(0);
    }

    .info-div:nth-child(even) {
        transform: translateX(100%);
    }

        .info-div:nth-child(even).slide-in-right {
            transform: translateX(0);
        }

.info-div-text {
    max-width: 500px;
    text-align: justify;
    font-size: 18px;
    padding: 50px;
}

.info-div-image {
    border: 3px solid orange;
    width: 300px;
    height: 300px;
    border-radius: 10px;
}

    .info-div-image img {
        object-fit: cover;
        width: 100%;
        height: 100%;
        border-radius: 7px;
    }

.orange-font {
    color: orange;
}

/* -------- produkcja miodu ------------*/
#produkcja-page-div {
    width: 100%;
    flex-direction: column;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 200px;
}

.pair {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 100px;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.hidden-down {
    transform: translateY(50%);
}

.slide-in-top {
    transform: translateY(0);
}

.second-pair {
    margin-top: 200px;
    align-self: flex-end;
}

.produkcja-miodu-div {
    display: flex;
    flex-direction: column;
    position: relative;
    background: white;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 8px 0px;
    border-radius: 10px;
    width: 400px;
    transition: all 0.5s;
    z-index: 4;
}

    .produkcja-miodu-div:hover > .produkcja-miodu-tekst {
        top: 100%;
        box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 8px 0px;
    }

.pair:hover {
    z-index: 8;
}

.produkcja-miodu-div:hover {
    transform: scale(1.6);
}

    .produkcja-miodu-div:hover .produkcja-miodu-title {
        opacity: 0;
    }

    .produkcja-miodu-div:hover .number {
        opacity: 0;
    }

.produkcja-miodu-contain {
    z-index: 2;
}

.produkcja-miodu-top {
    display: flex;
    align-items: center;
}

.produkcja-miodu-tekst {
    position: absolute;
    z-index: -1;
    background: orange;
    width: 100%;
    height: auto;
    top: 20px;
    left: 0;
    transition: 0.5s;
    padding: 20px;
    text-align: justify;
    align-content: center;
    opacity: 1;
    transition: all 0.2s;
}

.number {
    font-size: 300px;
    font-weight: 400;
    color: orange;
    line-height: 220px;
    opacity: 1;
    transition: all 0.5s;
    background: rgba(255,255,255,0.8);
    padding: 20px;
    border-radius: 8px 0px 0px 0px;
}

.produkcja-miodu-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: all 0.5s;
    z-index: -1;
}

    .produkcja-miodu-image img {
        border-radius: 10px;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .produkcja-miodu-image video {
        border-radius: 10px;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.produkcja-miodu-title {
    color: black;
    font-size: 30px;
    background: rgba(255,255,255,0.8);
    border-radius: 0px 0px 10px 10px;
    padding: 10px;
    transition: all 0.5s;
}


@media (max-width:1180px) {
    .produkcja-miodu-div:hover {
        transform: scale(1);
        z-index: 4;
    }
}

@media (max-width:850px) {
    .pair {
        margin-top: 200px;
    }

    .info-div {
        transform: translateX(-10%);
    }

        .info-div:nth-child(even) {
            transform: translateX(10%);
        }

    .hidden-down {
        transform: translateY(40%);
    }
}
