
*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}
li {
    list-style: none;
}

.containers{
    padding: 100px 0px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: auto;
}
.containers ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.containers ul li {
    letter-spacing: 1px;;
    padding: 5px 15px;
    cursor: pointer;
    margin: 5px;
    text-transform: uppercase;
    border-bottom: 1px solid transparent;
    font-weight: bold;
    font-size: 15px;
}
.containers ul li.active{
    border-color: #c70039;;
    color: #e84545;
}

.product{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
.product .itembox {
    position: relative;
    width: 400px;
    height: 300px;
    margin: 5px;
    display: block;

}
.product .itembox img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    left: 0;
    top: 0;
    cursor: pointer;
}


.containers .product .itembox.show{
    animation: show .5s ease 0s 1 forwards;
    transform-origin: center;
}
.containers .product .itembox.hide{
    animation: hide .5s ease 0s 1 forwards;
    transform-origin: center;
}

@keyframes hide {
    0%{
        transform: scale(1);
    }
    100%{
        transform: scale(0);
        width: 0;
        height: 0;
        margin: 0;
    }
}
@keyframes show {
    0%{
      
        transform: scale(0);
        width: 0;
        height: 0;
        margin: 0;
    }
    100%{
        transform: scale(1);
       
    }
}

@media(max-width: 468px){
    .product .itembox {
        width: 320px;
        height: 250px;
    }
    .container{
        margin: 260px auto;
    }
}