
    input, select, textarea, button {
        font-size: 16px !important;
    }

    /* If you want your keyboard keys to stay small visually but not trigger zoom */
    .key {
        touch-action: manipulation;
    }
    /* 1. DEFINE THEMES */
    :root {
        --bg-color: #fff;
        --text-color: #000;
        --tile-border: #3a3a3c;
        --key-bg: #D4D7DB;
        --modal-bg: #1e1e20;
        --border-color: #3a3a3c;
    }

    body.light-mode {
        --bg-color: #ffffff;
        --text-color: #121213;
        --tile-border: #d3d6da;
        --key-bg: #d1d5db;
        --modal-bg: #f3f4f6;
        --border-color: #d3d6da;
    }

    /* 2. BASE STYLES & THEME APPLICATION */
    body { 
        background-color: var(--bg-color); 
        color: var(--text-color);
        transition: background-color 0.3s, color 0.3s;
        margin: 0;
        font-family: sans-serif;
    }

    /* Standard text elements follow the theme */
    h1, h2, h3, h4, p, span, li {
        color: var(--text-color);
    }

    /* Main Header Title - Follows Theme */
    header h1 {
        color: var(--text-color) !important;
    }

    header {
        border-bottom: 1px solid var(--border-color);
    }

    #hint-text{
        color:#000 !important;
        font-weight:600 !important;
    
    }
    /* 3. GAME TILES */
    .tile {
        width: 50px; height: 50px; 
        border: 2px solid var(--tile-border);
        display: flex; align-items: center; justify-content: center;
        font-size: 1.5rem; font-weight: bold; text-transform: uppercase;
        color: var(--text-color);
        transition: all 0.2s;
    }

    /* Status Colors - Always White Text for Readability */
    .correct { background-color: #538d4e !important; border-color: #538d4e !important; color: white !important; }
    .present { background-color: #b59f3b !important; border-color: #b59f3b !important; color: white !important; }
    .absent { background-color: #3a3a3c !important; border-color: #3a3a3c !important; color: white !important; }
    
    /* 4. KEYBOARD */
    .key {
        background-color: var(--key-bg);
        color: var(--text-color);
        font-weight: 700;
        text-transform: uppercase;
        display: flex; 
        align-items: center; 
        justify-content: center;
        border-radius: 0.375rem;
        flex: 1 1 0%;
        font-size: 0.75rem;
        cursor: pointer;
        transition: all 150ms;
        min-height: 58px; 
        border: none;
        padding: 0;
    }

    .enter, .backspace { flex: 1.5 1 0% !important; }
    .key:hover { opacity: 0.8; }

    @media (min-width: 640px) { .key { font-size: 1rem; } }

    .key.correct { background-color: #538d4e !important; color: white !important; }
    .key.present { background-color: #b59f3b !important; color: white !important; }
    .key.absent { background-color: #3a3a3c !important; color: white !important; }

    /* 5. DARK-LOCKED ELEMENTS (Modals, Start Menu, Notifications) */
    #start-menu, 
    #settings-modal > div,
    #message-container,
    .notification,
    .game-modal {
        background-color: #fff !important;
        color: #000;
        border: 1px solid #fff !important;
    }

    .trendle-title h1, p{
        color:#000 !important;
    }
    /* Ensure text inside these dark containers stays white */
    #start-menu, #start-menu li,
    #settings-modal h1, #settings-modal h2, #settings-modal span, #settings-modal a,
    #message-container, .notification p {
        color: #ffffff !important;
    }

    /* 6. SETTINGS UI & TOGGLE SWITCH */
    .setting-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 0;
        border-bottom: 1px solid #3a3a3c !important; /* Locked dark border */
    }

    .switch {
        position: relative;
        display: inline-block;
        width: 50px;
        height: 24px;
    }

    .switch input { opacity: 0; width: 0; height: 0; }

    .slider {
        position: absolute;
        cursor: pointer;
        top: 0; left: 0; right: 0; bottom: 0;
        background-color: #ccc;
        transition: .4s;
        border-radius: 24px;
    }

    .slider:before {
        position: absolute;
        content: "";
        height: 18px; width: 18px;
        left: 3px; bottom: 3px;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
    }

    input:checked + .slider { background-color: #538d4e; }
    input:checked + .slider:before { transform: translateX(26px); }
 #modal-title{color:#000}

 .bg-trendle-gray{
    background: #F3F5F6;
 }
