@import url('https://fonts.googleapis.com/css?family=Open+Sans:300,700|Quattrocento:700');

body {
    font-family: 'Open Sans', sans-serif;
    font-weight: lighter;
    background: white;
    overflow: hidden;
}

@media screen and (prefers-reduced-motion: no-preference) {
    body.switched {
        transition: color 0.6s, background-color 0.6s;
    }
}

h1,
h2 {
    text-align: center;
    font-family: "Quattrocento", Georgia, 'Times New Roman', Times, serif;
    margin: 0;
    padding: 0;
}

h1 {
    font-size: 30pt;
    margin-bottom: 10px;
}

h2 {
    font-size: 14pt;
    font-style: italic;
    font-family: sans-serif;
    font-weight: lighter;
    color: #BBB;
}

.header {
    padding-top: 3em;
    padding-bottom: 3em;
}

/*
  Built-in class:
    # author: Name
*/
.byline {
    font-style: italic;
}

.written-in-ink {
    z-index: 3;
    font-size: 9pt;
    font-family: sans-serif;
    text-align: center;
    font-weight: 700;
    position: fixed;
    display: block;
    width: 100%;
    background: white;
    margin: 0;
    padding-top: 6px;
    padding-bottom: 6px;
    height: 14px;
    top: 0;
}

@media screen and (prefers-reduced-motion: no-preference) {
    .written-in-ink {
        transition: color 0.6s, background 0.6s;
    }
}

/* 
  Enables <iframe> support work on itch.io when using mobile iOS
*/
.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: 44px;
        background-size: cover;
        background-repeat: no-repeat;
    }
}

.container {
    display: block;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 4em;
    background: white;
}

@media screen and (prefers-reduced-motion: no-preference) {
    .switched .container {
        transition: background-color 0.6s;
    }
}

p {
    font-size: 13pt;
    color: #888;
    line-height: 1.7em;
    font-weight: lighter;
}

a {
    font-weight: 700;
    color: #b97c2c;
    font-family: sans-serif;
    text-decoration: none;
}

.unclickable {
    font-weight: 700;
    color: #4f3411;
    font-family: sans-serif;
    text-decoration: none;
    cursor: not-allowed;
}

a:hover {
    color: black;
}

@media screen and (prefers-reduced-motion: no-preference) {
    a {
        transition: color 0.6s;
    }

    a:hover {
        transition: color 0.1s;
    }
}

strong {
    color: black;
    font-weight: bold;
}

img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

.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;
    }
}

/*
  Class applied to all choices
  (Will always appear inside <p> element by default.)
*/
.choice {
    text-align: center;
    line-height: 1.7em;
}

/* 
  Class applied to first choice
*/
:not(.choice)+.choice {
    padding-top: 1em;
}

/*
  Class applied to choice links
*/
.choice a, .choice span {
    font-size: 15pt;
}

/* 
  Built-in class:
    The End # CLASS: end
*/
.end {
    text-align: center;
    font-weight: bold;
    color: black;
    padding-top: 20px;
    padding-bottom: 20px;
}

#controls {
    z-index: 4;
    font-size: 9pt;
    text-align: center;
    padding-bottom: 6px;
    position: fixed;
    right: 14px;
    top: 4px;
    user-select: none;
    background: white;
}

@media screen and (prefers-reduced-motion: no-preference) {
    #controls {
        transition: color 0.6s, background 0.6s;
    }
}

#controls [disabled] {
    color: #ccc;
}

#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;
    }
}

/* 
  Dark Theme (Added in Inky 0.10.0)
    # theme: dark
*/

body.dark {
    background: black;
    color: white;
}

.dark h2 {
    color: #666;
}

.dark .container {
    background: black;
}

.dark .written-in-ink {
    background: black;
}

.dark a {
    color: #cc8f1a;
}
.dark .unclickable{
    color: #c4af87;
    cursor:not-allowed;
}

.dark a:hover {
    color: white;
}

@media screen and (prefers-reduced-motion: no-preference) {
    .dark a {
        transition: color 0.6s;
    }
}

.dark strong {
    color: white;
}

.dark #controls [disabled] {
    color: #444;
}

.dark .end {
    color: white;
}

.dark #controls {
    background: black;
}
/* DIE — Web theme for Inky's standard web export
   Paste this at the END of the exported style.css.
   Optional: put an image named die-background.jpg alongside style.css.
   Without that image, the layered dark gradients still work.
*/

html {
  min-height: 100%;
  background: #080c11;
}

body {
  min-height: 100vh;
  margin: 0;
  color: #f0f2f4;
  background-color: #080c11;
  background-image:
    linear-gradient(90deg, rgba(5, 9, 14, 0.88), rgba(5, 9, 14, 0.54) 48%, rgba(5, 9, 14, 0.86)),
    linear-gradient(0deg, rgba(5, 9, 14, 0.78), rgba(5, 9, 14, 0.08) 48%, rgba(5, 9, 14, 0.55)),
    url('die-background.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.12rem;
  line-height: 1.75;
}

/* Retain readable text over detailed imagery. */
#story {
  box-sizing: border-box;
  width: min(90vw, 760px);
  max-width: 760px;
  margin: clamp(24px, 6vh, 72px) auto;
  padding: clamp(24px, 5vw, 58px);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(192, 214, 228, 0.16);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.46);
  color: #f0f2f4;
}

#story p, #story h1, #story h2, #story h3, #story span,
#story #text, #story #choices {
  color: inherit;
}

#story h1, #story h2, #story h3 {
  font-family: Consolas, 'Courier New', monospace;
  letter-spacing: 0.075em;
  font-weight: 500;
  line-height: 1.35;
}

/* Ink's standard template uses .choice around choice links. */
#story a, #story a:link, #story a:visited,
#choices .choice a, #choices .choice a:visited,
#story .choice a, #story .choice a:visited {
  color: #b7e3f1;
  text-decoration: none;
  border-bottom: 1px solid rgba(183, 227, 241, 0.45);
  transition: color 140ms ease, border-color 140ms ease;
}

#story a:hover, #story a:focus-visible,
#choices .choice a:hover, #choices .choice a:focus-visible {
  color: #fff;
  border-color: #fff;
}

#story a:focus-visible { outline: 2px solid #b7e3f1; outline-offset: 5px; }

#choices .choice, #story .choice { margin-block: 0.65em; }

@media (max-width: 600px) {
  body { background-attachment: scroll; font-size: 1rem; }
  #story { width: calc(100% - 24px); margin: 12px auto; padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  #story a { transition: none; }
}
@media screen and (max-width: 768px) {
    #controls {
        display: block !important;
        visibility: visible !important;
    }

    #controls a {
        display: inline-block !important;
        padding: 10px;
        font-size: 14px;
    }
}
@media screen and (max-width: 768px) {
    body {
        background-attachment: scroll !important;
        background-size: cover !important;
        background-position: center top !important;
        background-repeat: no-repeat !important;
    }
}
