-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
214 lines (190 loc) · 3.57 KB
/
style.css
File metadata and controls
214 lines (190 loc) · 3.57 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
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
:root {
--bg-gradient: linear-gradient(135deg, #c7eaff, #d7d4ff, #ffd3b6);
--card-bg: rgba(255, 255, 255, 0.7);
--primary: #ff8e4f;
--primary-soft: rgba(255, 142, 79, 0.18);
--text: #3a3a3a;
--muted: #6d6d6d;
--shadow-soft: 0 14px 30px rgba(0, 0, 0, 0.12);
}
* {
box-sizing: border-box;
}
body {
font-family: "Montserrat", sans-serif;
background: var(--bg-gradient);
min-height: 100vh;
margin: 0;
display: flex;
justify-content: center;
align-items: flex-start;
color: var(--text);
padding: 1.5rem;
}
.page-layout {
width: 100%;
max-width: 1100px;
display: grid;
gap: 1.5rem;
grid-template-columns: 1fr;
grid-template-areas:
"app"
"image"
"tips";
}
.app {
grid-area: app;
background: var(--card-bg);
backdrop-filter: blur(14px);
box-shadow: var(--shadow-soft);
padding: 1.8rem 1.6rem;
border-radius: 18px;
}
.app h1 {
margin: 0 0 0.5rem;
font-size: 2.2rem;
color: var(--primary);
}
.tagline {
margin-top: 0;
margin-bottom: 1.5rem;
color: var(--muted);
font-size: 1rem;
line-height: 1.4;
}
.controls {
display: grid;
gap: 0.75rem;
margin-bottom: 1.8rem;
}
label {
font-size: 1rem;
color: var(--muted);
}
select,
input {
width: 100%;
padding: 0.55rem 0.8rem;
border-radius: 999px;
border: 1px solid rgba(0, 0, 0, 0.06);
background: rgba(255, 255, 255, 0.9);
color: var(--text);
outline: none;
font-size: 1rem;
}
select:focus,
input:focus {
border-color: var(--primary);
box-shadow: 0 0 0 2px var(--primary-soft);
}
#random-btn {
margin-top: 0.25rem;
padding: 0.65rem 1rem;
border-radius: 999px;
border: none;
cursor: pointer;
font-weight: 600;
font-size: 1rem;
background: linear-gradient(135deg, #ff8e4f, #ffb469);
color: white;
transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.08s ease;
}
#random-btn:hover {
transform: translateY(-1px);
box-shadow: 0 8px 18px rgba(255, 142, 79, 0.4);
filter: brightness(1.03);
}
.card {
padding: 1.2rem 1rem;
border-radius: 16px;
background: rgba(255, 255, 255, 0.9);
border: 1px solid rgba(0, 0, 0, 0.04);
}
.tips {
margin-top: 1.5rem;
padding: 1.2rem 1rem;
background: rgba(255, 255, 255, 0.85);
border-radius: 16px;
box-shadow: var(--shadow-soft);
}
.tips h3 {
margin-top: 0;
margin-bottom: 0.5rem;
font-size: 1.2rem;
font-weight: 600;
color: var(--primary);
}
#tips-list {
color: var(--muted);
font-size: 0.95rem;
line-height: 1.5;
}
.word-row {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
align-items: baseline;
margin-bottom: 0.25rem;
}
#word {
margin: 0;
font-size: 1.4rem;
}
.phonetic {
font-size: 1rem;
color: var(--muted);
}
.definition {
margin-top: 0.25rem;
margin-bottom: 0.75rem;
font-size: 1rem;
line-height: 1.4;
}
.illustration {
height: 50vh;
overflow: hidden;
border-radius: 18px;
box-shadow: 0 0 12px rgba(255, 142, 79, 1), 0 0 2px rgba(255, 142, 79, 1);
}
.illustration img {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
}
.tips {
grid-area: tips;
margin-top: 0;
padding: 1.2rem 1rem;
background: rgba(255, 255, 255, 0.85);
border-radius: 16px;
box-shadow: var(--shadow-soft);
}
#result {
min-height: 110px;
}
@media (min-width: 800px) {
body {
align-items: flex-start;
padding-top: 3rem;
}
.page-layout {
grid-template-columns: 3fr 2fr;
grid-template-areas:
"app image"
"tips tips";
gap: 2rem;
}
.app {
padding: 2rem 2.2rem;
}
.app h1 {
font-size: 3rem;
}
.illustration {
height: 70vh;
}
.illustration img {
height: 100%;
}
}