.magazine-wraper {
    width: 245px;
}

@media (min-width: 768px) {
    .magazine-wraper {
        width: 250px;
    }
}

@media (min-width: 992px) {
    .magazine-wraper {
        width: 390px;
    }
}

@media (min-width: 1200px) {
    .magazine-wraper {
	width: 300px;
    }
}

@media (min-width: 1600px) {
    .magazine-wraper {
	width: 425px;
    }
}
.magazine-holder {
    height: 345px;
    perspective: 1000px;
    margin: 0 auto;
    position: relative;
}

@media (min-width: 768px) {
    .magazine-holder {
        height: 365px;
    }
}

@media (min-width: 992px) {
    .magazine-holder {
        height: 550px;
    }
}

@media (min-width: 1200px) {
    .magazine-holder {
        height: 425px;
    }
}

@media (min-width: 1600px) {
    .magazine-holder {
        height: 600px;
    }
}


.magazine-holder .prev,
.magazine-holder .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    background: #fff;
    color: #fff;
    height: 35px;
    width: 35px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: .7rem;
    border-radius: 5px;
}

@media (min-width: 768px) {
    .magazine-holder .prev,
    .magazine-holder .next {
        display: flex;
    }
}

@media (min-width: 1600px) {
    .magazine-holder .prev,
    .magazine-holder .next {

	height: 40px;
	width: 40px;

    }
}

.magazine-holder .prev {
    left: calc(-100% - 2.5rem);
    opacity: 0;
}

@media (min-width: 1600px)
{
    .magazine-holder .prev
    {
	left: calc(-100% - 3rem);
    }
}

.magazine-holder .next {
    right: -2.5rem;
}

@media (min-width: 1600px)
{
    .magazine-holder .next
    {
	right: -3rem;
    }
}


.magazine-holder.clicked {
    left: 50%;
}

.magazine-holder.clicked .prev {
    opacity: 1;
}

.magazine-holder.final {
    left: 100%;
}

.magazine-holder.final .prev {
    opacity: 1;
    left: calc(-100% - 2.5rem);
}

@media (min-width: 1600px)
{
    .magazine-holder.final .prev
    {
	left: calc(-100% - 3rem);
    }
}

.magazine-holder.final .next {
    opacity: 0;
}

.magazine {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.magazine .page {
    cursor: pointer;
    position: absolute;
    color: black;
    width: 100%;
    height: 100%;
    transition: 1.5s transform;
    transform: translateZ(-1px);
    transform-style: preserve-3d;
    transform-origin: left center;
}

.magazine .page.active {
    z-index: 1;
    transform: translateZ(0);
}

.magazine .page.flipped {
    transform: translateZ(0) rotateY(-180deg);
}

.magazine .page.flipped:last-of-type {
    z-index: 1;
}

.magazine .page .front,
.magazine .page .back {
    position: absolute;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    backface-visibility: hidden;
    background: #fff;
    padding: 0.5rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.magazine .page .back {
    transform: rotateY(180deg);
    z-index: 4;
}

.magazine-title {
    height: 70px;
    width: 90px;
    object-fit: contain;
}

@media (min-width: 768px) {
    .magazine-title {
        height: 88px;
        width: 115px;
    }
}

@media (min-width: 1200px) {
    .magazine-title {
        height: 100px;
        width: 135px;
    }
}
