body {
    font-family: 'Tajawal', sans-serif;
    /* Apply Arabic font */
    background-color: #f0f0f0;
    /* padding: 20px; */
    margin: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* Ensure full viewport height */
    justify-content: space-between;
    /* Footer at the bottom */
}

.content-wrapper {
    padding: 20px;
    /* Add padding to all sides */
    flex: 1;
    /* Grow content to fill remaining space */
    align-items: center;
}

h1 {
    margin-bottom: 20px;
}

.surah-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    /* 3 surahs per row */
    gap: 20px;
    /* Gap between surahs */
    list-style-type: none;
    padding: 0;
}

.surah-item {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.2s ease-in-out;
}

.surah-item:hover {
    transform: translateY(-5px);
    /* Move the item up slightly on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    /* Adjust box shadow on hover */
}

.surah-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #008000;
    /* Green color */
}

.surah-ayahs {
    font-size: 0.9rem;
    color: #666666;
    /* Gray color */
}

.navbar {
    background-color: #ffffff;
    /* White background */
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #008000;
    /* Green color */
    text-decoration: none;
}

.navbar-brand:hover {
    color: #005000;
    /* Darker green on hover */
}

.navbar-menu {
    list-style-type: none;
    padding: 0;
    margin: 0;
    text-align: center;
    flex-grow: 10;
    /* Grow to take up available space */
    display: flex;
    justify-content: flex-end;
    /* Align items to the end (right side) */
}

.navbar-menu li {
    margin-inline-end: 20px; /* Space between items */
}
.navbar-menu li:last-child {
    margin-inline-end: 0; /* Remove margin for the last item */
}

.navbar-menu li a {
    color: #333333;
    /* Dark gray */
    text-decoration: none;
    font-size: 1.3rem;
}

.navbar-menu li a:hover {
    color: #666666;
    /* Lighter gray on hover */
}

.toggle-button {
    display: none;
    background-color: #008000;
    /* Green background */
    color: #ffffff;
    /* White text */
    font-weight: bold;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 500px;
}

@media (max-width: 768px) {
    .navbar-menu {
        display: none;
        /* Hide menu by default on small screens */
        flex-direction: column;
        /* Stack items vertically */
        width: 100%;
        position: absolute;
        top: 60px;
        /* Adjust based on your navbar height */
        left: 0;
        background-color: #ffffff;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .navbar-menu li {
        margin-top: 20px;
        /* Adjusted margin for space between items */
    }

    .navbar-menu li:last-child {
        margin-bottom: 20px;
        /* Remove margin for the first item */
    }

    .navbar-menu.active {
        display: flex;
        /* Show menu when active */
    }

    .toggle-button {
        display: block;
        /* Show toggle button on small screens */
    }
}

.footer {
    background-color: #008000;
    /* Use green color from our palette */
    color: #fff;
    /* White text color */
    padding: 20px;
    text-align: center;
    font-size: 25px;
}

/* Scrollbar styling for webkit browsers (e.g., Chrome, Safari) */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f0f0f0;
}

::-webkit-scrollbar-thumb {
    background-color: #008000;
    border-radius: 10px;
    border: 2px solid #f0f0f0;
}

/* Scrollbar styling for Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #008000 #f0f0f0;
}

.download-button {
    background-color: #4CAF50;
    /* Green */
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin-top: 5px;
    cursor: pointer;
    border-radius: 25px;
    font-family: 'Tajawal'
}

.download-button:hover {
    background-color: #45a049;
    /* Darker green */
}

.recitations-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    /* 3 surahs per row */
    gap: 20px;
    /* Gap between surahs */
    list-style-type: none;
    padding: 0;
}

.recitations-item {
    text-decoration: none;
    background-color: #ffffff;
    color: #008000;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.custom-audio {
    width: 100%;
    max-width: 300px;
    /* Adjust max-width as needed */
    margin: 0 auto;
    /* Center the audio player */
    display: block;
    margin-top: 10px;
    /* Add some space above the audio player */
}

.custom-audio audio {
    width: 100%;
    outline: none;
    /* Remove focus outline */
    background-color: #f0f0f0;
    /* Light gray background */
    border-radius: 8px;
    /* Rounded corners */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /* Subtle shadow */
}

.custom-audio audio::-webkit-media-controls-panel {
    background-color: #f0f0f0;
    /* Light gray background for controls */
    border-radius: 8px;
    /* Rounded corners */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /* Subtle shadow */
}

.custom-audio audio::-webkit-media-controls-play-button,
.custom-audio audio::-webkit-media-controls-volume-slider {
    display: none;
    /* Hide play button and volume slider */
}

.custom-audio audio::-webkit-media-controls-current-time-display,
.custom-audio audio::-webkit-media-controls-time-remaining-display {
    color: #666666;
    /* Gray color for time display */
}

.custom-audio audio::-webkit-media-controls-mute-button,
.custom-audio audio::-webkit-media-controls-timeline {
    display: none;
    /* Hide mute button and timeline */
}

/* Styles for layout and components */
.row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.counter-container {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.counter-value {
    font-size: 24px;
    margin-right: 10px;
}

.dhikr-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.dhikr-text {
    font-size: 16px;
    line-height: 1.5;
}

#searchInput {
    margin-bottom: 10px;
    padding: 10px;
    width: 25%;
    font-size: 16px;
    border: 2px solid #008000;
    border-radius: 5px;
}

.dhikr-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 surahs per row */
    gap: 20px;
    /* Gap between surahs */
    list-style-type: none;
    padding: 0;
}

.dhikr-item {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.2s ease-in-out;
}

.dhikr-item:hover {
    transform: translateY(-5px);
    /* Move the item up slightly on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    /* Adjust box shadow on hover */
}

.dhikr-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #008000;
    /* Green color */
}

.dhikr-ayahs {
    font-size: 0.9rem;
    color: #666666;
    /* Gray color */
}

@media (max-width: 1024px) {
    .surah-list {
        grid-template-columns: repeat(4, 1fr);
        /* 2 surahs per row on medium screens */
    }
}

@media (max-width: 768px) {
    .surah-list {
        grid-template-columns: repeat(2, 1fr);
        /* 1 surah per row on small screens */
    }
}



@media (max-width: 1024px) {
    .dhikr-list {
        grid-template-columns: repeat(2, 1fr);
        /* 2 surahs per row on medium screens */
    }
}

@media (max-width: 768px) {
    .dhikr-list {
        grid-template-columns: 1fr;
        /* 1 surah per row on small screens */
    }
}


@media (max-width: 1024px) {
    .recitations-list {
        grid-template-columns: repeat(2, 1fr);
        /* 2 surahs per row on medium screens */
    }
}

@media (max-width: 768px) {
    .recitations-list {
        grid-template-columns: 1fr;
        /* 1 surah per row on small screens */
    }
}



.ayahs-container {
    margin-top: 20px;
    line-height: 2.5;
    /* Adjust line height for readability */
    background-color: #f9f9f9;
    /* Light background color for contrast */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-family: 'Amiri Quran', serif;
    /* Traditional Arabic font */
}

.aboutus-container {
    margin-top: 20px;
    line-height: 2.5;
    /* Adjust line height for readability */
    background-color: #f9f9f9;
    /* Light background color for contrast */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.contactus-container {

    margin-top: 20px;
    line-height: 2.5;
    /* Adjust line height for readability */
    background-color: #f9f9f9;
    /* Light background color for contrast */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.contactus-container input,
.contactus-container textarea {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    /* Ensure padding is included in the width calculation */
}

.contactus-container textarea {
    height: 100px;
    /* Adjust height as needed */
    resize: vertical;
    /* Allow vertical resizing */
}

.contactus-container .download-button {
    padding: 10px 20px;
    background-color: #008000;
    /* Green background color */
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contactus-container .download-button:hover {
    background-color: #45a049;
    /* Darker green on hover */
}

.ayahs-text {
    text-align: justify;
    direction: rtl;
    /* Right-to-left text direction for Arabic */
    font-size: 30px;
    /* Slightly larger font size */
    font-weight: bold;
    color: #393939;
    /* Black text color for readability */
}

.ayah-number {
    color: green;
    /* Green color for the number in parenthesis */
}


.audio {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.select-container {
    margin: 20px 0;
}

label {
    font-size: 20px;
    font-weight: bold;
}

select {
    font-size: 16px;
    padding: 10px;
    border: 2px solid #008000;
    border-radius: 5px;
    background-color: #ffffff;
    color: #333333;
    cursor: pointer;
    transition: border-color 0.3s ease;
    font-family: Tajawal;
}

select:focus {
    border-color: #005000;
    outline: none;
}

.footer {
    background-color: #008000;
    /* Use green color from our palette */
    color: #fff;
    /* White text color */
    padding: 20px;
    text-align: center;
    font-size: 25px;
}