/* Toolbar */

#toolbar {
    display: flex;
    flex-direction: row;
    justify-content: center;
    height: 5rem;
    background-color: white;
    color: white;
    overflow-x: auto;
}

#toolbar>* {
    flex-shrink: 0;
}

#toolbar>.grower {
    flex-grow: 1;
    flex-shrink: 1;
}

.toolbarItem {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 .5rem;
    height: 100%;
}

.caption {
    pointer-events: none;
    z-index: 100;
    font-weight: 400;
    font-size: 1.1rem;
    color: #666;
}

.toolbarOptions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.toolbarOption {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    position: relative;
    bottom: 0;
}

.toolbarOption>*:first-child {
    line-height: 2rem;
    width: 2rem;
    font-size: 2.4rem;
    color: black;
    text-align: center;
    vertical-align: baseline;
    z-index: 500;
}

.toolbarOption>img:first-child {
    height: 1.5rem;
    width: auto;
}

.toolbarOption:hover {
    position: relative;
    bottom: .25rem;
}

.toolbarDelimiter {
    width: 3px;
    height: 100%;
    margin: 0 .5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
}

.toolbarDelimiter>div {
    width: 100%;
    height: 60%;
    background-color: #ccc;
}

#toolbarImagesDelimiter {
    width: 1rem;
    height: 3px;
    background-color: #bbb;
    align-self: flex-start;
    margin: calc(1.5rem / 2 - 1.5px) 3px 0 3px; /* (parent height / 2) - (height / 2) */
}

/* Mobile theme */

@media (max-width: 900px) {
    .caption {
        font-size: 1rem;
    }

    .toolbarOption>*:first-child {
        transform: scale(0.8);
        width: 1.4rem;
        line-height: 1.4rem;
    }

    .toolbarDelimiter {
        display: none;
    }

    #toolbar {
        justify-content: start;
    }
}

@media (max-width: 700px) {
    .toolbarOption>*:first-child {
        transform: scale(0.7);
        width: 1.2rem;
        line-height: 1.2rem;
    }

    .caption {
        font-size: .9rem;
    }

    #toolbarPanelContinuation {
        display: none;
    }
}
