/*! HTML5 Boilerplate v5.3.0 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
	color: #222;
	font-size: 1em;
	line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
	background: #b3d4fc;
	text-shadow: none;
}

::selection {
	background: #b3d4fc;
	text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
	display: block;
	height: 1px;
	border: 0;
	border-top: 1px solid #ccc;
	margin: 1em 0;
	padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
	vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
	border: 0;
	margin: 0;
	padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
	resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
	margin: 0.2em 0;
	background: #ccc;
	color: #000;
	padding: 0.2em 0;
}

/* ==========================================================================
	Author's custom styles
	========================================================================== */
body,
li:before,
.ui-widget,
input,
textarea {
	font-family: "Open Sans", "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial,Elif2 sans-serif !important;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
body {
	display: flex;
}
div.header {
	min-height: 100px;
	background-color: #041061;
	position: relative;
}
p.slogan {
	color: #fff;
	position: absolute;
	right: 20px;
	top: 40px;
}
p {
	margin: 0;
	margin-bottom: 1em;
}
p.logo {
	color: #fff;
	font-size: 2.5em;
	font-weight: 600;
	padding: 21px 50px;
	display: inline-block;
	margin-bottom: 0;
}
div.button-container {
	display: inline-block;
	position: absolute;
	right: 20px;
	bottom: 0;
}
a.button {
	background-color: #ca1923;
	font-size: 1.4em;
	font-weight: 600;
	padding: 10px 20px;
	display: inline-block;
	margin: 0 5px;
	color: #fff;
	text-decoration: none;
}
a.button:hover {
	background-color: #998675;
	color: #fff;
}
div.subheader,
div.jump {
	background-color: #041061;
	min-height: 66px;
	display: flex;
	align-items: center;
}
div.jump {
	background-color: #e1e1e1;
	padding: 0 50px;
}
div.jump label {
	font-weight: 600;
}
span.quick,
span.or {
	font-size: 1.2em;
	font-weight: 700;
	margin: 0 0.6em;
}
p.learn {
	color: #fff;
	margin: 0;
	margin-left: 50px;
	font-size: 1.2em;
	font-weight: 600;
}
div.jump select,
div.jump input[type="text"] {
	 margin-right: 0.5em;
}
div.content {
	position: relative;
	margin-left: 330px;
	width: 100%;
}
div.content.no-nav {
	margin-left: 0;
}
div.side {
	background-color: #f5f5f5;
	width: 310px;
	min-width: 300px;
	padding: 10px;
	height: 100%;
	position: fixed;
	overflow-y: scroll;
}
div.main {
	flex-grow: 1;
	min-height: 100vh;
	background-color: #fff;
}
div.footer {
	background-color: #041061;
	min-height: 40px;
	display: flex;
	align-items: center;
	justify-content: space-around;
	position: absolute;
	width: 100%;
	bottom: 0;
}
div.footer p {
	margin-bottom: 0;
	font-size: 0.8em;
	color: #fff;
}
a.category {
	background-color: #e1e1e1;
	color: #041061;
	padding: 5px;
	display: block;
	text-decoration: none;
	margin-bottom: 14px;
	font-weight: 600;
	font-size: 1.3em;
}
a.category:hover {
	background-color: #041061;
	color: #e1e1e1;
	cursor: pointer;
}
p.topic {
	font-weight: 700;
	margin-left: 10px;
	margin-bottom: 0.5em;
	color: #998675;
}
ol.dialogues {
	margin-top: 0;
	font-size: 0.9em;
}
ol.dialogues a {
	text-decoration: none;
	color: #222;
}
ol.dialogues a:hover {
	text-decoration: underline;
}
div.location {
	background-color: #f5f5f5;
	min-height: 40px;
	display: flex;
	align-items: center;
	padding: 0 10px;
	font-size: 0.9em;
	justify-content: space-between;
	margin-bottom: 1em;
}
div.location p {
	margin-bottom: 0;
}
div.main a {
	text-decoration: none;
	color: #ca1923;
}
div.main a:hover {
	text-decoration: underline;
}
div.sentence-container {
	padding: 1em 0.9em;
	border-bottom: 1px solid #ccc;
	padding-bottom: 1em;
}
div.sentence-container:hover {
	background-color: #efefef;
}
div.sentence {
	min-height: 40px;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 0.5em;
}
div.sentence p {
	margin-bottom: 0;
}
p.english {
	font-weight: 600;
	margin-right: 4em;
}
p.arabic {
	font-size: 1.7em;
	text-align: right;
	margin-top: -0.3em;
	font-family: 'Elif2', serif;
	line-height: 1.6;
}
div.main a.getaccess {
	background-color: #ec1d29;
	border-radius: 5px;
	padding: 0.4em 0.9em;
	color: #fff;
}
div.main a.getaccess:hover {
	text-decoration: none;
	background-color: #998675;
}
p.transliteration {
	text-align: right;
}
p.word {
	display: inline-block;
	color: #998675;
	font-size: 0.9em;
	margin-right: 2em;
	font-weight: 600;
}
audio {
	width: 100%;
}
div.overlay-container {
	position: relative;
}
div.overlay {
	height: 100%;
	position: absolute;
	z-index: 1000;
	width: 100%;
}
.videoWrapper {
	display: block;
	text-align: center;
	width: 560px;
	height: 315px;
}
div.controls {
	justify-content: center;
	margin-top: 10px;
	display: flex;
}
div.controls p {
	background-color: #efefef;
	padding: 7px 12px;
	border-radius: 5px;
	font-size: 0.8em;
	margin: 0 1em;
}
p.halfspeed {
	font-size: 0.9em;
	padding: 1em;
	background-color: pink;
	border-radius: 5px;
	margin-top: 1em;
}
p.logo a {
	color: #fff;
	text-decoration: none;
}
span.ar.quranText.top.rtl {
	text-align: center;
	display: block;
	font-size: 2.4em;
	font-family: 'Elif2', serif;
	line-height: 1.6;
}
span.word.staticWord {
	display: inline-block;
	padding: 0.2em 1em;
}
span.word.staticWord.saved {
	background-color: #00ffff;
}
span.en {
	text-align: center;
	display: block;
	font-family: "Open Sans", "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, sans-serif !important;
}
p.ayah {
	font-family: 'Elif2';
	padding: 1em;
	border-bottom: 1px solid #ccc;
	margin-bottom: 0;
	position: relative;
}
p.ayah:hover {
	background-color: #f5f5f5;
}
span.verse-number {
	 position: absolute;
	 bottom: 0.4em;
	 font-size: 2em;
	 left: 0;
	 background-color: #43073C;
	 color: #efefef;
	 padding: 0 0.4em;
}
div.jump input[type="text"] {
	width: 3em;
}
div.main a.menu,
div.main a.header,
div.main a.vocabulary {
	background-color: #43073C;
	color: #fff;
	padding: 0.3em 0.5em;
	display: inline-block;
	margin-bottom: 1em;
	text-decoration: none;
}
div.main a.menu:hover,
div.main a.header:hover,
div.main a.vocabulary:hover {
	background-color: #041061;
	cursor: pointer;
}
h1 {
	font-size: 1.6em;
}
h2 {
	font-size: 1.2em;
}
div.alphabet a,
div.base a {
	display: inline-block;
	background-color: #041061;
	color: #fff;
	margin: 0.2em;
	font-size: 1.3em;
	text-decoration: none;
	width: 1.6em;
	height: 1.6em;
	text-align: center;
    margin-bottom: 14px;
}
div.base a {
	padding: 0.1em 0.4em;
	width: auto;
	height: auto;
}
div.alphabet a:hover,
div.base a:hover {
	background-color: #43073C;
	text-decoration: none;
}
#quran {
	margin-top: 0.7em;
}
div.alphabet,
div.base {
	display: flex;
	flex-direction: row-reverse;
	flex-wrap: wrap;
	justify-content: space-between;
}
div.base {
	justify-content: flex-start;
}
#topic {
	margin-top: 14px;
}
div.select {
	min-width: 641px;
}
div.manual {
	min-width: 288px;
}
div.row {
	display: flex;
	justify-content: center;
	align-items: center;
	border-bottom: 1px solid #ccc;
	padding-bottom: 0.5em;
	padding-top: 0.5em;
	position: relative;
}
div.sen-a {
	font-size: 2em;
	width: 50%;
	direction: rtl;
	padding-right: 10px;
	border-right: 1px solid #ccc;
	padding-left: 2.2em;
}
div.sen-e {
	width: 50%;
	padding-left: 11px;
	padding-right: 2.2em;
}
.sub-sen {
	width: 100%;
	display: flex;
	align-items: center;
	border-bottom: 1px dashed #ccc;
	padding: 0.3em;
}
.sub-sen:last-child {
	border-bottom: none;
}
div.row.multiple {
	flex-wrap: wrap;
	background-color: #fdfde8;
}
span.span-a {
	position: absolute;
	left: 0;
	display: inline-block;
	background-color: #041061;
	color: #fff;
	padding: 0 0.2em;
}
span.span-e {
	display: none;
	position: absolute;
	right: 0;
	background-color: #041061;
	color: #fff;
	padding: 0 0.2em;
}
div.row:hover {
	background-color: #efefef;
}
.mobile {
	display: none !important;
}
div.word-container p {
	margin-right: 0;
	direction: ltr;

}
div.word-container p.location {

}
div.word-container p.verseArabic {
	font-size: 2em;
	margin-bottom: 0;
	white-space: nowrap;
	font-family: 'Elif2', serif;
	line-height: 1.6;
}
div.word-container p.wordArabic {
	font-size: 2em;
	margin-bottom: 0.1em;
	font-family: 'Elif2', serif;
	line-height: 1.6;
}
div.word-container p.transliteration {

}
div.word-container p.verseArabic span.word {
	color: #ca1923;
	font-family: 'Elif2', serif;
	line-height: 1.6;
}
div.word-container:hover {
	cursor: pointer;
}
html.summary h2 {
	font-size: 1.2em;
	background-color: #efefef;
	padding: 1em;
}
div.wrapper {
	padding: 20px 20px 70px;
}
div.words {
	display: flex;
	flex-wrap: wrap;
	direction: rtl;
	margin-top: 1em;
}
div.word-container {
	position: relative;
	background-color: #efefef;
	margin: 0 0 1em 1em;
	padding: 1em 1em 0;
	text-align: center;
}
div.word-container div.word {
	text-align: center;
}
div.word-container:hover div.verse-container {
	display: block;
}
div.verse-container {
	display: none;
	position: absolute;
	background-color: #b7d4ec;
	bottom: 109%;
	text-align: right;
	padding: 1em 1.5em;
	right: 0;;
}
ol.dialogues li.active {
	background-color: #ff0;
	padding: 2px 5px;
}
div.alphabet a.active {
	background-color: #ff0;
	color: #333;
}
div.clause {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-top: 1px dashed #ccc;
}
div.clause:nth-child(1) {
	border-top: none;
}
div.verse-wrapper {
	display: flex;
	border-bottom: 4px solid #ccc;
	position: relative;
}
div.verse-wrapper:last-child {
	border-bottom: none;
}
div.verse-wrapper:hover {
	background-color: #efefef;
}
div.verse-num {
	background-color: #041061;
	color: #fff;
	padding: 0 0.2em;
	width: 20px;
	text-align: center;
	height: 100%;
}
div.verse {
	flex-grow: 1;
}
div.clause div {
	width: 49%;
	padding: 7px 0;
}
div.clause div.arabic {
	direction: rtl;
	font-size: 2em;
	font-family: 'Elif2', serif;
	line-height: 1.6;
}
img.angel {
	opacity: 0.05;
	position: absolute;
	left: calc(50% - 100px);
	top: calc(50% - 43px);
}
html#topics h3 {
	background-color: #efefef;
	padding: 5px 10px;
}
html#topics h3:hover {
	cursor: pointer;
}
/* div.mask {
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.8);
	position: absolute;
	z-index: 100;
} */
#overlay2 iframe {
	position: absolute;
	z-index: 100;
	background-color: #fff;
	left: 50%;
	margin-left: -40%;
	top: 5%;
	border: none;
	width: 80%;
	height: 90%;
}
/* The Overlay (background) */
.overlay2 {
	/* Height & width depends on how you want to reveal the overlay (see JS below) */    
	height: 0;
	width: 100%;
	position: fixed; /* Stay in place */
	z-index: 1; /* Sit on top */
	left: 0;
	top: 0;
	background-color: rgb(65, 67, 83); /* Black fallback color */
	background-color: rgba(65, 67, 83, 0.9); /* Black w/opacity */
	overflow-x: hidden; /* Disable horizontal scroll */
	transition: 0.5s; /* 0.5 second transition effect to slide in or slide down the overlay (height or width, depending on reveal) */
}

/* Position the content inside the overlay */
.overlay-content {
	position: relative;
	top: 25%; /* 25% from the top */
	width: 100%; /* 100% width */
	text-align: center; /* Centered text/links */
	margin-top: 30px; /* 30px top margin to avoid conflict with the close button on smaller screens */
}

/* The navigation links inside the overlay */
.overlay2 a {
	padding: 8px;
	text-decoration: none;
	font-size: 36px;
	color: #818181;
	display: block; /* Display block instead of inline */
	transition: 0.3s; /* Transition effects on hover (color) */
}

/* When you mouse over the navigation links, change their color */
.overlay2 a:hover,
.overlay2 a:focus {
	color: #f1f1f1;
}

/* Position the close button (top right corner) */
.overlay2 .closebtn {
	position: absolute;
	top: 10px;
	right: 20px;
	font-size: 60px;
	padding: 0;
	line-height: 1;
}
.overlay2 .closebtn:hover {
	cursor: pointer;
}
.noscroll {
	overflow: hidden
}
#words {
	margin-top: 14px;
}
@media screen and (max-width: 1430px) {
	div.jump {
		flex-wrap: wrap;
		padding: 1em;
		justify-content: center;
	}
}
@media screen and (max-width: 1106px) {
	p.slogan {
		text-align: center;
		position: static;
		margin-bottom: 0;
		padding-bottom: 1em;
	}
	p.logo {
		display: block;
		text-align: center;
	}
}
@media screen and (max-width: 640px) {
	div.footer {
		margin-bottom: 3em;
	}
	p.logo {
		display: block;
		text-align: center;
	}
	a.back-to-top {
		position: fixed;
		bottom: 0;
		width: 100%;
		padding: 1em;
		background-color: #101010;
		font-weight: 700;
		text-transform: uppercase;
		text-align: center;
		display: block;
		box-sizing: border-box;
		color: #999cb1 !important;
	}
	div.alphabet, div.base {
		justify-content: flex-start;
	}
	body {
		display: block;
	}
	.desktop {
		display: none !important;
	}
	.mobile {
		display: block !important;
	}
	span.verse-go {
		display: block;
	}
	div.select,
	div.manual {
		min-width: 0;
	}
	span.or {
		margin: 1em 0;
		display: block;
	}
	div.jump select {
		max-width: 100%;
		margin: 0.3em 0;
	}
	div.main,
	div.jump {
		padding: 0;
	}
	div.jump {
		display: block;
		text-align: center;
		padding: 1em;
	}
	p.slogan {
		color: #fff;
		text-align: center;
		padding-bottom: 1em;
		position: static;
		width: 80%;
		margin: 0 auto;
	}
	div.button-container {
		text-align: center;
		position: static;
		display: block;
	}
	p.logo {
		text-align: center;
		display: block;
	}
	p.learn {
		margin-left: 0;
		padding: 1rem;
		font-weight: 400;
	}
	div.content {
		margin-left: 0;
	}
	div.side {
		width: auto;
		position: static;
		height: auto;
		overflow-y: auto;
	}
	ol.dialogues li {
		font-size: 1.2em;
		margin-bottom: 0.2em;
	}
	div.location {
		flex-wrap: wrap;
		padding: 1em;
	}
	div.location p {
	}
	div.sentence {
		display: block;
	}
	div.sentence p.english {
		margin-right: 0;
		margin-bottom: 1em;
	}
	div.location p.expandcollapse {
		margin-bottom: 0;
	}
	a.button {
		margin: 0 1em;
	}
	br.spacing {
		display: none;
	}
	.videoWrapper {
		position: relative;
		padding-bottom: 56.25%; /* 16:9 */
		padding-top: 25px;
		height: 0;
		width: 100%;
	}
	.videoWrapper iframe {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
	}
	div.controls {
		display: block;
	}
	div.controls p {
		margin: 0;
		border-radius: 0;
	}
	p.halfspeed {
		border-radius: 0;
	}
	div.wrapper {
		padding: 0.6em 0.6em 8em;
	}
	span.ar.quranText.top.rtl {
		font-size: 1.4em;
	}
	span.en.second.ltr {
		font-size: 0.8em;
	}
	span.word.staticWord {
		padding: 0.2em 0.5em;
	}
}
/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
	display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.visuallyhidden {
	border: 0;
	clip: rect(0 0 0 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
	clip: auto;
	height: auto;
	margin: 0;
	overflow: visible;
	position: static;
	width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
	visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
	content: " "; /* 1 */
	display: table; /* 2 */
}

.clearfix:after {
	clear: both;
}

/* ===========

@media print,


/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
	*,
	*:before,
	*:after,
	*:first-letter,
	*:first-line {
		background: transparent !important;
		color: #000 !important; /* Black prints faster:
								   http://www.sanbeiji.com/archives/953 */
		box-shadow: none !important;
		text-shadow: none !important;
	}

	a,
	a:visited {
		text-decoration: underline;
	}

	a[href]:after {
		content: " (" attr(href) ")";
	}

	abbr[title]:after {
		content: " (" attr(title) ")";
	}

	/*
	 * Don't show links that are fragment identifiers,
	 * or use the `javascript:` pseudo protocol
	 */

	a[href^="#"]:after,
	a[href^="javascript:"]:after {
		content: "";
	}

	pre,
	blockquote {
		border: 1px solid #999;
		page-break-inside: avoid;
	}

	/*
	 * Printing Tables:
	 * http://css-discuss.incutio.com/wiki/Printing_Tables
	 */

	thead {
		display: table-header-group;
	}

	tr,
	img {
		page-break-inside: avoid;
	}

	img {
		max-width: 100% !important;
	}

	p,
	h2,
	h3 {
		orphans: 3;
		widows: 3;
	}

	h2,
	h3 {
		page-break-after: avoid;
	}
}

/* ===============================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media only screen and ( 
min-width: 35em) {
}
/* ===============================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print, ( 
-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 1.25dppx), (min-resolution: 120dpi) {
}