body {
    font-family: 'Tajawal', 'Droid Arabic Kufi', Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

.header {
    text-align: center;
    margin: 20px 0;
}

.faresnet {
    width: 70px;
    height: 70px;
    transition: transform 0.3s, filter 0.3s;
}

.faresnet:hover {
    transform: scale(1.2);
}

.faresIntro {
    display: block;
    padding: 20px;
    max-width: 888px;
    margin: 0 auto;
    overflow-x: hidden;
    font-size: 18px;
    border-radius: 15px;
}

.apps {
    display: block;
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
    overflow-x: hidden;
}

.apps ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.apps ul li {
    overflow: hidden;
    border-bottom: 1px solid #ddd;
    background-color: #fff;
    margin-bottom: 10px;
    border-radius: 10px;
    transition: background-color 0.3s;
}

.apps ul li:hover {
    background-color: #f0f0f0;
}

.apps ul li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #000;
    padding: 15px;
}

.apps ul li a img {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    margin-right: 15px;
}

.apps ul li a.icons img {
    border: 1px solid #000;
}

.apps ul li a span {
    font-size: 18px;
    margin: 15px;
}

@media (max-width: 767px) {
    .apps {
        padding: 10px;
    }
    .apps ul li a {
        flex-direction: column;
        text-align: center;
    }
    .apps ul li a img {
        width: 80px;
        height: 80px;
        margin: 0 0 10px 0;
    }
    .apps ul li a span {
        font-size: 18px;
    }
}

#footerStart {
    clear: both;
    width: 100%;
    padding: 20px 0;
    color: #000;
    text-align: center;
    background: none;
}

#InFooter {
    max-width: 900px;
    margin: 0 auto;
}

#FooterLeft {
    margin-bottom: 20px;
}

#FooterLeft a {
    color: #000;
    text-decoration: none;
}

#FooterLeft a:hover {
    color: #00ccff;
    text-decoration: none;
}

#faresfooter img {
    margin: 0 10px;
    filter: brightness(0);
}

.footerfaresIn {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-icon {
    margin: 0 10px;
    transition: transform 0.3s;
}

.footer-icon:hover {
    transform: scale(1.2);
}

#FooterLeft .lab {
    margin-right: 10px;
    color: #000;
    text-decoration: none;
}

#FooterLeft .lab:hover {
    color: #00ccff;
    text-decoration: none;
}


/* Dark Mode Support */

@media (prefers-color-scheme: dark) {
    body {
        background-color: #181818;
        color: #e0e0e0;
    }
    .faresIntro {
        background-color: transparent;
    }
    .apps ul li {
        background-color: #242424;
        border-bottom: 1px solid #333;
    }
    .apps ul li:hover {
        background-color: #333;
    }
    .apps ul li a {
        color: #e0e0e0;
    }
    .apps ul li a.icons img {
        border: 1px solid #e0e0e0;
    }
    #footerStart {
        background: none;
        color: #e0e0e0;
    }
    #FooterLeft a {
        color: #e0e0e0;
    }
    #faresfooter img {
        filter: brightness(1);
        /* Invert icon color to white */
    }
    .footer-icon:hover {
        transform: scale(1.2);
        filter: brightness(1.5);
        /* Brighten icon on hover */
    }
    #FooterLeft .lab {
        color: #e0e0e0;
    }
    #FooterLeft .lab:hover {
        color: #00ccff;
    }
    .header img {
        filter: invert(1);
        /* Make the logo white */
    }
}

.language-button {
    font-family: 'Tajawal', 'Droid Arabic Kufi', Helvetica, sans-serif;
    background-color: #0056b3;
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 10px 2px;
    cursor: pointer;
    border-radius: 50px;
    transition: background-color 0.3s, transform 0.3s;
}

.language-button:hover {
    background-color: #007bff;
    transform: scale(1.05);
}

.fade {
    animation: fadeEffect 0.5s;
}

@keyframes fadeEffect {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
