@import url('https://fonts.googleapis.com/css2?family=Quattrocento:wght@700&family=Cinzel:wght@700&family=Spectral:wght@300;400&display=swap');

.outerContainer {
    background-image: url('Border.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
/* Light theme */
*, *::before, *::after {
    cursor: url('leaf.png') 30 30, auto;
}

a, .choice a, button, [role="button"] {
    cursor: url('leaf.png') 30 30, pointer;
}

/* Dark theme override */
.dark *, .dark *::before, .dark *::after {
    cursor: url('sword.png') 10 10, auto;
}

.dark a, .dark .choice a, .dark button, .dark [role="button"] {
    cursor: url('sword.png') 10 10, pointer;
}

body {
    font-family: 'Spectral', Georgia, 'Times New Roman', serif;
    font-weight: 300;
    background: #0d2614;
    color: #b8c9bb;
    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 {
    display: none;
}

/*
  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: #0d2614;
    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: transparent;
}

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

p {
    font-family: 'Spectral', Georgia, 'Times New Roman', serif;
    font-size: 15pt;
    color: #b8c9bb;
    line-height: 1.8em;
    font-weight: 300;
}

@media screen and (max-width: 600px) {
    p {
        font-size: 13pt;
        line-height: 1.75em;
    }
}

/* ============================================================
   BOLD / DRAMATIC TEXT  (a) 
   Uses Cinzel — a dramatic serif that's Google Fonts safe.
   Fallback chain: Trajan Pro → Palatino → Georgia → serif
   ============================================================ */
b, strong {
    font-family: 'Cinzel', 'Trajan Pro', Palatino, Georgia, serif;
    font-size: 1.15em;
    font-weight: 700;
    color: #d4e8d6;
    letter-spacing: 0.03em;
}

/* Override for riddle_recap knot — Spectral bold instead of Cinzel */
.riddle-recap-section b, .riddle-recap-section strong {
    font-family: 'Spectral', Georgia, 'Times New Roman', serif;
    font-size: 1em;
    font-weight: 700;
    letter-spacing: 0;
}

a {
    font-weight: 700;
    color: #8ab891;
    font-family: 'Spectral', Georgia, serif;
    text-decoration: none;
}

.unclickable {
    font-weight: 700;
    color: #5a7a5c;
    font-family: 'Spectral', Georgia, serif;
    text-decoration: none;
    cursor: not-allowed;
}

a:hover {
    color: #c8e0ca;
}

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

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

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

/* Character/item images — roughly half size, responsive */
img.img-character,
.img-character img {
    max-width: 65%;
}

.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: 17pt;
}

@media screen and (max-width: 600px) {
    .choice a, .choice span {
        font-size: 14pt;
    }
}

/* 
  Built-in class:
    The End # CLASS: end
*/
.end {
    text-align: center;
    font-weight: bold;
    color: #b8c9bb;
    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: #0d2614;
}

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

#controls [disabled] {
    color: #3a5c3c;
}

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

/* 
  Light Theme (default)
  Pale sage background, dark forest text
*/

body {
    background: #b8c9bb;
    color: #0d2614;
}

.written-in-ink {
    background: #b8c9bb;
}

#controls {
    background: #b8c9bb;
}

p {
    color: #0d2614;
}

a {
    color: #5a7a5c;
}

a:hover {
    color: #0d2614;
}

.unclickable {
    color: #8aaa8c;
}

b, strong {
    color: #1a3d1c;
}

h2 {
    color: #5a7a5c;
}

#controls [disabled] {
    color: #8aaa8c;
}

.end {
    color: #0d2614;
}

/* 
  Dark Theme (Added in Inky 0.10.0)
    # theme: dark
  Deep forest green palette
*/

body.dark {
    background: #0d2614;
    color: #b8c9bb;
}

.dark .written-in-ink {
    background: #0d2614;
}

.dark #controls {
    background: #0d2614;
}

.dark .container {
    background: transparent;
}

.dark p {
    color: #b8c9bb;
}

.dark h2 {
    color: #5a7a5c;
}

.dark a {
    color: #8ab891;
}

.dark a:hover {
    color: #c8e0ca;
}

.dark .unclickable {
    color: #5a7a5c;
    cursor: not-allowed;
}

.dark b, .dark strong {
    font-family: 'Cinzel', 'Trajan Pro', Palatino, Georgia, serif;
    font-size: 1.15em;
    font-weight: 700;
    color: #d4e8d6;
    letter-spacing: 0.03em;
}

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

.dark .end {
    color: #b8c9bb;
}

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

/* ============================================================
   CREDITS BAR
   ============================================================ */
#credits {
    font-size: 9pt;
    font-family: sans-serif;
    font-weight: 700;
    text-align: center;
    padding: 6px 14px;
    margin-top: 2em;
    user-select: none;
}

@media screen and (max-width: 980px) {
    #credits {
        padding: 12px 14px;
        margin-bottom: 1em;
    }
}
