/*
(c) sayingsofimamali.com
*/
@font-face {
    font-family: arabicHadeesFont;
    src: url('../fonts/fallback/arabic.woff2') format("woff2");
}

@font-face {
    font-family: englishHadeesFont;
    src: url('../fonts/fallback/english.woff2') format("woff2");
}

.default-english-hadees-font {
    font-family: englishHadeesFont, serif;
}

.material-icons::before {
    content: attr(data-icon);
}

/* html/body */
html {}
html, body {
    margin: 0;
    height: 100%;
    background: #000;
}

body, input, textarea, select, button, a {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
}

.page-loading {
    width: 80px;
    height: 80px;
    position: fixed;
    left: 50%;
    top: 50%;
    margin-top: -40px;
    margin-left: -40px;
}

/* commons */
input, textarea {
    outline: none !important
}
.pointer {
    cursor: pointer;
}
.hide-on-desktop {
    display: none;
}

/* container */
.container {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding-bottom: 35px; /* footer height */
    background-repeat: repeat;
    background-attachment: fixed;
}

/* top buttons */
.top-buttons {
    position: relative;
    margin: 40px auto 0 auto;
    font-family: 'Poppins', sans-serif;
    width: 300px;
    font-size: 0;
}
.reload, .hadees-title {
    display: inline-block;
    vertical-align: top;
}
.reload-button, .hadees-title-button, .home-button {
    display: block;
    height: 40px; /* same as line-height for texts */
    text-decoration: none;
    border-radius: 10px;
    text-align: center;
    padding: 0;
    box-shadow: 0 10px 10px rgba(255, 255, 255, 0.10);
    text-shadow: -1px -1px 2px #000;
    transition: 0.3s all ease;
}
.reload {
    margin-right: 5px;
    width: 140px;
}
.hadees-title {
    margin-left: 5px;
    width: 140px;
}
.hadees-title h1 {
    margin: 0;
}
.hadees-title-button {
    font-size: 14px;
    line-height: 40px;
    background: #000;
    background: rgba(0, 0, 0, 0.15);
}
.hadees-title-button:hover, .hadees-title-button:active {
    color: #e8d745;
    background: #000;
    background: rgba(0, 0, 0, 0.4);
}
.reload-button, .home-button {
    position: relative;
    background: #000;
    background: rgba(0, 0, 0, 0.4);
    font-size: 14px;
    line-height: 40px;
    color: #e8d745;
}
.reload-button .material-icons {
    position: absolute;
    left: -7px;
    top: -7px;
}
.reload-button:hover, .reload-button:active, .home-button:hover, .home-button:active {
    background: #000;
    background: rgba(0, 0, 0, 0.9);
}
.home-button .material-icons {
    font-size: 24px;
    line-height: 40px;
    color: #e8d745;
}

/* hadees */
.hadees-outer-container {
    position: relative;
}
.hadees-container {
    margin: 30px auto 0 auto;
    width: 80%;
    color: #FFF;
}
.hadees {
    position: relative;
}
.hadees--en {
    margin: 40px auto 0 auto;
}
.hadees-text {
    display: block;
    text-align: center;
    width: 100%;
    margin: 0;
}
.hadees--ar .hadees-text {
    font-family: arabicHadeesFont, sans-serif;
    direction: rtl;
    font-size: 100px;
    line-height: 130px;
    text-shadow: -4px 4px 5px rgba(0, 0, 0, 0.5);
}
.hadees--en .hadees-text {
    font-family: englishHadeesFont, sans-serif;
    direction: ltr;
    font-size: 50px;
    line-height: 80px;
    text-shadow: 3px 5px 5px rgba(0, 0, 0, 0.5);
}
.hadees-text-enable-transition {
    transition: 0.5s font-size ease;
}

.reflection {
    opacity: 0.05;
    position: absolute;
}
.reflection::before {
    content: attr(data-content);
}
.hadees--ar .reflection {
    left: -20px;
    top: 20px;
}
.hadees--en .reflection {
    left: 20px;
    top: 20px;
}

/* audio player, image */
.audio-image {
    position: relative;
    margin: 80px auto 0 auto;
    width: 360px;
    font-size: 0;
}
.audio, .image {
    display: inline-block;
    position: relative;
    height: 65px; /* same as line-height for icons */
    vertical-align: top;
    border-radius: 15px; /* same for audio-progress-container */
    box-shadow: 0 10px 10px rgba(255, 255, 255, 0.10);
    color: #FFF;
    font-size: 16px;
    text-shadow: -1px -1px 2px #000;
    transition: 0.5s all ease;
    background: #000;
    background: rgba(0, 0, 0, 0.15);
}
.audio:hover, .image:hover, .audio:active, .image:active {
    background: #000;
    background: rgba(0, 0, 0, 0.4);
}
.audio {
    margin-right: 5px;
    width: 175px;
}
.image {
    margin-left: 5px;
    width: 175px;
}
.audio .title, .image .title {
    position: absolute;
    width: 70px;
    height: 20px;
    line-height: 20px;
    top: -20px;
    left: 50%;
    margin: 0 0 0 -35px;
    padding: 0;
    text-align: center;
    font-size: 12px;
    border-radius: 5px 5px 0 0;
    box-shadow: 0 -10px 10px rgba(255, 255, 255, 0.10);
    text-shadow: -1px -1px 2px #000;
    background: #000;
    background: rgba(0, 0, 0, 0.15);
    transition: 0.5s background-color ease;
}
.audio .title span, .image .title span {
    cursor: default;
    opacity: 0.5;
}
.audio:hover .title, .image:hover .title, .audio:active .title, .image:active .title {
    background: #000;
    background: rgba(0, 0, 0, 0.4);
}
.audio .download-button, .image .download-button {
    display: block;
    position: absolute;
    right: 7px;
    bottom: 2px;
    z-index: 10;
    text-shadow: -1px -1px 1px #634800;
    font-size: 11px;
    transition: 0.2s color ease;
    text-decoration: none;
}
.audio .download-button .material-icons, .image .download-button .material-icons {
    display: inline-block;
    font-size: 14px;
    margin-top: 1px;
    float: left;
    transform: scale(1.0);
    transition: 0.2s transform ease;
}
.audio .download-button:hover .material-icons, .image .download-button:hover .material-icons, .audio .download-button:active .material-icons, .image .download-button:active .material-icons {
    color: #e8d745;
    transform: scale(1.2);
}
.audio .download-button:hover, .image .download-button:hover, .audio .download-button:active, .image .download-button:active {
    color: #e8d745;
}

/* audio player/image: audio */
.audio {
    text-align: center;
}
.audio--autoplay-notice-shown {
    height: 175px;
}
.audio-buttons {
    position: relative;
    z-index: 5;
}
.audio-buttons a {
    display: block;
    transition: 0.3s all ease;
    transform: scale(1.0);
    text-decoration: none;
}
.audio-buttons .audio-play:hover, .audio-buttons .audio-play:active {
    transform: scale(1.2);
    color: #e8d745
}
.audio-buttons .audio-pause:hover, .audio-buttons .audio-pause:active {
    color: #FFF
}
.audio-buttons .audio-icon {
    display: block;
    font-size: 40px;
    line-height: 65px;
    text-shadow: -1px -1px 1px #634800;
}
.audio-progress-container {
    position: absolute;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px; /* same for .audio,.image */
    overflow: hidden;
}
.audio-progress {
    height: 100%;
    width: 0;
    background: #e8d745;
    background: linear-gradient(to bottom, #927c00, #ffd700, #927c00);
}
.audio-unsupported {
    font-size: 13px;
    vertical-align: middle;
}
.audio-unsupported p {
    margin-top: 3px;
}
.audio-unsupported a {
    transition: 0.3s color ease;
}
.audio-unsupported a:hover, .audio-unsupported a:active {
    color: #e8d745
}
.audio-autoplay {
    position: absolute;
    left: 5px;
    bottom: 2px;
    font-size: 12px;
    z-index: 10;
}
.audio-autoplay label {
    cursor: pointer;
    transition: 0.3s color ease;
    text-shadow: -1px -1px 1px #634800;
}
.audio .audio-autoplay label:hover, .audio .audio-autoplay label:active {
    color: #e8d745
}
.audio-autoplay input {
    transform: scale(0.8);
    vertical-align: middle;
    margin: -3px 2px 0 0;
}
.audio-autoplay-notice {
    font-size: 13px;
    margin: 0 5px;
}

/* audio player/image: image */
.image {
    text-align: center;
}
.image-button {
    display: block;
    transition: 0.3s all ease;
    transform: scale(1.0);
    text-decoration: none;
}
.image-button:hover, .image-button:active {
    transform: scale(1.2);
    color: #e8d745;
}
.image-button .image-icon {
    display: block;
    font-size: 30px;
    line-height: 65px;
    text-shadow: -1px -1px 1px #634800;
}
.image-hadees {
    display: none;
}
.image-loader {
    display: none;
    z-index: 2000;
    width: 60px;
    height: 60px;
    padding: 20px;
    position: fixed;
    top: 75%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: 0.5s all ease;
    opacity: 0;
}
.image-loader.shown {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 1.0;
}
.image-hadees {
    display: none;
    z-index: 2000;
    width: auto;
    height: auto;
    max-width: 95%;
    max-height: 95%;
    padding: 0;
    background: #a07800;
    background: rgba(160, 120, 0, 0.92);
    box-shadow: 3px 3px 10px #000;
    position: fixed;
    top: 75%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: 0.5s all ease;
    opacity: 0;
}
.image-hadees.shown {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 1.0;
}

/* reference */
.reference {
    font-style: italic;
    margin: 20px auto 0 auto;
    width: 360px;
    color: #FFF;
    font-size: 12px;
    text-align: center;
    background: #000;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.25);
    text-shadow: -1px -1px 2px #000;
    transition: 0.5s background-color ease;
}
.reference:hover, .reference:active {
    background: #000;
    background: rgba(0, 0, 0, 0.4);
}
.reference p {
    margin: 0;
    padding: 10px;
}

/* description */
body.descriptions-disabled .description {
    display: none;
}
body.only-hadith-mode-enabled .switch-input-box--descriptionsEnabled {
    height: 0;
    margin-bottom: 0;
    opacity: 0;
}
.description {
    font-size: 15px;
    line-height: 23px;
    max-width: 50%;
    padding: 35px 20px 40px 20px;
    margin: 80px auto 0 auto;
    background: rgba(0, 0, 0, 0.20);
    border-radius: 10px;
    position: relative;
}
.description-heading {
    text-align: center;
    display: flex;
    flex-direction: row;
    align-items: center;
    align-content: center;
    justify-content: center;
    margin: 0 0 10px 0;
    position: absolute;
    width: 100%;
    top: 0;
    transform: translateY(-50%);
    left: 0;
}
.description h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    position: relative;
    flex: 0 0 auto;
    text-transform: uppercase;
}
.description-heading .decorative-line-start-left, .description-heading .decorative-line-start-right {
    flex: 1 1 100%;
    width: 100%;
    height: auto;
    opacity: 0.5;
}

.description p {
    margin: 20px 0;
}
.description p span.ar {
    font-size: 19px;
    color: #ffffc5;
    font-family: 'Noto Naskh Arabic', 'serif';
}
.description p:first-of-type {
    margin-top: 0;
}
.description p:last-of-type {
    margin-bottom: 0;
}
.description-contents blockquote {
    font-size: 16px;
    font-weight: 200;
    color: #FFF;
    border-left: 15px solid rgba(255, 255, 255, 0.3);
    padding: 20px;
    margin: 25px 50px;
    background: rgba(255, 255, 255, 0.1);
    text-align: center;
    font-style: italic;
    border-radius: 15px 0 15px 0;
}
.description-contents blockquote span.ar {
    font-size: 21px;
    color: #FFF;
    font-style: normal;
}
.description .description-contents .honor, .description .description-contents blockquote .honor {
    opacity: 0.5;
    font-size: 13px;
    color: #FFF;
}
.description .description-contents .honor span.ar {
    font-size: 13px;
    color: #FFF;
}

.description .decorative-line-footer {
    position: absolute;
    width: 100%;
    bottom: 0;
    transform: translateY(50%);
    left: 0;
    opacity: 0.5;
}
.description .decorative-line-footer img {
    width: 100%;
    min-width: auto;
    min-height: auto;
    max-height: none;
    height: auto;
}
.description .description-footer {
    display: block;
    margin-top: 25px;
    padding-top: 5px;
    font-size: 11px;
    font-style: italic;
    color: #FFF;
    line-height: normal;
    border-top: 1px dashed #CCC;
    text-align: center;
    opacity: 0.6;
}

/* header */
.header {
    background: #000;
    background: rgba(0, 0, 0, 0.4);
    height: 45px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
.header-table {
    border: none;
    border-collapse: collapse;
    width: 100%;
}
.header-table td {
    vertical-align: middle;
    padding: 0;
}
.header-logo_td {
    width: 500px;
}
.header-tags_td  {
    width: 500px;
}

/* header: logo */
.logo {
}
.logo img {
    flex: 0 0 auto;
    height: 30px;
    vertical-align: middle;
    transition: 0.2s opacity ease;
    margin: 0 0 0 20px;
}
.logo img:hover, .logo img:active {
    opacity: 0.7;
}

/* header: search */
.search {
    flex: 0 0 auto;
    width: 350px;
    margin: 0 auto;
}
.search .search-table {
    border: none;
    border-collapse: collapse;
    width: 100%;
}
.search-label_td {
    width: 70px;
    text-align: center;
}
.search-submit_td {
    width: 50px;
}
.search-input_td {
    width: 230px;
}
.search-table td {
    vertical-align: top;
}
.search-label {
    font-size: 14px;
    margin-top: 10px;
    display: block;
}
.search-input {
    background: none;
    border: 2px dashed transparent;
    width: 100%;
    padding: 0 2px;
    box-sizing: border-box;
    transition: 0.2s all ease;
    font-size: 14px;
    display: block;
    margin-top: 5px;
}
.search-input:focus, .search-input:hover, .search-input:active {
    border-bottom-color: #FFF;
    color: #FFF;
}
.search-input::placeholder {
    color: #CCC;
    opacity: 0.3
}
.search-submit {
    display: block;
    background: none;
    border: none;
    margin: 5px 0 0 0px;
    transition: 0.2s color ease;
    cursor: pointer;
}
.search-submit:hover, .search-submit:active {
    color: #FFF
}

/* header: tags */
.tags {
    flex: 0 0 auto;
    text-align: right;
    margin: 0 20px 0 0;
    line-height: 15px;
}
.tags span {
    display: inline-block;
    margin: 0;
    text-decoration: none;
    font-size: 12px;
    text-shadow: 1px 1px 5px #000;
}
.tags .tag {
    display: inline-block;
}
.tag--en {
    font-size: 12px;
    text-shadow: 1px 1px 5px #000;
}
.tag--ar {
    font-family: arabicHadeesFont, sans-serif;
    font-size: 15px;
}
.tags .tag:first-of-type span {
    display: none;
}
.tags .tag a {
    transition: 0.2s all ease;
    opacity: 0.6;
    text-decoration: none;
}
.tags .tag a:hover, .tags .tag a:active {
    color: #FFF;
    opacity: 1.0
}

/* daily-send */
.daily-send {
    margin: 50px auto 50px auto;
    width: 360px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.25);
    border: 1px solid transparent;
    text-shadow: -1px -1px 2px #000;
    border-radius: 20px;
    position: relative;
    background: #000;
    background: rgba(0, 0, 0, 0.15);
    transition: 0.5s transform ease, 0.5s opacity ease, 0.5s background-color ease; /* We can't do 'all' as otherwise jquery slide/fade functions stutters */
    padding: 5px;
    box-sizing: border-box;
}
.daily-send:hover, .daily-send:active {
    background: #000;
    background: rgba(0, 0, 0, 0.4);
}
.daily-send-table {
    border: none;
    border-collapse: collapse;
    width: 100%;
}
.daily-send-text_td {
    padding: 10px;
}
.daily-send-main_icon {
    vertical-align: middle;
    height: 50px;
    position: absolute;
    top: -30px;
    right: 0;
}
.daily-send p {
    color: #FFF;
    margin: 0;
    padding: 0;
    font-size: 14px;
    text-align: center;
    line-height: 24px;
}
.daily-send p b {
    font-weight: 600;
}
.daily-send-buttons {
    margin-top: 5px;
    text-align: center;
}
.daily-send-button {
    font-size: 14px;
    margin: 0 10px;
    transition: 0.3s color ease;
    text-decoration: underline;
}
.daily-send-button:hover, .daily-send-button:active {
    color: #e8d745;
}
.daily-send-button img {
    height: 30px;
    vertical-align: middle;
    margin: -3px 5px 0 0px;
}
.daily-send .daily-send-hide {
    font-size: 13px;
    position: absolute;
    right: 7px;
    bottom: 2px;
    transition: 0.2s all ease;
    z-index: 10;
    text-shadow: -1px -1px 1px #634800;
    transform: scale(1.0);
}
.daily-send .daily-send-hide:hover, .daily-send-hide:active {
    color: #e8d745;
    transform: scale(1.2);
}
.daily-send-show-button {
    display: inline-block;
}
/* share */
.share {
    margin: 60px auto 0 auto;
    width: 360px;
    position: relative;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.25);
    border: 1px dashed transparent;
    text-shadow: -1px -1px 2px #000;
    padding: 15px 0;
    background: #000;
    background: rgba(0, 0, 0, 0.15);
    transition: 0.5s background-color ease;
    text-align: center;
    display: flex;
    flex-direction: row;
}
.share:hover, .share:active {
    background: #000;
    background: rgba(0, 0, 0, 0.4);
}
.share-message {
    font-size: 13px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateY(-100%) translateX(-50%);
    opacity: 0.75;
}
.share-button {
    flex: 1 1 auto;
    margin: 0 10px;
    display: inline-block;
    text-align: center;
    position: relative;
}
.share-button a img {
    width: 30px;
    height: auto;
    transform: scale(1.0);
    transition: 0.2s all ease;
    vertical-align: middle;
}
.share-button a:hover img, .share-button a:active img {
    transform: scale(1.2);
}
.share-button-copied {
    position: absolute;
    background: #000;
    background: rgba(0, 0, 0, 0.5);
    width: 84px;
    padding: 5px 0;
    text-align: center;
    font-size: 12px;
    color: #e8d745;
    text-shadow: none;
    border-radius: 5px;
    top: 30px;
    left: 50%;
    margin-left: -42px;
    display: none;
}

/* footer */
.footer {
    width: 100%;
    border-top: 1px solid #333;
    border-top-color: rgba(255, 255, 255, 0.2);
    font-size: 11px;
    color: #999;
    text-align: center;
    background: #000;
    background: rgba(0, 0, 0, 0.3);
    height: 35px;
    line-height: 35px;
    margin-top: -35px;
    box-sizing: border-box;
}
.footer-buttons {
    display: inline-block;
}
.footer a {
    color: #AAA;
    text-decoration: underline;
    transition: 0.2s color ease;
}
.footer a:hover, .footer a:active {
    color: #e8d745;
}

/* error */
.error {
    background: #970000;
    background: rgba(151, 0, 0, 0.4);
    color: #FFF;
    font-size: 16px;
    border: 1px dashed #333;
    width: 500px;
    margin: 30px auto;
    padding: 20px;
}
.error .material-icons {
    vertical-align: middle;
    margin: -3px 5px 0 0;
}
.error-home-button a {
    display: block;
    margin-top: 10px;
    text-align: center;
    color: #FFF;
    transition: 0.2s color ease;
}
.error-home-button a:hover, .error-home-button a:active {
    color: #e8d745;
}

/* overlay for popups */
.popups-overlay {
    background: #000;
    background: rgba(0, 0, 0, 0.7);
    position: fixed;
    margin: 0;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

/* popup */
.popup {
    z-index: 2000;
    width: 95%;
    max-width: 300px;
    height: 95%;
    max-height: 400px;
    background: #a07800;
    background: rgba(160, 120, 0, 0.92);
    padding: 20px;
    box-shadow: 3px 3px 10px #000;
    position: fixed;
    top: 75%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow-y: auto;
    overflow-x: hidden;
    transition: 0.5s all ease;
    opacity: 0
}
.popup.no-padding {
    padding: 0;
}
.popup.shown {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 1.0;
}
.popup.popup--loading-started {
    background: none;
    box-shadow: none;
    max-height: 150px;
    overflow: hidden;
}
.popup h4 {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 500;
    color: #FFF;
    transition: 0.2s color ease;
    text-shadow: -1px -1px 1px #000;
}
.popup.no-padding h4 {
    margin: 20px; /* same as padding for .popup so if we use no padding for popup atleast heading has padding */
}
.popup-part {
    margin: 25px 0;
    position: relative;
}
.popup-part:last-of-type {
    margin-bottom: 0;
}
.close-popup-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 12px;
    color: #FFF;
    opacity: 0.5;
    transition: 0.3s ease opacity;
    cursor: pointer;
}
.close-popup-button:hover, .close-popup-button:active {
    opacity: 0.75
}
.popup-label {
    display: block;
    font-size: 13px;
    margin: 2px 0;
    position: absolute;
    top: -10px;
    color: #ffeb2a;
    transition: 0.2s all ease;
    text-shadow: 1px 1px 2px #000;
}
.popup-input, .popup-textarea {
    font-size: 13px;
    margin: 10px 0 2px 0;
    width: 100%;
    border: none;
    border-bottom: 1px dashed #FFF;
    padding: 10px 0;
    transition: 0.2s all ease;
    background: none;
    color: #FFF;
}
.popup-input:hover:not([disabled]), .popup-input:focus:not([disabled]), .contact-us-input:active:not([disabled]), .popup-textarea:hover:not([disabled]), .popup-textarea:focus:not([disabled]), .popup-textarea:active:not([disabled]) {
    border: none;
    border-bottom: 1px dashed #e8d745;
}
.popup-input:hover:not([disabled]) + .popup-label, .popup-input:focus:not([disabled]) + .popup-label, .popup-input:active:not([disabled]) + .popup-label, .popup-textarea:hover:not([disabled]) + .popup-label, .popup-textarea:focus:not([disabled]) + .popup-label, .popup-textarea:active:not([disabled]) + .popup-label {
    color: #e8d745;
}
.popup-input::placeholder, .popup-textarea::placeholder {
    color: #000;
    opacity: 0.7;
    font-style: italic;
    text-shadow: none;
}
.popup-submit {
    width: 100%;
    background: #333;
    background: rgba(0, 0, 0, 0.8);
    font-size: 13px;
    font-weight: 500;
    color: #FFF;
    border: none;
    padding: 10px 0;
    transition: 0.2s all ease;
    text-shadow: none;
}
.popup-submit:not([disabled]) {
    cursor: pointer
}
.popup-submit:hover:not([disabled]), .popup-submit:active:not([disabled]) {
    color: #fff695;
    box-shadow: 0 0 10px #fff695;
}
.popup-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -30%);
    width: 80px;
    height: 80px;
}
.popup-span {
    font-size: 13px;
}

/* contact us */
.contact-us-error {
    font-size: 13px;
    background: #920000;
    color: #FFF;
    padding: 5px;
    border-radius: 5px;
}
.contact-us-error .material-icons {
    vertical-align: middle;
    margin: -2px 3px 0 0;
    font-size: 18px;
}
.contact-us-success p {
    font-size: 13px;
    color: #FFF;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}
.contact-us-success p i {
    color: #fff695
}
.contact-us-success .material-icons {
    display: block;
    font-size: 50px;
    color: #fff695;
}
.contact-us-recaptcha p {
    margin: 2px 0 0 0;
    padding-bottom: 5px;
    font-size: 11px;
    font-style: italic;
    color: #222;
}
.contact-us-recaptcha a {
    color: #000;
}
.popup.contact-us--success {
    max-height: 200px;
    overflow: hidden;
}
.grecaptcha-badge {
    visibility: hidden;
}

/* settings button */
.settings {
    height: auto;
}
.settings-button-container {
    margin: 50px auto 50px auto;
    width: 360px;
    color: #FFF;
    font-size: 13px;
    text-align: center;
}
.settings-button {
    display: block;
    background: #000;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    box-shadow: 0 10px 10px rgba(255, 255, 255, 0.10);
    text-shadow: -1px -1px 2px #000;
    transition: 0.5s all ease;
    text-decoration: none;
    padding: 10px 0;
}
.settings-button:hover, .settings-button:active {
    background: #000;
    background: rgba(0, 0, 0, 0.4);
    color: #e8d745;
}
.settings-button .material-icons {
    display: inline-block;
    font-size: 20px;
    vertical-align: middle;
    margin: -5px 10px 0 -20px;
    opacity: 0.75
}

/* custom select box and switch input */
[data-custom-select], [data-switch-input] {
    display: none;
}
.custom-select-box, .switch-input-box {
    display: block;
    position: relative;
    width: 100%;
    font-size: 0;
    margin-bottom: 20px;
    background: #d2b984;
    box-sizing: border-box;
    cursor: pointer;
    transition: 0.3s ease all;
    box-shadow: 0 2px 5px #333;
    height: 40px;
    line-height: 40px;
    padding: 0 10px;
    overflow: hidden;
}
.custom-select-box:hover, .switch-input-box:hover {
    background: #ffe485;
}
.custom-select-box .custom-select-box-label, .custom-select-box .custom-select-box-value-title, .switch-input-box .switch-input-box-label, .custom-select-box-options {
    font-size: 13px
}
.custom-select-box .custom-select-box-label {
    display: inline-block;
    width: 50%;
}
.custom-select-box .custom-select-box-value-title {
    display: inline-block;
    width: 50%;
    text-align: right;
}
.custom-select-box-options {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: none;
    z-index: 999999;
    overflow: auto;
    box-sizing: border-box;
    max-height: 150px;
    transform: scale(1.02);
    border-top: 1px dashed #a07800;
    text-align: center;
}
.custom-select-box-options.bottom {
    box-shadow: 5px 5px 10px #000;
}
.custom-select-box-options.top {
    box-shadow: 5px -5px 10px #000;
}
.custom-select-box-options-link {
    padding: 10px;
    display: block;
    border-bottom: 1px solid #ad9a50;
    cursor: pointer;
    transition: 0.3s all ease;
    background: rgba(255, 239, 156, 0.92);
    color: #7a5c00;
    font-size: 16px
}
.custom-select-box-options-link:hover {
    background: #a07800;
    color: #FFF
}
.switch-input-box .switch-input-box-label {
    display: inline-block;
}
.switch-input-box-switch {
    position: absolute;
    width: 40px;
    height: 20px;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #FFF;
    border-radius: 10px;
    cursor: pointer;
}
.switch-input-box-switch-circle {
    width: 24px;
    height: 24px;
    position: absolute;
    top: -2px;
    left: -2px;
    background: #818181;
    border-radius: 40px;
    transition: 0.5s ease margin-left;
}
.switch-input-box.active .switch-input-box-switch-circle {
    margin-left: 22px;
    background: #009d4e;
}
.custom-font-container .custom-select-box .custom-select-box-value-title {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
}
.custom-font-sample {
    font-size: 20px;
}

/* auto reload */
.auto-reload {
    display: none;
    position: fixed;
    bottom: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border-radius: 30px;
    background: rgba(0, 0, 0, 0.75);
    padding: 5px;
    box-shadow: 5px 5px 10px rgba(255, 255, 255, 0.10);
    border: 1px solid #444;
    cursor: default;
    transition: 0.3s ease all;
    z-index: 50;
}
.auto-reload:hover {
    transform: scale(1.1);
}
.auto-reload span {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    font-size: 15px;
    color: #FFF;
}
.auto-reload.big {
    width: 35px;
    height: 35px;
    border-radius: 35px;
}
.auto-reload.bigger {
    width: 40px;
    height: 40px;
    border-radius: 40px;
}
.auto-reload .auto-reload-pause-button, .auto-reload .auto-reload-play-button {
    display: none;
    cursor: pointer;
}
.auto-reload .material-icons {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    font-size: 23px;
    color: #FFF;
}

/* loader */
.loading {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(../images/loading.png) no-repeat center;
    background-size: contain;
    animation-name: loading-animation;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-direction: normal;
    animation-timing-function: ease;
}

/* only hadith mode */
.only-hadith-mode-enabled .container {
    padding-bottom: 0; /* as we don't show footer in only hadith mode*/
}
.only-hadith-mode-enabled .hadees--ar .hadees-text {
    font-size: 130px;
    line-height: 160px;
}
.only-hadith-mode-enabled .hadees--en .hadees-text {
    font-size: 60px;
    line-height: 80px;
}
.only-hadith-mode-enabled .no-hadith-mode {
    display: none;
}
.logo-only-for-only-hadith-mode {
    display: none;
}
.only-hadith-mode-enabled .logo-only-for-only-hadith-mode {
    display: block;
    background: #000;
    background: rgba(0, 0, 0, 0.2);
    height: 45px;
    position: relative;
    z-index: 1;
}
.only-hadith-mode-enabled .logo-only-for-only-hadith-mode .logo img {
    position: absolute;
    width: auto;
    height: 70%;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    margin: 0;
}
.logo-only-for-only-hadith-mode .logo-only-for-only-hadith-mode-buttons {
    position: absolute;
    font-size: 24px;
    top: 8px;
    right: 0;
    color: #e8d745;
    margin-top: 3px;
}
.logo-only-for-only-hadith-mode .logo-only-for-only-hadith-mode-buttons a {
    display: inline-block;
    margin-right: 10px;
    transition: 0.3s ease color, 0.3s ease transform;
}
.logo-only-for-only-hadith-mode .logo-only-for-only-hadith-mode-buttons a:hover {
    color: #FFF;
    transform: scale(1.2)
}
.only-hadith-mode-enabled .hadees-outer-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 40px 0;
    flex-direction: column;
    position: static; /* we don't relative as we have to show top buttons outside this container */
}
.only-hadith-mode-enabled .hadees-container {
}
.only-hadith-mode-enabled .reference {
    margin-top: 60px;
}
.only-hadith-mode-enabled .top-buttons {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
}
.only-hadith-mode-enabled .hadees-title, .only-hadith-mode-enabled .reload-button span {
    display: none;
}
.only-hadith-mode-enabled .reload {
    width: 50px;
}
.only-hadith-mode-enabled .reload-button, .only-hadith-mode-enabled .home-button {
    height: 30px;
    background: none;
    box-shadow: none;
    margin: 8px 0 0 10px;
    z-index: 10;
    padding: 0;
}
.only-hadith-mode-enabled .reload-button .material-icons, .only-hadith-mode-enabled .home-button .material-icons {
    position: absolute;
    font-size: 24px;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    transition: 0.3s ease color, 0.3s ease transform;
    text-shadow: none;
}
.only-hadith-mode-enabled .reload-button .material-icons:hover, .only-hadith-mode-enabled .home-button .material-icons:hover {
    color: #FFF;
    transform: translateX(-50%) translateY(-50%) scale(1.2)
}

/** animations **/
@keyframes loading-animation {
    0%
    {
        transform: scale( 1.0 );
    }
    15%
    {
        transform: scale( 0.85 );
    }
    30%
    {
        transform: scale( 1 );
    }
    45%
    {
        transform: scale( 0.90 );
    }
    60%
    {
        transform: scale( 1.0 );
    }
    100%
    {
        transform: scale( 1.0 );
    }
}

/* responsive */

/* high db tablets */
@media screen and (min-width: 993px) and (max-width: 1365px) {
    /* commons */
    .hide-on-high-db-tablet {
        display: none !important;
    }
}

/* tablet */
@media screen and (min-width: 601px) and (max-width: 992px) {
    /* commons */
    .hide-on-tablet {
        display: none !important;
    }

    /* header */
    .header {
        background: none;
        height: auto;
    }

    /* header: logo */
    .header-logo_td, .header-search_td, .header-tags_td {
        width: 100%;
        display: block;
    }
    .header-logo_td .logo {
        position: relative;
        height: 50px;
        padding: 0;
    }
    .header-logo_td .logo img {
        display: block;
        width: 95%;
        margin: 0;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    /* header: search */
    .search {
        width: 100%;
        margin: 0;
        padding: 5px 10px;
        box-sizing: border-box;
        background: #000;
        background: rgba(0, 0, 0, 0.5);
    }
    .search-label_td {
        width: 60px;
    }
    .search-input_td {
        width: auto;
    }
    .search-submit_td {
        width: 20px;
    }

    /* header: tags */
    .tags {
        margin: -5px 0 0 0;
        text-align: center;
        background: #000;
        background: rgba(0, 0, 0, 0.2);
        padding: 5px 0;
    }
    .tags span {
        margin: 0;
    }
}

/* mobile */
@media screen and (max-width: 600px) {
    /* commons */
    .hide-on-mobile {
        display: none !important;
    }

    /* header */
    .header {
        background: none;
        height: auto;
    }

    /* top buttons */
    .top-buttons {
        margin: 40px auto 0 auto;
    }

    /* header: logo */
    .header-logo_td, .header-search_td, .header-tags_td {
        width: 100%;
        display: block;
    }
    .header-logo_td .logo {
        position: relative;
        height: 50px;
        padding: 0;
    }
    .header-logo_td .logo img {
        display: block;
        width: 95%;
        margin: 0;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    /* header: search */
    .search {
        width: 100%;
        margin: 0;
        padding: 2px 10px;
        box-sizing: border-box;
        background: #000;
        background: rgba(0, 0, 0, 0.5);
    }
    .search-label_td {
        width: 60px;
    }
    .search-input_td {
        width: auto;
    }
    .search-submit_td {
        width: 20px;
    }

    /* header: tags */
    .tags {
        margin: -5px 0 0 0;
        text-align: center;
        background: #000;
        background: rgba(0, 0, 0, 0.2);
        padding: 10px 0;
    }
    .tags span {
        margin: 0;
    }

    /* hadees */
    .hadees-container {
        margin: 20px auto 0 auto;
        width: 90%;
    }
    .hadees-container .hadees-text {
    }
    .hadees--en {
        margin-top: 20px;
    }
    .hadees--ar .hadees-text {
        font-size: 60px;
        line-height: 75px;
    }
    .hadees--en .hadees-text {
        font-size: 30px;
        line-height: 45px;
    }
    .only-hadith-mode-enabled .hadees--ar .hadees-text {
        font-size: 80px;
        line-height: 90px;
    }
    .only-hadith-mode-enabled .hadees--en .hadees-text {
        font-size: 45px;
        line-height: 60px;
    }

    /* audio */
    .audio-image {
        margin: 75px 0 0 0;
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .audio {
        margin-right: 2px;
        width: 178px;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }
    .image {
        margin-left: 2px;
        width: 178px;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

    /* reference */
    .reference {
        width: 100%;
        border-radius: 0;
        margin: 30px auto 0 auto;
    }

    /* description */
    .description {
        padding: 30px 20px 35px 20px;
        max-width: 100%;
    }
    .description .decorative-line {
        margin-bottom: 20px;
    }
    .description-contents blockquote {
        margin: 20px 0;
    }
    .description .description-footer {
        font-size: 10px;
    }

    /* share */
    .share {
        width: 100%;
        border-radius: 0;
        margin: 50px auto 0 auto;
        border-right: none;
        border-left: none;
    }

    /* only hadith */
    .settings-button-container {
        width: 100%;
        border-radius: 0;
        margin-top: 30px;
        margin-bottom: 50px;
    }
    .settings-button {
        border-radius: 0;
    }

    /* daily send */
    .daily-send {
        width: 100%;
        margin: 40px auto 40px auto;
        border-radius: 0;
        border-left: none;
        border-right: none;
        position: relative;
        padding: 5px;
        box-sizing: border-box;
    }
    .daily-send-icon_td {
        width: 0;
        position: static;
    }
    .daily-send-main_icon {
        right: 50%;
        margin-right: -25px;
    }
    .daily-send-text_td {
        position: relative;
    }

    /* footer */
    .container {
        padding-bottom: 55px; /* footer height */
    }
    .only-hadith-mode-enabled .container {
        padding-bottom: 0; /* as we don't show footer in only hadith mode*/
    }
    .footer {
        padding: 10px 0 0 0;
        line-height: normal;
        height: 60px;
        margin-top: -60px;
        overflow: hidden;
    }
    .footer-buttons {
        display: block;
        padding: 5px 0 10px 0;
    }
    .only-hadith-mode-enabled .footer {
        display: none;
    }

    /* no hadith mode */
    .only-hadith-mode-enabled .logo-only-for-only-hadith-mode {
        height: 40px;
    }
    .only-hadith-mode-enabled .logo-only-for-only-hadith-mode .top-settings-button {
        display: none;
    }
}
