/**
 * https://fontlibrary.org/en/font/gnutypewriter
 */
@font-face {
    font-family: 'GNUTypewriterStandard';
    src: url('./fonts/GNUTypewriterStandard.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}



/** -- basics --**/
body,input, button {
	font-family: "GNUTypewriterStandard", serif;
}

body {
	margin: 0;

	font-size: 120%;

	background-color: black;
}


/**
 * Center the game on a 4:3 aspec ratio
 */
div.outer-container {
	position: relative;
	width: 800px;
	height: 600px;
	margin: 5% auto;
	padding: 0;	
	clear: both;

	background-color: #eed;
}

h1, h2, h3, h4, h5, h6 {
}

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;
}

span.word-count {
	float: right;

	color: lightgray;
	font-size: 0.75em;
}

div.story-time {
	text-align: right;
	font-size: 0.8em;
}

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;
}

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

	font-size: 5em;
}

div#menu-container div#menu-options {
    position: absolute;
    left: 10%;
    bottom: 25%;
    width: 40%;
    height: 4em;
    margin: auto;
}

div#menu-container div#menu-options form#new-game {
	display: inline-block;
}


/*** ----- Copyright --- ***/
div#credits-container {
	text-align: center;
	color: lightgray;
	background-color: black;
}

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 ------- ***/

/**
 * Outer container
 */

div#game-container {
}

/*** Narative ***/

div.narative {
	position: absolute;;
    width: 760px;
    height: 590px;
	top: 10px;
    right: 20px;
	margin: 10px auto;
}

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

div.narative div.element {
	margin: 0.5em;
	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: 80%;
	height: 12em;
	margin: 1em auto; /* ver hor */

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

div.narative div.dialog img.illustration {
	display: inline-block;
	width: 12em;
	height: 12em;	
	margin-right: 1em;

	border-top-left-radius: 0.8em;
	border-bottom-left-radius: 0.8em;
	background: #ade;
	background: transparent linear-gradient(#08f, #84b5ff, #fff); /* top to bottom*/
}

div.narative div.dialog div.text{
    display: inline-block;
    width: 50%;
	min-height: 5em;
	margin: 0.5em;
	padding: 0.3em 1.2em; /* ver hor */

    font-size: 100%;
    vertical-align: top;

    background-color: white;
    border: 0.1em solid black;
    border-radius: 1em;
}


/**
 * 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.5em;	
}

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

div.narative div.notification div.text p{
	margin: 0.5em 0; /* ver hor */
}


div.narative div.illustration {
	margin: auto;

	text-align: center;
}

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

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


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: 6.5em;
	width: 60%;
} 

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

/**
 * Currently selected target 
 */
div.selected-target {
	min-height: 200px
}

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

div.exploration img.illustration {
	margin: auto;
	margin-bottom: 1em;

	clear: all;

	border-radius: 0.4em;
}

/**
 * Symbols
 */
div.exploration div.selected-target ul.symbols {
	display: inline;
	margin: auto 2em;
	padding: 0;
}

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

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

	padding: 0.5em 1.5em 0.3em 1em; /* top right bottom left  (CW from top)*/
}

div.exploration div.selected-target ul.symbols li.symbol img.icon{	
	height: 1.24em;
}

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


/**
 * Description
 */
div.exploration div.description {
	min-height: 4em;
	padding: 0em 5%; /* ver hor */
}

div.exploration div.description p {
	margin: 0 auto;
}


/**
 *	Targets
 */
div.exploration div.targets {
	margin: 2em auto; /* ver hor */
}

div.exploration div.targets a.target {
	display: block;
	padding: 0.3em 5%; /* ver hor */
	
	color: #005;
	text-decoration: none;
}


div.exploration div.targets a.target:hover{
	color: #0c0;
}


div.exploration div.targets a.target.selected {
	color: #66b;
}

div.exploration div.targets a.target.selected:before {
	content: "\261E";
}

div.exploration div.targets a.target.selected:hover{
	color: #0d0;
}

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

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

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

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

	padding: 0.5em 1.5em 0.3em 1em; /* top right bottom left  (CW from top)*/
}

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

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

/**
 * Protagonist (Special target)
 */
div.exploration div.protagonist {
	display: block;
	position: relative;
	width: 100%;
	height: 5em;
	margin: 0 auto;


	color: #05a;
	text-align: left;

	border-bottom: 0.2em solid black;
	background-color: #eee;
}


div.exploration div.protagonist:hover {
	color: #0c0;
	cursor: pointer;
}

div.exploration div.protagonist.selected {
	color: #66b;
}

div.exploration div.protagonist.selected span.name:after {
	content: "\261C";
}


div.exploration div.protagonist.selected:hover{
	color: #0d0;
}

div.exploration div.protagonist span.name {
	position: absolute;

	top: 0.5em;
	left: 0.4em;

	font-size: 1.5em;
}

div.exploration div.protagonist ul.symbols {
	position: absolute;
	right: 0.25em;
	padding: 0;
}

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

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

div.exploration div.protagonist ul.symbols li.symbol img.icon{	
	height: 1.24em;
}

div.exploration div.protagonist 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%;
}