@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400;1,700&display=swap');

* {
    box-sizing: border-box;
}

html {
    font-size: 18px;
}

@media (max-width: 600px) {
    html {
        font-size: 22px;
    }
}

body {
    font-family: 'Atkinson Hyperlegible', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.4;
    background: rgb(32, 32, 32);
    color: rgb(203, 203, 203);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1,
h2 {
    text-align: center;
    font-family: 'Atkinson Hyperlegible', sans-serif;
    color: rgb(203, 203, 203);
    line-height: 1.2;
    margin: 0;
    padding: 0;
}

h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.15rem;
    font-style: italic;
    font-weight: 400;
    color: rgb(203, 203, 203);
}

.header {
    padding-top: 3em;
    padding-bottom: 3em;
}

.byline {
    font-style: italic;
}

.written-in-ink {
    z-index: 3;
    font-size: 0.5rem;
    font-family: 'Atkinson Hyperlegible', sans-serif;
    text-align: center;
    font-weight: 700;
    position: fixed;
    display: block;
    width: 100%;
    background: rgb(32, 32, 32);
    color: rgb(203, 203, 203);
    margin: 0;
    padding-top: 6px;
    padding-bottom: 6px;
    height: 14px;
    top: 0;
}

.outerContainer {
    position: absolute;
    display: block;
    margin: 0;
    padding: 0;
    -webkit-overflow-scrolling: touch;
    overflow: scroll;
    overflow-x: hidden;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    margin-top: 24px;
    background-size: cover;
    background-repeat: no-repeat;
}

@media screen and (max-width: 980px) {
    .outerContainer {
        margin-top: 56px;
    }
}

.container {
    display: block;
    max-width: 38em;
    margin: 0 auto;
    padding: 1.25rem;
    padding-top: 4em;
    padding-bottom: 100vh;
    background: rgb(32, 32, 32);
}

p {
    font-size: 1rem;
    color: rgb(203, 203, 203);
    line-height: 1.7;
    font-weight: 400;
    margin: 0 0 1em 0;
}

a {
    font-weight: 700;
    color: rgb(1, 192, 252);
    font-family: 'Atkinson Hyperlegible', sans-serif;
    text-decoration: none;
}

.unclickable {
    font-weight: 700;
    color: rgb(100, 100, 100);
    font-family: 'Atkinson Hyperlegible', sans-serif;
    text-decoration: none;
    cursor: not-allowed;
}

a:hover {
    color: white;
}

@media screen and (prefers-reduced-motion: no-preference) {
    a {
        transition: color 0.6s;
    }

    a:hover {
        transition: color 0.1s;
    }
}

strong {
    color: rgb(203, 203, 203);
    font-weight: bold;
}

img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

.container.fade-out {
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.container .hide {
    opacity: 0.0;
}

.container .invisible {
    display: none;
}

.container>* {
    opacity: 1.0;
}

@media screen and (prefers-reduced-motion: no-preference) {
    .container>* {
        transition: opacity 1.0s;
    }
}

.scene-title {
    text-align: center;
    font-weight: 700;
    padding-top: 0.5em;
}

.choice {
    text-align: center;
    line-height: 1.7em;
}

:not(.choice)+.choice {
    padding-top: 1em;
}

.choice a, .choice span {
    font-size: 1rem;
    font-weight: 400;
}

.end {
    text-align: center;
    font-weight: bold;
    color: rgb(203, 203, 203);
    padding-top: 20px;
    padding-bottom: 20px;
}

#controls {
    z-index: 4;
    font-size: 0.5rem;
    text-align: center;
    padding-bottom: 6px;
    position: fixed;
    right: 14px;
    top: 4px;
    user-select: none;
    background: rgb(32, 32, 32);
    color: rgb(203, 203, 203);
}

#controls [disabled] {
    color: rgb(80, 80, 80);
}

#controls>*:not(:last-child):after {
    content: " | ";
}

@media screen and (max-width: 980px) {
    #controls {
        z-index: 2;
        padding-top: 24px;
        top: 0;
        left: 0;
        right: 0;
    }
}
