/* ↓ showing-categories ↓ */

.container-categories {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, 1fr);
}

.category-item {
    display: grid;
    justify-content: center;
}

.container-img-category {
    position: relative;
}

@keyframes slow-rotation {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.container-img-category img:first-child {
    display: block;
    width: 100%;
    height: 300px;
    z-index: 0;
    /* De animatie wordt altijd toegepast, maar standaard gepauzeerd */
    animation: slow-rotation 10s linear infinite;
    animation-play-state: paused;
    transition: transform 0.5s ease;
}

.container-img-category img:last-child {
    position: absolute;
    top: 20%;
    left: 20%;
    width: 60%;
    height: 60%;
    z-index: 1;
}

/* Wanneer er over de container wordt gehoverd, gaat de animatie lopen */
.container-img-category:hover img:first-child {
    animation-play-state: running;
}

/* Optioneel: als je ook wilt dat wanneer over heart_img wordt gehoverd 
   de pattern_img draait, kun je dit toevoegen: */
.container-img-category img:last-child:hover ~ img:first-child {
    animation-play-state: running;
}

.title-category {
    display: flex;
    justify-content: center;	
    margin-top: 10px;
    font-family: 'roboto mono';
    color: #00009c;
    font-weight: bold;
    font-size: 30px;
}

/* ↓ Categories carousel ↓ */

.container-carousel {
    display: flex;
    overflow: hidden;
    position: absolute;
    width: 100%;
    bottom: -70%;
}

.carousel-item {
    flex: 0 0 20%;
    justify-items: center;
}

.container-img-carousel {
    display: flex;
    height: 75%;
    width: 75%;
    object-fit: cover;
}

.title-carousel {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    font-family: 'roboto mono'; 
    font-weight: bold;
    font-size: 24px;
}

.scroll-carousel-wrapper {
    display: flex;
    justify-content: space-between;
    /* position: absolute; */
    bottom: 32%;
    width: 88%;
}

.scroll-prev-carousel {
    width: 10%;
    border: none;
    background-color: transparent;
    cursor: pointer;
    position: relative;
    right: 8%;
}

.scroll-next-carousel {
    width: 10%;
    border: none;
    background-color: transparent;
    cursor: pointer;
    rotate: 180deg;
    position: relative;
    left: 19%;
}

@media only screen and (max-width: 600px) {
    .carousel-item {
        flex: 0 0 100%;
        justify-items: center;
    }

    .container-img-carousel {
        width: unset;
    }

    .container-carousel {
        overflow: unset;
        overflow-x: scroll;
        overflow-y: hidden;
    }

    .scroll-carousel-wrapper {
        display: none;
    }

    .container-img-category img:first-child {
        animation: unset !important;
    }

    .container-categories {
        grid-template-columns: none !important;
    }
}