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

html {
    background: linear-gradient(45deg, darkgray, gray, white, darkgray);
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin-bottom: 5%;
    text-align: center;
}

#centerAlign {
    text-align: center;
    margin-left: -20%;
}

.container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 50px 0;
    transform-style: preserve-3d;
}

.container .box {
    position: relative;
    width: 400px;
    height: 300px;
    margin: 30% 0;
    margin-bottom: 45%;
    background: transparent;
    transform-style: preserve-3d;
}

.container .box:hover {
    box-shadow: 0 50px 80px rgba(0, 0, 0, .2);
}

.container .box .imgBx {
    position: absolute;
    top: 0;
    left: 0;
}

.container .box .contentBx {
    position: absolute;
    top: 99%;
    left: 10%;
    right: 10%;
    background: #fff;
    transform: translateZ(20px) scaleY(0);
    padding: 11%;
    height: 70%;
    box-shadow: 2px 2px 5px darkgray;
    transform-origin: top;
    transition: 0.5s;
    transform-style: preserve-3d;
}

.container .box:hover .contentBx {
    transform: translateZ(50px) scaleY(1);
}