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


@font-face {
    font-family: 'OniriaFont';
    src: url('fonts/OniriaFont.ttf') format('ttf');
    font-weight: normal;
    font-style: normal;
}

MapNotification {
    color: aquamarine;
}

body {
    /*font-family: 'Open Sans', sans-serif;*/
    font-family: 'OniriaFont', sans-serif;
    font-weight: lighter;
    background: #331D2D;
    overflow: hidden;
}

body.switched {
    transition: color 0.1s, background-color 0.1s;
}

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

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

h2 {
    font-size: 24pt;
    font-style: italic;
    font-family: 'OniriaFont', sans-serif;
    /*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: #331D2D;
    transition: color 0.1s, background 0.1s;
    margin: 0;
    padding-top: 6px;
    padding-bottom: 6px;
    height: 14px;
    top: 0;
}

/* 
  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: 7px;
    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: #331D2D;
    min-height: min-content;
}

.switched .container {
    transition: background-color 0.1s;
}

p {
    font-size: 17pt;
    margin-bottom: -7px;
    color: #7463A9;
    line-height: 1em;
    font-weight: lighter;
}

a {
    font-weight: 700;
    /*color: #B8BA76;*/
    font-family: 'OniriaFont', sans-serif;
    /*font-family: sans-serif;*/
    transition: color 0.2s;
    text-decoration: none;
}

a:hover {
    color: black;
    transition: color 0.2s;
}

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

img {
    display: inline-flex;
    margin: auto auto;
    max-width: 90%;
    max-height: 90%;
}

.container .hide {
    opacity: 0.0;
}

.container .invisible {
    display: none;
}

.container>* {
    opacity: 1.0;
    transition: opacity 1.0s;
}

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

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

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

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

#controls {
    z-index: 4;
    font-size: 12pt;
    text-align: center;
    padding-bottom: 6px;
    position: fixed;
    right: 14px;
    top: 4px;
    user-select: none;
    background: #331D2D;
    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: #331D2D;
    color: white;
}

.dark h2 {
    color: #666;
}

.dark .container {
    background: #331D2D;
}

.dark .written-in-ink {
    background: #331D2D;
}

.dark a {
    color: #B8BA76;
    transition: color 0.2s;
}

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

.dark strong {
    color: #E9E0BA;
}

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

.dark .end {
    color: #331D2D;
}

.dark #controls {
    background: #331D2D;
}

/* columns related CSS */

#story {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 columns */
    column-gap: 20px;
    align-content: start;
}

#story > * {
    grid-column: span 2; /* all story children span the 2 columns */
}

#story > .choice:not(:last-child):not(:has(ExSc)) {
    grid-column: span 1; /* except the choices */
    padding: 0; /* cancel the padding-top in the default CSS */
}

:nth-child(odd of p.choice):not(:last-child):not(:has(ExSc)) {
    justify-self: right;
    text-align-last: right;
    text-align: right;
}

:nth-child(even of p.choice):not(:last-child):not(:has(ExSc)) {
    justify-self: left;
    text-align-last: left;
    text-align: left;
}

/*p.choice:last-child {
    padding-top: -10px;
}*/

p.choice:has(ExSc) {
    /*margin-top: 30px;*/
    margin-bottom: -15px;
}

UnseenColor {
    color: #86D9A2;
    transition: color 0.2s;
}

    UnseenColor:hover {
        color: #C1E8BC;
        transition: color 0.2s;
    }
