
/* Top Level */

* {
	margin: 0;
	padding: 0;	
}

.clear {
	clear: both;
}

body {
	position: relative;
	width: 100%;
	height: 100%;
}
	
#background {
	background-color: rgb(255,255,255);
	position: absolute;
	left: 1%;
	top: 1%;
	right: 1%;
	bottom: 1%;
	background-image: 
		url(BackgroundTexture.tiff), 
		-webkit-gradient(radial, 50% 0, 300, 50% 20, 1000, 
			from(rgba(0,0,0,0)), to(rgba(0,0,0,0.2)) );
	background-repeat: repeat;
	-webkit-border-radius:8px;
	border: 15px solid #333;
	-webkit-border-image:url(BorderImage.png) 31 31 stretch;
}

#content {
	position: absolute;
	left: 5%;
	top: 40px;
	right: 5%;
	bottom: 50px;
	z-index: 1;
}

/* Row Layout */

#rowcontainer {
	position: relative;
	overflow: visible;
}

/* Facets */

.facet {
	position: relative;
    margin-top:5px;
	height: 50%;
	width: 100%;
	overflow: hidden;
	border: solid 8px green;
    border-color: transparent;
    background-color: transparent;
    -webkit-border-radius: 12px;
}

.facetborder {
	position: absolute;
	bottom: 0;
	height: 20px;
	width: 100%;
	opacity: 0.7;
}

.choicelabel {
	position: absolute;
    visibility: hidden;
	height: 30px;
	-webkit-transform: rotate(0deg);
	left: 10px;
	top: 10px;
}

/* Facet Text */

.facettextarea {
	position: absolute;
	left: 51%;
	right: 10px;
	bottom: 0;
	top: 2%;
}

.facettext {
	position: absolute;
	text-align: left;
	font-family: Helvetica;
	font-size: 100%;
	color: black;
	overflow: hidden;
}

/* Facet Images */

.facetimages {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	right: 51%;
	overflow: visible;
}

.imagearea {
	position: relative;
	width: 100%;
	overflow: visible;
}

.twoimagearea {
	height: 50%;
}

.oneimagearea {
	height: 100%;
}

.facetimages .contentimage {
    position: absolute;
    right:0;
	background-color: white;
	border:7px solid white; 
	-webkit-box-shadow:0 0 5px rgba(0,0,0,0.7);
}

img.doublefacetimage {
	max-height: 80%;
	max-width: 90%;
}

img.singlefacetimage {
	max-height: 90%;
	max-width: 90%;
}

.topimage {
	bottom: 2%;
}

.bottomimage {
	top: 2%;
}


/* Stamps and Labels */

#casetitle {
	position: absolute;
	top: 10px;
	left: 10px;
	font: 12px "Zapfino", "Snell Roundhand", "Edwardian Script ITC"; 
	color: #999;
    /* text-shadow: #fff 0 1px 0, #444 0 -1px 0; */
}

#rolearea {
	position: absolute;
	top: 10px;
	right: 10px;
    text-align:right;
}

.role {
    text-decoration: none;
	font: normal 12px "Zapfino", "Snell Roundhand", "Edwardian Script ITC";
	color: #999;
    /* text-shadow: #fff 0 1px 0, #444 0 -1px 0; */
    line-height: 22px;
}

#currentrole {
}

#nextrole {
	font-size: 10px;
}

#questionstamp {
	position: absolute;
    visibility: hidden;
	width: 10%;
	-webkit-transform: rotate(-10deg);
	left: 10px;
	bottom: 10px;
	opacity: 0.7;
}

.gradingstamp {
	position: absolute;
	width: 10%;
	-webkit-transform: rotate(15deg);
	right: 10px;
	bottom: 10px;
	opacity: 0.8;
    display: block;
    visibility: hidden;
}

#correctstamp {
}

#incorrectstamp {
}

#incorrectrepeatstamp {
}
