/* CSS BLOC TOP CATEGORIES */
#top-categories {
    margin-bottom: 20px;
    background-color: unset;
}

.top-categories-heading {
    text-transform: uppercase;
    text-align: center;
}

.top-categories-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.top-category-image {
    height: 200px;
    width: 178px;
    object-fit: cover
}

.top-category-subtitle {
    color: white;
    font-weight: bolder;
    text-transform: uppercase;
    position: absolute;
    margin-top: 130px;
    width: 168px;
    text-align: center;
    background-color: #079e39;
    padding: 5px 0;
    line-break: auto;
}

/* Container needed to position the overlay. Adjust the width as needed */
.container-top-category {
    position: relative;
    height: 200px;
    width: 178px;
    margin: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    box-shadow: 0 5px 5px -3px rgba(0, 0, 0, .2), 0 8px 10px 1px rgba(0, 0, 0, .14), 0 3px 14px 2px rgba(0, 0, 0, .12) !important;
}

/* When you mouse over the container, fade in the overlay title */
.container-top-category:hover .overlay {
    opacity: 1;
}
.container-top-category:hover .top-category-image, .container-top-category:hover h5{
    opacity: 0.5;
}

/* The overlay effect - lays on top of the container and over the image */
.overlay {
    text-transform: uppercase;
    position: absolute;
    bottom: auto;
    top: auto;
    background: #079e39;
    border-radius: 5%;
    transition: .5s ease;
    opacity: 0;
    padding: 10px;
    text-align: center;
    color: white;
}
