glitchcraft/app/styles.css
Ole-Morten Duesund cb7c456a8f Remove clear button to simplify UI
The clear button was unnecessary clutter - users can simply select and delete
text in the input field if they want to clear it.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-18 20:56:49 +02:00

453 lines
8.1 KiB
CSS

/**
* Styles for Text Corruptor
* Dark theme with glitch-inspired aesthetics
*/
:root {
--bg-primary: #0f0f14;
--bg-secondary: #1a1a2e;
--bg-tertiary: #16213e;
--text-primary: #eaeaea;
--text-secondary: #a8a8b3;
--accent: #00ff88;
--accent-hover: #00cc6a;
--error: #ff3366;
--border: #2a2a3e;
--shadow: rgba(0, 255, 136, 0.1);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: var(--bg-primary);
color: var(--text-primary);
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
background-image: repeating-linear-gradient(
0deg,
transparent,
transparent 2px,
rgba(0, 255, 136, 0.03) 2px,
rgba(0, 255, 136, 0.03) 4px
);
}
.container {
width: 100%;
max-width: 800px;
background: var(--bg-secondary);
border-radius: 16px;
padding: 40px;
box-shadow:
0 10px 40px rgba(0, 0, 0, 0.5),
0 0 100px var(--shadow);
border: 1px solid var(--border);
}
header {
text-align: center;
margin-bottom: 40px;
}
h1 {
font-size: 2.5rem;
font-weight: 700;
margin-bottom: 10px;
background: linear-gradient(135deg, var(--accent), #00ffff);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
text-shadow: 0 0 40px var(--shadow);
animation: glitch 3s infinite;
}
@keyframes glitch {
0%,
100% {
text-shadow: 0 0 40px var(--shadow);
}
25% {
text-shadow:
-2px 0 var(--error),
2px 0 var(--accent);
}
50% {
text-shadow:
2px 0 var(--error),
-2px 0 var(--accent);
}
75% {
text-shadow: 0 0 40px var(--shadow);
}
}
.subtitle {
color: var(--text-secondary);
font-size: 1.1rem;
}
.controls {
display: flex;
flex-wrap: wrap;
gap: 20px;
margin-bottom: 30px;
padding: 20px;
background: var(--bg-tertiary);
border-radius: 12px;
border: 1px solid var(--border);
}
.control-group {
display: flex;
align-items: center;
gap: 10px;
flex: 1;
min-width: 200px;
}
.controls label {
color: var(--text-secondary);
font-size: 0.95rem;
white-space: nowrap;
min-width: 80px;
}
#zalgoMode {
flex: 1;
padding: 8px 12px;
background: var(--bg-primary);
border: 2px solid var(--border);
border-radius: 8px;
color: var(--text-primary);
font-size: 0.95rem;
outline: none;
transition: all 0.3s ease;
min-width: 120px;
}
#zalgoMode:focus {
border-color: var(--accent);
box-shadow: 0 0 10px var(--shadow);
}
#zalgoMode option {
background: var(--bg-primary);
color: var(--text-primary);
}
#intensity {
flex: 1;
-webkit-appearance: none;
appearance: none;
height: 6px;
background: var(--border);
border-radius: 3px;
outline: none;
transition: all 0.3s ease;
}
#intensity::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 20px;
height: 20px;
background: var(--accent);
border-radius: 50%;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 0 10px var(--shadow);
}
#intensity::-moz-range-thumb {
width: 20px;
height: 20px;
background: var(--accent);
border-radius: 50%;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 0 10px var(--shadow);
}
#intensity:hover::-webkit-slider-thumb {
transform: scale(1.2);
box-shadow: 0 0 20px var(--shadow);
}
#intensity:hover::-moz-range-thumb {
transform: scale(1.2);
box-shadow: 0 0 20px var(--shadow);
}
#intensityValue {
min-width: 30px;
text-align: center;
font-weight: 600;
color: var(--accent);
font-size: 1.1rem;
}
.text-area-container {
margin-bottom: 25px;
position: relative;
}
.text-area-container label {
display: block;
margin-bottom: 10px;
color: var(--text-secondary);
font-size: 0.95rem;
text-transform: uppercase;
letter-spacing: 1px;
}
textarea {
width: 100%;
min-height: 150px;
padding: 15px;
background: var(--bg-tertiary);
border: 2px solid var(--border);
border-radius: 12px;
color: var(--text-primary);
font-size: 1rem;
font-family: 'Courier New', monospace;
resize: vertical;
outline: none;
transition: all 0.3s ease;
}
textarea:focus {
border-color: var(--accent);
box-shadow: 0 0 20px var(--shadow);
}
#outputText {
cursor: pointer;
position: relative;
}
#outputText:hover {
background: rgba(0, 255, 136, 0.05);
}
.copy-notification {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: var(--accent);
color: var(--bg-primary);
padding: 12px 24px;
border-radius: 8px;
font-weight: 600;
opacity: 0;
pointer-events: none;
transition: all 0.3s ease;
z-index: 10;
}
.copy-notification.show {
opacity: 1;
animation: pulse 0.5s ease;
}
@keyframes pulse {
0% {
transform: translate(-50%, -50%) scale(0.8);
}
50% {
transform: translate(-50%, -50%) scale(1.1);
}
100% {
transform: translate(-50%, -50%) scale(1);
}
}
footer {
text-align: center;
margin-top: 30px;
padding-top: 20px;
border-top: 1px solid var(--border);
}
footer p {
color: var(--text-secondary);
font-size: 0.9rem;
}
/* Mobile responsiveness */
@media (max-width: 768px) {
body {
padding: 10px;
}
.container {
padding: 20px;
max-width: 100%;
}
h1 {
font-size: 2rem;
}
.subtitle {
font-size: 1rem;
}
.controls {
flex-direction: column;
gap: 15px;
padding: 15px;
}
.control-group {
flex-direction: column;
align-items: stretch;
gap: 8px;
min-width: auto;
}
.controls label {
min-width: auto;
font-size: 0.9rem;
}
#zalgoMode {
width: 100%;
padding: 12px;
font-size: 1rem;
min-width: auto;
}
#intensity {
width: 100%;
height: 8px;
}
#intensity::-webkit-slider-thumb {
width: 24px;
height: 24px;
}
#intensity::-moz-range-thumb {
width: 24px;
height: 24px;
}
textarea {
min-height: 140px;
font-size: 1rem;
padding: 15px;
}
.copy-notification {
padding: 15px 25px;
font-size: 1rem;
}
}
/* Small mobile devices */
@media (max-width: 480px) {
.container {
padding: 15px;
}
h1 {
font-size: 1.8rem;
}
.controls {
padding: 12px;
gap: 12px;
}
textarea {
min-height: 120px;
font-size: 16px; /* Prevents zoom on iOS */
}
#zalgoMode {
font-size: 16px; /* Prevents zoom on iOS */
}
}
/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
/* Touch device specific styles */
textarea {
font-size: 16px; /* Prevents zoom on mobile browsers */
}
#zalgoMode {
font-size: 16px;
padding: 15px;
}
#outputText {
cursor: pointer;
-webkit-user-select: all;
user-select: all;
}
}
/* Glitch effect for corrupted text */
#outputText {
animation: subtle-glitch 5s infinite;
}
@keyframes subtle-glitch {
0%,
100% {
filter: none;
}
92% {
filter: none;
}
93% {
filter: drop-shadow(-2px 0 var(--error)) drop-shadow(2px 0 var(--accent));
}
94% {
filter: none;
}
}
/* Loading state */
@keyframes spin {
to {
transform: rotate(360deg);
}
}
/* Shake animation for witching hour */
@keyframes subtle-shake {
0%,
100% {
transform: translateX(0);
}
25% {
transform: translateX(-1px);
}
75% {
transform: translateX(1px);
}
}
/* Print styles */
@media print {
body {
background: white;
color: black;
}
.container {
box-shadow: none;
border: 1px solid #ccc;
}
}