.columns {
    display: flex;

    margin: 0;
}

.column {
    width: 33%;

    padding: 1%;

    align-items: center;

    display: block;

    flex-direction: column;
}

.offerbox, #stomazach{
    background-image: url("../Images/stomazach2.png");
    background-size: cover;
}

.offerbox, #protetyka{
    background-image: url("../Images/IMG_1540.jpg");
    background-size: cover;
}

.offerbox, #innezabiegi{
    background-image: url("../Images/IMG_3162.jpg");
    background-size: cover;
}

.offerboxback {
    transform: rotateY(180deg);

    background-color: white;
}

.offerbox, .offerboxback {
    width: 90%;
    height: 45vh;

    align-items: center;
    text-align: center;
    justify-content: center;

    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.217);
    border-radius: 5px;

    display: flex;
    flex-direction: column;

    position: relative;

    margin: 0 auto;

    backface-visibility: hidden;
    transform-style: preserve-3d;

    grid-area: 1 / 1;

    overflow: hidden;
}

.offerbox::after {
    content: "";

    position: absolute;

    inset: 0;

    background: rgba(0, 0, 0, 0.41);
    background-size: cover;

    z-index: 1;

    backface-visibility: hidden;
}

.flipcon {
    perspective: 100%;
}

.flipcon:hover .flipbox {
   transform: rotateY(180deg);
}

.flipbox {
    position: relative;

    transform-style: preserve-3d;
    
    transition: transform 0.6s;

    display: grid;

    margin: 0 auto;
    margin-top: 18%;
}

.offerbtn {
    margin-top: 1%;
    margin-bottom: 6%;

    display: flex;

    width: 40%;
    height: 20%;

    text-align: center;
    justify-content: center;

    align-items: center;

    border-radius: 5px;
    border: 2px solid rgb(0, 0, 0);

    font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-size: 1vw;

    color: rgb(0, 0, 0);
}

.offerbtn:hover {
    color: white;

    background-color: black;
    
    transition: ease-in 0.3s;
}

#implantInfo {
    color: rgb(255, 255, 255);

    display: flex;

    font-family: "Roboto", sans-serif;
    font-size: 1.2vw;
    font-weight: 500;

    text-align: center;
    justify-content: center;
    align-items: center;

    margin-top: 5%;

    width: 50%;
    height: 15%;

    border-radius: 5px;
    border: black solid 2px;

    background-color: black;
}

#implantInfo:hover {
    color:rgb(0, 0, 0);

    background-color: rgb(255, 255, 255);

    transition: 0.3s ease-in;
}


.implantImg {
    max-width: 45%;
    max-height: 75%;

    border-radius: 5px;

    vertical-align: middle;

    margin:auto
}

/*
.implantImg:hover {
    max-width: 55%;
    max-height: 85%;

    transition: ease-in 0.3s;
} */