/*-----------------------------------------------------
	captain / wiseman story
-----------------------------------------------------*/

#location_captainStory {
	background: transparent url(../images/puzzles/captain_story/background.jpg) no-repeat scroll 0 0;
}

#location_wisemanStory {
	background: transparent url(../images/puzzles/wiseman_story/background.jpg) no-repeat scroll 0 0;
}

#storyAnswerBox {
	position: absolute;
	background: #E6F5FA url(../images/ui/dialogue_bg.jpg) repeat-x scroll 0 100%;
	color: #333;
	height: auto;
	/*min-height: 20px;*/
	left: 40px;
	padding: 10px 14px 12px 14px;
	bottom: 100px;
	width: 540px;
	display: none;
	z-index: 9;

}

#storyAnswerBox .borderTop,
#storyAnswerBox .borderBottom {
	background-repeat: repeat-x;	
}

#storyAnswerBox .dialogueTail {
	position: absolute;
	top: -34px;
	left: 176px;
	height: 40px;
	width: 47px;
	background: transparent url(../images/ui/dialogue_tail.png) no-repeat scroll 0 0;
	z-index: 6;
}

#storyAnswerBox .closeUI {
	left: 547px;
	top: -22px;
}

#storyWordsBox {
	position: absolute;
	bottom: -5px;
	height: 390px;
	left: -120px;
	padding: 17px 6px 10px;
	position: absolute;
	width: 112px;
	background: transparent url(../images/ui/story_words.png) no-repeat scroll 0 0;
	-moz-transition: all 1s ease-in-out 0s;
	-webkit-transition: all 1s ease-in-out 0s;
	-o-transition: all 1s ease-in-out 0s;
	transition: all 1s ease-in-out 0s;
}

#storyWordsBox.active {
	-moz-transform: translate(120px,0);
	-webkit-transform: translate(120px,0);
	-o-transform: translate(120px,0);
	-ms-transform: translate(120px,0);
	transform: translate(120px,0);
}

#storyWordsBox.rotate {
	bottom: -4px;
	left: -8px;
	padding: 17px 6px 10px 20px;
	width: 98px;
	-moz-transform: rotate(-2deg);
	-webkit-transform: rotate(-2deg);
	-o-transform: rotate(-2deg);
	-ms-transform: rotate(-2deg);
	transform: rotate(-2deg);
}

#storyQuesitonBox {
	bottom: 10px;
	height: 65px;
	left: 163px;
	position: absolute;
	width: 306px;
	text-align: center;
}

#storyQuesitonBox div {
	display: none;
}


#location_wisemanStory #storyQuesitonBox {
	color: #8b6a59;
}

#location_wisemanStory #questionField {
	background-color: transparent;
	border: 0 none;
	border-bottom: 1px solid #8b6a59;
	-webkit-user-select: text;
	-moz-user-select: text;
	-ms-user-select: text;
	user-select: text; 
	
	width: 100px;
	color: #8b6a59;
	cursor: text;
}

#location_wisemanStory #questionField:focus,
#location_wisemanStory #questionField:hover {
	color: #000;
	border-color: #000;
}


#storyWordsBox span {
	color: #fff;
	cursor: url(../images/ui/cursor_arrow_pointer.png), pointer;
	background-color: #499ed5;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	padding: 0 4px;	
	float: left;
	margin: 0 3px 3px 0;
	display: block;
}

#storyWordsBox span:hover {
	background-color: #1D90D8;
}

#storyWordsBox span:active {
	background-color: #333;
}

#storyWordsBox span.disabled {
	background-color: rgba(0,0,0,0.1);
	color: #8B6A59;
	text-decoration: line-through;
	cursor: url(../images/ui/cursor_arrow.png), default;
}

#storyQuesitonBox span {
	color: #8b6a59;
	cursor: url(../images/ui/cursor_arrow_pointer.png), pointer;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	padding: 0 4px;
	white-space: nowrap;
}

#storyQuesitonBox span:hover {
	color: #000;
}

#storyQuesitonBox span.active,
#storyQuesitonBox span:active {
	color: #000;
	background-color: rgba(0,0,0,0.1);
}

#storyQuesitonBox span.matched {
	color: #fff;
	background-color: #499ed5;
}

#storyQuesitonBox span.matched:hover {
	background-color: #1D90D8;
}

#storyQuesitonBox span.matched:active {
	color: #fff;
	background-color: #333;
}
/*
#storyQuesitonBox span.matched.active {
	color: #000;
	background-color: rgba(0,0,0,0.1);
}*/

#questionNav {
	display: block;
	position: absolute;
	bottom: 27px;
	right: 43px;
	width: 52px;
	height: 52px;
	text-align: center;
	line-height: 51px;
	color: #4b2f1d;
	cursor: url(../images/ui/cursor_arrow_pointer.png), pointer;
	background: transparent url(../images/ui/button_blank.png) no-repeat scroll 0 0;
}

#questionNav:active {
	background-position: 0 -100px;
}

#questionNav div {
	display: block;
}

#questionNavModal {
	background-color: transparent;
	z-index: 51;
	display: none;
}

#location_captainStory #brewing {
	background: transparent url(../images/puzzles/captain_story/brewing.jpg) no-repeat scroll 0 0;
	cursor: url(../images/ui/cursor_arrow_pointer.png), pointer;
	display: none;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 51;
}

#location_captainStory #brewing .info {
	text-shadow: 0px 0px 2px #000;
	position: absolute;
	bottom: 15px;
	right: 20px;
	color: #fff;
	font-style: italic;
	opacity: 0;
}