@charset "utf-8";
/* CSS Document */


        .container {
            width: 100%;
            display: flex;
            flex-direction: column;
            padding: 20px;
        }
        .meaning-item {
            margin-bottom: 20px;
            border-bottom: 1px solid #ccc;
            padding-bottom: 10px;
        }
        ul {
            margin: 0;
            padding-left: 20px;
        }
        .search-box input {
            width: 100%;
            max-width: 600px;
            padding: 10px;
            font-size: 18px;
            border: 1px solid #ccc;
            border-radius: 5px;
        }
        .search-box button {
            padding: 10px 20px;
            font-size: 18px;
            background-color: #f0f0f0;
            border: 1px solid #ccc;
            border-radius: 5px;
            cursor: pointer;
        }
        .autocomplete-suggestions {
            position: absolute;
            background-color: white;
            border: 1px solid #ccc;
            max-height: 150px;
            overflow-y: auto;
            z-index: 1000;
            width: 100%;
            max-width: 600px;
        }
        .autocomplete-suggestion {
            padding: 10px;
            cursor: pointer;
        }
        .autocomplete-suggestion:hover {
            background-color: #eaeaea;
        }
        .tamil-typewriter {
            margin-top: 20px;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
        }
        .tamil-key {
            width: 40px;
            height: 40px;
            margin: 5px;
            text-align: center;
            line-height: 40px;
            background-color: #f0f0f0;
            border: 1px solid #ccc;
            border-radius: 5px;
            cursor: pointer;
            user-select: none;
        }

/* General Mobile Enhancements */
@media (max-width: 768px) {
    /* Hide Tamil typewriter on mobile devices */
    .tamil-typewriter {
        display: none;
    }

    /* Adjust container padding for smaller screens */
    .container {
        padding: 10px;
    }

    /* Ensure search input is responsive */
    .search-box input[type="text"] {
        width: 100%; /* Full-width input for mobile */
        font-size: 16px; /* Adjust font size for better readability */
        padding: 8px;
    }

    /* Adjust the search button for mobile */
    .search-box button {
        font-size: 16px; /* Reduce font size slightly */
        padding: 8px 12px;
    }

    /* Enhance text visibility on mobile */
    .meaning-item h3, .meaning-item h4, .meaning-item p {
        font-size: 16px; /* Make headings and text slightly larger for readability */
        line-height: 1.5; /* Increase line spacing */
    }

    /* Style the autocomplete suggestions */
    .autocomplete-suggestions {
        font-size: 14px; /* Smaller font for mobile */
        padding: 5px;
    }

    /* Add spacing between suggestions */
    .autocomplete-suggestion {
        margin-bottom: 5px;
    }
}

/* Mobile View: Compact Layout */
@media (max-width: 480px) {
    /* Reduce padding even more for very small screens */
    .container {
        padding: 5px;
    }

    /* Adjust heading font sizes */
    .meaning-item h3, .meaning-item h4 {
        font-size: 14px;
    }

    /* Ensure proper spacing for smaller screens */
    .meaning-item p {
        font-size: 14px;
        margin-bottom: 8px; /* Add space between meanings */
    }

    /* Adjust button alignment and width */
    .search-box button {
        width: 100%; /* Full width for buttons on small screens */
    }
}

/* Navbar Styling */
.navbar {
    background-color: #333; /* Dark background */
    color: white; /* White text */
    width: 100%; /* Full width */
    position: sticky; /* Sticks to top on scroll */
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 0; /* Remove default padding */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto; /* Center align */
    padding: 10px 20px; /* Add space around content */
}

.nav-logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.nav-menu {
    list-style: none; /* Remove bullet points */
    display: flex; /* Align items horizontally */
    margin: 0;
    padding: 0;
}

.nav-item {
    margin-left: 20px; /* Space between menu items */
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease; /* Smooth hover effect */
}

.nav-link:hover {
    color: #ffcc00; /* Change to yellow on hover */
}

/* Responsive for Mobile */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column; /* Stack menu items */
        position: absolute;
        top: 60px; /* Below navbar */
        right: 0;
        width: 100%;
        background-color: #333; /* Same background as navbar */
        display: none; /* Hidden by default */
    }

    .nav-menu.active {
        display: flex; /* Show menu when active */
    }

    .nav-item {
        margin: 10px 0; /* Add vertical spacing */
        text-align: center;
    }

    .nav-toggle {
        display: block; /* Show hamburger icon */
        font-size: 24px;
        color: white;
        cursor: pointer;
    }
}

.nav-toggle {
    display: none; /* Hidden by default */
}

.autocomplete-suggestions {
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    max-height: 150px;
    overflow-y: auto;
    z-index: 1000;
    width: 100%;
}

.autocomplete-suggestion {
    padding: 10px;
    cursor: pointer;
    display: block; /* Ensures each suggestion appears on a new line */
}

.autocomplete-suggestion:hover {
    background-color: #f0f0f0; /* Highlight on hover */
}

