:root {
    --dark-color: #0d3b66;
    --light-color: #faf0ca; 
}

body {
    margin: 10%;
    padding: 0%;
    background-color: var(--dark-color);
    color: var(--light-color);
    font-size: 1.1rem;
    font-family: "Enby-Gertrude";
    text-align: justify;
    text-justify: auto;
}

hr {
    border: none;
    border-top: 0.5rem dotted var(--light-color);
    margin-top: 5rem;
    margin-bottom: 5rem;
}

div.titre {
    width: 100%;
    font-size: 4rem;
    font-family: "UnormativeFraktur";
    text-align: center;
}

span.gertrude {
    font-family: "Enby-Gertrude";
}

span.fraktur {
    font-family: "UnormativeFraktur";
}

a:link {
  color: var(--light-color);
}

a:hover {
  color: var(--light-color);
  filter: brightness(110%) drop-shadow(0 0 1rem var(--light-color));
}

a:visited {
    color: var(--light-color);
    filter: brightness(50%);
}

a:active {
    color: var(--light-color);
    filter: brightness(200%) drop-shadow(0 0 2rem var(--light-color)); 
}

div.a6pages-container {
    width: 100%;
    display: grid;
    place-items: center;
    justify-content: center;
    gap: 5rem;
    grid-template-columns: repeat(auto-fit, 105mm);
    margin-bottom: 5rem;
}

div.a6page {
    width: 105mm;
    height: 148mm;
    box-sizing: border-box;
    padding: 1rem;
    border: 3px solid var(--dark-color);
    border-style: dotted;
    background-color: var(--light-color);
    color: var(--dark-color);
    text-align: justify;
    text-justify: auto;
    overflow-y: hidden;
}

div.a6page h1 {
    font-size: 1.8rem;
    font-family: "UnormativeFraktur";
    margin-top: 0;
    margin-bottom: 0;
}
div.a6page p {
    font-size: 0.9rem;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    line-height: 1.1rem;
}

div.a6page ul {
    font-size: 0.9rem;
    padding-left: 1rem;
    margin-top: 0.5rem;
}

div.a6page li {
    margin-bottom: 0.5rem;
}

a.nav-button {
    display: inline-block;
    padding: 1rem;
    border: 3px;
    border-style: dotted;
    background-color: var(--light-color);
    font-family: "UnormativeFraktur";
    font-size: 1.5rem;
    text-decoration: none;
}

a.nav-button:link {
    color: var(--dark-color);
}

a.nav-button:hover {
    filter: brightness(110%) drop-shadow(0 0 1rem var(--light-color));
}

a.nav-button:visited {
    background-color: var(--dark-color);
    color: var(--light-color);
}

div.timeline {
    position: relative;
    margin-top: 1rem;
    --item-width: min(50%, 300px);
}

div.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--light-color);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}


div.timeline-item-left, div.timeline-item-right {
    position: relative;
    box-sizing: border-box;
    padding: 1rem;
    background-color: var(--dark-color);
    color: var(--light-color);
    margin-bottom: 2rem;
    border: 3px solid var(--light-color);
    border-style: dotted;
}

div.timeline-item-left {
    width: calc(var(--item-width) - 1rem);
    left: calc(50% - var(--item-width));
    text-align: right;
}

div.timeline-item-right {
    width: var(--item-width);
    margin-left: 1rem;
    left: 50%;   
    text-align: left; 
}

div.timeline-item-left::before, div.timeline-item-right::before {
    content: '';
    position: absolute;
    width: 1rem;
    height: 1rem;
    background: var(--light-color);
    border-radius: 50%;
    top: 1.5rem;
    z-index: 1;
}

div.timeline-item-left::before {
    right: -1.6rem;
}

div.timeline-item-right::before {
    left: -1.7rem;
}

div.timeline-date {
    font-family: "Enby-Gertrude";
    font-size: 1.5rem;
}

div.timeline-title {
    font-size: 1.25rem;
}

div.timeline-text {
    font-size: 1rem
}

/* See https://stackoverflow.com/a/20328400 
for LIST-ITEMS shenanigans*/
ol.verses {
    /* don't touch */
    counter-reset: LIST-ITEMS;
    /* style */
    margin: 0;
    padding: 0;
    line-height: 1.5rem;
}

ol.verses li {
    /* don't touch */
    display: inline;
}

ol.verses li::before {
    /* don't touch */
    content: counter( LIST-ITEMS );
    counter-increment: LIST-ITEMS;
    /* style */
    position: relative;
    top: -0.5rem;
    padding-right: 0.5em;
    font-size: 0.8rem;
    font-weight: bold;
    filter: brightness(80%);
    
}

ol.verses h1 {
    font-family: "UnormativeFraktur";
}