body{
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(#e66465,#9198e5);
    height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.flip-box {
    width: 500px;
    height: 350px;
    background: transparent;
    border: 2px solid #f1f1f1;
    perspective: 1000px;
}

.flip-box img {
    width: 100%;
    height: 350px;
    transition: 0.4s all ease-in-out;
}

.flip-box:hover {
    box-shadow: 0 0 8px #333;
}

.flip-box-inner {
    width: 100%;
    height: 100%;
    text-align: center;
    position: relative;
    transition: 0.8s transform;
    transform-style: preserve-3d;
}

.flip-box:hover .flip-box-inner {
    transform: rotateY(180deg);
}

.flip-box-front, 
.flip-box-back {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
}

.flip-box-front {
    background-color: #bbb;
    color: #0000;
}

.flip-box-back {
    background-color: #555;
    color: #fff;
    transform: rotateY(180deg);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.flip-box-back a {
    display: inline-block;
    color:#333 ;
    background: #fff;
    border: 2px solid #fff;
    margin-top: 20px;
    padding: 8px 20px;
    text-decoration: none;
    font-size: 15px;
    transition:  0.3s all ease-in-out;
}

.flip-box-back a:hover{
    color: #fff;
    background: transparent;
}



