.header-zws { grid-column: 1 / -1; text-align: center; font-size: 2em; color: #333; background: linear-gradient(45deg, rgba(42, 23, 55, 1) 0%, rgba(87, 199, 133, 1) 50%, rgba(237, 221, 83, 1) 100%); } body { background-color: transparent; background: linear-gradient(45deg, rgba(42, 23, 55, 1) 0%, rgba(87, 199, 133, 1) 50%, rgba(237, 221, 83, 1) 100%); background-size: auto auto; } .footer-ags { grid-column: 1 / -1; text-align: center; padding: 20px 10px; font-size: 14px; color: #666; background: linear-gradient(45deg, rgba(42, 23, 55, 1) 0%, rgba(87, 199, 133, 1) 50%, rgba(237, 221, 83, 1) 100%); } .grid-container-ags { gap: 10px; background-image: linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px), linear-gradient(to right, rgba(0, 0, 0, 0.15) 1px, transparent 1px); background-color: transparent; background-size: 20px 20px; padding: 10px; box-sizing: border-box; width: auto; } .grid-item-ags { background-color: transparent; padding: 10px; font-size: 16px; } .container { padding: 10px 10px 10px 10px; margin: 15px, 15px; width: auto; border: 1px solid hsl(140, 50%, 50%); border-radius: 15px; background-color: transparent; font-family: Tahoma, Verdana, sans-serif; font-size: 16px; text-transform: uppercase; } .input-container { position: relative; padding: 20px 10px; border: 1px solid hsl(140, 50%, 50%); border-radius: 15px; width: auto; margin: 30px 1px; background-color: transparent; font-family: Tahoma, Verdana, sans-serif; text-transform: uppercase; text-align: center; } .input-field { width: auto; height: auto; padding: 10px 10px 10px 10px; margin: 15px 15px 15px 15px; background-color: #f0f0f0; border: 2px solid hsl(140, 50%, 50%); border-radius: 4px; font-size: 16px; outline: none; text-transform: lowercase; } .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; } /* Focusable version: show when focused */ .sr-only-focusable:active, .sr-only-focusable:focus { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal; } .button { margin: 5px 5px 5px 5px; padding: 5px 5px; background-color: #ffffff; color: #228422; border: 1px solid #228B22; border-radius: 6px; text-decoration: none; display: inline-block; font-size: 20px; font-weight: bold; transition: background-color 0.3s, color 0.3s; } .button:hover { background-color: #228B22; color: #ffffff; transform: scale(1.2); } .tooltip { position: relative; display: inline-block; cursor: pointer; } .tooltip .tooltiptext { visibility: hidden; width: 120px; background-color: #fff; color: #000; text-align: center; border-radius: 6px; padding: 5px; position: absolute; z-index: 1; bottom: 125%; left: 50%; margin-left: -60px; opacity: 0; transition: opacity 0.3s; font-family: Tahoma, Verdana, sans-serif; font-size: 12px; text-transform: none; } .tooltip:hover .tooltiptext { visibility: visible; opacity: 1; } a { color: #0055cc; text-decoration: underline; } a:link, a:visited { color: (internal value); text-decoration: none; cursor: auto; } a:link:active, a:visited:active { color: (internal value); } a:hover, a:focus { color: #003d99; text-decoration: none; outline: none; } a:focus, button:focus, input:focus { outline: 3px solid #ffcc00; outline-offset: 2px; } .about-anagram-solver { font-family: Arial, sans-serif; line-height: 1.6; color: #333; padding: 20px; background-color: #f9f9f9; border: 1px solid #ddd; border-radius: 8px; margin: 20px 0; } .about-anagram-solver h2 { color: #444; margin-bottom: 10px; } .about-anagram-solver ul, .about-anagram-solver ol about-anagram-solver p { margin-left: 20px; padding-left: 10px; } .about-anagram-solver li { margin-bottom: 8px; } .search-form { padding: 10p 10px; width: auto; height: auto; background-color: transparent; margin-bottom: 20px; display: flex; gap: 10px; align-items: center; } .word-box { position: relative; display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; margin: 3px; background-color: transparent; border-radius: 4px; font-size: 20px; cursor: pointer; transition: background-color 0.3s; } .word-box:hover { background-color: #e8f0fe; /* slight hover highlight */ } .speaker-icon { opacity: 0; transform: scale(0.8); transition: opacity 0.3s ease, transform 0.3s ease; font-size: 16px; color: #666; } .word-box:hover .speaker-icon { opacity: 1; transform: scale(1); } .score-badge { position: absolute; top: -5px; right: -5px; background: #fff; color: black; font-size: 10px; padding: 2px 5px; border-radius: 10px; width: 8px; height: 8px; display: inline-block; } #backToTopBtn { display: none; /* Hidden by default */ position: fixed; bottom: 40px; right: 30px; z-index: 99; font-size: 18px; border: none; outline: none; background-color: #555; color: white; cursor: pointer; padding: 12px 16px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.3); transition: opacity 0.3s; } #backToTopBtn:hover { background-color: #333; } .result-group { max-height: 300px; /* scrollable if too long */ overflow-y: auto; padding: 10px; margin-bottom: 20px; color: #eee; background-color: transparent; text-align: center; } .result-grid { display: flex; flex-direction: column; gap: 12px; margin: 0 auto; } .toggle-sort { background: none; border: 1px solid #ccc; font-size: 18px; padding: 5px 10px; width: auto; cursor: pointer; border-radius: 4px; margin-left: 4px; transition: background 0.2s; } .toggle-sort:hover { background-color: #eee; } .active-sort { font-weight: bold; background-color: #dbeafe; /* light blue highlight */ color: #1e3a8a; /* dark blue text */ border-color: #1e3a8a; } #voiceButton { position: relative; background-color: #e0f2fe; border: 1px solid #38bdf8; color: #0ea5e9; font-size: 20px; border-radius: 50%; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; overflow: hidden; } #voiceButton:hover { background-color: #bae6fd; } #voiceButton:focus { transform: scale(1.05); } #wave { position: absolute; width: 100%; height: 100%; background: radial-gradient(circle, rgba(14,165,233,0.4) 20%, transparent 70%); border-radius: 50%; opacity: 0; pointer-events: none; animation: wavePulse 1.5s infinite ease-in-out; } @keyframes wavePulse { 0% { transform: scale(1); opacity: 0.6; } 50% { transform: scale(1.4); opacity: 0.3; } 100% { transform: scale(1); opacity: 0.6; } } .listening #wave { opacity: 1; } @keyframes pulse { 0% { opacity: 0.4; } 50% { opacity: 1; } 100% { opacity: 0.4; } } /* Tooltip */ .tooltip { position: absolute; top: 120%; left: 50%; transform: translateX(-50%); background-color: #333; color: #fff; padding: 6px 10px; border-radius: 5px; white-space: nowrap; font-size: 14px; visibility: hidden; opacity: 0; transition: opacity 0.3s; z-index: 10; } @keyframes dots { 0% { content: ''; } 33% { content: '.'; } 66% { content: '..'; } 100% { content: '...'; } } .tooltip::after { content: ''; animation: dots 1s steps(3, end) infinite; margin-left: 4px; } .listening + .tooltip { visibility: visible; animation: pulse 1.5s ease-in-out infinite; opacity: 1; } input:focus, button:focus, a:focus { outline: 3px solid #ffcc00; outline-offset: 2px; box-shadow: 0 0 5px rgba(79, 70, 229, 0.6); transition: outline 0.2s ease, box-shadow 0.2s ease; } .alert { padding: 10px; margin-top: 10px; border-radius: 6px; font-size: 16px; } .alert.info { background-color: #e6f7ff; color: #005999; } .alert.error { background-color: #ffe6e6; color: #990000; border: 1px solid #990000; padding: 10px; border-radius: 6px; } /* ==== Floating Voice Button ==== */ .floating-voice-button { position: fixed; bottom: 80px; /* slightly above the mobile search bar */ right: 20px; background-color: #0057d9; color: #fff; border: none; border-radius: 50%; width: 60px; height: 60px; font-size: 28px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 8px rgba(0,0,0,0.2); cursor: pointer; z-index: 1000; transition: background-color 0.3s, transform 0.3s; } .floating-voice-button:hover { background-color: #0045b5; transform: scale(1.05); } @media (max-width: 768px) { .floating-voice-button { bottom: 120px; /* move a bit higher because of sticky mobile search */ } } /* ==== Sliding Tooltip ==== */ #floating-voice-tooltip { position: fixed; bottom: 85px; right: 90px; background: #222; color: #fff; padding: 6px 12px; border-radius: 20px; font-size: 14px; opacity: 0; transform: translateX(20px); pointer-events: none; transition: opacity 0.4s ease, transform 0.4s ease; z-index: 1000; font-family: Arial, sans-serif; white-space: nowrap; } /* Show state (slide in) */ #floating-voice-tooltip.show { opacity: 1; transform: translateX(0); } /* Pulsing effect while visible */ @keyframes floatingTooltipPulse { 0% { opacity: 0.6; } 50% { opacity: 1; } 100% { opacity: 0.6; } } #floating-voice-tooltip.pulsing { animation: floatingTooltipPulse 2s infinite; } .collapsible-section { margin: 20px 0; } .collapsible-button { background-color: #4CAF50; color: white; padding: 10px 20px; font-size: 16px; border: none; cursor: pointer; width: 100%; text-align: left; border-radius: 8px; } .collapsible-content { display: none; font-size: 16px; overflow: hidden; padding: 15px; background-color: #f9f9f9; border-radius: 8px; margin-top: 5px; } /* ==== Mobile-Responsive Tweaks ==== */ @media (max-width: 768px) { body { padding: 15px; } .result-grid { background-color: transparent; gap: 16px; } .result-group { background-color: transparent; padding: 15px; max-height: 250px; } .word-box { font-size: 14px; padding: 6px 10px; margin: 4px; } button { width: 100%; padding: 14px; font-size: 18px; } input[type="text"], input[type="search"] { font-size: 18px; padding: 14px; } } .input-container { display: flex; flex-direction: column; gap: 10px; align-items: stretch; position: relative; padding: 20px 10px; border: 1px solid hsl(140, 50%, 50%); border-radius: 15px; margin: 30px auto; width: auto; background-color: white; font-family: Tahoma, Verdana, sans-serif; text-transform: uppercase; text-align: center; } .button-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-start; } .button, .toggle-sort { padding: 8px 12px; font-size: 16px; cursor: pointer; } .voice-container { position: relative; } .tooltip { position: absolute; top: -25px; left: 50%; transform: translateX(-50%); background: #333; color: white; padding: 4px 8px; border-radius: 4px; font-size: 13px; opacity: 0.9; white-space: nowrap; display: none; } #voiceButton.listening + .tooltip { display: block; } .disclaimer-wp { background-color: #fff8dc; border: 1px solid #ffd700; padding: 10px 15px; border-radius: 8px; font-family: Arial, sans-serif; font-size: 14px; color: #555; margin-top: 20px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); } .disclaimer-wp p { margin: 0; } .disclaimer-wp strong { color: #d2691e; } .header-content { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; text-align: center; gap: 20px; } .header-icon { flex-shrink: 0; } .header-text { flex: 1; min-width: 250px; } .breadcrumb { list-style: none; padding: 0; margin: 1em 0; display: flex; flex-wrap: wrap; font-size: 14px; color: #fff; } .breadcrumb li + li::before { content: "›"; padding: 0 8px; color: #ff8; } .breadcrumb a { color: #ff22cc; text-decoration: none; } .breadcrumb a:hover { text-decoration: underline; } 