@import url('https://fonts.googleapis.com/css2?family=IM+Fell+English&display=swap');

body {
    font-family: 'IM Fell English', serif;
	font-size: 16pt;
    xxxfont-weight: lighter;
    background: white;
	background-image: url("sky.png");
	  background-repeat: repeat-x;
  background-position: right top;
  background-attachment: scroll;
  background-size: auto;
  background-color: #faf7d5;
}

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

h1, h2 {
    text-align: center;
    font-family: 'IM Fell English', serif;
    margin: 0;
    padding: 0;
}

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

h2 {
    font-size: 14pt;
    font-style: italic;
    font-family: 'IM Fell English', serif;
    font-weight: lighter;
    color: #BBB;
}

.dark h2 {
    color: #666;
}

.header {
    padding-top: 0em;
    padding-bottom: 0em;
		visibility: hidden;
		height: 0px;
		text-align: center;
}

.quote {
		color: #383547;
    padding-top: 0em;
    padding-bottom: 0em;
	    padding-left: 0em;
	    padding-right: 3em;
			text-align: right;
			    margin: 0;
	font-style: oblique;
		line-height: 1.0;
}


.fake_title_container {
	margin: 0;
	padding-top: 1em;
	background: url("barons_house.png");
	height:100vh;
	max-height: 700px;
	background-repeat: no-repeat;
	background-position: center;
	display: flex; 
	flex-direction: column; 
	gap: 1em; 
    align-content: center; 
	justify-content: center; 

}

.fake_title_main {
	    font-size: 45pt;
		color: black;
	text-transform: uppercase;
			text-align: center;
			    margin: 0;
	padding-left: 1em;
		#padding-top: 1em;
	padding-right: 1em;
	line-height: 1.2;
	background-color: rgba(255, 255, 255, 0.55);
	text-shadow: 0px 0px 7px white,0px 0px 7px white;
	background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.55) 40%, rgba(255,255,255,0.55) 60%, rgba(255,255,255,0) 100%);
}

.fake_title_sub {
	    font-size: 25pt;
		color: black;
	text-transform: uppercase;
			text-align: center;
			    margin: 0;
	padding-left: 1em;
		#padding-top: 1em;
	padding-right: 1em;
	line-height: 1.2;
	background-color: rgba(255, 255, 255, 0.55);
	text-shadow: 0px 0px 4px white,0px 0px 4px white;
	background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.55) 30%, rgba(255,255,255,0.55) 70%, rgba(255,255,255,0) 100%);
}

h3.written-in-ink {
    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;
    top: 0;
	visibility: hidden;
}

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


/* Seems necessary to make iframes work on itch.io on mobile iOS :-( */
.outerContainer {
    position: absolute;
    display: block;
    margin: 0;
    padding: 0;
    -webkit-overflow-scrolling: touch;
    overflow: scroll;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
}

.container {
    display: block;
    max-width: 600px;
    margin: 0 auto;
    #padding: 20px;
    /* remove horiz padding so images are full-width */
    /* keep bottom padding to give choices space */
    padding: 0 0 20px 0;

    /* eliminate horiz wobble on mobile scroll */
    #overflow: hidden;
}

.dark .container {
    background: black;
}

p {
    font-size: 16pt;
    color: #383547;
    line-height: 1.7em;
    /* moving horiz padding to inside p tags to give space around screen edges */
    padding: 0 10px;
}

a {
    color: #666ea7;
    font-family: 'IM Fell English', serif;
    
    text-decoration: none;
	width: 100%;
  border: none;
  padding: 10px 10px 5px 10px;
  display: inline-block;
	margin-top: -0.5em;
	    /* force choice tags to be contained by p padding */
    box-sizing: border-box;
}

.dark a {
    color: #cc8f1a;
    transition: color 0.6s;
}


a:hover {
    color: black;
	
}

.dark a:hover {
    color: white;
}

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

.dark strong {
    color: white;
}

img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
	#height: 200px;
}

.container .hide {
    opacity: 0.0;
}

.container .invisible {
    display: none;
}

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

p.choice {
    text-align: center;
    line-height: 1.1em;

}

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


p.choice a {
    font-size: 18pt;
	color: #383a45;
	background-image: url("sky.png");
	background-position: center; 
	transition: all 1s;
}

p.choice a:hover {
	color: #deded1;
	background-image: url("sky.png");
	background-position: top; 
	transition: all 1s;
}


.chapter {
    xxcolor: black;
	font-size: 200%;
	line-height: 1em;
	margin-top: 1.3em;
	margin-bottom: 0.1em;
	text-align: center;
	overflow-wrap: break-word;
}

.note {
    xxcolor: red;
	font-size: 80%;
	line-height: 0em;
	text-align: center;
	font-style: italic;
}



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

.dark .end {
    color: white;
}