html, body {
	overflow:hidden;

}
body {
	background:#efe5bc;

}
body.explorereveal {
	background:black;
}
p {
	margin-bottom:1em;	
}
img {
	display:block;
}

/* Map */
#map {
	z-index:1;
	height:100%; width:100%;
	position:absolute;
	background-color:#ebdcb1;
}
/* Header */
header {
	background:black;
	color:white;
	width:100%;
	position:absolute;
	z-index:2;
}
header div#wrap {
	padding:8px 4px;
}
header img.logo {
	float:left;	
	max-width:80%;
}
header img.logo.explorereveal {
	max-width:50%;
	
}

header img.home {
	float:right;
}

/* status bar*/
header #status {
	position:relative;
}

/* Used when navigating */
header #status h2 {
	color:white; font-size:14px; text-align:center;
	padding:4px;
	width:98%;
}


/* Explore extra items */
header #status #navigation {
	float:right;
	display:none;
}

header #status #navigation div, 
header #status #navigation img {
	float:left;
	
}

/* Explore mode - switch above two on. */
header #status.explore h2 {
	text-align:left;
	position:absolute;
	left:10px;
	top:10px;
	width:50%;

	
	
}
header #status.explore {
	height:60px;
	overflow:hidden;
}
header #status.explore #navigation {
	display:block;
	float:right;
	margin-right:-10px;
}
header #status.explore #pagniation {
	line-height:60px;
}


/* Footer - nav buttons */
footer {
	color:white;
	width:100%;
	position:absolute; bottom:0px;
	z-index:2;
}
footer ul {	
	display:table;
	width:100%;
}
footer li {
	display:table-cell;
	font-weight:bold;	
	vertical-align:middle;
	padding:3px;
}
footer li.first {
	border-right:2px solid rgba(255,255,255, .3);
}
footer li > div.wrap {
	display:table;
	text-align:center;
	margin:0 auto;
}
footer li > div > div {
	display:table-cell;
	text-align:center;
	vertical-align:middle;
	
}
footer li > div > div.img {
	padding-right:10px;	
}
footer li > div > div.img img {
	height:30px;
}

/* Reusables */
.greygrad {
	background: #363636;
	background: -moz-linear-gradient(top,  #363636 0%, #363636 35%, #000000 65%);
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#363636), color-stop(35%,#363636), color-stop(65%,#000000));
	background: -webkit-linear-gradient(top,  #363636 0%,#363636 35%,#000000 65%);
	background: -o-linear-gradient(top,  #363636 0%,#363636 35%,#000000 65%);
	background: -ms-linear-gradient(top,  #363636 0%,#363636 35%,#000000 65%);
	background: linear-gradient(top,  #363636 0%,#363636 35%,#000000 65%);
}
.shadow {
	text-shadow: #333 1px 1px 1px;
}


/* Pages */
div.page {
	overflow:hidden;
	color:white;
	position:absolute;
	width:100%;
	z-index:2;
}

/* HOME PAGE */
div.page.home {
   background:#e6e6e6 url(../images/bg_home.jpg) no-repeat left bottom;
}

div.page.home img.text {
	float:right;
	margin:10px 10px 0 0;
	max-width:70%;
}
div.page.home div#wrapper {

	position:absolute;bottom:0px;
	background-color:rgba(0,0,0,0.8);
	width:100%;


}
div.page.home div#wrapper div {
	padding:10px;
}


/* CREDITS PAGE */
div.page.credits {
	background:white;
	color:black;
	text-align:center;
}	
div.page.credits img {
	margin:20px auto 30px auto;
	max-width:80%;	
}

div.page.credits li {
	padding:.5em;
	border-top:1px solid #eee;	
}
div.page.credits a.licence {
	display:block;	
}
div.page.credits .licence {
	display:none;
	margin:1em 0;	
	
}

div.page.credits div#wrapper {
	overflow:scroll;
	width:100%;
	height:100%;
}
div.page.credits div#wrapper > div#scroller {
	/* padding:1em; */
	padding:1em;

}

/* MAP */


div.page.list div#wrapper { 
	overflow:scroll;
	width:100%;
	height:100%;
	
}

div.page.list ul li {
	background: #b2acac;
	background: -moz-linear-gradient(top,  #b2acac 0%, #999594 100%);
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#b2acac), color-stop(100%,#999594));
	background: -webkit-linear-gradient(top,  #b2acac 0%,#999594 100%);
	background: -o-linear-gradient(top,  #b2acac 0%,#999594 100%);
	background: -ms-linear-gradient(top,  #b2acac 0%,#999594 100%);
	background: linear-gradient(top,  #b2acac 0%,#999594 100%);

	min-height:40px;
	padding:2px;
	border-bottom:1px solid rgba(255,255,255,.7);

}
div.page.list ul li div.num {
	color:#ee7d21; 
	font-weight:bold; font-size:1.7em;
	float:left;
	margin-right:10px;
	line-height:40px;

}
div.page.list ul li div.name {
	float:left;
	line-height:40px;
	font-size:12px;
}


/* Exploring */
div.subpage {

	background:#222 no-repeat left top;
	background-size:cover;
	height:100%; width:100%;
	position:relative;	
	
	
}

div.subpage #wrapper {
	height:100%; 
	overflow:auto;
}
div.subpage div#scroller {
	padding:1em;
}

div.subpage.info {
	margin-bottom:20px;	
	
}
div.subpage.info img.header {
	margin:0 auto 10px auto;
	max-width:95%;
}
div.subpage.info img.main {
	border:2px solid #fff;
  -webkit-box-shadow: 0px 0px 4px 0px #000;
          box-shadow: 0px 0px 4px 0px #000;		
}

div.subpage.info .land img.main {
	margin:1em auto;
	max-width:95%;
}

div.subpage.info .port img.main {
	float:left;
	margin:0 1em 1em 0;
	max-width:50%;
}
div.subpage.gallery ul li {
	display:inline-block;
	margin:8px;	
}
div.subpage.reveal img.reveal {
	position:absolute;
	
	-webkit-box-shadow: 2px 2px 4px #666;
	-moz-box-shadow: 2px 2px 4px #666;
	box-shadow: 2px 2px 4px #666;
	
	z-index:1;
}

div.subpage.reveal img.reveal.after {
	z-index:2;		
}
div.subpage.reveal .message {
	color:black;
	padding:20px;
	font-weight:bold;
}

div.subpage.reveal div.control {
	margin:0 auto 10px auto;
	width:25px;
	height:32px;
	display:block;
	background-image:url(../images/PauseBUT.png);
	cursor:pointer;
}
div.subpage.reveal div.control.paused {
	background-image:url(../images/PlayBUT.png)	
}


div.subpage.reveal div.draghold {
	position:absolute;	
	z-index:3;
	display:none;
	padding:10px 20px 20px 20px;
	background-color:rgba(150,150,150,.5);
}

div.subpage.reveal.port div.draghold {
	bottom:0px;
}

div.subpage.reveal.land div.draghold.rot{
	-webkit-transform: rotate(90deg);
	-moz-transform: rotate(90deg);	
	
}

div.subpage.reveal.land img.reveal.rot {
	-webkit-transform: rotate(90deg);
	-moz-transform: rotate(90deg);	
}

footer.rot {
	-webkit-transform: rotate(90deg);
	-moz-transform: rotate(90deg);		
	-webkit-transform-origin:right top;
	-moz-transform-origin:right top;
	bottom:-36px;
}
header.rot {
	-webkit-transform: rotate(90deg);
	-moz-transform: rotate(90deg);		
	-webkit-transform-origin:right bottom;
	-moz-transform-origin:right bottom;
	bottom:0px;
	
}


div.subpage.reveal div.track {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: padding-box;
	box-sizing: padding-box;
	-webkit-box-shadow: 2px 2px 4px #666;
	-moz-box-shadow: 2px 2px 4px #666;
	box-shadow: 2px 2px 4px #666;
	height: 9px;
	position:relative;

	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
	background-image: 
		-webkit-gradient(linear, left top ,left bottom,
		   from(#0a3a86),
		   color-stop(.5, #4c8de7),
		   color-stop(.95, #6babf5),
		   to(#0a3a86)),
		-webkit-gradient(linear, left top ,left bottom,
			from(#919191),
			color-stop(.5, #f0f0f0),
			color-stop(.5, #fff),
			color-stop(.95, #fff),
			to(#919191));
	background-image: 
		-moz-linear-gradient(top,
		   #0a3a86,
		   #4c8de7 50%,
		   #6babf5 95%,
		   #0a3a86),
		-moz-linear-gradient(top,
			#919191,
			#f0f0f0 50%,
			#fff 50%,
			#fff 95%,
			#919191);
	background-repeat: no-repeat, repeat-x;
	
}

div.subpage.reveal div.thumb {
	position:relative;
	-webkit-box-shadow: 2px 2px 3px #666;
	-moz-box-shadow: 2px 2px 3px #666;
	box-shadow: 2px 2px 3px #666;
	height:20px;
	width:20px;
	left: 0px; 
	top: -6px;
	-webkit-border-radius: 10px;
	-moz-border-radius: 10px;
	border-radius: 10px;
	background-image: 
	   -webkit-gradient(linear, left top, left bottom,
		   from(#aaa),
		   color-stop(.5, #ddd),
		   to(#ccc));
	background-image: 
	   -moz-linear-gradient(top,
		   #aaa,
		   #ddd 50%,
		   #ccc);
	cursor: move;
	-webkit-tap-highlight-color: transparent;
}
div.subpage.reveal div.thumb:hover, div.subpage.reveal div.thumb.hover {
		background-image: 
		   -webkit-gradient(linear, left top, left bottom,
			   from(#6297f2),
			   color-stop(.5, #0251ae),
			   to(#6297f2));
		background-image: 
		   -moz-linear-gradient(top,
			   #6297f2,
			   #0251ae 50%,
			   #6297f2);
	}


/* Lo-fi stuff for android 2 */
html.lofi .greygrad {
	background: #363636;	
}
html.lofi .shadow {
	 text-shadow: none;
}
html.lofi div.subpage.reveal img.reveal {
	-webkit-box-shadow: none;
	-moz-box-shadow: none;
	box-shadow: none;	
}

html.lofi * {
    text-shadow: none;
    box-shadow: none;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;	
}
