   @font-face {
     font-family: 'Uthman Taha';
     src: url('uthman_taha.ttf') format('truetype');
   }

   * {
            box-sizing: border-box;
             font-family: 'Uthman Taha', sans-serif;
        }

        body {
            background-color: #f1f1f1;
        }

        .grid-container {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            grid-gap: 10px;
            padding: 10px;
            background-color: #f1f1f1;
            animation: fade-in 0.5s ease;

             /* Portrait mode (4x7 grid) */
                grid-template-columns: repeat(4, 1fr);
                grid-template-rows: repeat(7, 1fr);
        }

        /* Landscape mode (7x4 grid) */
        @media only screen and (orientation: landscape) {
            .grid-container {
                grid-template-columns: repeat(7, 1fr);
                grid-template-rows: repeat(4, 1fr);

            }
        }

        @keyframes fade-in {
            0% {
                opacity: 0;
            }
            100% {
                opacity: 1;
            }
        }

        .grid-item {
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 25px;
            font-weight: bold;
            color: #4E2366;
            background-color: #ECE2D5;
            height: 100px;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            border-radius: 25px;

            text-align: center;
line-height: 1.0;
        }

        .grid-item:hover {
            transform: translateY(-5px);
            box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.3);
        }

        .popup-container {
            display: none;
            position: fixed;
            z-index: 1;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0, 0, 0, 0.7);
            animation: fade-in 0.5s ease;
            align-items: center;
            justify-content: center;
        }

        .popup-content {
            background-color: #f1f1f1;
            padding: 20px;
            width: 80%;
            border-radius: 10px;
            box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
            animation: zoom-in 0.5s ease;

            max-height: 80vh;
            overflow-y: auto;

            justify-content: center;
            align-items: center;
        }



        .popup-body {
            padding-top: 20px;
            justify-content: center;
        }




        @keyframes zoom-in {
            0% {
                transform: scale(0.5);
                opacity: 0;
            }
            100% {
                transform: scale(1);
                opacity: 1;
            }
        }

        .popup-content .close {
            color: #aaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .popup-content .close:hover {
            color: #4E2366;
        }

        .popup-grid-item {
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            font-weight: bold;
            color: #4E2366;
            background-color: #f1f1f1;
            border-radius: 5px;
            box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);

            text-align: center;
            line-height: 1.0;




        }

        .popup-letter:active {
            transform: translateY(-5px);
            box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.3);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }


/* menu css */
/* CSS for mobile menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: hidden;
}

.mobile-menu .menu-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 70%;
    height: 100%;
    background-color: #f1f1f1; /* Same background color as body */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active .menu-content {
    transform: translateX(0);
}

.mobile-menu .menu-items {
    list-style: none;
    padding: 20px;
}

.mobile-menu .menu-items li {
    margin-bottom: 15px;
}

.mobile-menu .menu-items li a {
    color: #4E2366; /* Same text color as grid items */
    text-decoration: none;
    font-size: 20px; /* Same font size as grid items */
    font-weight: bold; /* Same font weight as grid items */
}


@keyframes fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.grid-item {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    font-weight: bold;
    color: #4E2366;
    background-color: #ECE2D5;
    height: 100px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 25px;
    text-align: center;
    line-height: 1.0;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.3);
}

.popup-container {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fade-in 0.5s ease;
    align-items: center;
    justify-content: center;
}

.popup-content {
    background-color: #f1f1f1;
    padding: 20px;
    width: 80%;
    border-radius: 10px;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
    animation: zoom-in 0.5s ease;
    max-height: 80vh;
    overflow-y: auto;
    justify-content: center;
    align-items: center;
}

.popup-body {
    padding-top: 20px;
    justify-content: center;
}

@keyframes zoom-in {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.popup-content .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup-content .close:hover {
    color: #4E2366;
}

.popup-grid-container {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto;
}

@media only screen and (orientation: landscape) {
    .popup-grid-container {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: auto;
    }
}

.popup-grid-item {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: #4E2366;
    background-color: #f1f1f1;
    border-radius: 5px;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    line-height: 1.0;
}

.popup-letter:active {
    transform: translateY(-5px);
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* menu css */
 /* CSS for mobile menu */
        .mobile-menu {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 1000;
            overflow: hidden;
        }

        .mobile-menu .menu-content {
            position: absolute;
            top: 0;
            left: 0;
            width: 70%;
            height: 100%;
            background-color: #F1F1F1; /* Same background color as body */
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
            transform: translateX(-100%);
            transition: transform 0.3s ease;
        }

        .mobile-menu.active .menu-content {
            transform: translateX(0);
        }

        .mobile-menu .menu-items {
            list-style: none;
            padding: 20px;
        }

        .mobile-menu .menu-items li {
            margin-bottom: 15px;
        }

        .mobile-menu .menu-items li a {
            color: #4E2366; /* Same text color as grid items */
            text-decoration: none;
            font-size: 15px; /* Same font size as grid items */
            font-weight: regular; /* Same font weight as grid items */
        }

          #title {
                    position: fixed;
                    width: 100%;
                    background-color: #4C2265;
                    top: 0;
                    left: 0;
                    right: 0;
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    padding: 10px 20px;
                    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
                }

                #title h4 {
                    margin: 0;
                    color: white;
                    font-family: 'brandon-grot-w01-light', sans-serif;
                    font-size: 22px;
                }

                #title .logo {
                    width: 50px;
                    height: 50px;
                    border-radius: 50%;
                    margin-left: 10px; /* Adjust as needed */
                }

                #title .menu-icon {
                    cursor: pointer;
                    color: white;
                    font-size: 24px;
                }



.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    opacity: 0;
    pointer-events: none; /* Disable mouse events by default */
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: auto; /* Enable mouse events when active */
}

.menu-content {
    width: 70%;
    height: 80%;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    overflow-y: auto; /* Enable vertical scrolling */
    padding: 20px;
    border-radius: 10px;
}

.menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-items li {
    margin-bottom: 10px;
}

.menu-items li a {
    color: #333;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
}

/* Title Bar */
#title {
    position: fixed;
    width: 100%;
    background-color: #4C2265;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

#title h4 {
    margin: 0;
    color: white;
    font-family: 'brandon-grot-w01-light', sans-serif;
    font-size: 22px;
}

#title .logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-left: 10px; /* Adjust as needed */
}

.menu-icon {
    cursor: pointer;
    color: white;
    font-size: 24px;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 60px; /* Adjust to leave space for the title bar */
    left: 0;
    width: 100%;
    height: calc(100% - 60px); /* Adjust for menu height and leave space for title bar */
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
}

.menu-content {
    width: 70%;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    padding: 20px;
    border-radius: 10px;
}

.menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-items li {
    margin-bottom: 10px;
}

.menu-items li a {
    color: #333;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
}

.arabic-letter {
color:black;
font-size:xx-large;
padding:15px;
}