@import url('https://fonts.googleapis.com/css?family=Poppins:100,200,300,400,500,600,700,800,900&display=swap');

*
{
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

body
{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #131313;
}

.productcardcontainer
{
    position: relative;
    margin: 20% 40%;
}

.productcardcontainer .card
{
    position: relative;
    width: 320px;
    height: 450px;
    background: #232323;
    border-radius: 20px;
    overflow: hidden;
}

.productcardcontainer .card:before
{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #9bdc28;
    clip-path: circle(150px at 80% 20%);
    transition: .5s ease-in-out;
}

.productcardcontainer .card:hover:before
{
    clip-path: circle(300px at 80% -20%);
}

.productcardcontainer .card:after
{
    content: 'Nike';
    position: absolute;
    top: 30%;
    left: -20%;
    font-size: 12em;
    font-weight: 800;
    font-style: italic;
    color: rgba(225, 225, 225, .04);
}

.productcardcontainer .card .imgBox
{
    position: absolute;
    top: 50%;
    transform: translateY(-50%) rotateY(180deg);
    z-index: 10000;
    width: 100%;
    height: 300px;
    transition: .5s;
}

.productcardcontainer .card:hover .imgBox
{
    top: 0%;
    transform: translateY(-15%) rotateY(180deg);
}

.productcardcontainer .card .imgBox img
{
    height: 100%;
    width: 100%;
    object-fit: contain;
    transform: rotate(25deg);
}

.productcardcontainer .card .contentBox
{
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100px;
    text-align: center;
    transition: .75s;
    z-index: 10;
}

.productcardcontainer .card:hover .contentBox
{
    height: 210px;
}

.productcardcontainer .card .contentBox h2
{
    position: relative;
    font-weight: 600;
    letter-spacing: 1px;
    color: #fff;
}

.productcardcontainer .card .contentBox .size,
.productcardcontainer .card .contentBox .color
{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 20px;
    transition: .5s;
    opacity: 0;
    visibility: hidden;
}

.productcardcontainer .card:hover .contentBox .size
{
    opacity: 1;
    visibility: visible;
    transition-delay: .5s;
}

.productcardcontainer .card:hover .contentBox .color
{
    opacity: 1;
    visibility: visible;
    transition-delay: .6s;
}

.productcardcontainer .card .contentBox .size h3,
.productcardcontainer .card .contentBox .color h3
{
    color: #fff;
    font-weight: 300;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-right: 10px;
}

.productcardcontainer .card .contentBox .size span
{
    width: 26px;
    height: 26px;
    text-align: center;
    line-height: 26px;
    font-size: 14px;
    display: inline-block;
    color: #111;
    background: #fff;
    margin: 0 5px;
    transition: .5s;
    border-radius: 4px;
    cursor: pointer;
}

.productcardcontainer .card .contentBox .size span:hover
{
    background: #9bdc28;
}

.productcardcontainer .card .contentBox .color span
{
    width: 20px;
    height: 20px;
    background: #ff0;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
}

.productcardcontainer .card .contentBox .color span:nth-child(2)
{
    background: #9bdc28;   
}

.productcardcontainer .card .contentBox .color span:nth-child(3)
{
    background: #03a9f4;   
}

.productcardcontainer .card .contentBox .color span:nth-child(4)
{
    background: #e91e63;   
}

.productcardcontainer .card .contentBox a
{
    display: inline-block;
    padding: 10px 20px;
    background: #fff;
    border-radius: 4px;
    margin-top: 10px;
    text-decoration: none;
    font-weight: 600;
    color: #111;
    opacity: 0;
    transform: translateY(50px);
    transition: .5s;
}

.productcardcontainer .card:hover .contentBox a
{
    opacity: 1;
    transform: translate(0);
    transition-delay: .75s;
}