a {
    text-decoration: none;
    cursor: pointer;
}

.burger-icon {
    cursor: pointer;
    user-select: none;
}

.burger-menu {
    display: none;
    flex-direction: column;
    background: #fff;
    z-index: 100;
    min-width: 200px;
}

.burger-toggle:checked + .burger-menu {
    display: flex;
}

.itemDiv {
    position: relative;
    //display: flex;
    overflow: hidden;
    overflow-y: auto;
    justify-content: center;
    align-items: center;
    border-style: solid;
    border-color: #ccc;
    //overflow: hidden;
    text-align: center;
}
@media (max-width: 800px) {
    .itemDiv {
        width: 6rem;
        min-width: 6rem;
        height: 7.5rem;
    }
}
@media (min-width: 801px) {
    .itemDiv {
        width: 8rem;
        min-width: 8rem;
        height: 10rem;
    }
}

.editItem {
    position: absolute;
    top: 0px;
    left: 0px;
    cursor: pointer;
}

.scrollDiv {
    display: flex;
    overflow-x: auto;
    gap: 10px;
}

.flexDiv {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
    gap: 10px;
/*
    justify-content: space-between;
    justify-items: stretch;
    align-items: stretch;*/
}
@media (max-width: 800px) {
    .flexDiv {
        grid-template-columns: repeat(auto-fit, minmax(6rem, 1fr));
    }
}

.hierarchyDiv {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
}
@media (max-width: 800px) {
    .hierarchyDiv {
        height: 8rem;
    }
}
@media (min-width: 801px) {
    .hierarchyDiv {
        height: 10.5rem;
    }
}

.hierarchyDiv > * {
    position: absolute;
    top: 0;
    background-color: white;
}

.hierarchyDiv > *:nth-child(n) {
    left: calc(5em * (var(--item-index, calc(var(--n, 1) - 1))));
}

.itemImg {
    margin-top: 10px;
    object-fit: cover;
    cursor: pointer;
}
@media (max-width: 800px) {
    .itemImg {
        height: 4rem;
        width: 4rem;
    }
}
@media (min-width: 801px) {
    .itemImg {
        height: 6rem;
        width: 6rem;
    }
}

.popup {
    display:flex;
    position:fixed;
    top:0;
    left:0;
    width:100vw;
    height:100vh;
    background:rgba(0,0,0,0.5);
    justify-content:center;
    align-items:center;
    z-index: 1000;
}

.linkCursor {
    cursor: pointer;
}