/*Custom CSS for Cis Penance project*/
/*Shared on CC-BY 2.0 license*/

@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed&family=Roboto:wght@200;800;900&display=swap');

body {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: lighter;
    background: #100019;
    color: white;
	overflow-y:hidden;
}

h1, h2 {
    text-align: center;
    font-family: 'Roboto Condensed', sans-serif;
    margin: 0;
    padding: 0;
}

h1 {
    font-size: 30pt;
    margin-bottom: 10px;
}

h2 {
    font-size: 14pt;
    font-style: italic;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: lighter;
    color: #666;
}

.header {
    padding-top: 0;
    padding-bottom: 0em;
}

.header h1 {
    position: absolute;
/*	border: 3px solid white;*/
	border-radius: 5px;
	background: rgb(2,0,36);
	background: linear-gradient(90deg, rgba(2,0,36,0.3) 0%, rgba(9,9,121,0.3) 35%, rgba(0,212,255,0.3) 100%);
	z-index: -1;
	height: 30vh;
	width: 95vh;
	max-width: 600px;
	padding: 3px;
    text-align: left;
    font-size: 14pt;
}

h3.written-in-ink {
    font-size: 9pt;
    font-family: sans-serif;
    text-align: center;
    font-weight: 700;
    position: absolute;
    display: block;
    width: 100%;
    margin: 0;
    padding-top: 8px;
    padding-bottom: 0px;
    top: 0;
	opacity: 0.25;
}

h3.written-in-ink:hover {
	opacity: 1;
}

a.minor:hover {
    transition: color 0.1s;
    color: white;
}


/* 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: flex;
    max-width: 600px;
	min-height: 300px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 4em;
}

p {
    font-size: 13pt;
    color: #FFF;
    line-height: 1.7em;
    font-weight: lighter;
	border: none;
	padding: 10px;
	}

a {
    font-weight: 900;
    font-family: 'Roboto', sans-serif;
    text-decoration: none;
    color: gold;
    transition: color 0.6s;
}

strong {
    font-weight: bold;
    color: white;
}

.avatar {
	position: fixed;
	align-self: center;
	z-index: -2;
	object-fit: contain;
	max-width: 80%;
	height: auto;
	bottom: 100px;
	margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
}

.container .hide {
    opacity: 0.0;
}

.container .invisible {
    display: none;
}

.container * {
    opacity: 1.0;
    transition: opacity 1.0s;
}

p.choice {
	z-index: 200;
	text-align: left;
	font-size: 15pt;
	margin: 0 0 0 50vw;
    line-height: 1.7em;
    position: absolute; /*Change to "fixed" to stay at bottom after auto-scrolling; causes a little over-scrolling though*/
    bottom: 1em;
}

/* first choice */
:not(.choice) + .choice {
	text-align: left;
	margin: 0 50vw 0 0;
}


p.choice a {
	box-shadow: none;
	border-radius: 5px;
	background-color: #FBAB7E;
	background-image: linear-gradient(62deg, #FBAB7E 0%, #F7CE68 100%);
	color: black;
	padding: 3px;
	width: 250px;
	-webkit-transition: border 0.2s ease-in-out;
	transition: box-shadow 0.2s ease-in-out;
}

/*settings that only apply when not on mobile*/
@media all and (min-width: 600px) {
	p.choice {
		margin: 0 0 0 340px; /*button position isn't determined by view width anymore*/
	}
	p.choice a {
		display: inline-block; /*buttons look buttony*/
	}
	.avatar {
		bottom: 3em; /*take more space for img*/
	}
}

a.restart, a.return{
	display: inline-block;
	height: 45px;
	font-size: 24pt;
}

p.choice a:hover, a.restart:hover, a.return:hover {
	opacity: 1;
	box-shadow: 0 4px 8px 0 rgba(200,200,200,0.3), 0 6px 20px 0 rgba(200,200,200,0.3);
	background-color: #e68686;
	background-image: linear-gradient(62deg, #e68686 0%, #FBAB7E 50%, #F7CE68 100%);
}

p:not(.choice) {
	z-index:100;
	overflow: hidden;
	animation: typing 3.5s steps(40, end);*/
}

@keyframes typing {
  0% { width: 1ch; height: 1.5em;}
  50% { width: 580px; height: 1.5em;}
  100% { width: 580px; height: 11em;}
}

/* Built in class if you want to write:
     The End # CLASS: end
*/
.end {
    text-align: center;
    font-weight: bold;
    padding-top: 20px;
    padding-bottom: 20px;
    color: white;
}