/*
	Copyright 2012 Submission.org
*/

@media screen and (max-width: 929px) {
	body {
		margin: 5px;
		min-width: 570px;
	}
}

@media screen and (min-width: 930px) {
	body {
		width: 900px;
		margin: 0px auto;
		padding: 15px;
	}
}

@font-face {
	font-family: AR_def;
	src: url(/QI2d/ScheherazadeRegOT.ttf);
}

html {
	background-color: #b3a9bf;
	font-family: "Liberation Sans", Arial, Helvetica, sans-serif;
	font-style: normal;
	font-size: 16px;
	overflow-y: scroll;
}

h1,h2,h3,h4,h5,h6 {
	font-style: normal;
	font-weight: normal;
	margin: 0px;
	text-align: center;
}

header,footer,cite {
	display: block;
}

hr {
	clear: both;
}

#content {
	margin-left: 210px;
	width: 660px;
	background-color: #ffffff;
	padding: 15px;
	padding-bottom: 15px;
}

#content article header {
	background-color: #ffa;
	padding: 10px;
	margin-bottom: 30px;
	border-radius: 15px;
	box-shadow: 2px 2px 8px 1px #000000;
}

#content article header hgroup * {
	text-shadow: #40f 0px 2px 2px;
}

#content article header hgroup h4 {
	font-family: Tangerine;
	font-style: normal;
	text-align: center;
	font-size: 210%;
	color: #000000;
	text-shadow: #777 1px 1px 2px;
	margin-bottom: 15px;
}

#content article section h5, #content article>h5 {
	font-size: 100%;
	font-weight: bold;
	text-decoration: underline;
}

/*#content #home section h3 {
	font-size: 110%; font-style: italic; color: #000000; text-shadow: #40d 0px 2px 2px;
}

#content #home section h3 strong {
	font-weight: bold; color: #000;
}*/

#content article ol, #content article ul {
	list-style-position: outside;
	margin-right: 25px;
	clear: both;
	text-align: justify;
}

#content>article>section>ul>li~li, #content>article>section>ol>li~li, #content>article>ol>li~li, #content>article>ul>li~li {
	margin-top: 10px;
}

#content article nav ul~ul {
	margin-top: 2.5em;
}

#content article div.quran, #content article div.otherquote, #content article div.editorial {
	text-align: justify;
	font-size: 100%;
	width: 85%;
	margin: 30px auto;
	padding: 15px;
	border-radius: 10px;
	box-shadow: 2px 2px 8px 1px #000000;
	background-color: #f2eaff;
}

div.quran>p, div.otherquote>p, div.editorial>p {
	margin: 0px;
}

div.quran>p~p, div.otherquote>p~p, div.editorial>p~p {
	margin-top: 10px;
}

#content article div.otherquote {
	background-color: #fff;
}

#content article div.editorial {
	background-color: #fff;
	font-size: 80%;	
}

div.editorial h4 {
	font-weight: bold;
	margin-bottom: 10px;
}

#content article div.faderbox {
	text-align: justify;
	font-size: 100%;
	width: 85%;
	margin: 30px auto;
	padding: 15px;
	border-radius: 10px;
	box-shadow: 2px 2px 8px 1px #000000;
	background-color: #ffa;
	display: none;
}

div.faderbox {
	margin: 0px auto;
}

div.faderbox>p {
	margin: 0px auto;
	vertical-align: middle;
}

div.quran[lang="en"] > p > span.subtitle {
	text-align: center;
	font-style: italic;
	font-size: 90%;
	margin: 15px auto;
	color: #000;
	clear: both;
	display: block;
}

div.quran > p:first-child > span.subtitle {
	margin-top: 0px;
}

div.quran > p:first-child > br~span.subtitle {
	margin-top: 15px;
}

div.quran > p > span.footnote {
	font-style: italic;
	font-size: 80%;
	margin: 10px auto;
	color: #000;
	width: 80%;
	display: block;
}

div.quran > p > span[lang="ar"] {
	margin: 5px auto;
	margin-bottom: 10px;
	display: block;
	width: 90%;
	text-align: justify;
	text-shadow: #303 1px 1px 3px;
}

div.quran>p>span.qparenthesis, #fadertext>span.qparenthesis, #butler>#popupbox>.popupversetext>p>span.qparenthesis {
	font-style: italic;
}

article section>p, article>p {
	text-align: justify;
	line-height: 1.2em;
	margin-left: 25px;
	margin-right: 25px;
}

article nav li {
	margin: 10px 0px;
}

article a {
	color: #007;
}

article a:link, footer a:link {
	text-decoration: none;
	font-weight: bold;
	font-style: italic;
}

article a:hover, footer a:hover {
	text-decoration: underline;
}

article nav a {
	color: #000;
}

article nav a:link {
	text-decoration: none;
	font-weight: bold;
	font-style: italic;

}

article nav a:hover {
	text-decoration: underline;
}

#content footer {
	clear: both;
	margin-top: 15px;
	padding-top: 10px;
	padding-bottom: 5px;
	border-top: 1px solid #000;
	
}

#content footer address {
	float: left;
	margin-left: 15px;
	font-style: normal;
	font-size: 70%;
}

#content footer a {
	color: #000;
	font-style: italic;
}

#content footer small {
	margin-right: 15px;
	margin-left: 15px;
	font-size: 70%;
}

#content footer small.cpyrt {
	float: right;
}

#content footer div.readquran {
	width: 80%;
	margin: 12px auto;
	clear: both;
	display: table;
	text-align: justify;
	padding: 15px;
	font-size: 85%;
	border-bottom: 1px solid #000;
	border-radius: 5px;
	box-shadow: 1px 1px 5px #000;
	background-color: #f8f0d0;
}

#content footer span.readqurantext {
	display: table-cell;
	vertical-align: middle;
}

#content footer span.readqurantext a {
	color: #007;
	text-decoration: underline;
}

#content article aside {
	margin: 15px auto;
	width: 40%;
	padding: 10px;
	background-color: #ddd;
	font-size: 80%;
	border-radius: 5px;
	box-shadow: 1px 1px 4px #000;
}

#content article aside p {
	margin-bottom: 0px;
	text-align: justify;
}

#mainmenu {
	position: absolute;
	width: 200px;
	background-color: #606060;
}

@media screen and (min-width: 918px) and (min-height: 675px) {
	#mainmenu {
		position: fixed;
	}
}

@media screen and (max-width: 917px) , (max-height: 674px) {
	#mainmenu {
		position: absolute;
	}
}

#mainmenu ul {
	margin: 30px 0px;
	margin-left: -45px;
	list-style: none;
	text-align: center;
}

#mainmenu a {
	outline: 0;
	display: block;
	padding-top: 12px;
	padding-bottom: 12px;
	font-family: Serif;
	font-size: 125%;
	font-style: italic;
	color: #ffffff;
	text-decoration: none;
	text-shadow: #fff 0px 0px 0.5px, #222 0px 0px 12px;
}

#mainmenu a:focus {
	text-shadow: #fff 0px 0px 0.5px, #fff 0px 0px 12px;
}

#mainmenu a:hover, #mainmenu a:active {
	text-shadow: #fff 0px 0px 1px, #fff 0px 0px 12px, #fff 0px 0px 20px;
}

#mainmenu .menuspacer {
	height: 30px;
}

#mainmenu, #content, .roundcorners {
	border-radius: 15px;
}

#content, .boxshade_a {
	box-shadow: 3px 3px 10px #000000;
}

#mainmenu, .boxshade_b {
	box-shadow: 0px 0px 3px #000000;
}

#content article section {
	clear: both;
}

#content article section>table {
	width: 42%;
	margin: 15px 25px 15px 15px;
	padding: 5px;
	font-size: 85%;
	float: right;
	clear: none;
}

#content article>table, #content article div.editorial>table {
	width: 83%;
	min-width: 60%;
	max-width: 85%;
	font-size: 90%;
	margin: 15px auto;
	padding: 5px;
}

#content article div.editorial>table {
	font-size: 100%;
	max-width: 85%;
	min-width: 60%;
}

#content article section>table th, #content article>table th, #content article div.editorial>table th {
	text-align: left;
	padding: 3px;
}

#content article section>table td, #content article>table td, #content article div.editorial>table td {
	padding: 3px;
}

#content article section>table~p {
	max-width: 42%;
	float: left;
	clear: left;
}

#content article section>table~div.quran, #content article section>table~div.otherquote {
	font-size: 90%;
	margin-left: 25px;
	max-width: 38%;
	float: left;
	clear: left;
}

table>caption {
	text-align: justify;
}

#content article section>figure>figcaption, #content article>figure>figcaption {
	font-size: 70%;
	width: 70%;
	margin: auto;
	text-align: justify;
}

#content article section>img, #content article section>figure>img, #content article>img, #content article>figure>img {
	display: block;
	max-width: 610px;
	margin: 15px auto;
}

#content article section>figure>img, #content article>figure>img {
	margin-bottom: 3px;
}

#content article section>p>img, #content article>p>img {
	margin: 3px;
	vertical-align: middle;
}

#content article section>p>img.imgleft, #content article>p>img.imgleft, #content footer>div.readquran>a>img.imgleft {
	float: left;
	margin-right: 20px;
}

#content article section>p>img.imgright, #content article>p>img.imgright {
	float: right;
	margin-left: 20px;
}

#content article span.sad {
	text-decoration: underline;
	font-weight: bold;
	font-style: normal;
}

.autoverse {
	color: #007;
	font-weight: bold;
	font-style: italic;
}

.autoverse:hover {
	cursor: pointer;
	text-decoration: underline;
}

#butler>#popupbox {
	font-size: 100%;
	display: none;
	position: fixed;
	max-width: 480px;
	max-height: 240px;
	cursor: pointer;
	padding: 5px 0px 10px 10px;
	padding-right: 0px;
	border-radius: 5px;
	box-shadow: 1px 1px 5px #000;
	background-color: #f8f0d0;
	color: #000;
	margin: 0px;
	z-index: 1;
	overflow-y: auto;
}

#butler>#popupbox>.popupversetext {
	width: 100%;
	clear: both;
	padding: 5px 0px;
}

#butler>#popupbox>.popupversetext>p {
	margin: 0px;
	text-align: justify;
}

#butler>#popupbox>.popupversetext>p:first-child {
	width: 48%;
	float: left;
	line-height: 140%;
}

#butler>#popupbox>.popupversetext>p:last-child {
	width: 42%;
	margin-right: 10px;
	float: right;
	font-family: AR_def;
	font-size: 160%;
}

#content article nav>ol.reminders {
	column-count: 2;
	-moz-column-count: 2;
	-webkit-column-count: 2;
	
	-moz-column-rule: thin solid #bbb;
	
	font-size: 80%;
	list-style: none;
}

#content article nav>ol.reminders>li>a {
	font-style: normal;
	font-weight: normal;
}

#content article nav>ol.reminders>li {
	width: 95%;
}

#content article nav>ol.reminders>li {
	margin: 2px;
}

#content article nav>ol.reminders>li:nth-child(5n) {
	margin-bottom: 25px;
}

#faderstrings {
	display: none;
}

noscript {
	 position: absolute;
	 background-color: #700;
	 color: #fff;
	 z-index: 1;
	 padding: 0.1em;
}

@media print {
	html {
		background-color: #fff;
	}
	#mainmenu {
		display: none;
	}
	body {
		width: 100%;
		margin: 0px auto;
		padding: 15px;
	}
	#content {
		margin-left: 0px;
		width: 90%;
		min-height: 0px;
		background-color: #ffffff;
		padding: 15px;
		padding-bottom: 30px;
	}
	#content article header hgroup h4 {
		font-family: serif;
		font-style: italic;
		text-align: center;
		font-size: 120%;
		color: #000000;
		
		margin-bottom: 15px;
	}
	#content article header hgroup h2, #content article header hgroup h3, #content article header hgroup h4, #content article header hgroup h5 {
		text-shadow: #fff 0px 0px 0px;
	}
	#content article header, #content article div.otherquote, #content article div.editorial, #content article div.faderbox, #content article aside, .boxshade_a, .boxshade_b {
		box-shadow: 0px 0px 0.5px #000;
	}
	#content article div.quran {
		box-shadow: 0px 0px 1px #000000, 0px 0px 2px #000;
	}
}
