@font-face {
    font-family: hafs;
    src: url(/fonts/hafs.woff2?9c89891f2a65fd130deb2df5edbfb0db);
}
:root {
    --text-size: 18px; /* Default text size */
}

body {
    font-size: var(--text-size, 18px);
}

/* You can add this to other elements as needed */

.font-hafs {
    font-family: hafs, serif !important;
}

.navigation-bar {
    justify-content: space-between;
    padding: 10px;
    font-size: 20px;
    color: black;
    background-color: white;
}

.navigation-bar a {
    color: black;
}

.icon {
    font-size: inherit;
    border-radius: 50%;
    background-color: transparent;
}

.wrapper {
    display: flex;
}

.sidebar {
    background-color: white;
    padding: 4px;
    display: flex;
    gap: 8px;
    /* border: black solid; */
    font-size: 18px;
    height: 100vh;
    width: 250px;
    position: sticky;
    top: 70px;
    left: 0;
    transition: all 0.3s ease-in-out;
}

.translated-sidebar {
    transform: translateX(-100%);
    width: 0px;
}

.ayah-navigator {
    width: 65px;
}
.surah-navigator {
    margin-left: 8px;
    width: 200px;
}

/* Surah and Ayah Navigator Scrollbar Styles */
.surah-navigator,
.ayah-navigator {
    overflow-y: auto;
}

.surah-navigator::-webkit-scrollbar,
.ayah-navigator::-webkit-scrollbar {
    width: 6px;
}

.surah-navigator::-webkit-scrollbar-thumb,
.ayah-navigator::-webkit-scrollbar-thumb {
    background-color: #ade2f9;
    border-radius: 10px; /* Adjust the radius to your liking */
}

.surah-navigator::-webkit-scrollbar-track,
.ayah-navigator::-webkit-scrollbar-track {
    background-color: #f5fcff;
}

.navigator .active {
    background-color: #f5fcff;
}

.header {
    text-align: center;
    padding: var(--text-size);
    min-height: 200px;
    margin: var(--text-size) 0;
    border-radius: 16px;
}

.header h1 {
    font-size: calc(3 * var(--text-size));
    font-weight: bold;
    margin: 0;
}

.surah-title {
    margin: 20px 0;
}

.surah-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 16px;
    margin-bottom: 50px;
}

.surah-item {
    border: 1px solid #e2f7ff;
    border-radius: 4px;
    color: black;
    background-color: white;
    text-decoration: none;
    min-width: 50px;
    transition: background-color 0.3s;
}

.surah-item:hover {
    background-color: #f5fcff;
    border: 1px solid #00b7ff;
    text-decoration: none;
    color: black;
}
.surah-item:active {
    text-decoration: none;
    color: black;
}

.surah-item-main {
    display: flex;
    padding: 10px;
    align-items: center;
}

.surah-item-progress-bar {
    width: 100%;
    height: 5px;
    display: none;
    background-color: #e7eef0;
}

.surah-item-progress-bar > div {
    height: 100%;
}

.surah-item-number {
    width: 30px;
}
.surah-no {
    position: relative;
    width: 50px;
    height: 50px;
}

svg {
    width: 50px;
    height: 50px;
    fill: #b7e7fa;
}

.navbar {
    background-color: white;
    position: fixed;
    width: 100%;
    font-size: 17px;
    top: 0;
    left: 0;
}

.content {
    margin-top: 70px;
}

.surah-item:hover svg {
    width: 50px;
    height: 50px;
    fill: #00b7ff;
}

.surah-id {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #00b7ff;
}

.surah-name {
    margin: 0 10px;
}

.title {
    font-size: calc(1.5 * var(--text-size));
    font-weight: bold;
}

.subtitle {
    color: #a0c8d8;
}

.surah-name-ar {
    text-align: right;
    flex: 1;
    color: #00bfff;
}

.ayah-ar {
    text-align: right;
    flex: 1;
    color: #00bfff;
    direction: rtl;
}

.ayah-item {
    align-items: center;
    border: 1px solid #e2f7ff;
    border-radius: 10px;
    padding: 30px;
    color: black;
    background-color: white;
    text-decoration: none;
    transition: background-color 0.3s;
    margin-bottom: 20px;
}

.ayah-tr-heading {
    font-size: calc(0.85 * var(--text-size));
    color: #00bfff;
}

.ayah-sub-item {
    display: flex;
    padding-bottom: 50px;
}

.ayah-translation {
    padding-bottom: 30px;
}

.toggle-sidebar {
    font-size: 24px;
    width: 40px;
    height: 60px;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    background-color: #f5fcff;
    text-align: center;
    padding-top: 10px;
    position: sticky;
    top: 72px;
    left: 235px;
    transition: all 0.3s ease-in-out;
}

.toggle-sidebar.closed-sidebar {
    height: 40px;
    border-radius: 22px;
    text-align: center;
    border-width: 1px;
    margin-top: 10px;
    padding-top: 0;
    left: 0;
    transform: translateX(0);
}

.toggle-sidebar #open {
    display: none !important;
}

.toggle-sidebar.closed-sidebar #open {
    display: inline-block !important;
}

.toggle-sidebar.closed-sidebar #close {
    display: none !important;
}
/** show progress bar slider */
.switch {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px; /* Adjust this value as needed for spacing */
}

.switch input {
    display: none;
}

.slider {
    background-color: #ccc;
    border-radius: 34px;
    height: 34px; /* Match the height of the switch */
    position: relative;
    width: 60px;
    display: inline-block;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.4s;
}

.slider:before {
    background-color: #fff;
    border-radius: 50%;
    content: "";
    height: 26px;
    width: 26px;
    position: absolute;
    top: 4px; /* Adjust this value to center the slider vertically */
    left: 4px;
    transition: 0.4s;
}

input:checked + .slider {
    background-color: #2196f3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196f3;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/** End of show progress bar slider */

.settings-sidebar {
    background-color: #fff;
    padding: 20px;
    position: fixed;
    top: 70px;
    right: -250px;
    font-size: 18px;
    transition: all 0.3s ease-in-out;
    z-index: 1000;
    height: 100vh;
    width: 250px;
    overflow-y: auto;
}

.settings-sidebar.show-settings-sidebar {
    right: 0;
}

.settings-sidebar h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

label {
    display: block;
    margin-bottom: 12px;
    font-size: 16px;
    color: #555;
}

input[type="range"] {
    width: 100%;
    margin-bottom: 20px;
    -webkit-appearance: none;
    -moz-appearance: none;
         appearance: none;
    height: 5px;
    background-color: #ddd;
    border-radius: 3px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    background-color: #00b7ff;
    border-radius: 50%;
    cursor: pointer;
}

#currentTextSize {
    font-size: 14px;
    color: #888;
    margin-top: 8px;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .surah-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .surah-container {
        grid-template-columns: 1fr;
    }
}

