$bg: fade-out(#fff, 0.05); $textColor: #484848; $textColor2: #9A9697; $primary: #E75B12; $boxShadow: 0px 0px 8px rgba(0, 0, 0, .25); .homelink { position: absolute; right: 2rem; top: 2rem; transition: right 300ms linear; a { color: $bg; line-height: 1; font-size: 2.5rem; display: flex; align-items: center; } svg { filter: drop-shadow($boxShadow); } &.open { right: 31vw; svg { transform: scale(-1, 1); } } } .sidebar { position: fixed; width: 30vw; top: 2rem; right: -50%; bottom: 0; transition: all 300ms linear; line-height: 1.25; display: flex; flex-direction: column; gap: 1.5rem; color: #484848; &.open { right: 0; } &-inner { // max-height: calc(100vh - 38rem); overflow: auto; } &-content { background-color: $bg; border-top-left-radius: 0.5rem; border-bottom-left-radius: 0.5rem; box-shadow: $boxShadow; color: $textColor; } &-accordion { padding: 1.125rem 1rem; border-bottom: 2px solid var(--primary-color); max-height: 4rem; overflow: hidden; transition: max-height 300ms linear; &:last-child { border-bottom: none; } h3 { font-weight: 700; font-size: 1.25rem; } p { &:not(:last-child) { margin-bottom: 1rem; } } &-title { display: flex; align-items: center; justify-content: flex-start; gap: 1rem; color: var(--primary-color); cursor: pointer; svg { flex-shrink: 0; } } &.open { max-height: 50vh; } &-content { max-height: 20vh; overflow: auto; margin-top: 1.125rem; } } h2 { font-size: 1.5rem; text-align: center; padding: 0.5rem 1rem; min-height: 3rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; font-weight: 700; text-transform: uppercase; line-height: 1; border-bottom: 2px solid var(--primary-color); } }