
*{
    margin:0;
    padding:0;
    
}

body{
    display:flex;
    justify-content:center;
    align-items:center;
    min-width: 100vh;
    background:#efefef;
}

.container {
    position:relative;
    display: flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    width: 1200px;
    transform-style: preserve-3d;
}

.container .box {
    position: relative;
    width: 300px;
    height: 400px;
    margin: 40px;
    background: #232323;
    border-radius: 20px;
    transform-style: preserve-3d;

    
}

.container .box::before{
    content: 'NIKE';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 6em;
    color: #fff;
    font-style: italic;
    opacity: 0;
    transition:0.5s;
}

.container .box::after{
    content: 'SHOES';
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 5em;
    color: #fff;
    font-style: italic;
    opacity: 0;
    transition:0.5s;
}


.container .box:hover::before , .container .box:hover::after{
    
    opacity: 0.04;
}

.container .box .name {
    position: absolute;
    top: 20px;
    left: 20px;
    text-align:center;
    color: #fff;
    width: 100%;
    transform-style: preserve-3d;
    transform: translate3d(0,0,75px);
    transition: 0.5s;
    opacity: 0;
    z-index: 10;
}

.container .box:hover .name {
    top: 40px;
    opacity: 1;
}

.container .box .buy {
    position: absolute;
    bottom:0;
    left: 50%;
    transform-style: preserve-3d;
    transform: translate3d(-50%,0,75px);
    color: #fff;
    background: #333;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    transform: 0.5s;
    opacity: 0;
    z-index: 10;

}

.container .box:hover .buy {
    bottom: 40px;
    opacity: 1;
}

.container .box .circle {
    position: absolute;
    top: 50%;
    left: 50%;
    background: #fff;
    width: 200px;
    height: 200px;
    border-radius: 50px;
    transform-style: preserve-3d;
    transform: translate3d(-50%,-50%,50px);
    transition: 0.5s;
    z-index: 10;

}

.container .box .product {
    position: absolute;
    top: 50%;
    left: 50%;
    max-width: 300px;
    transform-style: preserve-3d;
    transform: translate3d(-50%,-50%,50px) rotate(-15deg);
    transition: 0.5s;
    
    z-index: 11;
}

.container .box:hover .product {
    transform: translate3d(-50%,-50%,100px) rotate(-15deg);
}

.container .box:nth-child(1) .circle,
.container .box:nth-child(1) .buy
{
    background: #379bf7;
}

.container .box:nth-child(2) .circle,
.container .box:nth-child(2) .buy
{
    background: #9bdc28;}

.container .box:nth-child(3) .circle,
.container .box:nth-child(3) .buy
{
    background: #fb4b4f;
}