body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #424242; /* Dark gray background */
    color: #eee; /* Light text color */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
    background-color: #616161;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

h1 {
    color: #e0e0e0; /* Light gray for better contrast */
    margin-bottom: 30px;
    font-size: 2.5rem; /* Increased font size */
    font-weight: 500; /* Semi-bold font weight */
    letter-spacing: 1px; /* Slight letter spacing for readability */
}

h2 {
    color: #e0e0e0; /* Light gray for better contrast */
    margin-bottom: 20px;
    font-size: 1.8rem; /* Increased font size */
    font-weight: 500; /* Semi-bold font weight */
    letter-spacing: 1px; /* Slight letter spacing for readability */
}

.slogan {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 20px;
    font-style: italic;
}

#search-input {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #757575;
    border-radius: 5px;
    background-color: #424242;
    color: #eee;
    font-size: 1.1rem;
    box-sizing: border-box;
}

#search-input:focus {
    outline: none;
    border-color: #90caf9;
    box-shadow: 0 0 5px rgba(144, 202, 249, 0.5);
}

.language-buttons {
    margin-bottom: 20px;
}

.language-buttons button {
    background-color: #6200ea; /* Material deep purple */
    color: white;
    padding: 10px 20px;
    margin: 0 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Added box-shadow transition */
    font-weight: 500;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2); /* Material Design shadow */
}

.language-buttons button:hover {
    background-color: #5500b8; /* Darker purple on hover */
    box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.2); /* Elevated shadow on hover */
}

.surah-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.surah-item {
    background-color: #616161; /* Slightly lighter gray */
    color: #eee;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4); /* More pronounced shadow */
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.surah-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); /* Stronger shadow on hover */
}

.surah-item h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: #e0e0e0; /* Light gray text */
}

.surah-item p {
    color: #bdbdbd; /* Slightly lighter text */
    font-size: 0.9rem;
}

.surah-number {
    font-weight: bold;
    color: #757575; /* Light blue */
    margin-bottom: 5px;
}

.surah-name {
    font-size: 1.1rem;
    color: #90caf9; /* Light blue */
}

.surah-arabic-name {
    font-size: 1rem;
    color: #bdbdbd; /* Light gray */
    margin-top: 5px;
}

.tooltip {
    position: absolute;
    background-color: #616161;
    color: #eee;
    padding: 10px;
    border-radius: 5px;
    z-index: 10;
    display: none;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.tooltip-name,
.tooltip-number,
.tooltip-type,
.tooltip-translation,
.tooltip-ayahs {
    display: block;
    text-align: left;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.about-content {
    text-align: left;
    line-height: 1.6;
}

.about-content h2 {
    color: #90caf9; /* Light blue for headings */
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

.about-content p {
    color: #e0e0e0; /* Light gray for paragraph text */
    margin-bottom: 15px;
}

.about-content ul {
    color: #e0e0e0; /* Light gray for list items */
    margin-bottom: 15px;
}

.about-content li {
    margin-bottom: 5px;
    list-style-type: disc;
    margin-left: 20px;
}

.about-content a {
    color: #90caf9; /* Light blue for links */
    text-decoration: none;
}

.about-content a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
    background-color: #616161;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.about-content {
    text-align: left; /* Align text to the left */
    line-height: 1.6; /* Improve readability */
    padding: 20px; /* Add padding */
    background-color: #616161; /* Slightly lighter background */
    border-radius: 5px; /* Rounded corners */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow */
}

.about-content h2 {
    color: #90caf9; /* Light blue for headings */
    font-size: 1.8rem;
    margin-top: 0; /* Remove default top margin */
    margin-bottom: 10px;
}

.about-content p {
    color: #e0e0e0; /* Light gray for paragraph text */
    margin-bottom: 15px;
}

.about-content ul {
    color: #e0e0e0; /* Light gray for list items */
    margin-bottom: 15px;
    padding-left: 20px; /* Add padding to the left */
}

.about-content li {
    margin-bottom: 8px;
    list-style-type: disc; /* Use disc for list items */
}

.about-content a {
    color: #90caf9; /* Light blue for links */
    text-decoration: none;
}

.about-content a:hover {
    text-decoration: underline;
}

.about-content {
    text-align: left; /* Align text to the left */
    line-height: 1.6; /* Improve readability */
    padding: 20px; /* Add padding */
    background-color: #616161; /* Slightly lighter background */
    border-radius: 5px; /* Rounded corners */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow */
}

.about-content h2 {
    color: #90caf9; /* Light blue for headings */
    font-size: 1.5rem;
    margin-top: 0; /* Remove default top margin */
    margin-bottom: 10px;
}

.about-content p {
    color: #e0e0e0; /* Light gray for paragraph text */
    margin-bottom: 15px;
}

.about-content ul {
    color: #e0e0e0; /* Light gray for list items */
    margin-bottom: 15px;
    padding-left: 20px; /* Add padding to the left */
}

.about-content li {
    margin-bottom: 8px;
    list-style-type: disc; /* Use disc for list items */
}

.about-content a {
    color: #90caf9; /* Light blue for links */
    text-decoration: none;
}

.about-content a:hover {
    text-decoration: underline;
}

.video-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}

.video-container iframe {
    flex: 1;
    min-width: 300px;
    max-width: 560px; /* Adjust as needed */
}

.mermaid-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    margin-bottom: 30px;
}
/* 
Video Section for Surah Pages */
.video-section {
    margin-top: 30px;
    padding: 20px;
    background-color: #616161;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.video-section h3 {
    color: #90caf9;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.video-section .video-container {
    justify-content: center;
}

.video-section iframe {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Responsive video styling */
@media (max-width: 768px) {
    .video-section iframe {
        width: 100%;
        height: 250px;
        min-width: unset;
    }
}

@media (max-width: 480px) {
    .video-section iframe {
        height: 200px;
    }
    
    .video-section {
        padding: 15px;
        margin-top: 20px;
    }
}/* Playli
st-specific styling */
.playlist-info {
    color: #e0e0e0;
    font-style: italic;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #757575;
    border-radius: 5px;
    border-left: 4px solid #90caf9;
}

.playlist-controls {
    margin-top: 15px;
    padding: 15px;
    background-color: #757575;
    border-radius: 5px;
    border-left: 4px solid #90caf9;
}

.playlist-controls p {
    color: #90caf9;
    margin-bottom: 10px;
    font-weight: 500;
}

.playlist-controls ul {
    color: #e0e0e0;
    margin: 0;
    padding-left: 20px;
}

.playlist-controls li {
    margin-bottom: 5px;
    line-height: 1.4;
}

/* Enhanced video section for playlists */
.video-section iframe[src*="videoseries"] {
    border: 2px solid #90caf9;
}

@media (max-width: 768px) {
    .playlist-info,
    .playlist-controls {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .playlist-controls ul {
        padding-left: 15px;
    }
}/* Pl
aylist button styling */
.playlist-link {
    text-align: center;
    margin: 15px 0;
}

.playlist-button {
    display: inline-block;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(255, 0, 0, 0.3);
    border: 2px solid transparent;
}

.playlist-button:hover {
    background: linear-gradient(135deg, #cc0000, #990000);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 0, 0, 0.4);
    text-decoration: none;
    color: white;
}

.playlist-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(255, 0, 0, 0.3);
}

/* Mobile responsive playlist button */
@media (max-width: 768px) {
    .playlist-button {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .playlist-button {
        padding: 8px 16px;
        font-size: 0.9rem;
        display: block;
        margin: 10px auto;
        max-width: 250px;
    }
}/* SEO 
and Accessibility Enhancements */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

header nav {
    margin: 20px 0;
}

header nav a {
    color: #90caf9;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

header nav a:hover {
    background-color: rgba(144, 202, 249, 0.1);
    text-decoration: underline;
}

.search-section {
    margin: 30px 0;
}

.surahs-section {
    margin: 30px 0;
}

footer {
    margin-top: 50px;
    padding: 20px 0;
    border-top: 1px solid #757575;
    text-align: center;
    color: #bdbdbd;
    font-size: 0.9rem;
}

/* Improved focus indicators for accessibility */
input:focus,
button:focus,
a:focus {
    outline: 2px solid #90caf9;
    outline-offset: 2px;
}

/* Better contrast for accessibility */
.surah-item:focus {
    outline: 2px solid #90caf9;
    outline-offset: 2px;
}

/* Schema.org microdata styling */
[itemscope] {
    display: block;
}