﻿/*

Theme Name: Quranic

*/

*,
:after,
:before {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

body,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
form,
fieldset,
input,
textarea,
p {
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

fieldset,
img {
    border: 0;
}

img {
    vertical-align: middle;
}

ol,
ul {
    list-style: none;
}

@font-face {
    font-family: Montserrat;
    src: url('fonts/montserrat-regular.woff2') format('woff2');
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: Montserrat;
    src: url('fonts/montserrat-italic.woff2') format('woff2');
    font-style: italic;
    font-weight: 400;
}

@font-face {
    font-family: Montserrat;
    src: url('fonts/montserrat-medium.woff2') format('woff2');
    font-style: normal;
    font-weight: 500;
}

@font-face {
    font-family: Montserrat;
    src: url('fonts/montserrat-mediumitalic.woff2') format('woff2');
    font-style: italic;
    font-weight: 500;
}

@font-face {
    font-family: Montserrat;
    src: url('fonts/montserrat-bold.woff2') format('woff2');
    font-style: normal;
    font-weight: 600;
}

@font-face {
    font-family: Montserrat;
    src: url('fonts/montserrat-bolditalic.woff2') format('woff2');
    font-style: italic;
    font-weight: 600;
}

@font-face {
	font-family: Uthmanic;
	src: url("fonts/uthmanic.eot");
	src: url("fonts/uthmanic.eot?#iefix") format("embedded-opentype"),
	url("fonts/uthmanic.woff2") format("woff2"),
	url("fonts/uthmanic.woff") format("woff"),
	url("fonts/uthmanic.ttf") format("truetype"),
	url("fonts/uthmanic.svg#uthmanic") format("svg");
	font-display: swap;
}

body {
	position: relative;
	background-color: #fff;
	display: -webkit-flex;
	display: flex;
	flex-direction: column;
	font-family: Montserrat;
	color: #000;
	font-size: 18px;
	line-height: 1.65;
	font-weight: 500;
}

body.dark-theme {
	background-color: #202020;
	color: #e6e6e6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: Montserrat;
    font-size: 100%;
	line-height: 1.5;
	font-weight: 600;
	margin: 25px 0;
}

h1 {
	font-size: 28px;
}

h2 {
	font-size: 22px;
}

h3 {
	font-size: 18px;
}

p {
    margin: 25px 0;
}

a {
    color: #00c44c;
	text-decoration: none;
}

a:hover {
    color: #FF8500;
}

.button {
    background-color: #00c44c;
    display: table;
	font-family: Montserrat;
    color: #fff;
    font-size: 16px;
	font-weight: 600;
    cursor: pointer;
    border: none;
	outline: none;
	border-radius: 13px;
	padding: 18px 30px;
}

.button:hover {
	background-color: #FF8500;
	color: #fff;
}

.wrapper {
	width: 100%;
	max-width: 1140px;
	height: 100%;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	flex-direction: column;
	margin: 0 auto;
}

.main {
	flex: 1 0 auto;
}


@media screen and (min-width: 980px)  {
	
	.wrapper {
		height: 100%;
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		flex-direction: column;
	}
	
	.head,
	.main,
	.foot {
		position: relative;
	}
	
	.head {	
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		justify-content: center;
		align-items: center;
	}
	
	.head .logo {
		margin-right: 80px;
	}
	
	.head .menu {
		margin-left: auto;
	}
	
	.head .menu a,
	.head .menu button {
		display: inline-block;
		vertical-align: middle;
		font-size: 14px;
		margin-left: 40px;
	}
	
	.head .menu a:before,
	.head .menu button:before {
		display: inline-block;
		vertical-align: middle;
		margin-right: 10px;
	}

	.listing {
		margin-left: -10px;
		margin-right: -10px;
	}
	
	.listing .surah {
		width: calc(25% - 20px);
		width: -moz-calc(25% - 20px);
		width: -webkit-calc(25% - 20px);
		padding: 20px 30px;
		margin: 10px;
	}
	
	.ayah {
		margin: 10px 0;
		padding: 30px;
	}

}


@media screen and (max-width: 979px) {
	
	h1,
	.breadcrumbs {
		text-align: center;
	}
	
	.wrapper {
		max-width: 768px;
		min-width: 320px;
		padding: 0 10px;
	}
	
	.head .logo {
		margin: 0 auto;
	}
	
	.head .menu {
		z-index: 999;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		background-color: #fff;
		width: 100%;
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		justify-content: center;
		align-items: center;
		box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.17);
		padding: 10px 5px;
	}
	
	.dark-theme .head .menu {
		background-color: #333;
	}
	
	.head .menu a,
	.head .menu button {
		display: inline-block;
		font-size: 13px;
		line-height: 1.2;
		margin: auto;
	}
	
	.head .menu a:before,
	.head .menu button:before {
		display: block;
		vertical-align: middle;
		margin: 0 auto 7px;
	}
	
	.head .form {
		width: 100%;
		margin: 15px auto 0;
	}
	
	.surah-head {
		text-align: center;
		margin: 0 auto;
	}
	
	.listing {
		margin-left: -6px;
		margin-right: -6px;
	}
	
	.listing .surah {
		width: calc(33.3333% - 12px);
		width: -moz-calc(33.3333% - 12px);
		width: -webkit-calc(33.3333% - 12px);
		padding: 16px;
		margin: 6px;
	}
	
	.ayah {
		margin: 10px 0;
		padding: 20px 16px;
	}
	
}


@media screen and (max-width: 540px) {
	
	.listing .surah {
		width: calc(50% - 12px);
		width: -moz-calc(50% - 12px);
		width: -webkit-calc(50% - 12px);
	}
	
}


@media screen and (max-width: 480px) {
	

	
}


@media screen and (max-width: 360px) {
	

	
}


@media 	only screen and (-webkit-min-device-pixel-ratio: 1.5),
only screen and (min--moz-device-pixel-ratio: 1.5),
only screen and (-o-min-device-pixel-ratio: 3/2),
only screen and (min-resolution: 1.5dppx),
only screen and (min-resolution: 144dpi)  {
	
	.head .logo:before {
		background-image: url(images/logo@2x.png) !important;
	}
	
	.head .menu button:before {
		background-image: url(images/icons/sprite@2x.png) !important;
	}
	
	.surah-head .audio-toggle:after {
		background-image: url(images/icons/sprite@2x.png) !important;
	}

	.share button:after {
		background-image: url(images/icons/sprite@2x.png) !important;
	}
	
}


/* HEADER */

.head {
	position: relative;
	padding-top: 15px;
	padding-bottom: 15px;
}

.head .logo {
	display: table;
    color: #000;
    font-size: 21px;
    font-weight: 600;
	white-space: nowrap;
	outline: none;
}

.dark-theme .head .logo {
	color: #fff;
}

.head .logo:before {
	content: "";
	background-image: url(images/logo.png);
	background-size: 35px 50px;
    background-position: center;
    background-repeat: no-repeat;
	width: 35px;
	height: 50px;
	display: inline-block;
	vertical-align: middle;
    margin-right: 10px;
}

.head .menu a,
.head .menu button {
	background-color: transparent;
	cursor: pointer;
	font-family: Montserrat;
	color: #000;
	font-weight: 600;
	border: none;
	outline: none;
}

.dark-theme .head .menu a,
.dark-theme .head .menu button {
	color: #fff;
}

.head .menu a:hover,
.head .menu button:hover {
	color: #1BCF31;
}

.head .menu a:before,
.head .menu button:before {
	content: "";
	background-image: url(images/icons/sprite.png);
    background-repeat: no-repeat;
    background-size: 144px;
    width: 24px;
    height: 24px;
}

.head .menu .home:before {
	background-position: 0 0;
}

.dark-theme .head .menu .home:before {
	background-position: 0 -24px;
}

.head .menu .home:hover:before {
	background-position: 0 -48px;
}

.head .menu .surahs:before {
	background-position: -24px 0;
}

.head .menu .surahs:hover:before {
	background-position: -24px -48px;
}

.dark-theme .head .menu .surahs:before {
	background-position: -24px -24px;
}

.head .menu .search:before {
	background-position: -48px 0;
}

.dark-theme .head .menu .search:before {
	background-position: -48px -24px;
}

.head .menu .search:hover:before {
	background-position: -48px -48px;
}

.head .menu .settings:before {
	background-position: -72px 0;
}

.dark-theme .head .menu .settings:before {
	background-position: -72px -24px;
}

.head .menu .settings:hover:before {
	background-position: -72px -48px;
}

.head .search-form {
    background-color: #edf0f7;
	width: 100%;
	display: block;
	font-size: 17px;
	font-weight: 500;
    border: none;
	outline: none;
	border-radius: 14px;
	padding: 12px 16px;
}

.dark-theme .head .search-form {
	background-color: #333;
	color: #fff;
}


/* SIDEBAR */

.sidebar {
	z-index: 1000;
	position: fixed;
	top: 0;
	right: -300px;
	bottom: 0;
	background-color: #fff;
	width: 300px;
}

.dark-theme .sidebar {
	background-color: #202020;
}

.sidebar.active {
	right: 0;
    -webkit-box-shadow: -10px 5px 18px 0 rgb(0 0 0 / 5%);
    -moz-box-shadow: -10px 5px 18px 0 rgba(0, 0, 0, .05);
    box-shadow: -10px 5px 18px 0 rgb(0 0 0 / 5%);
}

.sidebar .sidebar-inner {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	overflow: scroll;
	overflow-x: hidden;
	overflow-y: auto;
	scrollbar-width: none;
	padding: 40px 40px 60px;
}

.sidebar .sidebar-inner::-webkit-scrollbar {
	width: 0;
	height: 0;
}

.sidebar .sidebar-inner .close {
	position: relative;
	background-color: rgb(0 0 0 / 4%);
	width: 44px;
    height: 44px;
	cursor: pointer;
    color: rgb(0 0 0 / 49%);
    font-size: 16px;
    font-weight: 600;
	text-align: center;
	line-height: 44px;
	border: none;
	outline: none;
    border-radius: 50%;
	margin-bottom: 30px;
}

.dark-theme .sidebar .sidebar-inner .close {
	background-color: rgb(255 255 255 / 14%);
    color: rgb(255 255 255 / 49%);
}

.sidebar .sidebar-inner .close:hover {
	background-color: rgb(0 0 0 / 4%);
}

.dark-theme .sidebar .sidebar-inner .close:hover {
	background-color: rgb(255 255 255 / 14%);
}

.sidebar .sidebar-inner .sidebar-item {
	margin: 0 0 50px;
}

.sidebar .sidebar-inner .sidebar-item .sidebar-title {
    display: block;
    color: #000;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 15px;
}

.dark-theme .sidebar .sidebar-inner .sidebar-item .sidebar-title {
	color: #fff;
}

.sidebar .sidebar-inner .sidebar-item .item {
	position: relative;
	display: block;
	color: #000;
	font-size: 21px;
	text-align: left;
	margin: 10px 0;
}

.dark-theme .sidebar .sidebar-inner .sidebar-item .item {
	color: #fff;
}


/* THEME MODE */

.mode {
	background-color: #edf0f7;
	overflow: hidden;
	font-size: 0;
	white-space: nowrap;
	border-radius: 14px;	
}

.dark-theme .mode {
	background-color: #333;
}

.mode button {
    background-color: transparent;
    width: 50%;
    height: 40px;
    display: inline-block;
	vertical-align: middle;
	cursor: pointer;
	font-family: Montserrat;
    color: #000;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    line-height: 39px;
	border: none;
	outline: none;
}

.dark-theme .mode button {
    color: #fff;
}

.mode button.active {
    background-color: #1bcf31;
	cursor: default;
	color: #fff;
	border-radius: 14px;
}


/* TRANSLATIONS */

.setting-select {
    background-color: #edf0f7;
    width: 100%;
	height: 40px;
	display: block;
	font-family: Montserrat;
	color: #000;
	font-size: 15px;
	font-weight: 500;
	line-height: 40px;
    border: none;
	outline: none;
	border-radius: 14px;
	padding: 0 15px;
	margin-bottom: 40px;
}

.dark-theme .setting-select {
	background-color: #333;
	color: #fff;
}


/* SURAHS */

.surah-head {
	display: table;
	margin-top: 25px;
	margin-bottom: 25px;
}

.surah-head .audio-toggle {
	position: relative;
	background-color: #EDF0F7;
	width: 44px;
	height: 44px;
    display: inline;
	vertical-align: top;
	font-size: 0;
    cursor: pointer;
	border: none;
	outline: none;
    border-radius: 50%;
	padding: 0;
	margin-right: 15px;
}

.dark-theme .surah-head .audio-toggle {
	background-color: #333;
}

.surah-head .audio-toggle.active {
	background-color: #1bcf31;
}

.surah-head .audio-toggle:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
	background-image: url(images/icons/sprite.png);
    background-repeat: no-repeat;
	background-position: -96px 0;
    background-size: 144px;
    width: 24px;
    height: 24px;
    -moz-transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
    -webkit-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
}

.surah-head .audio-toggle.active:after,
.dark-theme .surah-head .audio-toggle:after {
    background-position: -96px -24px
}

.surah-head h1 {
    display: inline;
	vertical-align: top;
}

.listing {
	display: flex;
	flex-wrap: wrap;
	align-content: stretch;	
}

.listing .surah {
	position: relative;
    background-color: #EDF0F7;
    text-align: left;
    border-radius: 14px;
}

.dark-theme .listing .surah {
    background-color: #333;
}

.listing .surah .surah-number {
    background-color: #fff;
    width: 40px;
    height: 40px;
    display: block;
    color: #000;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    line-height: 40px;
    border-radius: 20px;
	margin-bottom: 20px;
}

.dark-theme .listing .surah .surah-number {
    background-color: #202020;
    color: #fff;
}

.listing .surah .surah-name {
    display: block;
	color: #000;
	font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.dark-theme .listing .surah .surah-name {
	color: #fff;
}

.listing .surah .surah-translation {
    display: block;
    color: rgb(0 0 0 / 80%);
    font-size: 15px;
}

.dark-theme .listing .surah .surah-translation {
    color: rgb(255 255 255 / 80%);
}


/* AUDIO */

#audio {
	width: 100%;
	display: block;
	outline: none;
}


/* AYAH */

.ayah {
    background-color: #EDF0F7;
    text-align: left;
    border-radius: 14px;
}

.dark-theme .ayah {
    background-color: #333;
}

.ayah .ayah-inner {
	position: relative;
	padding-left: 45px;
}

.ayah .ayah-numb {
	position: absolute;
	top: 0;
	left: 0;
    background-color: #fff;
    width: 40px;
    height: 40px;
    display: block;
    color: #000;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    line-height: 40px;
    border-radius: 20px;
}

.ayah .ar {
	width: 100%;
	display: block;
	direction: rtl;
	font-family: Uthmanic;
	font-size: 30px;
	font-weight: 400;
	text-align: right;
	-webkit-user-select: none;
	user-select: none;
	margin-bottom: 20px;
}

.ayah .ar span {
	position: relative;
	display: inline-block;
	cursor: pointer;
	margin-left: 10px;
}

.ayah .ar span:hover {
	color: #1bcf31;
}

.ayah .transcription {
	font-size: 15px;
    text-align: right;
	margin-bottom: 25px;
}

.ayah .translation {
	display: block;
	margin-left: -45px;
}


/* СНОСКИ */

.tooltips {
	display: block;
	color: rgb(0 0 0 / 75%);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.4;
	margin-top: 25px;
}

.darkmode .tooltips {
	color: rgb(255 255 255 / 75%);
}


/* BREADCRUMBS */

.breadcrumbs {
	color: #adadad;
	font-size: 12px;
	margin: 15px 0;
}

.breadcrumbs a {
	display: inline-block;
}


/* CONTENT */

.content {
	text-align: left;
}

.content ul,
.content ol {
    margin: 25px 0;
}

.content ol {
    counter-reset: list;
}

.content ul li,
.content ol li {
    position: relative;
    display: block;
    margin: 5px 0;
	padding-left: 18px;
}

.content ul li:after {
	content: ''; 
	position: absolute;
	left: 0;
    top: 12px;
    background-color: #777;
    width: 3px;
	height: 3px;
    border-radius: 50%;
}

.content ol li:before {
    content: counter(list) ". ";
	counter-increment: list;
}


/* SOCIAL */

.share {
	text-align: center;
    margin: 50px 0 0;
}

.share button {
	position: relative;
	width: 60px;
	height: 60px;
    display: inline-block;
	vertical-align: top;
	font-size: 0;
    cursor: pointer;
	border: none;
	outline: none;
    border-radius: 50%;
	padding: 0;
	margin: 3px;
}

.share button:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
	background-image: url(images/icons/sprite.png);
    background-repeat: no-repeat;
    background-size: 144px;
    width: 24px;
    height: 24px;
    -moz-transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
    -webkit-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
}

.share button.vk {
	background-color: #507299;
}

.share button.vk:after {
    background-position: 0 -72px
}

.share button.fb {
    background-color: #3b5998;
}

.share button.fb:after {
    background-position: -24px -72px
}

.share button.tw {
    background-color: #00aced;
}

.share button.tw:after {
    background-position: -48px -72px
}


/* PAGINATION */

.pagination {
    text-align: center;
    margin: 45px auto;
}

.pagination a,
.pagination span {
	background-color: #f5f5f5;
	width: 54px;
	height: 54px;
	display: inline-block;
	color: #000;
    font-size: 15px;
	font-weight: 500;
	line-height: 54px;
	border: none;
	outline: none;
	border-radius: 13px;
	margin: 4px;
}

.pagination a:hover {
	background-color: #f2f2f2;
}

.pagination .current {
	background-color: #00c44c;
    color: #fff;
}


/* FOOTER */

.foot {
	width: 100%;
	flex: 0 0 auto;
	font-size: 15px;
	text-align: center;
	padding: 30px 50px;
    margin: 45px auto 0;
}