/***************************************/
/* General Settings of the Page Design */
/***************************************/
html {
	height: 100%;
	font-family: Verdana, Geneva, sans-serif;
	font-size: 14px;
}
body {
	background-color: #4686cd;
	height: 100%;
	margin: 0 auto;
	width: 840px;
}

/* Container for header, content and footer (div with id=main) */
div#main {
	width: 800px;
	padding: 0 20px;
	background-image:url(../img/background.png);
	background-repeat: repeat-y;
	background-color: #93cefb;
	min-height: 100%;
	margin: 0px;
	position: relative;
}

/* Header Containing the banner as background picture */
header {
	width: 800px;
	height: 164px;
	background-image:url(../img/banner.png);
}

/* Fontsize and size of navigation bar */
nav {
	width: 790px;
	margin: 5px;
	font-size: 10px;
}

/* color of navigation links */
nav a {
	color: #FFF;
	text-decoration: none;
}

/* navgation links when hovering the mouse pointer */
nav a:hover {
	text-decoration: underline;
}

/* <main></main> contains the content of the page */
main {
	padding: 10px;
	padding-bottom: 140px;
	width: 780px;
	display: block;
}

/* Headline styles */
main h1 {
	font-size: 18px;
}
main h2 {
	font-size: 16px;
}

/* Footer position and size */
footer{
	position: fixed;
	bottom: 0px;
	background-color: #93cefb;
	background-image:url(../img/footer_frame.png);
	background-repeat: no-repeat;
	padding: 17px 5px 3px 5px;
	width: 790px;
	height: 15px;
	font-size: 10px;
	color: #cee9fd;
	text-align: center;
	z-index: 1001;
}

/* Footer links style */
footer a {
	color: #FFF;
	text-decoration: none;
}
footer a:hover {
	text-decoration: underline;
}

/* Next and Previous Buttons */
.next, .prev{
	display: inline-block;
	background-image: url(../img/arrow_right.png);
	color: #FFF;
	font-size: 17px;
	width: 102px;
	height: 22px;
	padding: 24px;
	text-decoration: none;
	position: absolute;
	bottom: 40px;
}
.next:hover{
	background-image:url(../img/arrow_right_active.png);
}

.prev {
	background-image: url(../img/arrow_left.png);
	text-align: right;
	left: 100px;
}
.next {
	right: 100px;
}
.prev:hover {
	background-image: url(../img/arrow_left_active.png);
}

/**************************************************/
/*  Styles related to Radical Knowledge           */
/**************************************************/

/* Supermarket Sections int the top*/
ul.categories {
	list-style: none;
	text-align: center;
	margin: 0px;
	padding: 0px;
}
ul.categories > li {
	display: inline-block;
	background-image: url(../img/supermarket_category.png);
	color: #FFF;
	font-size: 22px;
	width: 110px;
	height: 30px;
	padding: 20px;
}

/* supermarket sections in the bottom */
div.categories_check {
	text-align: center;
	margin-left: auto;
	margin-right: auto;
	display: block;
	margin-bottom: 30px;
}
div.categories_check > div {
	height: 150px;
	width: 150px;
	background-image: url(../img/supermarket_category.png);
	background-repeat: no-repeat;
	position: relative;
	display: inline-block;
}
div.categories_check > div > img {
	margin: 19px;
	margin-bottom: 9px;
}
div.categories_check > div > img.translation {
	visibility: hidden;
	margin: 0;
}
div.categories_check > div > img.speaker {
	visibility: hidden;
	margin: 0;
	position: absolute;
	bottom:-17px;
	cursor: pointer;
	left: 70px;
}

/* the next radical explanation has to start after all elements of the previous one are placed */
div.radicals {
	clear: both;
}
/* radical pictures are displayed on the left */
div.radicals > div.radical_pics {
	max-width: 150px;
	margin-right: 10px;
	float: left;
}
/* mouse pointer for radicals with sound */
div.radicals > div.radical_pics > img.radical_with_sound {
	cursor: pointer;
}
/* radical description shouldn't be too near to the pictures */
div.radicals > div.radical_desc{
	padding:15px;
}
/* blue line between radicals */
div.radical_clear {
	clear: both;
	height: 1px;
	background-color: #4686cd;
}
/*box for radiacl examples on the right */
div.radical_ex {
	float: right;
	max-width: 250px;
	margin-left: 10px;
}
div.radical_ex > img {
	display: block;
}
/* ancient picture also floats right */
img.ancient {
	float: right;
}
/****************************************************/
/*        Styles related to Radical Identification  */
/****************************************************/

/* Character Box size, position and background */
div.char_box {
	width: 40px;
	height: 40px;
	padding: 10px;
	background-image: url(../img/box.png);
	position: relative;
	display: inline-block;
}

/* Box Background with small Check */
div.char_box_done, div.multiple_choice_complete > div.char_box {
	background-image: url(../img/box_checked.png);
}

/* Positioning centered */
div.multiple_choice {
	display: inline-block;
	width: 100%;
	text-align: center;
}

/* Size and Position of each character and radical picture 
(all have the same position on top of each other) */
div.char_box img {
	position: absolute;
	left: 10px;
	top: 10px;
	width: 40px;
	height: 40px;
}
/* center the text between the tasks */
div.multiple_choice > p {
	margin-top: 5px;
	text-align: center;
}
/************************************************************/
/*     Styles Related to Shopping Task                      */
/************************************************************/

/* Shopping List Size */
div#shoppinglist {
	width: 380px;
	position: relative;
	display: inline-block;
}

/* set background of first div */
div#shoppinglist > div#shoppinglist_top {
	background-image: url(../img/shopping/background_top.png);
}
/* set background of last div */
div#shoppinglist > div#shoppinglist_bottom {
	background-image: url(../img/shopping/background_bottom.png);
	height: 15px;
	width: 380px;
	position: absolute;
	bottom: -15px;
	left: 0px;
}
/* set background of list item */
div#shoppinglist > div.shoppinglist_item {
	position: relative;
	background-image: url(../img/shopping/background_row.png);
}
/* change background of list item when moving something on it */
div#shoppinglist > div.shoppinglist_item_hover {
	background-image: url(../img/shopping/background_row_hover.png);
}
/* display style has to be block to arrange the position */
div#shoppinglist img {
	display: block;
}
/* position of the speaker */
div#shoppinglist > div.shoppinglist_item > img.speaker {
	position:absolute;
	right: 10px;
	top: 21px;
	cursor: pointer;
	visibility: hidden;
}
/* <div></div> as a wrapper for all movable objects */
div#supermarket > div.products {
	position: absolute;
	top: 0px;
	right: 0px;
	width: 400px;
	height: 500px;
}

/* movable objects */
div#supermarket > div.products > img {
	width: 183px;
	height: 62px;
	position: absolute;
}

/* wrapper of shoppinglist and movable objects. Objects cannot be moved out */
div#supermarket {
	position: relative;
}

/******************************************************/
/*       Styles Related to the Extended Task          */
/******************************************************/

/* div.extension_charbox is the box where the characters are initially placed,
   div.extension_box is one of the cards containing the picture and so on */
div#extended_characters > div.extension_charbox, div#extended_characters > div.extension_box {
	display: inline-block;
	margin: 5px 15px;
	width: 220px;
	height: 320px;
}
/* background of card */
div#extended_characters > div.extension_box {
	background-image: url(../img/extended/background.png);
	background-repeat: no-repeat;
	position: relative;
}
/* background of box when moving character on it */
div#extended_characters > div.extension_box_hover {
	background-image: url(../img/extended/background_hover.png);
}

/* position and size of the movable characters */
div#extended_characters > div.extension_charbox > img {
	position: absolute;
	height: 27px;
	width: 60px;
}

/* character storage box needs to be position relative for positioning of the characters */
div#extended_characters > div.extension_charbox {
	position: relative;
}
/* speaker position, size and visibility */
div#extended_characters > div.extension_box > img.speaker {
	position: absolute;
	top: 217px;
	left: 185px;
	cursor: pointer;
	visibility: hidden;
}

