body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    perspective: 1000px;
    margin: 0;
}

.wrapper {
    position: relative;
    width: 300px;
    height: 250px;
    transform-style: preserve-3d;
    transform: rotateY(0deg);
    transition: transform 0.6s;
    cursor: grab;
    min-width: 50px;
}

img {
    pointer-events: none;
    user-select: none;
}


.bg_cn_1, .fg_cn_1, .bg_cn_2, .fg_cn_2 {
    position: absolute;
    width: 300px;
    height: 250px;
    top: 0;
    left: 0;
    transform-style: preserve-3d;
}

.pic1, .pic2 {
    position: absolute;
    width: 300px;
    height: 250px;
    top: 0;
    left: 0;
    background-size: contain;
    object-fit: contain;
    background-position: center;
    border-radius: 20px;
    user-select: none;
    z-index: 1032;
    transform: translate3d(0px, 0px, 0px);
    touch-action: none;
    cursor: grab;
}

.pic1 {
    transform: scale(0.95) translateZ(0);
}

.pic2 {
    transform: translateZ(40px) scale(0.9);
}

.wrapper_front, .wrapper_back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    transform: perspective(800px);
}

.wrapper_front {
    transform: rotateY(0deg);
}

.wrapper_back {
    transform: rotateY(180deg);
}
