/** -- basics --**/
body {
	margin: 0;
	font-family: fantasy;
}

a.internal-link {
	text-decoration: none;
	color: #7d0;
}

a.internal-link:hover {
	color: #9f0;
}

a.external-link {
	text-decoration: none;
	color: #70d;
}

a.external-link:hover {
	color: #90f;
}

div.left-half {
	position: absolute;
	top: 0; left: 0;
	width: 50%;
	margin: auto;
}

div.right-half {
	position: absolute;
	top: 0; right: 0;
	width: 50%;
	margin: auto;
}


div#copyright {
	position: absolute;
	width: 100%;
	height: 1em;
	bottom: 0;
	z-index: 100;

	font-size: 0.6em;
	font-family: monospace;
	text-align: center;
}

/*** ----- Menu ------- ***/
div#menu-container {
	position: relative;
	width: 80%;
	height: 100%;
	margin: auto;
	padding: 0;

	font-family: Times New Roman;
}

div#menu-container h1 {
	position: absolute;
	left: 10%;
	top: 0;

	font-size: 7em;
}

div#menu-container ul#menu-options {
	position: absolute;
	right: 0;
	bottom: 10%;
	width: 28%;
	height: 4em;
	margin: 0;

	list-style: none;
}

div#menu-container ul#menu-options li {
	font-size: 2em;
}

/*** ----- Copyright --- ***/
div#credits-container {
	margin: auto;
	text-align: center;
}

div#credits-container h1 {
	margin: 2em auto;
}

div#credits-container dl dt {
	font-weight: bold;
	margin: auto;
}

div#credits-container dl dd {
	margin: auto;
}

/*** ----- Game ------- ***/

div#game-container {
	padding: 1em 0;
}

div#page-header{
	position: fixed;
	width: 100%;
	height: 1.5em;
	padding: 0.3em 0;
	top: 0;
	z-index: 100;

	color: white;
	font-size: 1em;
	font-family: monospace;
	text-align: center;

    background-color: black;
}

body div#page-fotter{
	position: fixed;
	bottom: 0;
	width: 100%;
	height: 1em;
	padding: 0.3em 0;

	color: lightgray;
	font-size: 0.5em;
	font-family: monospace;
	text-align: center;

	background-color: black;
}

/**
 * Outer container
 */
div#game-container div.inner-container {
	clear: both;
	margin: 2em auto;
	padding: 1em;
	width: 90%;
	max-width: 50em;
}

/*** Narative ***/

div.narative {
	position: relative;
	min-height: 10em;
	padding-bottom: 5em;
}

div.narative div.header{
	position: absolute;
	width: 100%;
	top: 0;
}

div.narative div.element {
	margin: 1em;
	clear: both;
}

/** 
 * Narative element: Description
 */
div.narative div.description {
	text-align: justify;
	margin: 1em 0;
}

div.narative div.description img.illustration {
	display: none;
}

div.narative div.description {
	text-align: justify;
}

/** 
 * Narative element: Dialog
 */
div.narative div.dialog {
	position: relative;
	width: 70%;
	min-height: 8.4em;
	margin: 1em auto; /* ver hor */

	background-color: #f4f4f4;
	border-radius: 1.5em;
}

div.narative div.dialog img.illustration{
	float: left;
	width: 8em;
	height: 8em;	
	margin-right: 1em;

	border-radius: 0em;
	border: 0.2em solid #aaa;
	background: #ade;
	background: transparent linear-gradient(#ade, #aaa); /* top to bottom*/
}

div.narative div.dialog div.text{
	min-height: 5em;
	padding: 1em 1.2em; /* ver hor */
	font-size: 115%;
}


/**
 * Narative element: Notification;
 */
div.narative div.notification {
	position: relative;
	width: 90%;
	min-height: 5.8em; /* 5 + 0.4*2 */
	margin: 0.5em auto; /* ver hor */

	background-color: #fafafa;
	border: 0.05em solid #aaa;
	border-radius: 0.5em;
}

div.narative div.notification img.illustration{
	float: left;
	width: 5em;
	height: 5em;
	margin: 0.4em;	
}

div.narative div.notification div.text{
	margin: 0.4em;
	padding: 1em 1.2em; /* ver hor */
}

div.narative div.illustration {
	margin: auto;

	text-align: center;

	border: 1px solid brown;
}

div.narative div.illustration img.illustration{
	width: 100%;
	margin: auto;

	background-image: url("../images/paper-grit.png");
	background-repeat: repeat;
}

/**
 * Narative element: TurnMarker;
 */
div.narative div.turn {
	text-align: center;
	border-bottom: 0.1em solid darkgrey;
}

div.narative div.turn div.text:before {
	content: " – ";
}

div.narative div.turn div.text:after {
	content: " – ";
}

div.narative div.fotter {
	position: absolute;
	width: 100%;
	height: 5em;
	bottom: 0;

	text-align: center;
}

/**
 * Button: Onwards!
 */
div.narative button.onwards {
	width: 100%;
	margin: 0 auto;
	padding: 0.5em 0;

	color: #f50;
	font-size: 1.2em;
	font-family: inherit;

	background: #ddd;
	border: 0.2em solid #ddd;
	border-radius: 0.1em;
}


div.narative button.onwards:hover {
	cursor: pointer;
	background-color: #ff8;
	border: 0.2em dotted #f50;
}

div.narative div.completed {
	font-size: 2em;
	color: #330;
	font-size: 120%;
}

div.narative div.completed:hover {
	color: #960;
	text-decoration: underline;
	cursor: pointer;
}

/*** Exploration ***/

div.exploration {
	position: relative;
	margin: auto;
	padding: 0;
}


div.exploration h1.target-name {
	margin: auto;
	margin-bottom: 0;

	font-size: 2.5em;
	text-align: center;
}

div.exploration h2.room-name {
	margin: auto;

	overflow: visible;
	font-size: 1.5em;
	text-align: center
}

div.exploration div.left-half {
	margin-top: 6em;
	width: 60%;
} 

div.exploration div.right-half {
	margin-top: 6em;
	width: 40%;
}



/**
 * Illustration
 */
div.exploration div.illustration-container {
	text-align: center;	
}

div.exploration img.illustration {
	margin: auto;
	clear: all;

	border-radius: 0.4em;
}

/**
 * Description
 */
div.exploration div.description {
	min-height: 5em;
	padding: 1em 5%;
}

/**
 *	Targets
 */
div.exploration ul.targets {
	width: 70%;
	min-width: 14em;
	margin: 0 auto;
	padding: 0.5em;


	background-color: #eee;
}

div.exploration ul.targets li.target {
	display: block;
	margin: 0.2em 0em;
	padding: 0.5em 1em; /* ver hor*/

	background-color: #ddd;
	color: #5a5;
	list-style-type: none;
}


div.exploration ul.targets li.target:hover{
	background-color: #cdc;
	color: #0c0;
	cursor: pointer;
}

div.exploration ul.targets li.selected {
	background-color: #bbb;
	color: #6b6;
	font-weight: bold;
}

div.exploration ul.targets li.selected:hover{
	background-color: #cdc;
	color: #0d0;
}

div.exploration ul.targets span.name {
	display: inline;
}

div.exploration ul.targets ul.symbols {
	display: inline;
	float: right;
	padding: 0;
}

div.exploration ul.targets ul.symbols li.symbol {
	display: inline-block;
	list-style-type: none;

	color: #555;
	font-size: 0.7em;
}

div.exploration ul.targets ul.symbols li.symbol img.icon{	
	height: 1.5em;
}

div.exploration ul.targets ul.symbols li.symbol span.label{
	font-size: 1.5em;
}


/**
 * Actions
 */
div.exploration div.actions {
	width: 100%;
	margin: 0 auto;
	padding: 0;
}

div.exploration div.actions button.action {
	display: block;
	width: 100%;
	margin: 0.2em auto;
	padding: 0.5em 1.2em;

	font-family: inherit;
	font-size: 1em;

	background-color: #ddd;
	border: 0.2em solid #ddd;
}

div.exploration div.actions button.action:hover {
	background-color: #ff8;
	cursor: pointer;
	border: 0.2em dotted #f50;
}

div.exploration div.actions span.name{
	font-size: 0.9em;
	color: #f50;
	text-decoration: none;
}

div.exploration div.actions button.action span.initiative-cost {
	display: inline-block;
}

div.exploration div.actions button.action span.initiative-cost img.icon{
	height: 0.75em;
}

div.exploration div.actions button.action span.initiative-cost span.label{
	color: #555;
	font-size: 0.7em;
}

div.exploration div.actions button.action span.description {
	display: block;
	font-size: 70%;
}


/**
 * Protagonist status
 */
div.protagonist {
	text-align: center;	
	width: 50%;
	margin: auto;
	margin-top: 1em;
	clear: both;
}