/* Flashcard-specific page styles */

#canvas {
	width: 26.67em;
}


/* Flashcard configuration box styles */

#configure dl dt.units {
	margin-top: 1.5em;
}

#configure dl dd.units {
	margin-top: 0px;
}

#configure dl dd.units label {
	font-size: 80%;
	text-transform: uppercase;
/*	background-color: lightgreen;*/
}

#configure dl dd.units.ak ul.range li.all,
#configure dl dd.categories ul.range li.all {
	display: block;
	float: left;
	height: 5em;
	line-height: 5em;
}

#configure dl dt.vocalization {
	clear: left;
	float: left;
	width: 12em;
	margin-top: 2em;
	text-align: left;
}

#configure dl dd.vocalization {
	float: left;
	width: 10.75em;
	clear: left;
	margin: .5em 0px;
	padding-left: 1.25em;
}

#configure dl dd.vocalization p {
	margin: .2em 0px;
}

#configure dl dd.vocalization p:first-child {
	margin-top: 0px;
}

#configure dl dd.vocalization strong.experimental {
/*	color: red;*/
	font-size: 90%;
	margin-left: 2em;
}

#configure dl dd.vocalization span.color {
	display: inline-block;
	width: .75em;
	height: .75em;
	margin-left: .2em;
/*	margin-bottom: -.2em;*/
	background-color: red;
}

#configure dl dt.prompt {
	float: none;
	clear: none;
	margin-top: 2em;
	margin-left: 13em;
	width: auto;
	text-align: center;
}

#configure dl dd.prompt {
	float: none;
	clear: none;
	margin: .5em 0px .5em 13em;
	width: auto;
	text-align: center;
	position: relative;
	
/*	height: 1em;*/
}


/* Flashcards */

/* #deck (.vocalized, .unvocalized, .highlighted)
 * → .card (.prev, .next) .flipped? (#loading, #error)
 *   → .face (.obverse, .reverse)
 *     → .term
 *       → .wrapper
 *         → .variant (.vocalized, .unvocalized, .highlighted)
 */

#deck {
	position: relative;
	width: 100%;
	height: 9.4em;
	margin-bottom: 1.67em;
	
	-webkit-perspective: 600;
}

.card {
/*	left: 1em;*/
/*	display: none;*/
	position: absolute;
	height: 100%;
	width: 100%;
/*	background-color: lightblue;*/
	
	-webkit-transform-style: preserve-3d;
	-webkit-transition-property: -webkit-transform, opacity;
	-webkit-transition-duration: .25s, .15s;
	opacity: 1.0;
}

.card.prev {
	-webkit-transform: translateX(-400px);
	opacity: 0;
}

.card.next {
	-webkit-transform: translateX(400px);
	opacity: 0;
}

.card.flipped {
	-webkit-transform: rotateY(-180deg);
	opacity: 1.0;
}

#loading {
	display: none;
	background: transparent url(../images/loading-mac.gif) 24.67em 7.33em no-repeat;
	z-index: 3;
}

#error {
	display: none;
	font-size: 93.33%;
	text-align: center;
	background: transparent;
/*	z-index: 0;*/
/*	background-color: pink;*/
	border: solid .1em #A0735C;
}

#error p {
	margin: 0px;
}

#error p.zero {
	margin-top: 3.6em;
/*	background-color: lightblue;*/
}

.face {
	position: absolute;
	height: 100%;
	width: 100%;
/*	margin-bottom: 1.25em;*/
	border: solid .1em #A0735C;
	background-color: white;
	color: black;
	
	-webkit-box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.5);
	-webkit-backface-visibility: hidden;
}

.face p {
	text-align: center;
	margin: 0px;
	padding: 0px;
}

.face .term {
	font-weight: bold;
}

.obverse {
	z-index: 2;
/*	visibility: visible;*/
}

.flipped .obverse {
	z-index: 0;
/*	visibility: hidden;*/
}

.obverse .term {
	font-size: 200%;
	line-height: 2.4em;
	margin-top: .8em;
/*	background-color: pink;*/
}

.obverse .term .wrapper {
	line-height: 2.4em;
	height: 2.4em;
/*	overflow: visible;*/
}
.obverse .term .wrapper span {
	white-space: pre;
	padding: 0px .5em;
}

.obverse .gloss {
	font-size: 160%;
/*	line-height: 1.75em;*/
	margin-top: 1.75em;
}

.reverse {
/*	display: none;*/
	-webkit-transform: rotateY(-180deg);
	z-index: 1;
/*	visibility: hidden;*/
}

.flipped .reverse {
/*	visibility: visible;*/
}

.reverse .term {
	font-size: 133.33%;
	margin-top: .25em;
}

.reverse .term .wrapper {
	line-height: 2.4em;
	height: 2.4em;
}

.reverse .term .wrapper span {
	white-space: pre;
	padding: 0px .5em;
}

.reverse .transliteration {
	font-size: 80%;
	direction: ltr;
	margin-top: -1em;
	line-height: 1.33;
}

.reverse .gloss {
	position: relative;
	font-size: 120%;
	line-height: 1.4;
	margin-top: 1em;
}

.reverse .gloss .category {
	font-size: 80%;
	font-style: italic;
	padding-right: 1em;
}

.reverse .gloss .extras {
	display: block;
	font-size: 50%;
/*	padding-left: 1em;*/
	text-transform: uppercase;
	color: #999;
	line-height: 1.4;
}

.reverse .usage {
	font-size: 80%;
	line-height: 1.4;
}


/* Vocalization variants */

#deck.vocalized .card .term[lang="ar"] .wrapper .unvocalized,
#deck.vocalized .card .term[lang="ar"] .wrapper .highlighted {
	display: none;
}

#deck.vocalized .card .term[lang="ar"] .wrapper .vocalized {
	display: inline-block;
}

#deck.highlighted .card .term[lang="ar"] .wrapper .unvocalized,
#deck.highlighted .card .term[lang="ar"] .wrapper .vocalized {
	display: none;
}

#deck.highlighted .card .term[lang="ar"] .wrapper .highlighted {
	display: inline-block;
}

#deck.unvocalized .card .term[lang="ar"] .wrapper .vocalized,
#deck.unvocalized .card .term[lang="ar"] .wrapper .highlighted {
	display: none;
}

#deck.unvocalized .card .term[lang="ar"] .wrapper .unvocalized {
	display: inline-block;
}

#deck.hover .card .term[lang="ar"] .wrapper .vocalized,
#deck.hover .card .term[lang="ar"] .wrapper .highlighted {
	display: none;
}

#deck.hover .card .term[lang="ar"] .wrapper .unvocalized {
	display: inline-block;
}

#deck.hover .card .term[lang="ar"] .wrapper.show .vocalized,
#deck.hover .card .term[lang="ar"] .wrapper:hover .vocalized {
	display: inline-block;
	background-color: #FFFFCC;
}

#deck.hover .card .term[lang="ar"] .wrapper.show .unvocalized,
#deck.hover .card .term[lang="ar"] .wrapper:hover .unvocalized {
	display: none;
}

.highlighted .diacritic {
	color: red;
}


/* Navigation controls */

#controls {
	position: relative;
	height: 3em;
	margin: 1.7875em auto;
	font-size: 93.33%;
/*	background-color: lightgreen;*/
}

#controls a {
	position: absolute;
	display: block;
	width: 3em;
	text-align: center;
/*	background-color: pink;*/
}

#controls a:hover {
	text-decoration: none;
}

#controls a span {
	display: block;
}

#controls a .key {
/*	font-size: 80%;*/
	text-transform: uppercase;
}

#controls a .key.smallcaps {
	line-height: 2.04em;
}

#prev {
	left: 0px;
}

#flip {
	left: 50%;
	margin-left: -1.5em;
}

#next {
	right: 0px;
}