-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
190 lines (175 loc) · 4.94 KB
/
style.css
File metadata and controls
190 lines (175 loc) · 4.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
@import url("https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;600;700&display=swap");
:root {
--bg: #e0e0e0;
--card: rgba(50, 50, 50, 0.9);
--text: #fff;
--accent: #2196f3;
--btn-primary: #2e7d32;
--btn-primary-hover: #256628;
--btn-secondary: #555;
--btn-secondary-hover: #666;
--control-h: 45px; /* consistent control height */
--radius: 10px;
}
body {
margin: 0;
background: var(--bg);
font-family: "EB Garamond", serif;
display: flex;
justify-content: center;
align-items: flex-start;
min-height: 100vh;
padding: 1rem;
}
.card {
width: 1000px;
max-width: 98%;
background: var(--card);
border-radius: 30px;
padding: 3.5rem;
margin: 2rem auto;
backdrop-filter: blur(10px);
box-shadow: 2 28px 50px rgba(0,0,0,.35);
color: var(--text);
}
/* Title (typewriter; caret disappears after 10s via JS) */
.title-animate {
text-align: center;
font-size: 5rem;
font-weight: 200;
text-shadow: 1px 1px 3px rgba(0,0,0,.35);
margin-top: -1rem; /* pulls it up closer to top */
margin-bottom: 1.5rem; /* keeps spacing below consistent */
white-space: nowrap;
overflow: hidden;
border-right: 3px solid white;
animation: typing 3s steps(20, end), blink 0.7s step-end infinite;
}
@keyframes typing { from { width: 0 } to { width: 100% } }
@keyframes blink { from, to { border-color: transparent } 50% { border-color: white } }
/* Labels */
label {
display: block;
text-transform: uppercase;
font-weight: 500;
margin-bottom: 0.6rem; /* space between label and control */
margin-top: 1rem;
letter-spacing: .5px;
font-size: 1rem;
}
.label-left { text-align: left; }
.label-center { text-align: center; }
/* Textarea */
textarea {
width: 98%;
min-height: 150px;
border-radius: var(--radius);
padding: 1rem;
border: none;
resize: none;
background: rgba(255,255,255,0.1);
color: var(--text);
font-family: "EB Garamond", serif;
font-size: 1.1rem;
margin-bottom: 1.5rem;
}
textarea::placeholder { color: #c4c4c4; font-style: italic; }
/* Voice grid: label centered over dropdown ONLY; preview inline to the right */
.voice-grid {
display: grid;
grid-template-columns: 1fr 290px; /* left: dropdown col, right: fixed preview button */
column-gap: 1rem;
align-items: end; /* bottom-align select and button */
margin-bottom: 1.5rem;
}
.voice-col { display: grid; grid-template-rows: auto auto; }
/* Controls */
select, #voiceSelect, #speedSelect {
width: 100%;
height: var(--control-h);
padding: 0 1rem;
border-radius: var(--radius);
border: none;
font-size: 1.2rem;
background: rgba(255,255,255,0.08);
color: var(--text);
font-family: "EB Garamond", serif;
}
/* Preview button matches select height and sits inline */
#previewBtn {
height: var(--control-h);
border-radius: var(--radius);
border: none;
background: var(--btn-secondary);
color: var(--text);
font-weight: 100;
text-transform: uppercase;
font-family: "EB Garamond", serif;
cursor: pointer;
transition: background .25s ease, transform .08s ease;
display: flex; justify-content: center; align-items: center;
padding: 0 18px;
min-width: 120px; /* compact, not oversized */
}
#previewBtn:hover { background: var(--btn-secondary-hover); }
#previewBtn:active { transform: translateY(1px); }
/* Speed row wrapper to keep spacing consistent */
.row-col { margin-bottom: 1.5rem; }
/* Sliders */
.sliders {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 2rem;
margin-top: 1.5rem;
}
.slider-col { text-align: center; }
input[type="range"] {
-webkit-appearance: none;
width: 100%;
height: 6px;
border-radius: 5px;
outline: none;
background: linear-gradient(to right, var(--accent) 50%, #aaa 50%);
}
input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
width: 18px; height: 18px;
border-radius: 50%;
background: var(--accent);
border: 2px solid white;
cursor: pointer;
box-shadow: 0 2px 6px rgba(0,0,0,0.4);
transition: transform .2s, background .2s;
}
input[type="range"]::-webkit-slider-thumb:hover {
transform: scale(1.15);
background: #1976d2;
}
/* Buttons row */
.button-row {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1rem;
margin-top: 2rem;
}
button {
border: none;
border-radius: var(--radius);
padding: 1rem;
font-size: 1.3rem;
font-weight: 100;
text-transform: uppercase;
cursor: pointer;
transition: background .25s ease, transform .08s ease;
color: var(--text);
font-family: "EB Garamond", serif;
}
button:active { transform: translateY(1px); }
.btn-primary { background: var(--btn-primary); }
.btn-primary:hover { background: var(--btn-primary-hover); }
.btn-secondary { background: var(--btn-secondary); }
.btn-secondary:hover { background: var(--btn-secondary-hover); }
/* Icons */
#speakBtn::before { content: "♪"; color: #fff; font-size: 1.3rem; margin-right: 8px; }
#pauseBtn::before { content: "⏸"; margin-right: 8px; }
#stopBtn::before { content: "⏹"; margin-right: 8px; }