@import url('https://fonts.googleapis.com/css?family=Sarala:700|Exo+2:300');

.wrapper {
    width: 280px;
    height: 480px;
    perspective: 800px;
    position: relative;
    margin: 80px;
}

.incencard {
    width: 320px;
    height: 450px;
    position: relative;
    transform-style: preserve-3d;
    transform: translateZ(-140px);
    transition: transform 350ms cubic-bezier(0.390, 0.575, 0.565, 1.000);
    cursor: pointer;
}

.incencard>div {
    position: absolute;
    width: 320px;
    height: 450px;
    padding: 34px 21px;
    transition: all 350ms cubic-bezier(0.390, 0.575, 0.565, 1.000);
}

/* rgb(245, 157, 68) */

.front {
    background-image: linear-gradient(180deg, rgb(245, 157, 68) 0%, rgba(161, 159, 162, 0.2) 100%);
    transform: rotateY(0deg) translateZ(160px);
    border-radius: 34px 3px 0 0;
}

.right {
    background-image: linear-gradient(0deg, rgba(245, 157, 68, 1) 0%, rgba(92, 91, 94, 0) 100%);
    opacity: 0.08;
    transform: rotateY(90deg) translateZ(160px);
    border-radius: 0 0 3px 34px;
}

.incencard:hover {
    transform: translateZ(-160px) rotateY(-90deg);
}

.incencard:hover .front {
    opacity: 0;
}

.incencard:hover .right {
    opacity: 1;
}

.wrapper h1,
.wrapper h2 {
    color: black;
    margin: 0;
    font-size: 38px;
    letter-spacing: -.25px;
    transform: translateX(-44px);
    font-family: 'Sarala';
    font-weight: 700;
}

.wrapper h2 {
    font-size: 21px;
    transform: translateX(-34px);
}

.wrapper p {
    margin: 0;
    font-weight: 300;
    font-size: 16px;
}

.wrapper span {
    margin-left: 13px;
    opacity: .55;
}

.wrapper img {
    transform-origin: top right;
    transition: transform 300ms cubic-bezier(0.390, 0.575, 0.565, 1.000);
    transition-delay: 100ms;
    transform: translateX(21%) rotateZ(13deg) skewX(3deg);
    pointer-events: none;
}

.img-wrapper {
    animation: float 4s cubic-bezier(0.390, 0.575, 0.565, 1.000) infinite alternate;
    position: absolute;
    top: 0;
    right: 0;
    pointer-events: none;
    backface-visibility: hidden;
}

@keyframes float {
    0% {
        transform: translateZ(20px);
    }

    100% {
        transform: translateY(-21px) translateX(-13px) translateZ(30px);
    }
}

.incencard:hover~.img-wrapper img {
    transform: scale(0.9) translateX(77%) translateY(90%) rotateZ(80deg);
}

.wrapper ul {
    margin-left: 21px;
    padding: 0;
    font-size: 16px;
    font-weight: 300;
    list-style: none;
}

.wrapper li {
    padding-bottom: 8px;
    position: relative;
}

.wrapper li:before {
    content: 'x';
    position: absolute;
    left: -21px;
    opacity: .55;
}

.wrapper button {
    position: absolute;
    right: 21px;
    bottom: 34px;
    border: none;
    box-shadow: none;
    background: none;
    color: white;
    font-family: 'Exo 2';
    font-weight: 300;
    font-size: 15px;
    letter-spacing: -.25px;
    font-weight: 700;
    padding: 13px 34px;
    border-radius: 55px 55px 21px 55px;
    background-image: linear-gradient(130deg, rgba(49, 37, 96, 1) 50%, rgba(49, 37, 97, .89) 100%);
    background-size: 125% 100%;
    background-position: right;
    cursor: pointer;
    box-shadow: 8px 5px 13px rgba(34, 34, 34, 0.4);
    transform: scale(0) skewY(13deg);
    transition: all 150ms cubic-bezier(0.390, 0.575, 0.565, 1.000);
    transform-origin: right bottom;
}

.incencard:hover button {
    transform: scale(1) skewY(0);
}

.incencard:not(:hover) button {
    opacity: 0;
}

button:hover {
    background-position: left;
}

.price {
    position: absolute;
    bottom: 34px;
    left: 21px;
    font-size: 34px;
}

@keyframes fadeIn {
    0% {
        opacity: 0.33;
        transform: scale(.89);
    }
}

/* @media only screen and (max-width: 600px) {
    body {
        transform: scale(.67);
    }
} */