.subtracted {
    height: 0;
    overflow: hidden;
    visibility: hidden;
}

#categories_box {
    color: #f9f9f9;
    transition: all 0.5s ease;
    max-height: 1000px;
    display: grid;
    grid-template-columns: 40% 60%;
    grid-template-rows: auto;
}

/* .categories_item {
    min-width: 150px;
    max-width: 50%;
    padding: 0.5em 0.7em;
    font-size: 1.2em;
    display: inline-block;
    flex-grow: 1;
    transition: 0.7s ease-out;
    text-transform: capitalize;
}

.categories_item:hover {
    background-color: #ffe97d;
}

body .subtracted {
    max-height: 0 !important;
    padding: 0 !important;
    overflow: hidden;
} */

#categories_box {
    box-shadow: #cccccc 1px 1px 20px;
    z-index: 1;
}

#categories_box * {
    background-color: #ffe97d;
    /* color: #f9f9f9 !important; */
}

#categories_box .category {
    padding: 0.3em;
}

#categories_box .parent.category {
    width: 100%;
    display: block;
    cursor: pointer;
    z-index: 1;
}

#categories_box .parent.category:hover {
    background-color: #fff1ad;
}

#categories_box .all.category {
    color: #212121 !important;
    background-color: #ffb74d;
    width: 100%;
    display: block;
    cursor: pointer;
}

#categories_box .all.category:hover {
    background-color: #fff1ad;
}

#categories_box .child-categories {
    display: flex;
    flex-wrap: wrap;
    background-color: #f9f9f9;
}

#categories_box .child.category {
    color: black;
    display: block;
    width: 50%;
    min-height: 1.5em;
    background-color: #f9f9f9;
    cursor: pointer;
}

#categories_box .child.category:hover {
    background-color: #fff1ad;
}

@media only screen and (max-width: 600px) {
    #categories_box {}
}