/*
Copyright (c) 2013 Ritchie Thai

See the file license.txt for copying permission.
*/

body {
	font-family: Arial, sans-serif;
}

.screen {
	position: relative;
	width: 800px;
	height: 600px;
	margin-left: auto;
	margin-right: auto;
	border: 1px solid black;
	overflow: hidden;
}

.scene {
	position: absolute;
	width: 100%;
	height:100%;
	background-color: white;
	background-size: contain;
	background-repeat: no-repeat;
}

.player {
	width: 60px;
	height: 200px;
	position: absolute;
	background-image: url(../img/characters/kylie.png);
	background-size: contain;
	background-repeat: no-repeat;
}

/* Dialog */

.message-box {
	position: absolute;
	display: none;
}

.message-box.message-box_action-description-box {
	bottom: 0;
	height: 3em;
	width: 100%;
}

.message {
	position: absolute;
	width: 100%;
	height: 100%;
	color: white;
	padding: 5px;
}

.message_option {
	height: auto;
	bottom: 0;
	box-sizing:border-box;
	-moz-box-sizing:border-box;
}

.message.dialog_text-alignment_center {
	text-align: center;
}

.message a {
	color: #cff;
	width: 100%;
	display: inline-block;
	cursor: pointer;
}

.message a:hover {
	background-color: #666;
}

.message a:active {
	background-color: #999;
}

.message-box__background {
	position: absolute;
	width: 100%;
	height: 100%;
	padding: 5px;
	background-color: black;
	opacity: 0.7;
	filter: alpha(opacity=70); /* For IE8 and earlier */
}

.message-box.message-box_dialog-box {
	top: 30px;
	left: 110px;
	width: 600px;
	height: 150px;
}

	.message-box.message-box_dialog-box {
		position: relative;
		border: 2px solid #000000;
		border-radius: 15px;
		box-sizing:border-box;
		-moz-box-sizing:border-box;
	}
	.message-box.message-box_dialog-box:after, .message-box.message-box_dialog-box:before {
		top: 100%;
		border: solid transparent;
		content: " ";
		height: 0;
		width: 0;
		position: absolute;
		pointer-events: none;
	}

	.message-box.message-box_dialog-box:after {
		border-color: rgba(255, 255, 255, 0);
		border-top-color: #ffffff;
		border-width: 10px;
		left: 50%;
		margin-left: -10px;
	}
	.message-box.message-box_dialog-box:before {
		border-color: rgba(0, 0, 0, 0);
		border-top-color: #000000;
		border-width: 13px;
		left: 50%;
		margin-left: -13px;
	}

	.message-box.message-box_dialog-box .message-box__background {
		background-color: white;
		opacity: 0.9;
		filter: alpha(opacity=90); /* For IE8 and earlier */
		box-sizing:border-box;
		-moz-box-sizing:border-box;
		border-radius: 15px;
	}

	.message-box.message-box_dialog-box .message {
		box-sizing:border-box;
		-moz-box-sizing:border-box;
		color: black;
	}

	.message-box.message-box_dialog-box .message {
		color: black;
	}

	.message-box.message-box_dialog-box .message a {
		color: #09f;
		margin: 1px auto;
	}
	.message-box.message-box_dialog-box .message a:hover {
		background: none;
		border: 1px solid #09f;
		border-left: none;
		border-right: none;
		margin: 0 auto;
	}
	.message-box.message-box_dialog-box .message a:active {
		color: #f00;
		background: none;
		border: 1px solid #09f;
		border-left: none;
		border-right: none;
		margin: 0 auto;
	}

/* Page */

.container {
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}

.important-notice {
	font-weight: bold;
	font-size: 120%;
	position: fixed;
	left: 0;
	top: 10px;
	z-index: 1000;
	background-color: yellow;
	width: 100%;
	text-align: center;
	opacity: 0.7;
	filter: alpha(opacity=70); /* For IE8 and earlier */
}

/* Sprites */

.scene-entity {
	background-size: contain;
	background-repeat: no-repeat;
	position: absolute;
}

.scene-entity_image {
}

.is-flipped-horizontally {
    -moz-transform: scaleX(-1);
    -o-transform: scaleX(-1);
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
    filter: FlipH;
    -ms-filter: "FlipH";
}

.is-clickable {
	cursor: pointer;
}
