/* GENERAL */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}
body {
    background-color: #FCFBF9;
}

body {
    cursor: url('cursor-files/default.svg') 2 2, auto;
}
a {
    cursor: url('cursor-files/pointer.svg') 10 10, pointer;
}
a[href^="http"] {
    cursor: url('cursor-files/pointer-external.svg') 10 10, pointer;
}
a[href^="#"] {
    cursor: url('cursor-files/pointer-anchor.svg') 10 10, pointer;
}
h1,h2,h3,h4,h5,h6,p {
    cursor: url('cursor-files/text.svg') 3 15, text;
}
.legend-fab {
    cursor: url('cursor-files/pointer.svg') 10 10, pointer;
}

@media screen and (max-width: 1080px), screen and (max-height: 720px) {
    body:before {
        content: "This is a desktop application. Please resize your window to at least 1080x720 pixels or zoom out to view this essay";
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #303E48;
        color: #FFA600;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        text-align: center;
        padding: 20px;
        z-index: 99999;
        font-family: "ABC Marist Unlicenced Trial", serif;
        font-weight: 600;
    }
}


/* FONTS */

@font-face {
    font-family: "ABC Marist Unlicenced Trial";
    src: url('static/fonts/ABCMarist-Regular-Trial.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "ABC Marist Unlicenced Trial";
    src: url('static/fonts/ABCMarist-RegularItalic-Trial.woff2') format('woff2');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}
/* @font-face {
    font-family: "ABC Marist Unlicenced Trial";
    src: url('static/fonts/ABCMarist-BoldItalic-Trial.woff2') format('woff2');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
} */
@font-face {
    font-family: "ABC Marist Unlicenced Trial";
    src: url('static/fonts/ABCMarist-SemiBold-Trial.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "ABC Marist Unlicenced Trial";
    src: url('static/fonts/ABCMarist-Bold-Trial.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}
p {
    font-family: "ABC Marist Unlicenced Trial", serif; 
    font-size: 24px;
    line-height: 130%;
    margin-bottom: 18px;
}
a {
    color: #FFA600;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
    cursor: "cursor-files/pointer.svg", auto;

}
a:visited {
    text-decoration: none;
}
h1 {
    /* font-family: "Bricolage Grotesque Condensed", sans-serif; */
    font-family: "Bricolage Grotesque", sans-serif;


    font-weight: 700;
    font-size: 96px;
    line-height: 90%;
}
h1 span {
    color: #FFA600;
}
.author {
    font-family: "ABC Marist Unlicenced Trial", serif; 
    font-size: 24px;
    line-height: 130%;
}
h2 {
    font-family: "Bricolage Grotesque", sans-serif;   
    font-size: 64px;
    line-height: 115%;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    margin-bottom: 64px;
    margin-top: 196px;
}
h3 {
    font-size: 32px;
    line-height: 115%;
    font-family: "Bricolage Grotesque", sans-serif;
    font-optical-sizing: auto;
    font-weight: SemiBold;
    font-style: normal;
    margin-bottom: 32px;
    margin-top: 64px;
}
h4 {
    font-family: "ABC Marist Unlicenced Trial", serif; 
    font-size: 24px;
    font: bold;
    line-height: 115%;
    margin-bottom: 18px;
    margin-top: 36px;
}
.small-title {
    font-style: italic;
    margin-top: 36px;
}
em, emphasis {
    font-style: italic;
}
.rq {
    color: #FFA600;
    font-style: italic;
    font-size: 36px;
    /* padding: 0 75px 0 75px;  */
    line-height: 115%;
    margin-bottom: 16px;
    margin-right: -12px;
    max-width: 720px;
}
.comment {
    font-family: "Geist Sans", "sans-serif";
    font-size: 24px;
}
/* .descriptive-text {
    font-family: "Geist Sans", "sans-serif";
    font-size: 20px;
    background-color: #becec180;
    border-radius: 24px;
    outline: #becec140 12px solid;
    line-height: 150%;
    margin-top: 48px;
    padding: 24px;
    padding-bottom: 28px;
} */
/* p.blue { */
    /* color: #303E48; */
    /* color: rgba(32, 65, 89, 0.7); */
    /* border-left: 12px solid hsl(131, 14%, 78%, .6);
    padding-left: 20px; */
    /* margin-top: 48px; */
    /* margin-left: -28px; */
    /* font-family: "Helvetica Neue", sans-serif; */
    /* font-size: 23px;
    line-height: 31px; */
/* } */
.description-hold {
    border-left: 12px solid hsl(131, 14%, 78%, .6);
    padding-left: 20px;
    margin-top: 40px;
}
.description-hold.type-video {
    border-left: 12px solid hsla(300, 33%, 69%, 0.6);
}
.description-hold.type-image {
    border-left: 12px solid hsla(39, 64%, 79%, 0.6);
}
.description-hold.type-interactive {
    border-left: 12px solid hsla(131, 14%, 78%, 0.6);
}
.description-hold.type-slider {
    border-left: 12px solid hsla(39, 64%, 79%, 0.6);
}
.marked-text {
    display: inline;
    color: black;
    padding: 0 4px;
    margin: 0 4px;
    background-color: hsl(39, 100%, 60%);
    font-family: "ABC Marist Unlicenced Trial", serif;
    font-weight: 600;
} 
p.paragraph-note {
    /* font-family: "Geist Sans", "sans-serif";
    font-size: 20px;
    color: #b0a99d; */
    /* font-family: "Helvetica Neue", sans-serif; */
    font-family: "Bricolage Grotesque", sans-serif;

    font-size: 32px;
    font-weight: bold;
    color: hsl(131, 14%, 78%, .9);
    padding-top: 0;
    line-height: 32px;
}

p.paragraph-note.type-video {
    color: hsla(300, 33%, 69%, 0.9);
}
p.paragraph-note.type-image {
    color: hsla(39, 64%, 79%, 0.9);
}
p.paragraph-note.type-interactive {
    color: hsla(131, 14%, 78%, 0.9);
}
p.paragraph-note.type-slider {
    color: hsla(39, 64%, 79%, 0.9);
}



/* HEADER */

header {
    color: white;
    width: 100%;
    /* height: 100vh; */
    padding-bottom: 100vh;
    z-index: 10000;
    position: absolute;
    top: 0;
    pointer-events: none;

}
.header-inlay {
    /* background-color: white; */
    background-color: #303E48;
    width: 100%;
    height: 100vh;
    /* border: green 3px solid; */
    pointer-events: auto;
}
.header-content-hold {
    display: flex;
    flex-direction: column;
    /* justify-content: center;
    align-items: center; */
    height: 100%;
    padding: 0 20px;
}
.header-top {
    height: 50%;
    display: flex;
    flex-direction: column;
    gap: 48px;
    justify-content: start;
    align-items: start;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding-top: 240px;
}
.header-top p {
    font-size: 28px;
    max-width: 720px;
}
.header-bottom {
    width: 100%;

    height: 50%;
    display: flex;
    justify-content: end;
    align-items: end;
    max-width: 1280px;
    margin: 0 auto;
}
main {
    position: fixed;
    top: 0;
    z-index: 0;
    width: 100%;
}
.authors-hold {
    display: flex;
    gap: 24px;
    margin-bottom: 64px;
}


/* ESSAY PROGRESS BAR */

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: #FFA600;
    z-index: 1000;
    transition: width 0.1s;
}


/* MAIN ESSAY UI */
  
main {
    display: flex;
    flex-direction: column;
    gap: 256px;
}
.essay-hold {
    display: flex;
    flex-direction: column;
    gap: 256px;
    width: 100%;
}
.chapter-hold {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 172px;
    /* outline: 10px solid rgb(255, 0, 0, .5); */
}
.paragraph-hold {
    width: 100%;
    max-width: 1080px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    
    width: 100%;
    /* border: 1px dashed black; */
    gap: 64px;
    /* padding: 50px; */
    box-sizing: inherit;
    /* min-height: 100vh; */

}
.device-hold {
    margin-left: 125px;
    width: 375px;
    height: 812px;
    /* outline: red 1px solid; */
    position: sticky;
    top: calc((100vh - 812px - 12px) / 2);
}
.device img {
    width: 100%;
}
.essay-side {
    width: 50%;
    /* border: 3px dashed blue; */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.design-side {
    width: 50%;
    /* border: 3px dashed green; */
    position: relative;
    /* height: 100vh; */
}

.essay-snippet {
    max-width: 512px;
}
.essay-visual {
    width: 100vw;
    max-width: 1512px;
}
.essay-visual img {
    width: 100%;
}


/* SCREEN STUFF */

.device-claim {
    display: flex;
    gap: 6px;
    width: 375px;
    align-items: center;
    justify-content: center;
    margin-top: 20px;

    font-family: 'Helvetica', sans-serif;
    font-weight: bolder;
}
.type-interactive + .device-claim {
    color: #becec1;
}
.type-video + .device-claim {
    color: #c49ac6;
}
.type-image + .device-claim {
    color: #ebd0a7;
}
.type-slider + .device-claim {
    color: #ebd0a7;
}
.type-actual + .device-claim {
    color: #a3d3e9;
}
video {
    width: 100%;
}
.video-controls {
    display: flex;
    gap: 6px;
    width: 375px;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    /* outline: 1px solid red; */
    padding: 0 160px;
}
.video-controls a {
    
    text-decoration: none;
    color: #666;
}
.progress-bar {
    flex-grow: 1;
    height: 4px;
    background: #eee;
    border-radius: 2px;
}
.progress {
    width: 0%;
    height: 100%;
    background: #303E48;
    border-radius: 2px;
}
.playPause {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    outline: none;
}
.mute-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    outline: none;
}


/* REFERENCES */

footer {
    color: white;
    font-size: 20px;
    margin-top: 64px;
    padding-bottom: 120px;
    width: 100%;
    z-index: 100;
    background-color: #303E48;

}
.footer-inlay {
    width: 100%;
    background-color: #303E48;
}
.references {
    font-size: 16px;
    line-height: 130%;
    font-family: "ABC Marist Unlicenced Trial", serif; 
    margin-top: 64px;
    max-width: 960px;
    margin: auto;
    padding: 72px 0;
}
.references p {
    margin-bottom: 18px;
    font-size: 18px;
}
.references a {
    color: #FFA600;
    text-decoration: none;

}
.references a:hover {
    text-decoration: underline;
}
.references a:visited {
    text-decoration: none;
}
.lit-arrow {
    color: #FFA600;
    display: none;
    margin-right: 4px;
}
.active-arrow {
    display: inline-block;
}


/* LEGEND/KEY */

.legend-fab {
    position: fixed;
    z-index: 2;
    bottom: 20px;
    left: 20px;
    background-color: #FFA600;
    border-radius: 25px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.legend-fab.expanded {
    width: 460px;
    border-radius: 25px;
    justify-content: space-between;
    padding-right: 20px;
    padding-left: 20px;
}
.legend-icon {
    font-size: 24px;
    color: white;
}
.legend-content {
    display: none;
    flex-direction: row;
    padding: 10px;
    gap: 16px;
    padding-top: 13px;
}
.legend-fab.expanded .legend-content {
    display: flex;
}
.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}
.legend-circle {
    width: 14px;
    height: 14px;
    border-radius: 7px;
    margin-right: 6px;
}
.legend-item span {
    color: white;
}

/* IPHONE SLIDER */

.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.slider {
    display: flex;
    transition: transform 0.3s ease;
}
.slider img {
    width: 100%;
    flex-shrink: 0;
}
.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,1);
    color: white;
    border: none;
    height: 48px;
    width: 24px;
    cursor: pointer;
    z-index: 1;
}
.arrow {
    height: 16px;
}
.prev { 
    left: 0px;  
    border-radius: 0 100px 100px 0; 
    padding-right: 10px; 
}
.next { 
    right: 0px; 
    border-radius: 100px 0 0 100px; 
    padding-left: 10px;  
}












/* TABLE OF CONTENTS */

.toc-wrapper {
    position: auto;
    top: 0;
    z-index: 1000;
    width: 100%;
    /* padding-bottom: 100vh; */
    pointer-events: none;
    font-family: "ABC Marist Unlicenced Trial", serif;
    /* border: red solid 3px; */
}

.toc-inlay {
    background-color: rgba(242, 239, 233);
    width: 100%;
    height: 100vh;
    /* border: green 3px solid; */
    pointer-events: auto;
    display: flex;
    justify-content: center;
    /* border: green dashed 3px; */

}

.toc {
    font-family: "ABC Marist Unlicenced Trial", serif;
    font-size: 24px;
    list-style: none;
    width: 100%;
    max-width: 1080px;
    /* margin-top: -72px; */
    position: relative;
    /* border: blue dotted 3px; */
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.toc ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    /* border: yellow solid 3px; */
}
.toc ul h2 {
    margin-top: 0;
    /* margin-bottom: 32px; */
}
.toc li {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    /* margin-left: -28px; */
    margin-bottom: 8px;
}
.toc li.toc-3-deg {
    margin-left: 36px;
}
.toc li.toc-2-deg, li.toc-1-deg {
    margin-top: 12px;
}
.main-toc-item { /* the circle infront */
    background-color: #FFA600;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    margin-top: -1px;
}
.screen-bullet {
    border: 2px solid #FFA600;
    border-radius: 3px;
    height: 24px;
    width: 16px;
    margin-top: -3px;
}
.toc a:hover {
    /* text-decoration: underline; */
    color: #FFA600;
}
.toc ul ul {
    margin-left: 20px;
}
.toc a {
    text-decoration: none;
    color: black;
}

.toc-preview-img {
    position: absolute;
    width: 256px;
    top: 50%;
    right: 60;
    transform: translateY(-50%);
    opacity: 0;

    border-radius: 28px;
    outline: 4px #FFA600 solid;
}
.nav-img-placeholder {
    position: absolute;
    width: calc(256px * .85);
    height: calc(554px * .85);
    top: 50%;
    right: 80;
    transform: translateY(-50%) ;
    outline: 4px hsla(39, 100%, 50%, 0.33) dashed;
    border-radius: calc(32px * .85);

}
.toc ul li a:hover ~ img {
    opacity: 1;
}
div:has(+ a:hover) {
    background-color: #FFA600;   
}









/* SIDE MENU */

.side-toc-wrapper {
    position: sticky;
    position: -webkit-sticky;
    /* z-index: 1000; */
    top: 20px;
    margin-left: 20px;
    align-items: flex-start;
    padding: 0;

    margin-top: -236px; 
    margin-bottom: -256px; 
}
.side-toc-wrapper ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.side-toc-wrapper li {
    overflow: hidden;
    width: 16px;
    height: 16px;
    background: #FFA600;
    border-radius: 200px;
    font-size: 20px;
    color: #FFA600;
    margin-bottom: 12px;
    /* font-family: "Helvetica Neue", sans-serif;
    font-weight: medium;
    font-size: 18px; */

}
.side-toc-wrapper li:hover {
    width: auto;
    height: 32px;
    margin-top: -8px;
    margin-bottom: 4px;
}
.side-toc-wrapper li:hover a {
    padding: 4px 12px 2px 12px;
}
.side-toc-wrapper .side-toc a {
    color: white;
}
.side-toc-wrapper li a {
    display: none; 
}
.side-toc-wrapper li:hover a {
    display: inline-block;
    text-decoration: none;
}