.parallaxBg {
    position: relative;
    will-change: background-position;

    background-size: cover;
    background-size: auto 115%;
    background-repeat: no-repeat;
    background-position: center 50%;
    width: 80vw;
    /* padding: 0% 10vw; */
    height: fit-content;
    min-height: calc(100vw / 16 * 8.5);
    background-image: url("../../../prototypes-and-fun-stuff/fog.jpg");

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: clamp(3rem, 8vw, 6rem) 10vw;
}


.parallaxBg h1 {
    #services-container {
        display: flex;
        width: 60vw;
        justify-content: space-between;
    }


    .services-item {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
        width: 28%;
        font-size: 1cqi;
    }

    .services-item p {
        font-weight: 400;
        text-align: center;
    }


    z-index: 2;
    color: var(--main);
    text-transform: uppercase;
    font-size: 3.5cqi;
    font-weight: 400;
}

.parallaxBg .button {
    z-index: 2;
}


.parallaxBg h1.gold {
    color: var(--complement);
}

.parallaxBg h2 {
    z-index: 2;
    color: var(--complement);
    text-transform: uppercase;
    text-align: center;
    font-weight: 600;
    font-size: 2.5cqi;
}

.parallaxBg small {
    z-index: 2;
    color: var(--main);
    margin-top: 2rem;
    font-size: clamp(1rem, 1.25cqi, 2rem);
    width: 90%;
}

@media screen and (orientation: portrait) {
    .parallaxBg small {
        width: 95%;
    }
}

.parallaxBg small.white {
    color: var(--bg);
}

.triangleUpAndBottom {
    clip-path: polygon(0 0, 50% 12%, 100% 0, 100% 100%, 50% 88%, 0 100%);
}

.triangleBottom {
    clip-path: polygon(0 0, 100% 0, 100% 88%, 50% 100%, 0 88%);
}

.rightTiltedRectangle {
    clip-path: polygon(0 15%, 100% 0, 100% 85%, 0 100%)
}


.leftTiltedRectangle {
    clip-path: polygon(0 0, 100% 15%, 100% 100%, 0 85%)
}


.triangleUpAndBottom .overlay {
    clip-path: polygon(0 0, 100% 24%, 100% 100%, 0 76%);
}

@media (max-width: 1024px) {
    .triangleUpAndBottom {
        clip-path: polygon(0 0, 50% 5%, 100% 0, 100% 100%, 50% 95%, 0 100%);
    }

    .triangleBottom {
        clip-path: polygon(0 0, 100% 0, 100% 95%, 50% 100%, 0 95%);
    }

    .rightTiltedRectangle {
        clip-path: polygon(0 6%, 100% 0, 100% 94%, 0 100%);
    }

    .leftTiltedRectangle {
        clip-path: polygon(0 0, 100% 6%, 100% 100%, 0 94%);
    }

    .triangleUpAndBottom .overlay {
        clip-path: polygon(0 0, 100% 12%, 100% 100%, 0 88%);
    }
}

@media (max-width: 600px) {
    .triangleUpAndBottom {
        clip-path: polygon(0 0, 50% 5%, 100% 0, 100% 100%, 50% 95%, 0 100%);
    }

    .triangleBottom {
        clip-path: polygon(0 0, 100% 0, 100% 95%, 50% 100%, 0 95%);
    }

    .rightTiltedRectangle {
        clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
    }

    .leftTiltedRectangle {
        clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 95%);
    }

    .triangleUpAndBottom .overlay {
        clip-path: polygon(0 0, 100% 10%, 100% 100%, 0 90%);
    }
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;

}

.overlay.purple {
    background-color: rgba(77, 49, 77, 0.655);
}

.overlay.white {
    background-color: rgba(255, 255, 255, 0.85);
}

.overlay.white.light {
    background-color: rgba(255, 255, 255, 0.5);
}

.overlay.gold {
    background-color: rgba(186, 147, 93, 0.5);
}



@media screen and (orientation: portrait) {
    .parallaxBg {
        aspect-ratio: auto;
        width: 90vw;
        padding: 5vh 5vw;
        min-height: 50vh;
        height: fit-content;
    }

    .parallaxBg h1 {
        font-size: 1.5rem
    }

    .parallaxBg h2 {
        font-size: 1.2rem;
    }

    .parallaxBg small {
        font-size: 0.8rem;
    }
}



#clinic {
    background-image: url("../../images/common/rendelo.jpg");
    margin-bottom: -12vh;
}

#clinic small {
    text-align: center;
}


#smileBeforeAfter {
    background-image: url("../../images/common/elotteUtanaMosoly.jpg");
    background-position: 40% 50%;
}