body {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: center;
}

main {
    flex-grow: 1;
    flex-shrink: 0;
    display: flex;
}
#nav-wrapper {
    text-transform: uppercase;
    font-weight: 400;
    font-style: normal;
}
@media only screen and (min-width: 601px) {
    #nav-wrapper {
        position: fixed;
        z-index: 20;
        top: 50%;
        left: 50%;
        transform: translate(-100%, -50%);
        text-align: right;
        line-height: 3.7em;
        padding-right: 30px;
        border-right: solid 1px #AAAAAA;
        height: 50vh;
        min-height: 420px;
        max-height: 550px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}
.nav__links {
    display: block;
    font-size: 3em;
    color: var(--slate);
    letter-spacing: var(--letter-spacing-h);
    text-decoration: none;
}
.nav__links:hover:not(.active) {
    text-decoration: underline;
}
.nav__links.active {
    color: #000000;
    font-weight: 700;
    cursor: default;
}

#section-wrapper { 
    position: relative;
    flex-grow: 1;
    flex-shrink: 0;
    text-align: left;
}
#section-wrapper::before,
#section-wrapper::after {
    content: '';
	position: absolute;
    z-index: 10;
	left: 0;
    display: block;
	width: 98.75%;
	width: calc(100% - 16px);
	height: 24vh;
}
#section-wrapper::before {
	top: 0;
	background-image: linear-gradient(0deg, transparent, #fff 20%);
}
#section-wrapper::after {
	bottom: 0;
	background-image: linear-gradient(0deg, #ffffff 80%, transparent);
}
#section-wrapper-scroller {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding-left: 50%;
    overflow: hidden auto;
    scroll-behavior: smooth !important;
}
#section-wrapper-scroller-body {
    min-width: 420px;
    max-width: 500px;
    padding-left: 30px;
    padding-bottom: 36vh;
}
section#about {
    padding-top: 27vh;
}
section#services {
    padding-top: 30vh;
}
section#techstack {
    padding-top: 25vh;
}
section#contact {
    padding-top: 28vh;
}
section p {
    font-size: 1.25em;
    text-align: left;
    letter-spacing: var(--letter-spacing-p);
}
section p > span {
    display: block;
}
.textStyle-command {
    color: var(--green);
    font-style: italic;
    margin-bottom: 0.625em;
}
.textStyle-command::before {
    content: '>';
    margin-right: 9px;
}
.textStyle-plain {
    margin-left: var(--text-indent);
    font-weight: 600;
}
.textStyle-emojiBullet {
    display: block;
}
.textStyle-emojiBullet::before {
    content: ' ';
    background-size: 1.1875em;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
    height: 1.1875em;
    width: 1.1875em;
    display: inline-block;
    object-fit: contain;
}
.textStyle-emojiBullet.heartStruck::before {
    background-image: url('/static/emoji/heart_struck.png');
}
.textStyle-emojiBullet.star::before {
    background-image: url('/static/emoji/star.png');
}
.textStyle-emojiBullet.rocket::before {
    background-image: url('/static/emoji/rocket.png');
}

#services-list {
    font-size: 1.25em;
    font-weight: 600;
    margin: 0;
    list-style-type: disclosure-closed;
}
#services-list > li {
    margin: 0 0 1.25rem;
    line-height: 1.2;
}
#services-list > li > a {
    font-size: .875rem;
}


#techstack-list-img {
    min-width: 300px;
    max-width: 370px;
    width: 100%;
    object-fit: contain;
}



/*
    HD Display - Landscape - DPR Fix
*/
@media only screen and (min-height: 720px) and (max-width: 1920px) and (min-resolution: 1.25dppx) and (max-resolution: 2dppx) and (orientation: landscape) {
    body {
        font-size: 0.875rem;
    }
    section#services {
        padding-top: 33vh;
    }
    section#techstack {
        padding-top: 22.5vh;
    }
    section#contact {
        padding-top: 28vh;
    }
}



/*
    HD Display - Landscape
*/
@media only screen and (max-width: 1280px) and (orientation: landscape) {
    #section-wrapper::after,
    #section-wrapper::before {
        height: 21vh;
    }
    #section-wrapper-scroller-body {
        min-width: 370px;
        max-width: 470px;
    }
    section#about {
        padding-top: 24vh;
    }
    section#services {
        padding-top: 31vh;
    }
    section#techstack {
        padding-top: 23vh;
    }
    section#contact {
        padding-top: 25vh;
    }
    section p {
        font-size: 1.125em;
    }
}



/*
    TABLET - PORTRAIT
*/
@media only screen and (max-width: 840px) and (orientation: portrait) {
    #nav-wrapper {
        line-height: 3.4em;
        padding-right: 18px;
    }
    .nav__links {
        font-size: 2.75em;
    }
    #section-wrapper-scroller-body {
        min-width: 320px;
        max-width: 370px;
        padding-left: 18px;
    }
    section#about {
        padding-top: 29vh;
    }
    section#services {
        padding-top: 32vh;
    }
    section#techstack {
        padding-top: 25vh;
    }
    section#contact {
        padding-top: 30vh;
    }
    #techstack-list-img {
        min-width: 250px;
        max-width: 320px;
    }
    section p,
    #services-list {
        font-size: 1.125em;
    }
}



/*
    MOBILE - LANDSCAPE
*/
@media only screen and (max-width: 1200px) and (max-height: 520px) and (orientation: landscape) {
    #nav-wrapper {
        line-height: 2.75em;
        min-height: 240px;
        max-height: 440px;
        height: 80%;
    }
    .nav__links {
        font-size: 2.25em;
    }
    #section-wrapper::before,
    #section-wrapper::after {
        width: 100%;
        height: 5vh;
    }
    #section-wrapper::before {
        background-image: linear-gradient(0deg, transparent, #fff 100%);
    }
    #section-wrapper::after {
        background-image: linear-gradient(0deg, #ffffff 0%, transparent);
    }
    #section-wrapper-scroller-body {
        width: 96%;
        min-width: 300px;
        max-width: 390px;
    }
    section#about {
        padding-top: 9vh;
        padding-top: 9dvh;
    }
    section#services {
        padding-top: 20vh;
        padding-top: 20dvh;
        padding-bottom: 15vh;
        padding-bottom: 15dvh;
    }
    section#techstack {
        padding-top: 4vh;
        padding-top: 4dvh;
    }
    section#contact {
        padding-top: 18vh;
        padding-top: 18dvh;
    }
    section p,
    #services-list {
        font-size: .875em;
    }
    #techstack-list-img {
        min-width: 220px;
        max-width: 260px;
    }
    footer {
        text-align: left;
        padding-top: 0;
        padding-left: 8px;
        background-image: linear-gradient(0deg, #ffffff 15%, transparent);
    }
}



/*
    MOBILE - PORTRAIT LONG
*/
@media only screen and (max-width: 600px) and (orientation: portrait) {
    main {
        flex-grow: 1;
        flex-shrink: 0;
        display: flex;
        flex-direction: column-reverse;
    }
    #nav-wrapper {
        flex-shrink: 0;
        flex-grow: 0;
        text-align: center;
        line-height: 1em;
        border-top: solid 1px #AAAAAA;
        border-bottom: solid 1px #AAAAAA;
        padding: 12px 0;
        margin: 0 16px;
    }
    .nav__links {
        font-size: 1.25em;
        line-height: 1.5em;
    }
    .nav__links.active {
        font-size: 2.625em;
        line-height: 1.05em;
    }
    #section-wrapper {
        margin: 0;
        padding: 0;
        -webkit-mask-image: linear-gradient(0deg, transparent 2%, #fff 12%, #fff 88%, transparent 98%);
                mask-image: linear-gradient(0deg, transparent 2%, #fff 15%, #fff 88%, transparent 98%);
    }
    #section-wrapper::before,
    #section-wrapper::after {
        content: none;
        display: none;
        height: 0;
    }
    #section-wrapper-scroller {
        padding-left: 0;
    }
    #section-wrapper-scroller-body {
        min-width: 0;
        max-width: none;
        padding-left: 16px;
        padding-right: 16px;
    }
    section#about {
        padding-top: 13vh;
        padding-top: 13svh;
    }
    section#services {
        padding-top: 18vh;
        padding-top: 18svh;
        padding-bottom: 20vh;
        padding-bottom: 20svh;
    }
    section#techstack {
        text-align: left;
        padding-top: 9vh;
        padding-top: 9svh;
        padding-bottom: 5vh;
        padding-bottom: 5svh;
    }
    section#contact {
        padding-top: 13vh;
        padding-top: 13svh;
    }
    section p,
    #services-list {
        font-size: 1em;
    }
    #techstack-list-img {
        min-width: 0;
        max-width: 420px;
    }
}

/*
    MOBILE - PORTRAIT REGULAR
*/
@media only screen and (max-width: 420px) and (max-height: 700px) and (orientation: portrait) {
    .nav__links {
        line-height: 1.375em;
    }
    .nav__links.active {
        font-size: 2.25em;
    }
    #section-wrapper {
        -webkit-mask-image: linear-gradient(0deg, transparent 1%, #fff 15%, #fff 90%, transparent 100%);
                mask-image: linear-gradient(0deg, transparent 1%, #fff 15%, #fff 90%, transparent 100%);
    }
    #section-wrapper-scroller {
        padding-bottom: 36%;
    }
    section#about {
        padding-top: 9vh;
        padding-top: 9svh;
    }
    section#services {
        padding-top: 13vh;
        padding-top: 13svh;
        padding-bottom: 18vh;
        padding-bottom: 18svh;
    }
    section#techstack {
        padding-top: 9vh;
        padding-top: 9svh;
        padding-bottom: 5vh;
        padding-bottom: 5svh;
    }
    section#contact {
        padding-top: 13vh;
        padding-top: 13svh;
    }
}
