 <style>
        body {
            font-family: Arial, sans-serif;
        }

        .dropdown {
            position: relative;
            display: inline-block;
        }

        #lang_hndlr {
            cursor: pointer;
            background-color: transparent; /* Transparent background */
            color: white; /* White text color */
            padding: 15px 30px; /* Increased padding */
            border: none; /* Removed border */
            border-radius: 5px;
            font-size: 20px; /* Increased font size */
            display: flex;
            align-items: center;
            gap: 8px; /* Space between flag and text */
            transition: background-color 0.3s ease, transform 0.2s ease;
            margin-top: 10px; /* Adjusted margin */
        }

        .flag-icon {
            width: 28px;
            height: 22px;
        }

        .dropdown-content {
            display: none; /* Initially hidden */
            position: absolute;
            background-color: #ffffff;
            border: 1px solid #ddd;
            min-width: 240px;
            max-height: 400px;
            overflow-y: auto;
            z-index: 1;
            padding: 10px;
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
            box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
            transition: opacity 0.3s ease, transform 0.3s ease;
            opacity: 0;
            transform: translateY(-10px);

            /* Add margin for distance */
            margin-top: 10px; /* Adjusted distance between dropdown and button */
        }

        .dropdown:hover .dropdown-content {
            display: grid;
            opacity: 1;
            transform: translateY(0);
        }

        .dropdown-content a {
            color: black;
            text-decoration: none;
            display: flex;
            align-items: center;
            font-size: 15px;
            padding: 5px;
            gap: 7px;
            transition: background-color 0.3s, color 0.3s;
        }

        .dropdown-content a:hover {
            background-color: #28a745;
            color: white;
            border-radius: 5px;
        }

        /* Adjust styles for mobile screens */
        @media (max-width: 768px) {
            #lang_hndlr {
                margin-top: 17px; /* Adjust top margin */
                margin-right: -280px; /* Adjust right margin */
                position: absolute;
                right: 0; /* Align to the right */
                font-size: 20px; /* Adjust font size for mobile */
                border: 0.5px solid black; /* Ultra-thin black border */
                border-radius: 5px; /* Rounded corners */
                background-color: white; /* Background color for visibility */
                color: black; /* Text color for contrast */
                padding: 4px 5px; /* Reduced padding */
            }

            .flag-icon {
                width: 20px; /* Smaller flag width */
                height: 16px; /* Smaller flag height */
            }

            .dropdown-content {
                margin-top: 100px; /* Adjust spacing for mobile */
                margin-left: 40px; /* Adjust spacing for mobile */

            }
        }
    </style>