* {
	margin:0;
	padding:0;
	border-width:0;
	border-style:solid;
}

html, body {
	background:#121212;
	color:#333;
	font-size:16px;
	line-height:1.5em;
	margin:0 auto;
}

html, body, select, textarea, input {
	font-size:100%;
	font-family: 'Averia Libre';
}

#scene {	
	overflow:hidden;
	width:100vw;
	height:100vh;
}

a {
	text-decoration:none;
}

content, #world {
	width:100vw;
	height:100vh;
	position:absolute;
	display:block;
}

content {
	cursor: pointer;
}

h1 {
	padding:15px;
	font-style:italic;
}

.softblack {
	background:#253237;
}

.lavender {
	background:#d2d6ef;
}

.blackbar {
	position:absolute;
	left:0;
	right:0;
	background:#222;
	height:20vh;
	z-index:10;
	color:rgba(0, 0, 0, 0);
	transition:color 2s;
	line-height:calc(100vh / 5);
	text-align:center;
	font-family:'Cinzel';
}

.blackbar.top { top: 0; z-index:4; font-size:30px; }
.blackbar.btm { bottom: 0 }

#bg {
	width: 102vw;
	height: 100vh;
	z-index: 0;
	filter: blur(10px);
	margin-left: -1vw;
}

#chat-cont {
	position:absolute;
	width:100vw;
	height:100vh;
	top:0;
}

#chat {
	position:relative;
	/*position:absolute;
	top:20%;
	left:500px;
	right:500px;
	bottom:20%;
	display:block;*/
	/*width:calc(100vh - 1000px);*/
	height:60%;
	width:50%;
	min-width:500px;
	margin:20vh auto;
	/*overflow-y:scroll;*/
	overflow:hidden;
	z-index:100;
	box-sizing:border-box;
	padding:20px;
}

#chat .msg {
	/*background:white;*/
	padding:16px;
	font-size:20px;
	border-radius:20px;
	display:inline-block;
	clear:both;
	position:relative;
	filter:drop-shadow(4px 4px 4px rgba(0, 0, 0, 0.5));
	max-width:60%;
	animation-duration: 0.7s;
	animation-name: fadein;
}

#chat .msg.thought {
	color:white;
	opacity:0.7;
	background:transparent;
	border-width:3px;
	animation-name: fadein-thought !important;
}

#chat .msg.l {
	float:left;
	margin:0 50px 10px 10px;
}

#chat .msg.l.verbal .tail {
	position: absolute;
    left: -10px;
    top: 20px;
    width: 0;
    height: 0;
    /*border-color: transparent white transparent transparent;*/
	border-top-color: transparent !important;
	border-bottom-color: transparent !important;
	/*border-right-color: transparent !important;*/
	/*border-color:white;*/
    border-width: 8px 10px 8px 0;
}

#chat .msg.r {
	float:right;
	margin:0 20px 10px 50px;
}

#chat .msg.r.verbal .tail {
	position: absolute;
    right: -10px;
    top: 20px;
    width: 0;
    height: 0;
    /*border-color: transparent transparent transparent white;*/
	border-top-color: transparent !important;
	border-right-color: transparent !important;
	border-bottom-color: transparent !important;
	/*border-color:white;*/
    border-width: 8px 0 8px 10px;
}

/*#chat .msg.thought div.tail {
	border: 0px;
	width: 14px;
	height: 14px;
	left: -20px;
	top: 20px;
	border-radius: 10px;
}

#chat .msg.r.thought div.tail {
	left:auto;
	right:-20px;
}*/

#chat .msg.thought .tail {
	background:transparent !important;
	position: absolute;
	width: 12px;
	height: 16px;
	border-radius: 16px;
}

#chat .msg.thought .tail.a {
	position: absolute;
	border-width: 3px 3px 0 3px;
	left: -16px;
	top: 25px;
	border-right-color: transparent !important;
	border-bottom-color: transparent !important;
	border-left-color: transparent !important;
	/*border-color: #88b9bb transparent transparent transparent;*/
}

#chat .msg.thought .tail.b {
	position: absolute;
	border-width: 0 3px 3px 0;
	left: -23px;
	top: 12px;
	border-top-color: transparent !important;
	border-right-color: transparent !important;
	border-left-color: transparent !important;
	/*border-color: transparent transparent #88b9bb transparent;*/
}

#chat .msg.thought.r .tail.a {
	left: auto;
	right: -16px;
}

#chat .msg.thought.r .tail.b {
	left: auto;
	right: -23px;
	border-width: 3px 0 3px 3px;
	top: 9px;
}

#chat .msg:last-of-type {
	margin-bottom:50px;
}

.character {
	height:700px;
	max-height:70%;
	position:absolute;
	bottom:20vh;
	z-index:5;
	animation-duration:1s;
}

#p0 {
	left:100px;
}

#p1 {
	right:100px;
	transform: scaleX(-1);
}

#p2 {
	left:-30px;
	z-index:6;
}

#p3 {
	right:-30px;
	z-index:6;
	transform: scaleX(-1);
}

/*#pages {
	background:#1a1a1a;
	padding-top:20%;
	box-model:border-box;
}*/

ol {
    display: block;
	width:300px;
	margin:50px auto;
    list-style-type: decimal;
}

#pages a,
#fadein a {
	font-family:'Cinzel';
	color:#bbb;
	padding:10px;
	margin: 0;
	padding: 10px;
	border-radius: 10px;
	display: block;
	text-align: center;
	transition:all 0.3s;
}

#fadein a {
	display:inline-block;
	margin:0 50px;
}

/*#pages li:first-of-type a {
	color:#5f9d95;
}

#pages li a:visited {
	color:#a09bb5;
}*/

#fadein a:hover {
	color:#bfe !important;
	filter:drop-shadow(0 0 10px #bfe);
}

#pages-page a {
	color:#253237;
	font-family:'Merriweather';
}

#pages-page a:hover,
#pages li:first-of-type a:hover {
	/*color:white;
	filter:drop-shadow(0 0 10px white);*/
	background:#99c0bb;
}

.beginning {
	width:400px;
	margin:0 auto !important;
}

ol li {
	padding:0 5px;
}

#fadein {
	width:100vw;
	height:100vh;
	background:#111;
	z-index:9999;
	position:absolute;
	top:0;
	left:0;
	color:#888;
	line-height:100vh;
	text-align:center;
}

.finishfadeout {
	animation-name: fadeout;
	animation-duration: 3s;
	opacity:0;
}

.finishfadein {
	animation-name: fadein;
	animation-duration: 3s;
}

#back-next {
	display:none;
}

#mutebtn {
	position: absolute;
	top: 20px;
	right: 20px;
	display:block;
	width:30px;
	height:50px;
	line-height:1em;
	text-align:left;
}

#main-title {
	background: #7caea8;
	display: block;
	/*width: 100vw;*/
	padding: 50px 0;
	text-align: center;
	color: #253237;
	border-color: #253237;
	border-bottom-width: 5px;
	font-size: 50px !important;
	font-family: 'Cinzel';
	margin-bottom: 45px;
	line-height:1em !important;
}

#main-title:hover span {
	color: white;
	filter: drop-shadow(0 0 3px white);
}

#main-title span {
	transition:all 1s;
}

#pages {
	padding-bottom:50px;
}

#pages h1,
#pages h2 {
	font-family:'Cinzel';
	color:#587;
	display:block;
	text-align:center;
	font-style:normal;
	font-size:22px;
	font-weight:normal;
	padding:0;
	margin-bottom:10px;
}

#pages h1 {
	font-size:36px;
}

#pages h2 {
	margin-bottom:20px;
}

.centre {
	text-align:center;
	margin:50px;
}

#copy-btm {
	font-family:'Cinzel';
	text-align:center;
	position:absolute;
	bottom:15px;
	left:0;
	right:0;
	color:#a09bb5;
}

#pages-page {
	min-height:calc(100vh - 500px);
}

footer {
	height:370px;
	position:relative;
}

footer img {
	height: 400px;
	position: absolute;
	right: -200px;
	bottom: 0;
	transform: scaleX(-1);
}

footer .msg {
	padding:20px;
	border-radius:20px;
	color:#222;
	position:absolute;
	top:50px;
	width:100%;
	box-sizing:border-box;
}

footer .msg .tail {
	position: absolute;
    right: -10px;
    top: 35px;
    width: 0;
    height: 0;
	border-top-color: transparent !important;
	border-right-color: transparent !important;
	border-bottom-color: transparent !important;
    border-width: 8px 0 8px 10px;
}

footer .width-enforcer {
	width:500px;
	position:relative;
	max-width:80vw;
	margin:0 auto;
	height:100%;
}

#ga-top {
	background:#a09bb5;
	display:block;
	margin:5px auto;
	width:700px;
	height:120px;
	line-height:120px;
	text-align:center;
	color:#253237;
}

/* Oneira */
.msg.O, .msg.O .tail { 
	background-color:#88b9bb; 
	border-color: #88b9bb; 
}

/* Ego */
.msg.E, .msg.E .tail { 
	background-color:#a6639b; color:#111; 
	border-color: #a6639b; 
}

/* Soulmate */
.msg.S, .msg.S .tail { 
	background-color:#8c9ebd; 
	border-color: #8c9ebd; 
}

/* Gemma */
.msg.G, .msg.G .tail { 
	background-color:#6bade5; 
	border-color: #6bade5; 
}

/* Glimmer */
.msg.Gl, .msg.Gl .tail { 
	background-color:#a88ec5; 
	border-color: #a88ec5; 
}

/* Professor Samsara */
.msg.P, .msg.P .tail { 
	background-color:#d28a59; 
	border-color: #d28a59; 
}

/* Eugene */
.msg.U, .msg.U .tail { 
	background-color:#515258; color:#111; 
	border-color: #515258; 
}

/* Robyn */
.msg.R, .msg.R .tail { 
	background-color:#ca5b4c;
	border-color: #ca5b4c; 
}

/* Thomas */
.msg.T, .msg.T .tail { 
	background-color:#8c9b66;
	border-color: #8c9b66; 
}

/* Lingon */
.msg.L, .msg.L .tail { 
	background-color:#000;
	border-color: #000;
	color:#84ffaf !important;
	text-shadow:0 0 10px #84ffaf;
	font-family:/*'Metamorphous';*/'Finger Paint';/*'UnifrakturMaguntia'; /*Megrim*/
	font-weight:bold;
	font-size:16px !important;
	line-height:1.7em;
}

.msg.L.courage {
	color:#ff4c57 !important;
	text-shadow:0 0 10px #ff4c57;
}

.msg.L.fear {
	color:#b96cf4 !important;
	text-shadow:0 0 10px #b96cf4;
}

.msg.L.bliss {
	color:#fff !important;
	text-shadow:0 0 10px #fff;
}

.msg.L.dest {
	color:#7efdff !important;
	text-shadow:0 0 10px #7efdff;
}

.msg.L.creation {
	color:#92e66c !important;
	text-shadow:0 0 10px #92e66c;
}

.msg.L.sorrow {
	color:#73bcff !important;
	text-shadow:0 0 10px #73bcff;
}

.blackbar:hover {
	color:rgba(200, 200, 200, 1);
}

content.meadow .blackbar:hover {
	color:rgba(226, 191, 65, 1);
}

content.temple .blackbar:hover {
	color:rgba(109, 113, 127, 1);
}

content.temple2 .blackbar:hover {
	color:rgba(164, 129, 144, 1);
}

content.monastery .blackbar:hover {
	color:rgba(77, 73, 48, 1);
}

content.sauna .blackbar:hover {
	color:rgba(154, 81, 56, 1);
}

content.purplesunset .blackbar:hover {
	color:rgba(46, 157, 186, 1); /*135, 92, 117*/
}

content.temple-outside .blackbar:hover {
	color:rgba(153, 132, 110, 1);
}

content.bedroom .blackbar:hover {
	color:rgba(149, 105, 90, 1);
}

.verbal .tail {
	background:transparent !important;
}

@keyframes fadein {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes fadeout {
	from {
		opacity: 1;
	}
	to {
		opacity: 0;
	}
}

@keyframes fadein-thought {
	from {
		opacity: 0;
	}
	to {
		opacity: .7;
	}
}

@keyframes enterscreen-0 {
	from {
		opacity: 0;
		left:-300px;
	}
	to {
		opacity: 1;
		left:100px;
	}
}

@keyframes enterscreen-1 {
	from {
		opacity: 0;
		right:-300px;
	}
	to {
		opacity: 1;
		right:100px;
	}
}

@keyframes enterscreen-2 {
	from {
		opacity: 0;
		left:-430px;
	}
	to {
		opacity: 1;
		left:-30px;
	}
}

@keyframes enterscreen-3 {
	from {
		opacity: 0;
		right:-430px;
	}
	to {
		opacity: 1;
		right:-30px;
	}
}

@keyframes exitscreen-0 {
	from {
		opacity: 1;
		left:100px;
	}
	to {
		opacity: 0;
		left:-300px;
	}
}

@keyframes exitscreen-1 {
	from {
		opacity: 1;
		right:100px;
	}
	to {
		opacity: 0;
		right:-300px;
	}
}

@keyframes exitscreen-2 {
	from {
		opacity: 1;
		left:-30px;
	}
	to {
		opacity: 0;
		left:-430px;
	}
}

@keyframes exitscreen-3 {
	from {
		opacity: 1;
		right:-30px;
	}
	to {
		opacity: 0;
		right:-430px;
	}
}