/* 
	Stylesheet contents:
	- Initial
		+ body, fonts, main container
	- Main window
		+ setup for index.html
		+ navigation
		+ pop-up
		+ mini-game setup
		+ setup for intros/outros
		+ credits
		+ objects
	- Inventory
	- Mini-games
		+ Game - weights
		+ Game - switches
		+ Game - med bottles
		+ Game - plates
		+ Door code
*/

body {
	background: #000;
	font-family: Verdana, "sans-serif";
	}
	
@font-face {
	font-family: Fredericka;
	src: url("fonts/FrederickatheGreat-Regular.ttf");
	}
	
@font-face {
	font-family: Iceland;
	src: url("fonts/Iceland-Regular.ttf");
	}
	
@font-face {
	font-family: Sancreek;
	src: url("fonts/Sancreek-Regular.ttf");
	}
	
@font-face {
	font-family: "Special Elite";
	src: url("fonts/SpecialElite.ttf");
	}
	
.main h1 {
	background: url(images/bg-board.png) no-repeat;
	width: 400px;
	height: 50px;
	font-family: Fredericka;
	margin: 10px auto;
	}
	
.main h6 {
	color: #fff;
	}
	
.container {
	width: 840px;
	height: 600px;
	padding: 0px;
	margin: 0px auto;
	position: relative;
	}
	
	/* Everything that happens in the main window */
.main {
	width: 840px;
	height: 480px;
	padding: 0px;
	margin: 0px auto;
	overflow: hidden;
	position: relative;
	}
	
h1 {
	width: 840px;
	color: #fff;
	text-align: center;
	margin: 20px auto;
	}
	
#menu {
	color: #fff;
	text-align: center;
	margin-top: 280px;
	}
	
#start, #continue {
	background: url(images/bg-buttonwood.png) no-repeat;
	width: 160px;
	height: auto;
	border: 3px solid #110603;
	border-radius: 0.2em;
	cursor: pointer;
	padding: 10px;
	margin: 10px auto;
	opacity: 0.8;
	}
	
#start:hover, #continue:hover {
	opacity: 1;
	}
	
.confirm {
	background: url(images/bg-buttonwood.png) no-repeat;
	width: 200px;
	border: 3px solid #110603;
	border-radius: 0.5em;
	display: none;
	padding: 5px;
	margin: 0px auto;
	}
	
.confirm ul {
	list-style-type: none;
	padding: 0px;
	margin: 10px;
	}
	
.confirm li {
	background: url(images/bg-buttonwood-light.png) no-repeat;
	width: 63px;
	border: 2px solid #110603;
	border-radius: 0.2em;
	cursor: pointer;
	padding: 5px;
	margin: 5px;
	display: inline-block;
	}
	
.confirm li:hover {
	background: url(images/bg-buttonwood-light-opaque.png) no-repeat;
	}
	
#stage-balcony {
	background-image: url(images/house-balcony.png);
	background-repeat: no-repeat;
	}
	
	/* Navigation */
.navi {
	opacity: 0.5;
	position: absolute;
	z-index: 950;
	}
	
.navi:hover {
	opacity: 0.8;
	cursor: pointer;
	}
	
.n-left {
	bottom: 200px;
	left: 5px;
	}

.n-right {
	bottom: 200px;
	right: 5px;
	}
	
.n-up {
	top: 5px;
	left: 400px;
	}
	
.n-down {
	bottom: 5px;
	left: 400px;
	}
	
.n-downleft {
	bottom: 5px;
	left: 5px;
	}
	
.n-downright {
	bottom: 5px;
	right: 5px;
	}
	
.n-upright {
	top: 150px;
	right: 50px;
	}
	
#balcony-living, #balcony-bed, #balcony-roof, #bath-living {
	display: none;
	}
	
	/* Pop-up */
.popup-intro {
	width: 840px;
	height: 480px;
	background: url("images/bg-black.png") repeat-y;
	position: absolute;
	z-index: 990;
	display: none;
	}
	
.popup-item {
	width: 840px;
	height: 480px;
	background: url("images/bg-black2.png") repeat-y;
	position: absolute;
	z-index: 990;
	display: none;
	}
	
.popup-header {
	width: 840px;
	height: 30px;
	color: #fff;
	}
	
.popup-main {
	width: 840px;
	text-align: center;
	}
	
.popup-main span {
	height: auto;
	font-size: 100px;
	text-align: center;
	position: absolute;
	top: 175px;
	left: 395px;
	}
	
#close-popup {
	margin: 5px;
	cursor: pointer;
	position: absolute;
	top: 0px;
	right: 0px;
	}
	
.dialogue-box {
	width: 820px;
	height: auto;
	background: url('images/bg-blackline.png');
	color: #fff;
	font-size: 12px;
	text-align: center;
	padding: 10px;
	margin: 0px;
	position: absolute;
	bottom: 0px;
	z-index: 999;
	display: none;
	}
	
	/* Mini-game setup */
.game-window {
	width: 840px;
	height: 600px;
	background: url("images/bg-black2.png") repeat-y;
	position: absolute;
	z-index: 990;
	display: none;
	}
	
.game-header {
	width: 840px;
	height: 30px;
	color: #fff;
	float: left;
	}
	
.game-header ul {
	list-style-type: none;
	padding: 0px;
	margin: 10px;
	}
	
.game-header li {
	width: auto;
	height: auto;
	color: #fff;
	border: 2px #fff solid;
	border-radius: 0.5em;
	padding: 5px 10px;
	margin: 0px 5px;
	display: inline-block;
	}
	
#game-check {
	background: #00ff00;
	cursor: pointer;
	position: relative;
	z-index: 999;
	}
	
#game-check:hover {
	background: #fff;
	border-color: #00ff00 ;
	color: #00ff00;
	}
	
.game-hint {
	background: #ffae00;
	position: relative;
	z-index: 999;
	}
	
.game-hint:hover {
	background: #fff;
	border-color: #ffae00 ;
	color: #ffae00;
	}
	
#game-hint1, #game-hint2 {
	display: none;
	}
	
#hint-box {
	font-size: 11px;
	padding: 0px 10px;
	display: none;
	}
	
#close-window {
	margin: 5px;
	cursor: pointer;
	position: absolute;
	top: 0px;
	right: 0px;
	}
	
#prev-window {
	background: #ff0000;
	cursor: pointer;
	position: relative;
	z-index: 999;
	}
	
#prev-window:hover {
	background: #fff;
	border-color: #ff0000;
	color: #ff0000;
	}
	
.game-main {
	width: 840px;
	height: 450px;
	text-align: center;
	margin: 5px 0px;
	float: left;
	}
	
.game-alert {
	width: 280px;
	height: auto;
	background: #000;
	color: #fff;
	border: 1px solid #fff;
	padding: 30px 10px;
	position: absolute;
	top: 200px;
	left: 269px;
	display: none;
	z-index: 999;
	}
	
.instructions {
	width: 838px;
	height: auto;
	background: url(images/bg-black2.png) repeat-y;
	color: #fff;
	text-align: center;
	border: 1px #fff solid;
	position: absolute;
	bottom: 0px;
	clear: both;
	}
	
	/* Intros */
.intro-textbox {
	width: 820px;
	height: auto;
	margin: 10px;
	}
	
.intro-text {
	background: url(images/bg-black2.png) repeat-y;
	color: #fff;
	font-family: "Special Elite";
	padding: 10px 20px;
	margin: 0px;
	display: none;
	}
	
.footer {
	color: #fff;
	text-align: center;
	display: none;
	}
	
.footer ul {
	list-style-type: none;
	padding: 0px;
	margin: 10px;
	}
	
.footer li {
	width: auto;
	height: auto;
	color: #fff;
	border: 2px #fff solid;
	border-radius: 0.5em;
	padding: 5px 10px;
	display: inline-block;
	}
	
#skip {
	cursor: pointer;
	float: right;
	}
	
#skip:hover {
	background: #fff;
	color: #666;
	border-color: #666;
	}
	
	/* Outros */
.end-textbox {
	width: 500px;
	height: 440px;
	margin-top: 20px;
	}
	
.end-text-b {
	color: #000;
	font-family: "Special Elite";
	margin: 20px;
	display: none;
	}
	
.end-text-w {
	color: #fff;
	font-family: "Special Elite";
	margin: 20px;
	display: none;
	}
	
.end-footer {
	font-size: 30px;
	font-family: Sancreek;
	}
	
#replay {
	cursor: pointer;
	float: right;
	display: none;
	}
	
#replay:hover {
	background: #fff;
	color: #999;
	border-color: #999;
	}
	
	/* Credits */
#credits-heading {
	cursor: pointer;
	margin: 5px;
	position: absolute;
	bottom: 0px;
	left: 0px;
	}
	
#credits-heading:hover {
	text-decoration: underline;
	}
	
#credits {
	width: 840px;
	height: auto;
	color: #aaa;
	font-size: 10px;
	float: left;
	display: none;
	}
	
#credits ul {
	width: 270px;
	font-style: italic;
	list-style-type: none;
	padding: 0px 5px;
	margin: 0px;
	float: left;
	display: inline-block;
	}
	
#credits h6 {
	font-size: 11px;
	margin: 20px 0px;
	}
	
#credits-sfx {
	width: 560px;
	float: left;
	}
	
	/* Objects */
.pickup {
	cursor: pointer;
	position: absolute;
	}
	
.static {
	cursor: help;
	position: absolute;
	}
	
.item {
	cursor: pointer;
	display: none;
	}
	
.useditem {
	cursor: default;
	opacity: 0.4;
	}
	
.inert {
	cursor: pointer;
	display: none;
	}
	
#balconydoor1 {
	width: 100px;
	height: 230px;
	top: 110px;
	left: 275px;
	z-index: 500;
	}
	
#balconydoor2 {
	position: absolute;
	top: 91px;
	left: 270px;
	display: none;
	}
	
#bath-cupboard {
	width: 170px;
	height: 90px;
	top: 80px;
	left: 400px;
	transform: rotate(-5deg);
	-webkit-transform: rotate(-5deg);
	}
	
#bed-window1 {
	width: 280px;
	height: 150px;
	top: 110px;
	left: 15px;
	z-index: 500;
	}
	
#bed-window2 {
	position: absolute;
	top: 31px;
	left: 15px;
	display: none;
	}
	
#crowbar {
	bottom: 10px;
	left: 400px;
	}
	
#diningtable {
	width: 230px;
	height: 35px;
	transform: rotate(355deg);
	-webkit-transform: rotate(355deg);
	bottom: 180px;
	left: 260px;
	}
	
#door-master {
	width: 170px;
	height: 330px;
	top: 70px;
	right: 43px;
	}
	
#faintedPerson {
	bottom: 0px;
	right: 120px;
	}
	
#jug {
	top: 190px;
	left: 380px;
	}
	
#mattress {
	top: 310px;
	left: 180px;
	}
	
#notepaper {
	top: 180px;
	right: 180px;
	}
	
#paper1 {
	bottom: 50px;
	left: 100px;
	}
	
#paper2 {
	bottom: 50px;
	right: 100px;
	}
	
#picture {
	top: 21px;
	right: 165px;
	z-index: 500;
	display: hidden;
	}
	
#picture-fall {
	cursor: default;
	top: 100px;
	right: 260px;
	display: none;
	}
	
#picture-l {
	width: 15px;
	height: 150px;
	cursor: pointer;
	top: 32px;
	right: 315px;
	z-index: 505;
	}
	
#picture-r {
	width: 15px;
	height: 160px;
	cursor: pointer;
	top: 23px;
	right: 170px;
	z-index: 510;
	}
	
#sinkdoor-c {
	bottom: 24px;
	right: 272px;
	}
	
#sinkdoor-o {
	bottom: 24px;
	right: 381px;
	display: none;
	}
	
#skylight {
	width: 280px;
	height: 120px;
	top: 130px;
	left: 270px;
	}
	
#stepladder {
	bottom: 0px;
	right: 100px;
	}
	
#tapwater {
	width: 100px;
	height: 50px;
	transform: rotate(5deg);
	-webkit-transform: rotate(5deg);
	top: 215px;
	right: 155px;
	}
	
#telephone {
	width: 35px;
	height: 25px;
	bottom: 165px;
	right: 210px;
	}
	
#wallCode {
	color: #ddd;
	font-size: 50px;
	opacity: 0.5;
	top: 30px;
	right: 240px;
	}
	
	/* Inventory coding */
.inventory {
	width: 840px;
	height: 118px;
	background: #999 url("images/bg-wood.png") no-repeat;
	border-top: 2px solid black;
	position: relative;
	}

.inv-box {
	width: 80px;
	height: 80px;
	background: url('images/bg-blacksmall.png');
	border: 1px solid #666;
	padding: 10px;
	margin: 8px 0px 8px 9px;
	float: left;
	}
	
.inv-caption {
	width: 100px;
	height: auto;
	background: none;
	color: #fff;
	font-size: 12px;
	text-align: center;
	padding: 5px 0px;
	position: absolute;
	bottom: 9px;
	display: none;
	}
	
.caption1 {
	left: 10px;
	}
	
.caption2 {
	left: 121px;
	}
	
.caption3 {
	left: 232px;
	}
	
.caption4 {
	left: 343px;
	}
	
.caption5 {
	left: 454px;
	}
	
.caption6 {
	left: 565px;
	}
	
.inv-menu {
	width: 140px;
	height: auto;
	background: #333;
	color: #fff;
	font-size: 12px;
	text-align: center;
	border: 1px solid #000;
	cursor: pointer;
	padding: 5px;
	margin: 8px 11px 0px;
	float: left;
	}
	
.inv-menu:hover {
	background: #fff;
	color: #333;
	}

.inv-restart {
	width: 140px;
	height: auto;
	background: #333;
	color: #fff;
	font-size: 12px;
	text-align: center;
	border: 1px solid #000;
	cursor: pointer;
	padding: 5px;
	margin: 8px 11px 0px;
	float: left;
	}
	
.inv-restart:hover {
	background: #fff;
	color: #333;
	}
	
.inv-save {
	width: 140px;
	height: auto;
	background: #333;
	color: #fff;
	font-size: 12px;
	text-align: center;
	border: 1px solid #000;
	cursor: pointer;
	padding: 5px;
	margin: 8px 11px 0px;
	float: left;
	}
	
.inv-save:hover {
	background: #fff;
	color: #333;
	}
	
.inv-confirm {
	width: 154px;
	height: 100px;
	color: #fff;
	font-size: 12px;
	text-align: center;
	display: none;
	padding: 0px;
	margin: 10px;
	float: left;
	}
	
.inv-confirm p {
	margin-top: 0px;
	}
	
.inv-confirm ul {
	list-style-type: none;
	padding: 0px;
	margin: 0px;
	}
	
.inv-confirm li {
	width: 60px;
	text-align: center;
	border: 1px solid white;
	cursor: pointer;
	padding: 5px;
	margin: 5px auto;
	}
	
.inv-confirm li:hover {
	background: #fff;
	color: #000;
	border: 1px solid black;
	}
	
	/* Game - Weights */
#ss-handle {
	position: absolute;
	right: 255px;
	top: 180px;
	}
	
#springscale1 {
	margin: 10px;
	float: left;
	}
	
#springscale2 {
	margin: 10px;
	float: right;
	}
	
.weight, .scale1, .scale2 {
	padding: 15px 5px;
	float: center;
	}
	
	/* Game - Switches */
.switch-box {
	width: 210px;
	height: 150px;
	text-align: center;
	float: left;
	margin: 100px 0px;
	}
	
	/* Game - Med bottles */
.medbottle {
	float: center;
	margin: 140px 10px 0px;
	}
	
#med-note {
	position: absolute;
	bottom: 100px;
	right: 100px;
	}
	
#med-note-big {
	position: absolute;
	bottom: 170px;
	right: 270px;
	display: none;
	}
	
	/* Game - plates */
.plates {
	position: absolute;
	left: 220px;
	top: 30px;
	}
	
#plate-big {
	transform: none;
	-webkit-transform: none;
	z-index: 691;
	}
	
#plate-med {
	transform: none;
	-webkit-transform: none;
	z-index: 692;
	}
	
#plate-small {
	transform: none;
	-webkit-transform: none;
	z-index: 693;
	}
	
.curve-arrow {
	cursor: pointer;
	opacity: 0.5;
	position: absolute;
	z-index: 695;
	}
	
.curve-arrow:hover {
	opacity: 1;
	}
	
#curve-r-big {
	top: 165px;
	left: 160px;
	}
	
#curve-r-med {
	top: 180px;
	left: 90px;
	}
	
#curve-r-small {
	top: 195px;
	left: 20px;
	}

#curve-l-big {
	top: 165px;
	right: 160px;
	}
	
#curve-l-med {
	top: 180px;
	right: 90px;
	}
	
#curve-l-small {
	top: 195px;
	right: 20px;
	}
	
	/* Door code */
.codebox {
	width: 48px;
	height: 80px;
	color: #00ff00;
	font-family: Iceland;
	font-size: 75px;
	text-align: center;
	padding: 25px 10px;
	position: absolute;
	bottom: 175px;
	}
	
#code1 {
	left: 250px;
	}
	
#code2 {
	left: 326px;
	}
	
#code3 {
	left: 402px;
	}
	
#code4 {
	left: 480px;
	}
	
.arrowhead-up {
	cursor: pointer;
	position: absolute;
	top: 120px;
	}
	
.arrowhead-down {
	cursor: pointer;
	position: absolute;
	bottom: 120px;
	}
	
#codeup1, #codedown1 {
	left: 263px;
	}
	
#codeup2, #codedown2 {
	left: 337px;
	}
	
#codeup3, #codedown3 {
	right: 381px;
	}
	
#codeup4, #codedown4 {
	right: 302px;
	}
	