body{
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
.card{
height: 300px;
width: 150px;
position: relative;
}
h1{
    font-size: 20px;
    text-align: center;

}
p{
    text-align: center;
}
.card .one{
    width: 100%;
    height: 100%;
    border: 10px solid black;
    transform-origin: 0% 50%;
    background-color: #ecf0f1;
    transition: all 0.8s ease-in-out;
    cursor: pointer;

}
.card .front{
    transform: perspective(800px);
}
.card .back{
    position: absolute;
    border-top: 10px solid rgba(3,23,89,0.5);
    border-bottom: 10px solid rgba(3,23,89,0.5);
    background: linear-gradient(135deg,#14abe2,#5563de);

}
.card:hover .front{
    transform: perspective(800px);
    transform: rotateY(-170deg);
}