:root {
    --scrollspy-height: 60px;
}

#nav-scrollspy {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    height: var(--scrollspy-height, 2em);
    z-index: 12;
    overflow-y: hidden;
    text-align: left;
	margin: 0;
	box-shadow: 1px 1px 6px #33333380;
}

#nav-scrollspy[aria-expanded="true"] {
    height: auto;
}

#nav-scrollspy ul {
    margin: 0;
    padding: 0;
    transition: transform 100ms;
}

#nav-scrollspy[data-scrollspy-target="section-1"] ul {
    transform: translateY(calc(-0 * var(--scrollspy-height)));
}

#nav-scrollspy[data-scrollspy-target="section-2"] ul {
    transform: translateY(calc(-1 * var(--scrollspy-height)));
}

#nav-scrollspy[data-scrollspy-target="section-3"] ul {
    transform: translateY(calc(-2 * var(--scrollspy-height)));
}

#nav-scrollspy[data-scrollspy-target="section-4"] ul {
    transform: translateY(calc(-3 * var(--scrollspy-height)));
}

#nav-scrollspy[data-scrollspy-target="section-5"] ul {
    transform: translateY(calc(-4 * var(--scrollspy-height)));
}

#nav-scrollspy[data-scrollspy-target="section-6"] ul {
    transform: translateY(calc(-5 * var(--scrollspy-height)));
}

#nav-scrollspy[aria-expanded="true"] ul {
    transform: translateY(0);
}

#nav-scrollspy li {
    height: var(--scrollspy-height, 2em);
	border-bottom: 1px solid #433f3c;
}

#nav-scrollspy li:nth-of-type(1) {
    background-color: #302d2be3;
}

#nav-scrollspy li:nth-of-type(2) {
    background-color: #302d2be3;
}

#nav-scrollspy li:nth-of-type(3) {
    background-color: #302d2be3;
}

#nav-scrollspy li:nth-of-type(4) {
    background-color: #302d2be3;
}

#nav-scrollspy li:nth-of-type(5) {
    background-color: #302d2be3;
}

#nav-scrollspy li:nth-of-type(6) {
    background-color: #302d2be3;
}

#nav-scrollspy li a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    line-height: var(--scrollspy-height, 2em);
	padding-left: 10px;
}

#nav-scrollspy button {
	background: transparent;
    position: absolute;
    top: 0;
    right: 0;
    display: inline-block;
    width: 100%;
    height: var(--scrollspy-height, 2em);
    padding: 0;
    padding-right: 0.5em;
    line-height: var(--scrollspy-height, 2em);
    text-align: right;
    text-decoration: none;
    cursor: pointer;
    transition: transform 300ms;
	color: #fff;
}

#nav-scrollspy button[aria-expanded="true"] {
    width: auto;
    padding-right: 0.5em;
    transform: rotateX(180deg);
}

#sticky-sentinel {
  height: 1px;
  margin-top: -1px;
}
