@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');
nav {
    font-size: 24px;
    padding: 0.2vh 0.51vw;
}
@media screen and (min-width: 900px) {
    nav {
        padding: 0.2vh 1vw;
        flex-direction: row;
    }
}
nav svg {
    color: inherit;
    width: 24px;
    height: 24px;
    vertical-align: middle;
}
nav ul {
    padding: 0;
    margin: auto;
    display: flex;
    flex-direction: column-reverse;
}
@media screen and (min-width: 900px) {
    nav ul {
        flex-direction: row;
    }
}
nav ul li {
    list-style: none;
    flex: auto;
    margin: auto;
    text-align: right;
    padding: 0;
    font-size: 0.8em;
}
nav ul li a {
    color: inherit;
}
nav ul li:first-child {
    margin-top: 1em;
    font-size: 0.5em;
}
@media screen and (min-width: 900px) {
    nav ul li:first-child {
        margin-top: unset;
        font-size: unset;
        text-align: left;
    }
}

body {
    font-family: 'Libre Baskerville', serif;
    font-size: 18px;
}

html,
body {
    height: 100%;
}

a {
    color: inherit;
}

main {
    max-width: unset;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 16vh;
}

header {
    display: flex;
    height: 100%;
    text-align: center;
    padding-top: 16vh;
}

header img {
    width: 50%;
    height: auto;
    margin: auto;
    animation-name: loopscale;
    animation-direction: alternate;
    animation-duration: 30s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

@keyframes loopscale {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.4);
    }
}

canvas {
    width: 100%;
    height: 100%;
    touch-action: none;
    background-color: rgba(0, 0, 0, 0);
    display: block;
    font-size: 0;
    outline: none;
}

.pg-features {
    --hue: 178;
    --half: calc(180 + 178);
    --sat: 20%;
    --lum: 60%;
    animation: loop 155000ms infinite;
}

.pg-features footer {
    color: black;
    background-color: white;
}

.feature {
    --width: 320px;
}
.feature {
    width: 100%;
    max-width: var(--width);
    margin: 0 2% 5%;
    padding: 0 0 5%;
    position: relative;
    display: flex;
    flex-direction: column;
    color: white;
}
.feature:hover a {
    color: red;
}
.feature p {
    font-size: 24px;
    text-align: center;
    line-height: 1.5;
    text-shadow: 0 2px 2px #0000003f;
    flex: 1 auto;
}
.feature-image {
    margin-bottom: 30px;
}
.feature-image img {
    width: 240px;
    height: auto;
    display: block;
    border-radius: 50%;
    border: 30px solid white;
    margin: auto;
}
.feature-title {
    font-size: 40px;
    display: block;
    text-align: center;
    line-height: 0.9;
    color: white;
    font-weight: 600;
    text-shadow: 0 8px 10px #00000033;
    padding: 0 10px;
}
.feature-desc {
    flex: 1 0 auto;
}
.feature-links {
    text-align: center;
}
.feature-links img {
    height: 38px;
    color: white;
    filter: invert(1);
}
.feature-links a {
    text-decoration: none;
    margin: 0 10px;
}
.feature-links a:hover img {
    color: red;
}

.babylon {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 0;
}
.babylon canvas {
    position: fixed;
}
@media screen and (min-width: 700px) {
    .babylon {
        display: block;
    }
}

@keyframes loop {
    0% {
        background-color: hsla(var(--hue), var(--sat), var(--lum), 1);
    }
    50% {
        background-color: hsla(var(--half), var(--sat), var(--lum), 1);
    }
    100% {
        background-color: hsla(var(--hue), var(--sat), var(--lum), 1);
    }
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: 14px;
    padding: 1%;
    background: white;
    color: black;
    margin: 0 15px 10px;
    z-index: 1;
}

.page-chapter footer {
    background: black;
    color: white;
}

@media screen and (min-width: 900px) {
    footer {
        margin: 0 20px 20px;
    }
}

footer a {
    color: inherit;
    display: inline-block;
    vertical-align: middle;
    margin: 1px 2px;
}

footer svg.xxiivv {
    height: 20px;
}
footer span.xxiivv {
    width: 5rem;
    display: inline-block;
    text-align: center;
}
footer .left,
footer .right {
    flex: auto;
}

footer .right {
    text-align: right;
}

footer .hidden {
    display: none;
}

.straddle {
    width: 140%;
    margin: 0 -20%;
}

.photoframe {
    border: 31px solid white;
    box-shadow: 0 15px 30px -30px #000000ff;
}

.fullwidth {
    width: 100%;
}

.invert {
    filter: invert(1);
    height: 20px;
    width: auto;
    vertical-align: middle;
}
