@font-face {
    font-family: 'ds-digitalnormal';
    src: url('../fonts/digital/ds-digi-webfont.woff2') format('woff2'), url('../fonts/digital/ds-digi-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'arabic_magicregular';
    src: url('../fonts/arabic/arabic_magic-webfont.woff2') format('woff2'), url('../fonts/arabic/arabic_magic-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@keyframes pressing {
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

@keyframes rotation {
    from {
        -webkit-transform: rotate(-40deg);
        transform: rotate(-40deg);
    }
    80% {
        -webkit-transform: rotate(340deg);
        transform: rotate(340deg);
    }
    99.999% {
        -webkit-transform: rotate(460deg);
        transform: rotate(460deg);
    }
    to {
        -webkit-transform: rotate(-40deg);
        transform: rotate(-40deg);
    }
}

* {
    outline: none;
    box-sizing: border-box;
}

html,
body {
    overflow: hidden;
    position: relative;
}

.quran-part,
.list-sourates,
h2.verse {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #fdd64e #1b253d;
}

body {
    background-color: #1b253d;
    box-sizing: border-box;
    margin: 0;
    color: white;
}

main {
    padding-top: 15px;
}


/****************************************************************************************/


/*************************************MOBILE NAV******************************************/


/****************************************************************************************/

.nav-bar-mobile {
    position: fixed;
    top: 0;
    background-color: #1b253d;
    z-index: 99;
    width: 100%;
    height: 100vh;
    transition: all 750ms;
    left: 0;
}

#iconMenu {
    width: 60px;
    cursor: pointer;
    height: 60px;
    background-color: #1b253d;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

.nav-bar-mobile img {
    width: 100px;
    margin-right: 15px;
}

.nav-column {
    position: absolute;
    z-index: 10;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: all 750ms;
}

.nav-bar-mobile .nav-column a {
    display: flex;
    width: 100%;
    align-items: center;
    font-size: 50px;
    margin: 20px 0;
    text-decoration: none;
    color: #fdd64e;
}

h2.verse {
    color: #fdd64e;
    font-size: 45px;
    max-height: 50vh;
    overflow: hidden;
    overflow-y: scroll;
    margin: 0;
}

.hide {
    left: -100%;
}

p {
    margin: 0;
}

.container {
    text-align: center;
    padding: 30px;
    position: relative;
    line-height: 1.5;
}

.title-main {
    font-family: 'arabic_magicregular', sans-serif;
    color: white;
    font-weight: normal;
    font-size: 2em;
    margin: 0;
    text-align: center;
}

#bookmark {
    padding: 10px;
    background-color: #fdd64e;
    color: #1b253d;
    border-radius: 1rem;
    font-size: 25px;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}

.hadiths p {
    color: white;
    border-bottom: 5px solid;
    border-top: 5px solid;
    padding: 10px;
}

#countdown {
    position: relative;
    border-radius: 50%;
    width: 100%;
    height: auto;
    padding-top: 100%;
    background: none;
}

#countdownNumber {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30vw;
    color: #fdd64e;
    pointer-events: none;
}

#countdown::before {
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: #fdd64e;
    border-radius: 100%;
    z-index: -1;
    opacity: 0.5;
    top: 0;
    left: 0;
    transform: scale(0);
}

.pressing::before {
    animation: pressing 400ms ease-out 1;
}

.refresh-icon {
    position: absolute;
    top: 0;
    left: 0;
    border: none;
    outline: none;
    padding: 10px;
    border-radius: 5px;
    width: 70px;
    -webkit-transition: all 200ms;
    transition: all 200ms;
    z-index: 50;
    cursor: pointer;
}

.refresh-icon>* {
    pointer-events: none;
}

.refresh-icon svg path {
    stroke: #fdd64e;
    stroke-width: 5px;
    stroke-linecap: round;
    fill: none;
}

.refresh-icon svg.arrow-svg {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    -webkit-transform: rotate(-40deg);
    transform: rotate(-40deg);
    -webkit-transform-origin: 50% 50%;
    transform-origin: 50% 50%;
}

.arrow-animation {
    -webkit-animation-name: rotation;
    animation-name: rotation;
    -webkit-animation-duration: 0.8s;
    animation-duration: 0.8s;
    -webkit-animation-timing-function: linear;
    animation-timing-function: linear;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

small {
    text-transform: uppercase;
    margin-right: auto;
    width: 15px;
    font-size: 17px;
    display: block;
    color: white;
}

.hadiths-end p {
    text-align: center;
    color: white;
    border-bottom: 5px solid;
    border-top: 5px solid;
    padding: 10px;
}

.display-names {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    /* width: 55%; */
    /* margin: auto; */
    color: white;
    font-weight: bold;
}

.container a {
    text-decoration: none;
    color: white;
    line-height: 2;
}

.list-sourates {
    overflow: hidden;
    overflow-y: scroll;
    max-height: 60vh;
    list-style-type: none;
    padding: 0px;
}

.display-names p {
    width: 35%;
}

.display-names p:first-of-type,
.display-names p:nth-of-type(3) {
    width: 5%;
}

.trad {
    text-align: center;
    padding: 10px;
    line-height: 1.6;
}

.quran-part {
    max-height: 390px;
    overflow: hidden;
    overflow-y: hidden;
    overflow-y: scroll;
    padding: 0 30px;
    position: relative;
}

.quran-part p {
    margin: 0 15px;
    transition: all 350ms;
}

.sourate {
    padding: 5px;
    font-size: 20px;
}

.ayah {
    cursor: pointer;
}

.current {
    color: #fdd64e;
    transform: scale(1.1);
}

.audio {
    width: 100%;
    bottom: 0;
    position: fixed;
    outline: none;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.controls a {
    color: #1b253d;
    border-radius: 1rem;
    text-decoration: none;
    padding: 10px;
    background-color: white;
    margin: 20px 0;
}


/*the container must be positioned relative:*/

.custom-select {
    position: fixed;
    font-family: Arial;
    z-index: 50;
}

.custom-select select {
    display: none;
    /*hide original SELECT element:*/
}

.select-selected {
    background-color: #fdd64e;
}


/*style the arrow inside the select element:*/

.select-selected:after {
    position: absolute;
    content: "";
    top: 14px;
    right: 10px;
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-color: #1b253d transparent transparent transparent;
}


/*point the arrow upwards when the select box is open (active):*/

.select-selected.select-arrow-active:after {
    border-color: transparent transparent #1b253d transparent;
    top: 7px;
}


/*style the items (options), including the selected item:*/

.select-items div,
.select-selected {
    color: #1b253d;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-color: transparent transparent rgba(0, 0, 0, 0.1) transparent;
    cursor: pointer;
    user-select: none;
}


/*style items (options):*/

.select-items {
    position: absolute;
    background-color: #fdd64e;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
}


/*hide the items when the select box is closed:*/

.select-hide {
    display: none;
}

.select-items div:hover,
.same-as-selected {
    background-color: rgba(0, 0, 0, 0.1);
}

#scrollTop {
    position: absolute;
    left: 0;
    top: 40px;
    width: 40px;
}

#scrollTopFix {
    position: fixed;
    background: #fdd64e;
    width: 40px;
    height: 40px;
    padding: 10px;
    border-radius: 100%;
    transform: rotate(180deg);
    cursor: pointer;
}

#scrollTopFix:after {
    position: absolute;
    content: "";
    top: 50%;
    right: 50%;
    transform: translate(50%, -20%);
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-color: #1b253d transparent transparent transparent;
}

#scrollBot {
    position: absolute;
    left: 0;
    bottom: 80px;
    width: 40px;
}

#scrollBotFix {
    position: fixed;
    background: #fdd64e;
    width: 40px;
    height: 40px;
    padding: 10px;
    border-radius: 100%;
    cursor: pointer;
}

#scrollBotFix:after {
    position: absolute;
    content: "";
    top: 50%;
    right: 50%;
    transform: translate(50%, -20%);
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-color: #1b253d transparent transparent transparent;
}

footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    text-align: center;
}

footer small {
    width: 20%;
    font-size: 10px;
    margin: 0;
    margin-bottom: 20px;
}

footer small a {
    color: white;
    text-decoration: none;
    font-style: italic;
}

.socialIcon {
    display: block;
    width: 35px;
    margin: auto;
}

@media (min-width:800px) {
    .container {
        width: 50%;
        margin: auto;
    }
    #countdownNumber {
        font-size: 10vw;
    }
    .hadiths-end p {
        font-size: 50px;
    }
    .title-main {
        font-size: 3em;
    }
}