/***************************************************************
 *                                                             *
 *                            showcase                         *
 *                                                             *
 ***************************************************************/
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

/***************************************************************
 *                                                             *
 *                  transition elements                        *
 *                                                             *
 ***************************************************************/
.card {
    transition: all 0.125s ease-in-out 0s;
}

/***************************************************************
 *                                                             *
 *                          search bar                         *
 *                                                             *
 ***************************************************************/
.search-bar {
    font-size: 1.1rem;
}

.search-box i {
    padding-right: 1rem;
    font-size: 1.5rem;
    line-height: 1.5rem;
}

/***************************************************************
 *                                                             *
 *                            category                         *
 *                                                             *
 ***************************************************************/
.section-category {
    flex: 1;
}

.container-category {
    height: 100%;
    display: flex;
}

#category-carousel {
    margin: auto;
}

.category-card {
    padding: 0;
    padding-bottom: 20px;
    width: 25%;
    height: 50%;
    z-index: 5;
}

.category-card a {
    text-decoration: none;
    position: relative;
    display: block;
    margin: auto;
    overflow: hidden;
}

.category-card:hover .card-image:after {
    background: none;
}

.category-image {
    position: relative;
    width: 90%;
    margin: auto;
    overflow: hidden;
    border-radius: 20px;
}

.category-image img {
    display: block;
    overflow: hidden;
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 20px;
    margin: auto;
}

.category-image:after {
    position: absolute;
    display: block;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(17, 17, 17, 0.6);
    border-radius: 20px;
}


.category-caption {
    width: 100%;
    padding: 0 20px;
    opacity: 1;
    position: absolute;
    bottom: 40%;
    left: 0;
    text-align: center;
    overflow: hidden;
}


.category-title {
    font-family: gmarket-sans;
    font-size: 20px;
    color: #fff;
    margin: 0 0 6px;
  }

.category-card:hover .category-caption {
    /* bottom: 100%; */
    opacity: 0;
    z-index: 3;
    /* -webkit-transform: translateY(50%);
    -ms-transform: translateY(50%);
    transform: translateY(50%); */
    transform: scale(1.1);
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
    -ms-transform: scale(1.1);
    -o-transform: scale(1.1);
}

.category-card:hover .category-image img {
    transform: scale(1.1);
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
    -ms-transform: scale(1.1);
    -o-transform: scale(1.1);
}

.card:hover {
    cursor: pointer;
}

a {
    text-decoration: none;
    color: #111;
}

.category-carousel-prev {
    margin-left: -8rem;
}

.category-carousel-next {
    margin-right: -8rem;
}

@media(max-width: 800px) {
    .category-card {
        padding: 3px;
        width: 50%;
    }
}