/* PAGES */
html {
    height: 100%;
    overflow: hidden;
}

body {
    display: flex;
    flex-direction: column;
    margin: 0;
    height: 100%;
    text-align: center;
    font-family: Calibri, sans-serif;
    overflow-y: auto;
    scrollbar-width: none;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    scroll-marker-group: after;
}

body::scroll-marker-group {
    position: absolute;
    top: 0;
    left: min(7.5vw, 7.5vh);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 0;
    height: 100%;
    padding: min(5vw, 5vh) 0;
    box-sizing: border-box;
}

div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: min(5vw, 5vh);
    padding: min(5vw, 5vh) min(15vw, 15vh);
    min-height: 100%;
    box-sizing: border-box;
    scroll-snap-align: center;
}

div::scroll-marker {
    content: "\01F525";
    font-size: 1.3em;
    text-decoration: none;
    filter: grayscale(1);
}

div::scroll-marker:target-after {
    filter: none !important;
}

div::scroll-marker:target-current {
    content: "\01F692";
    outline: none;
    filter: none;
}



/* TIMELINE */
ol {
    position: relative;
    display: flex;
    flex-direction: row-reverse;
    margin: 0;
    padding: 0;
    list-style-type: none;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scroll-marker-group: after;
    anchor-name: --ol2;
    --emoji: "\01F534";
}

div:nth-child(3) ol {
    anchor-name: --ol3;
    --emoji: "\01F393";
}

div:nth-child(4) ol {
    anchor-name: --ol4;
    --emoji: "\01F4BC";
}

div:nth-child(5) ol {
    anchor-name: --ol5;
}

ol::scroll-marker-group {
    position: absolute;
    left: 0;
    bottom: anchor(bottom);
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    padding: 0 min(15vw, 15vh);
    box-sizing: border-box;
    position-anchor: --ol2;
}

div:nth-child(3) ol::scroll-marker-group {
    position-anchor: --ol3;
}

div:nth-child(4) ol::scroll-marker-group {
    position-anchor: --ol4;
}

div:nth-child(5) ol::scroll-marker-group {
    position-anchor: --ol5;
}

li {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1em;
    min-width: 100%;
    aspect-ratio: 1;
    scroll-snap-align: center;
}

li::scroll-marker {
    content: var(--emoji);
    font-size: .6em;
    text-decoration: none;
    filter: grayscale(1);
}

li::scroll-marker:target-current {
    filter: none;
    outline: none;
    font-size: .9em;
}

time {
    display: flex;
    align-items: center;
    gap: 1em;
    color: grey;
    font-size: .8em;
}

time::before, time::after {
    content: "";
    flex-grow: 1;
    height: .05em;
    border-radius: .025em;
    background-color: lightgrey;
}

li:first-child time::after, li:last-child time::before {
    background-color: transparent;
}



/* OTHER */
h1, h2 {
    margin: 0;
    line-height: 1em;
    color: crimson;
    letter-spacing: .05em;
    -webkit-text-stroke: .05em crimson;
}

h3 {
    margin: 0;
    line-height: .8em;
}

p {
    margin: 0;
    font-size: .8em;
}

img {
    flex-grow: 1;
    object-fit: contain;
}

::scroll-marker {
    transition: transform .1s;
}

::scroll-marker:hover {
    transform: scale(1.1);
}