/* ================== NAMES OF ALLAH PAGE ================== */

/* --- Custom Font for Names --- */
@font-face {
    font-family: NamesOfAllah;
    src: url('../Fonts/NamesOfAllah.otf') format('opentype');
}

/* --- Page Title --- */


/* --- Table Styling --- */

main {

    margin-bottom: 150px;
}
table {
    width: 80%;
    margin: 20px auto; /* Centers the table horizontally */
    border-collapse: collapse;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    font-size: 1.9rem;
}

thead {
    background-color: var(--accent-color);
    color: white;
}

th, td {
    padding: 15px 30px;
    text-align: center;
    border: 1px solid #ddd;
}

th {
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

caption {
    text-align: center;
    margin-bottom: 10px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--secondary-color);
}

/* --- Arabic Name Styling --- */
.names-of-Allah {
    font-family: NamesOfAllah, Thuluth;
    font-size: 8.3rem;
    transition: color 0.3s ease-in-out;
}

/* --- Hover Effect --- */
.names-of-Allah:hover {
    color: aqua;
}

table tr td:nth-child(3) {
    direction: rtl; /* Ensures right-to-left text direction for Arabic */
    text-align: center;
    font-family: 'Amiri', serif;
    font-size: 1.3em;
}

/* --- Link Styling --- */
a {
    text-decoration: none;
    font-style: normal;
    font-weight: normal;
    color: var(--text-color);
}

main a:visited {
    text-decoration: none;
    color: inherit;
}

main a:hover {
    text-decoration: underline;
    color: var(--accent-color);
}

/* --- Responsive Styles --- */
@media (max-width: 768px) {
    table {
        width: 90%;
        font-size: 1.6rem;
    }

    th, td {
        padding: 10px;
        font-size: 1.4rem;
    }

    thead {
        display: none; /* Hide table header */
    }

    tr {
        display: block;
    }

    td {
        display: block;
        text-align: center;
        padding: 10px 5px;
    }

    td:before {
        content: attr(data-label);
        font-weight: bold;
        display: block;
        margin-bottom: 5px;
        color: var(--secondary-color);
        text-transform: uppercase;
    }

    .names-of-Allah {
        font-size: 4.5rem; /* Adjust Arabic font size for smaller screens */
    }

    h1 {
        font-size: 2.5rem;
    }
}
