    body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }
    
    .animated-surahs {
}
.animate-surahs-bg{
    position: fixed;
    top: 50px;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(90deg, #ececec 20%, #e0dddd 50%, #ececec 90%);
    background-size: 200% 100%;
    animation: bgpos 2s linear infinite;
}

.dark-mode .animate-surahs-bg{
    background: linear-gradient(90deg, #1e1e1e 20%, #121212 50%, #1e1e1e 90%);
}
.spinner {
  width: 50px;
  height: 50px;
  border: 6px solid #ccc;
  border-top: 6px solid #9acd32; /* spinner color */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.spinner.hide{
    display:none;
}
/* Spinner Animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

    main.quran-player-content{
    padding: 10px 20px;
    background-color: #f5f5f5;
    margin: 50px auto 10px auto;
    display: block;
    position: sticky;
    top: 5px;

    
    }
    .dark-mode .quran-player-content{
    background-color:#242526;
    }
    @font-face {
    font-family: 'SurahNames';
    src: url('../quranfonts/sura_names.woff2') format('opentype');
    font-weight: normal;
    font-style: normal;
    }
    
    @font-face {
    font-family: 'Nautilus';
    src: url('../quranfonts/Nautilus.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    }
    
    @font-face {
    font-family: 'Jamal';
    src: url('../quranfonts/Jamal.ttf') format('opentype');
    font-weight: normal;
    font-style: normal;
    }
    
    input,
    select,
    textarea {
    -moz-appearance: none;
    -webkit-appearance: none;
    -ms-appearance: none;
    appearance: none;
    }
    
    #surahGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
    margin: 14px auto;
    }
    
    .surah-card {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    background-color: white;
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s;
    cursor: pointer;
    }
    .dark-mode .surah-card {
    background-color: #18191A;
    color:white;
    }
    .surah-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #9acd32;
    }
    
    .surah-card:hover .surah-number {
    background-color: #9acd32;
    }
    
    .surah-number {
    width: 40px;
    height: 40px;
    background-color: #777;
    color: #ffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transform: rotate(45deg);
    margin-right: 20px;
    flex-shrink: 0;
    font-family: 'Nautilus', serif;
    }
    .dark-mode .surah-card .surah-number{
    background-color:#242526;
    }
    .surah-number span {
    transform: rotate(-45deg);
    display: block;
    }
    
    .surah-info {
    flex-grow: 1;
    }
    
    .surah-english-name {
    font-family: 'Nautilus', serif;
    font-size: 18px;
    font-weight: normal;
    }
    
    .surah-english-translation {
    font-size: 14px;
    color: #777;
    }
    
    .surah-right {
    text-align: right;
    }
    
    .surah-arabic-name {
    font-family: 'Jamal', serif;
    font-size: 26px;
    font-weight: normal;
    }
    
    .surah-ayah-count {
    font-size: 14px;
    color: #777;
    }
    
    .selected-surah {
    border: 1px solid #9ACD32;
    }
    
    .selected-surah .surah-arabic-name,
    .selected-surah .surah-english-name {
    color: #9ACD32;
    }
    
    .selected-surah .surah-number {
    background-color: #9ACD32;
    }
    
    
    /* ---------------------------------------- Quran syrahs style end -------------------- */
    
    
    /* ------------------ The wave style -------------------------------- */
    
    .loader {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 18px;
    width: 50px;
    transform: rotate(180deg);
    visibility: hidden;
    }
    
    .selected-surah .loader {
    visibility: visible;
    }
    
    .toggle-wave #wave rect {
    animation: none;
    }
    
    #wave rect {
    fill: #9ACD32;
    rx: 1.5;
    /* rounded corners */
    animation: waveAnim .6s infinite ease-in-out;
    transform-origin: center bottom;
    }
    
    
    /* Stagger animation delay for each bar */
    
    #wave rect:nth-child(1) {
    animation-delay: 0s;
    }
    
    #wave rect:nth-child(2) {
    animation-delay: 0.15s;
    }
    
    #wave rect:nth-child(3) {
    animation-delay: 0.3s;
    }
    
    #wave rect:nth-child(4) {
    animation-delay: 0.45s;
    }
    
    #wave rect:nth-child(5) {
    animation-delay: 0.6s;
    }
    
    #wave rect:nth-child(6) {
    animation-delay: 0.75s;
    }
    
    #wave rect:nth-child(7) {
    animation-delay: 0.9s;
    }
    
    #wave rect:nth-child(8) {
    animation-delay: 1.05s;
    }
    
    #wave rect:nth-child(9) {
    animation-delay: 1.2s;
    }
    
    @keyframes waveAnim {
    0%,
    100% {
    transform: scaleY(1);
    }
    50% {
    transform: scaleY(1.5);
    }
    }
    
    
    /* ------------------------------- Audio player style -------------------------------*/
    
    #audio-player-container {
    width: calc(100% - 5px);
    margin: 10px auto;
    display: block;
    position: sticky;
    bottom: 0;
    background-color: #ffff;
    box-shadow: 16px 2px 10px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s;
    border-radius: 10px;
    }
    .dark-mode #audio-player-container {
    background-color: #18191A;
    color:white;
    }
    #audio-player {
    display: none;
    }
    
    .custom-audio-container {
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    width: 300px;
    box-sizing: border-box;
    }
    
    
    /* Container for our custom controls */
    
    .custom-audio-controls {
    display: flex;
    align-items: center;
    }
    
    img.img-icons {
    width: 20px;
    height: 20px;
    background-color:none;
    background:none;
    }
    
.time-repeat {
    display: flex;
    align-items: center;
}
    .play-pause-button,
    .prev-next-btns {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 1.5em;
    margin: 10px;
    color: #9ACD32;
    }
    
    .progress-bar-container {
    flex-grow: 1;
    background-color: #777;
    border-radius: 5px;
    width: 100%;
    height: 8px;
    cursor: pointer;
    margin-right: 10px;
    overflow: hidden;
    }
    
    .progress-bar {
    background-color: #9ACD32;
    height: 100%;
    width: 0%;
    border-radius: 5px;
    }
    
    .time-display {
    font-size: 1em;
    color: #9ACD32;
    width: auto;
    margin-left: 15px;
    }
    
    .volume-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    }
    
    .volume-button {
    background-color: transparent;
    border: none;
    padding: 0;
    margin-right: 5px;
    cursor: pointer;
    font-size: 1.2em;
    }
    
    .volume-button:focus {
    outline: none;
    }
    
    .volume-slider-container {
    background-color: #777;
    border-radius: 5px;
    height: 8px;
    width: 50px;
    cursor: pointer;
    overflow: hidden;
    }
    
    .volume-slider {
    background-color: #9ACD32;
    height: 100%;
    width: 100%;
    border-radius: 5px;
    }
    
    .audio-controls-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    }
    
    .prev-next {
    display: flex;
    justify-content: space-evenly;
    }
    
    
    /* ------------------------------- Audio player style end ------------------------ */
    
    .selector-container {
    width: calc(100% - 5px);
    margin: 10px auto;
    display: block;
    position: sticky;
    top: 50px;
    z-index: 1000;
    }
    .dark-mode .reciter-select {
    background-color: #18191A;
    color:white;
    }
    .reciter-select {
    width: 100%;
    height:45px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #ffffff;
    border: 2px solid #007bff;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 16px;
    font-family: 'Segoe UI', sans-serif;
    color: #333;
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 40px;
    transition: border 0.3s ease;
    margin-bottom: 14px;
    }
    
    .custom-select:focus {
    border-color: #66afe9;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 175, 233, 0.3);
    }
    
    /*---------------------------- wave style in small screens -------------*/
    @media screen and (max-width: 768px) {
        .loader {
            height: 10px;
            width: 40px;
        }
         main.quran-player-content {
        padding: 5px;
    }
    .audio-controls-container {
        height: 100px;
    }
    img.img-icons {
        width: 26px;
        height: 24px;
    }
    .time-display {
        font-size: 0.8em;
        margin-left: 2px;
        font-weight: 600;
    }
    }
