* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #222;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

.skewed-card-container {
    display: flex;
    gap: 30px;
    perspective: 1000px;
}

.skewed-card {
    width: 300px;
    height: 400px;
    transform: skewY(-10deg);
    transform-origin: bottom right;
    background-color: transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.skewed-card-inner {
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    transform-style: preserve-3d;
}

.skewed-card:hover .skewed-card-inner {
    transform: rotateY(180deg);
}

.skewed-card-front{
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    border-radius: 20px;
    overflow: hidden;
}
.skewed-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000000;
    border-radius: 20px;
    overflow: hidden;
}
.skewed-card-front {
    background-color: #ff5733;
    transform: rotateY(0deg);
}

.skewed-card-front h3 {
    font-size: 1.8em;
    transform: skewY(10deg);
}

.skewed-card-back {
    background-color: #fdfdfd;
    transform: rotateY(180deg);
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    transform: skewY(10deg) rotateY(180deg);
}

.skewed-card-back p {
    font-size: 1.2em;
    line-height: 1.5em;
}
