
@import "keys.css";


/*** page + navbar ***/

body {
    background-image: url(images/backgrounds/music_stand_top.png);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center bottom 162px;  /* navbar + footer height */
}    

/* header to leave gap at top when scrolled to beginning */
/*
#header {
    position: fixed;
    top: 0;
    margin-top: 0;
    width: 100%;
}
*/

/* main page scrolls 'behind' navbar, so is hidden */
#page {
    margin-top: 20px;
    margin-bottom: calc(160px + 32px + 0px);     /* navbar + footer height */
    margin-right: auto;
    margin-left: auto;
    /* reset */
    transition-property: none;
}

/* footer to display part of background image that content scrolls behind */
#footer {
    display: block;
    height: calc(32px + 0px);    /* image height + offset */
    position: fixed;
    bottom: 160px;   /* navbar height */
    width: 100%;
    margin: 0px;
    padding: 0px;
    background-image: url(images/backgrounds/music_stand_bottom.png);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center bottom calc(160px + 0px);  /* navbar height + offset */
}

/* navbar at bottom */
#navbar {
    position: fixed;
    top: auto;
    height: 160px;
    width: 100%;
    bottom: 0;
    left: 0;
    right: 100%;
    background: black;
    /* reset */
    max-width: none;
    transition-property: none;
}

input#navbar-toggle:checked ~ #navbar {
    /* reset even in toggled state */
    max-width: none;
    left: 0;
    transition: none;
}

input#navbar-toggle:checked ~ #page {
    /* reset */
    margin-left: auto;
    margin-right: auto;
    transition: none;
}

label#navbar-toggle {
    display: none;
}

label#navbar-toggle-label:after {
    content: "";
}

#navbar .keys span {
    font-size: 1em;
}
