:root {
    --dark-color: #17144e;
}

body {
    overflow-x: hidden;
    direction: rtl;
    font-family: cairo, tajawal, 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    background-color: #eee;
}

html {
    scroll-behavior: smooth;
}

header {
    background-image: url('./../images/header_texture.png');
    background-size: cover;
}

.cursor-pointer {
    cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: bold !important;
}

header {
    background-color: var(--dark-color);
    color: #fff;
    min-height: 100vh;
    position: relative;
}

header .content {
    position: relative;
    top: 150px;
}

header .content h1 {
    font-size: 60px;
    margin-bottom: 25px;
}

header .max-bottom {
    position: absolute;
    bottom: 35px;
    right: 0px;
    width: 100%;
    display: flex;
    justify-content: center;
}

header .bottom-spinner {
    border: 2px solid #fff;
    width: 35px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

header .bottom-spinner span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: block;
    background-color: #fff;
    animation: headerSpinner .7s infinite linear alternate;
}

@keyframes headerSpinner {
    from {
        margin-top: -40px;
    }

    to {
        margin-top: 40px;
    }
}

h1.theme-heading {
    font-size: 28px;
    font-weight: bold !important;
    margin: 20px 0px;
    display: inline-block;
}

h1.theme-heading span {
    display: block;
}

h1.theme-heading span:first-of-type {
    margin-bottom: 10px;
}

h1.theme-heading span:nth-of-type(2),
h1.theme-heading span:last-of-type {
    height: 5px;
    width: 100%;
    background-color: #ababab;
}

h1.theme-heading span:last-of-type {
    margin-top: 5px;
    width: 80%;
}

.surah_name::before {
    content: "✨ سورة ";
}

a,
a:hover {
    color: inherit;
    text-decoration: inherit;
}

#main-loader {
    width: 100%;
    height: 100%;

    position: fixed;
    top: 0px;
    right: 0px;
    left: 0px;
    bottom: 0px;

    background-color: #fff;

    z-index: 100;
    transition: 1s;

    display: flex;
    justify-content: center;
    align-items: center;
}

#main-loader span {
    border-radius: 50%;
    border: 3px solid var(--dark-color);
    position: absolute;
}

#main-loader span:first-of-type {
    width: 50px;
    height: 50px;
    border-top-color: #0000;
    animation: mainLoaderAnimation 1s infinite linear;
}

#main-loader span:nth-of-type(2) {
    width: 40px;
    height: 40px;
    border-top-color: #0000;
    animation: mainLoaderAnimation .8s infinite linear;
}

#main-loader span:last-of-type {
    width: 30px;
    height: 30px;
    border-top-color: #0000;
    animation: mainLoaderAnimation .6s infinite linear;
}

@keyframes mainLoaderAnimation {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.surah-content {
    font-size: 20px;
}

.activePageColor {
    color: red;
}

.paginationContainer {
    display: flex;
    align-items: center;
    justify-content: center;
}

#pagination {
    -webkit-user-select: none;
    user-select: none;
    display: flex;
    overflow-x: scroll;
    width: 80%;
    margin-bottom: 40px;
    margin-right: 10px;
    margin-left: 10px;
    padding-bottom: 5px;
}

#pagination::-webkit-scrollbar {
    height: 3px;
    border-radius: 50%;
}

#pagination::-webkit-scrollbar-thumb {
    background-color: #4269698e;
}

#pagination::-webkit-scrollbar-thumb:hover {
    background-color: #426969ee;
}

#pagination::-webkit-scrollbar-button {
    display: none;
}

.scrollToTopBtn {
    background-color: #4680fd;
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    font-size: 30px;
    line-height: 48px;
    width: 48px;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    opacity: 0;
    transform: translateY(100px);
    transition: all .5s ease
}

.showBtn {
    opacity: 1;
    transform: translateY(0)
}

/* ScrollToUp */
@media screen and (max-width: 800px) {
    .header-down-arrow {
        display: none;
    }
}

/* fadeInDown */
.animated-element-fadeInDown {
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInDown 1s forwards;
}

@keyframes fadeInDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* sticky navBar */
.stickyNavBar {
    position: fixed;
    background-color: #17144e;
    width: 100%;
    top: 0;
    right: 0;
    transform: translate(-50% -50%);
}

.transition {
    transition: 2s;
}

/* quran player */
.audio-player {
    height: 50px;
    width: 60%;
    position: fixed;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    background: #444;
    box-shadow: 0 0 20px 0 #000a;
    font-family: arial;
    color: white;
    font-size: 0.75em;
    overflow: hidden;
    display: grid;
    grid-template-rows: 6px auto;
}

.audio-player .timeline {
    background: white;
    width: 100%;
    position: relative;
    cursor: pointer;
    box-shadow: 0 2px 10px 0 #0008;
    direction: ltr;
}

.audio-player .timeline .progress {
    background: coral;
    width: 0%;
    height: 100%;
    transition: 0.25s;
}

.audio-player .controls {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    padding: 0 20px;
}

.audio-player .controls>* {
    display: flex;
    justify-content: center;
    align-items: center;
}

.audio-player .controls .toggle-play.play {
    cursor: pointer;
    position: relative;
    left: 0;
    height: 0;
    width: 0;
    border: 7px solid #0000;
    border-left: 13px solid white;
}

.audio-player .controls .toggle-play.play:hover {
    transform: scale(1.1);
}

.audio-player .controls .toggle-play.pause {
    height: 15px;
    width: 20px;
    cursor: pointer;
    position: relative;
}

.audio-player .controls .toggle-play.pause:before {
    position: absolute;
    top: 0;
    left: 0px;
    background: white;
    content: "";
    height: 15px;
    width: 3px;
}

.audio-player .controls .toggle-play.pause:after {
    position: absolute;
    top: 0;
    right: 8px;
    background: white;
    content: "";
    height: 15px;
    width: 3px;
}

.audio-player .controls .toggle-play.pause:hover {
    transform: scale(1.1);
}

.audio-player .controls .time {
    display: flex;
}

.audio-player .controls .time>* {
    padding: 2px;
}

.audio-player .controls .volume-container {
    cursor: pointer;
}

.audio-player .controls .volume-container .volume-button {
    height: 26px;
    display: flex;
    align-items: center;
}

.audio-player .controls .volume-container .volume-button .volume {
    transform: scale(0.7);
}

.audio-player .controls .volume-container .volume-slider {
    position: absolute;
    left: 50px;
    width: 0;
    height: 15px;
    background: white;
    box-shadow: 0 0 20px #000a;
    transition: .25s;
    direction: ltr;
}

.audio-player .controls .volume-container .volume-slider .volume-percentage {
    background: coral;
    height: 100%;
    width: 75%;
}

.audio-player .controls .volume-container:hover .volume-slider {
    width: 120px;
}