﻿.desktop #categories-container {
    aspect-ratio: 14 / 1;
    /*background-color: #ff000033;*/ /*DEBUG*/
    width: 100%;
    position: relative;
    background-color: #282828; /*DEBUG*/
}

.desktop #categories {
    height: 100%;
    width: 64%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    /*background-color: #cccccc63;*/ /*DEBUG*/
    font-size: 0;
    display: flex;
    flex-direction: row;
}

.desktop .category + div {
    width: 1%;
}

.category {
    background-image: url(../../../images/BoxMaker/Desktop/CategoryBK.png);
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: contain;
    display: inline-block;
    /*background-color: #ff000033;*/ /*DEBUG*/
    color: white;
    font-size: 1vw;
    height: 100%;
    flex: 1;
    /*margin-left: 1%;*/
    cursor: pointer;
}

    .category.active {
        background-image: url(../../../images/BoxMaker/Desktop/CategoryBK-Active.png);
        color: black;
    }

    .category:nth-child(odd) {
        /*background-color: #3a00ff85;*/ /*DEBUG*/
    }

    .category:nth-child(even) {
        /*background-color: #ff00f53b; */ /*DEBUG*/
    }

    .category > div:first-child {
        width: 100%;
        height: 72%;
        /*background-color: red;*/ /*DEBUG*/
        display: flex;
        justify-content: center;
        align-items: center;
    }

        .category > div:first-child img {
            max-width: 90%;
            max-height: 100%;
            height: auto;
            width: auto;
        }

    .category span {
        font-weight: bold;
        display: block;
        text-align: center;
    }

@keyframes fadeOutCategory {
    0% {
        opacity: 1;
        transform: scale(1);
        filter: brightness(1);
    }

    100% {
        opacity: 0.5;
        transform: scale(0.95);
        filter: brightness(0.7);
    }
}

@keyframes fadeInCategory {
    0% {
        opacity: 0.5;
        transform: scale(0.95);
        filter: brightness(0.7);
    }

    100% {
        opacity: 1;
        transform: scale(1.05);
        filter: brightness(1.2);
    }
}

.category.fade-out {
    animation: fadeOutCategory 0.4s forwards;
}

.category.fade-in {
    animation: fadeInCategory 0.4s forwards;
}

#category-indicator {
    position: absolute;
    width: 7vw;
    height: auto;
    transition: left 0.3s ease;
    z-index: 10;
    display: none;
}


