@import url('https://fonts.googleapis.com/css?family=Open+Sans:300,700|Quattrocento:700');

/*check if this can be removed*/
iframe {
	overflow: hidden;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-weight: lighter;
    background: white;
}

body.dark {
    background: black;
    color: white;
}

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;
}

.dark h2 {
    color: #666;
}

.header {
    padding-top: 3em;
    padding-bottom: 3em;
}

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;
}

.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: hidden;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
}

.container {
    display: block;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 4em;
    background: white;
}

.dark .container {
    background: black;
}

p {
    font-size: 16pt;
    color: white;
    line-height: 1.7em;
    font-weight: lighter;
}

a {
    font-weight: 700;
    color: #b97c2c;
    font-family: sans-serif;
    transition: color 0.6s;
    text-decoration: none;
}

.dark a {
    color: white;
    transition: color 0.6s;
}


a:hover {
    color: black;
    transition: color 0.1s;
}

.dark a:hover {
    color: red;
}

strong {
    color: black;
    font-weight: bold;
}

.dark strong {
    color: white;
}

img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

.container .hide {
    opacity: 0.0;
}

.container .invisible {
    display: none;
}

.container * {
    }

p.choice {
    text-align: center;
    line-height: 1.7em;
	transition: 0.75s;
}

/* first choice */
:not(.choice) + .choice {
    padding-top: 1em; 
}


p.choice a {
    font-size: 18pt;
}

/* 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;
}

[class^=".letter"] {
	opacity: 0;
}

.revealed{
	opacity: 1 !important;
}

p.dateline{
	margin: 0;
	font-style: italic;
	font-weight: bold;
	font-family: "Lucinda Console", monospace;
	font-size: 20px;
	
}

.regretalogue {
	font-family: serif;
	color: red;
	font-weight: bold;
	font-style: italic;
    line-height: 1.1em;

}

.animatedRegrets {
		transform-origin: 0 100%;
		display: inline-block;
		white-space: pre;
}

.headline {
	font-size: 40px;
	text-align: center;
	font-weight: bold;
	line-height: .5;
}

.titlecard {
	text-align: center;
	font-weight: bold;
	font-size: 25px;
	line-height: .5;
}


.subtitle {
	margin-top: 20px;
	margin-bottom: 30px;
	text-align: center;
	font-style: italic;
	font-size: 20px;
	line-height: .5;	
}

.powergain {
	font-style: italic;
	font-weight: bold;
    font-size: 16px;
    line-height: .5em;
}

#controls {
    z-index: 4;
    font-size: 9pt;
    text-align: center;
    padding-bottom: 6px;
    position: fixed;
    right: 14px;
    top: 4px;
    user-select: none;
    background: black;
    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;
    }
}