/* Custom Fonts */
@font-face {
    font-family: 'CustomArabicFont';
    src: url('fonts/customfont.ttf') format('truetype');
}

/* Global Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #fff;
}

/* Header */
header {
    background-color: #FEA01A;
    color: white;
    padding: 20px;
}

/* Navigation Bar */
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #1D1D1B;
    padding: 10px;
    position: relative;
}

.navbar .toggle-button {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: none; /* Hidden on desktop */
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* Font Size Navigation Bar */
.font-size-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f2f2f2;
    padding: 10px;
}

.font-size-nav label {
    margin-right: 10px;
    font-weight: bold;
}

.font-size-nav button {
    padding: 5px 10px;
    font-size: 20px;
    cursor: pointer;
    margin: 0 5px;
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 5px;
}

.font-size-nav button:hover {
    background-color: #005cb8;
}

/* Ayat Styles */
.ayat {
    background-color: #ffeecb; /* Light yellow */
    border: 2px solid #da9500;
    border-radius: 10px;
    padding: 20px;
    margin: 20px auto;
    width: 80%;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1); /* Card effect */
    max-width: 800px;
}

.ayat h2 {
    font-family: Arial, sans-serif;
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.ayat h1 {
    font-family: Arial, sans-serif;
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

/* Ayat Styles */
.ayat2 {
    background-color: #cbd5ff; /* Light yellow */
    border: 2px solid #000fda;
    border-radius: 10px;
    padding: 20px;
    margin: 20px auto;
    width: 80%;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1); /* Card effect */
    max-width: 800px;
}

.ayat2 h2 {
    font-family: Arial, sans-serif;
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.ayat2 h1 {
    font-family: Arial, sans-serif;
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.p-custom {
    font-family: "Times New Roman", Times, serif;
    font-size: 15px;
    text-align: left;
}

.p-custom-1 {
    font-family: "Times New Roman", Times, serif;
    font-size: 19px;
    text-align: left;
}

/* Align words to the right */
.line {
    display: flex;
    justify-content: flex-end;
    padding: 10px 0;
    border-bottom: 1px solid #ccc;
}

.line2 {
    border-bottom: 1px solid #ccc;
}

.button {
    background-color: #1D1D1B;
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
  }

.line:last-child {
    border-bottom: none;
}

.word {
    padding-right: 5px;
    padding-left: 5px;
    font-family: 'CustomArabicFont', sans-serif;
    font-size: 30px;
    cursor: pointer;
    color: #000;
    border: 0.5px solid rgb(209, 209, 255);
    margin-left: 5px;
    margin-right: 5px;
    position: relative;
}

.word#custom-1 {
    padding-right: 5px;
    padding-left: 5px;
    font-family: 'CustomArabicFont', sans-serif;
    font-size: 30px;
    cursor: pointer;
    color: #000000;
    border: 0.5px solid rgb(54, 224, 11);
    margin-left: 5px;
    margin-right: 5px;
    position: relative;
    background-color: #c3ffb7;
  }

  .word#custom-1:hover {
    color: #188f01;
  }

  .word#custom-2 {
    padding-right: 5px;
    padding-left: 5px;
    font-family: 'CustomArabicFont', sans-serif;
    font-size: 30px;
    cursor: pointer;
    color: #000000;
    border: 0.5px solid rgb(255, 238, 0);
    margin-left: 5px;
    margin-right: 5px;
    position: relative;
    background-color: #fffde6;
  }

  .word#custom-2:hover {
    color: #5e5c00;
  }

.word2 {
    padding: 5px;
    font-family: 'CustomArabicFont', sans-serif;
    color: #000;
}

.word:hover {
    color: #0080ff;
}

/* Tooltip Styling */
.word[data-title] {
    white-space: pre-wrap;
    hyphens: none; /* Prevent hyphenation of words */
}

.word[data-title]::after {
    content: attr(data-title);
    position: absolute;
    bottom: 125%;
    right: 50%;
    transform: translateX(50%);
    background-color: #333;
    color: #fff;
    padding: 5px 8px;
    border-radius: 5px;
    white-space: pre-wrap; /* Allows line breaks and wraps the text inside the tooltip */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 10;
    font-family: Arial, sans-serif;
    font-size: 15px;
    max-width: 250px; /* Limit the tooltip width */
    min-width: 100px;
    overflow-wrap: break-word; /* Ensure long unbreakable words wrap to the next line */
    text-align: left; /* Align text for readability */
}

.word[data-title]:hover::after {
    opacity: 1;
}

.word[data-title]::before {
    content: '';
    position: absolute;
    bottom: 115%;
    right: 50%;
    transform: translateX(50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #333 transparent;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 10;
}

.word[data-title]:hover::before {
    opacity: 1;
}


/* Responsive Design */
@media (max-width: 1000px) {
    .navbar .toggle-button {
        display: block;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    .navbar.active .nav-links {
        display: flex;
    }
    .nav-links li {
        margin: 10px 0;
    }
}

.footer {
    flex: 1;
    background-color: rgb(223, 215, 215);
    color: rgb(23, 24, 27);
    text-align: center;
    padding: 10px;
    font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: 12px;
 }


/* Homepage Banner */
/* Default: large screens */
.hp-banner-d {
    display: block; /* Ensure the desktop banner is visible on larger screens */
  }
  
  .hp-banner-m {
    display: none; /* Hide the mobile banner by default on larger screens */
  }
  
  @media (max-width: 700px) {
    .hp-banner-d {
      display: none; /* Hide the desktop banner on smaller screens */
    }
    
    .hp-banner-m {
      display: block; /* Show the mobile banner on smaller screens */
    }
  }
  
  .hp-banner-d, .hp-banner-m {
    max-width: 100%; /* Ensure images are responsive */
    height: auto; /* Maintain aspect ratio */
    padding: 10px;
    margin: 0 auto; /* Center the images */
  }
  
  .hp-banner {
    height: 250px; 
    width: 100%; 
    background-image: url('hp-bg.jpg'); 
    background-position: center center; 
    background-size: cover; 
    display: flex; 
    align-items: center; 
    justify-content: center;
  }
  
.quote {
    font-style: italic; /* Italicize the quote text */
    margin: 20px;
    padding: 10px 20px;
    text-align: left;
    border-left: 4px solid #da9500; /* Add a vertical line to the left of the quote */
    color: #9c6b01;
}

.caption {
    display: block;
    text-align: left; /* Align the caption to the right */
    margin-top: 10px;
    font-style: normal; /* Normal text style for the caption */
    color: #da9500; /* Lighter color for the caption */
    font-size: 13px;
}

.table-container {
    width: 100%;
    max-width: 800px;
    overflow-x: auto;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background-color: #fff;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background-color: #da9500;
    color: #ffffff;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    white-space: nowrap; /* Prevents wrapping for a cleaner look */
}

tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

tbody tr:hover {
    background-color: #f1f1f1;
}

@media (max-width: 600px) {
    .table-container {
        overflow-x: scroll;
    }
    
    table, thead, tbody, th, td, tr {
        display: block;
    }

    th, td {
        padding: 10px;
        text-align: left;
    }

    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    tr {
        margin-bottom: 10px;
    }

    td {
        border: none;
        position: relative;
        padding-left: 50%;
    }

    td::before {
        position: absolute;
        top: 10px;
        left: 10px;
        padding-right: 10px;
        padding-left: 10px;
        white-space: nowrap;
        font-weight: bold;
        text-align: right;
        vertical-align: middle;
        color: #9c6b01;
        content: attr(data-label); /* Display column headers as labels */
    }
}

#audio1 {
    display: none;
}

#audioPlayer {
    display: none;
}

#audioPlayer.show {
    display: block;
}
