/* SCENELIST TOGGLE ELEMENTS */

#sceneListToggle {

    grid-area: sceneListToggle;

    display: block;
    
    width: var(--titleBar-height);
    height: var(--titleBar-height);

}



#sceneListToggle .icon {
    position: absolute;
    width: var(--icon-size);
    height: var(--icon-size);
    margin: var(--icon-margin);
}



#sceneListToggle .icon.on {
    display: none;
}



#sceneListToggle .icon.off {
    display: block;
}



#sceneListToggle.enabled .icon.on {
    display: block;
}



#sceneListToggle.enabled .icon.off {
    display: none;
}



/* SCENELIST ELEMENTS */

#sceneList {
    position: absolute;
    left: var(--titleBar-leftAndRight);
    bottom: calc(-1 * var(--outside-offset));
    width: 25%;
    min-width: 400px;
    max-height: 100%;
    padding: 20px 0px;
    margin-bottom: var(--titleBar-height);
    border-radius: var(--border-radius);
    border: 2px solid var(--background-rgba);
    overflow-x: hidden;
    overflow-y: auto;
    opacity: 0.0;
    background-color: var(--background-rgb);
    background-color: var(--background-rgba);
    -webkit-transition: opacity 0.3s ease-in-out,
        margin-bottom 0.0s 0.3s;
    transition: opacity 0.3s ease-in-out,
        margin-bottom 0.0s 0.3s;
    z-index: 10;
}



#sceneList.enabled {
    opacity: 1.0;
    margin-bottom: calc(var(--outside-offset) + var(--titleBar-bottom) + var(--titleBar-height));
    -webkit-transition: opacity 0.3s ease-in-out;
    transition: opacity 0.3s ease-in-out;
}



#sceneList .scenes {
    width: 100%;
}



#sceneList .scene {
    display: block;
    width: 100%;
    height: var(--titleBar-height);
}



#sceneList .scene .text {
    font-weight: 300;
    width: 100%;
    height: 100%;
    padding: 0 var(--titleBar-height);
    line-height: var(--titleBar-height);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}



.no-touch #sceneList .scene:hover {
    background-color: var(--background-rgb);
}



#sceneList .scene.current {
    color: var(--hover-rgb);
    background-color: var(--background-rgb);
}



#sceneList .scene.current .text {
    font-weight: 600;
}



/* Hide scene list when only a single scene exists */
body.single-scene #sceneList,
body.single-scene #sceneListToggle {
    display: none;
}