-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
409 lines (361 loc) · 7.96 KB
/
styles.css
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
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
body {
font-family: Arial, sans-serif;
text-align: center;
background-color: #dfdfdf;
color: #333;
margin: 0;
padding: 0;
}
/* Navbar styles */
.navbar {
background-color: #4CAF50; /* Bright green for a lively feel */
padding: 10px 20px;
position: sticky; /* Ensures it stays at the top while scrolling */
top: 0;
width: 100%;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
z-index: 1000;
}
.navbar-container {
display: flex;
justify-content: center; /* Centers the links */
align-items: center;
}
.nav-link {
color: white; /* White text for contrast */
text-decoration: none;
font-size: 1.2em;
margin: 0 15px;
padding: 5px 10px;
transition: background-color 0.3s ease, color 0.3s ease;
}
.nav-link:hover {
background-color: #45a049; /* Slightly darker green on hover */
color: #fff;
border-radius: 4px;
}
.nav-link:active {
background-color: #3e8e41; /* Even darker green when clicked */
}
input[type=text]:focus {
border: 3px solid #555;
background-color: rgb(225, 255, 224);
}
input[type=text] {
border: 3px solid #ccc;
-webkit-transition: 0.5s;
transition: 0.5s;
outline: none;
}
.container {
margin: 50px auto;
padding: 20px;
max-width: 500px;
background: #fff;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
border-radius: 8px;
text-align: center;
}
h1 {
font-size: 2.5em;
color: #4caf50;
margin-bottom: 20px;
}
#hiragana-char {
font-size: 4em;
color: #333;
margin: 20px 0;
}
.checkbox-wrapper-9 {
display: flex;
flex-direction: column;
gap: 10px;
}
.tgl {
margin: 5px;
}
.tgl-btn {
margin-left: 10px;
}
#user-input {
font-size: 1em;
padding: 10px;
width: calc(100% - 40px); /* Account for padding and border */
max-width: 400px;
margin: 10px auto;
border: 1px solid #ccc;
border-radius: 4px;
display: flex;
}
button {
font-size: 1em;
padding: 10px 20px;
background-color: #4caf50;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
margin-top: 10px;
}
button:hover {
background-color: #5acf60;
}
#feedback {
font-size: 1em;
margin-top: 10px;
font-weight: bold;
}
.score-attempts {
display: flex;
justify-content: center;
}
p {
margin: 10px 0;
font-size: 1.5em;
line-height: 1.6;
}
#score {
font-weight: bold;
color: #459d49;
margin: 12px;
}
#attempts {
font-weight: bold;
color: #686767;
margin: 12px;
}
#percentage {
font-weight: bold;
color: #000000;
margin: 11px;
}
.check {
display: flex;
justify-content: center;
margin-top: 20px;
}
.ch {
display: flex;
justify-content: center;
}
@media (max-width: 600px) {
.ch {
display: flex;
flex-wrap: wrap;
gap: 16px;
justify-content: space-between;
padding: 16px;
}
}
/* Petit écran (mobile) */
@media (max-width: 600px) {
.check {
flex: 1 1 calc(50% - 25px); /* Chaque élément occupe 25% avec un espace entre eux */
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
gap: 0px;
margin: 0px;
padding: 0px;
background-color: #d0eacb;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);/* Les éléments occupent toute la largeur */
}
.para {
margin: 0px;
font-size: 1em;
}
.navbar {
width: auto;
padding: 5px 5px;
}
.home-footer {
position: absolute;
bottom: 0;
display: none;
left: 38%;
font-size: small;
width: auto;
}
#hiragana-char {
margin: 0px;
}
}
/* Écran moyen */
@media (min-width: 601px) and (max-width: 1024px) {
.check {
flex: 1 1 calc(50% - 16px); /* Chaque élément occupe 50% */
}
}
.check-box {
margin: 16px;
display: flex;
}
h4 {
font-weight: normal;
}
.checkbox-wrapper-9 .tgl {
display: none;
}
.checkbox-wrapper-9 .tgl,
.checkbox-wrapper-9 .tgl:after,
.checkbox-wrapper-9 .tgl:before,
.checkbox-wrapper-9 .tgl *,
.checkbox-wrapper-9 .tgl *:after,
.checkbox-wrapper-9 .tgl *:before,
.checkbox-wrapper-9 .tgl + .tgl-btn {
box-sizing: border-box;
}
.checkbox-wrapper-9 .tgl::-moz-selection,
.checkbox-wrapper-9 .tgl:after::-moz-selection,
.checkbox-wrapper-9 .tgl:before::-moz-selection,
.checkbox-wrapper-9 .tgl *::-moz-selection,
.checkbox-wrapper-9 .tgl *:after::-moz-selection,
.checkbox-wrapper-9 .tgl *:before::-moz-selection,
.checkbox-wrapper-9 .tgl + .tgl-btn::-moz-selection,
.checkbox-wrapper-9 .tgl::selection,
.checkbox-wrapper-9 .tgl:after::selection,
.checkbox-wrapper-9 .tgl:before::selection,
.checkbox-wrapper-9 .tgl *::selection,
.checkbox-wrapper-9 .tgl *:after::selection,
.checkbox-wrapper-9 .tgl *:before::selection,
.checkbox-wrapper-9 .tgl + .tgl-btn::selection {
background: none;
}
.checkbox-wrapper-9 .tgl + .tgl-btn {
outline: 0;
display: block;
width: 4em;
height: 2em;
position: relative;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.checkbox-wrapper-9 .tgl + .tgl-btn:after,
.checkbox-wrapper-9 .tgl + .tgl-btn:before {
position: relative;
display: block;
content: "";
width: 50%;
height: 100%;
}
.checkbox-wrapper-9 .tgl + .tgl-btn:after {
left: 0;
}
.checkbox-wrapper-9 .tgl + .tgl-btn:before {
display: none;
}
.checkbox-wrapper-9 .tgl:checked + .tgl-btn:after {
left: 50%;
}
.checkbox-wrapper-9 .tgl-flat + .tgl-btn {
padding: 2px;
transition: all 0.2s ease;
background: #fff;
border: 4px solid #f2f2f2;
border-radius: 2em;
}
.checkbox-wrapper-9 .tgl-flat + .tgl-btn:after {
transition: all 0.2s ease;
background: #f2f2f2;
content: "";
border-radius: 1em;
}
.checkbox-wrapper-9 .tgl-flat:checked + .tgl-btn {
border: 4px solid #56df5b;
}
.checkbox-wrapper-9 .tgl-flat:checked + .tgl-btn:after {
left: 50%;
background: #4caf50;
}
.about {
position: fixed;
bottom: 0;
right: 0;
margin: 15px;
}
.about .tooltip {
visibility: hidden;
opacity: 0;
width: max-content; /* Adjust width to content */
background-color: #3eaf59; /* Tooltip background color */
color: #fff; /* Tooltip text color */
text-align: center;
padding: 5px 10px;
border-radius: 5px;
position: absolute;
bottom: 120%; /* Position above the image */
left: -120%;
transform: translateX(-50%);
transition: opacity 0.3s ease-in-out;
z-index: 10; /* Ensure tooltip appears on top */
white-space: nowrap; /* Prevent text from wrapping */
font-size: 12px; /* Adjust font size */
font-size: 14px; /* Adjust font size */
font-family: 'Arial', sans-serif; /* Change the font family */
font-weight: normal;
color: #ffffff; /* Make the text bold */
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2); /* Add a shadow for better contrast */
}
.about:hover .tooltip {
visibility: visible;
opacity: 1;
}
.about img {
width: 20px; /* Set the width of the image */
height: 20px; /* Set the height of the image */
border-radius: 50%; /* Make the image circular (if it's square) */
object-fit: cover; /* Ensure the image covers the area without distorting */
transition: transform 0.3s ease; /* Add a smooth transition effect */
}
.about img:hover {
transform: scale(1.1); /* Scale the image when hovered */
}
/* Introduction Section */
.intro-section {
background-color: #f0f9f4; /* Light green background for a fresh look */
padding: 40px 20px;
text-align: center;
border-radius: 10px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
margin: 40px auto;
max-width: 900px;
}
.intro-section h2 {
font-size: 2.5em;
color: #4CAF50; /* Bright green for a fresh vibe */
margin-bottom: 20px;
font-family: 'Arial', sans-serif;
}
.intro-section p {
font-size: 1.2em;
color: #333;
line-height: 1.6;
margin-bottom: 20px;
font-family: 'Arial', sans-serif;
max-width: 80%;
margin: 0 auto;
}
.home-footer {
position: absolute;
bottom: 0;
margin: 15px;
left: 38%;
font-size: small;
width: auto;
}
@media (max-width: 600px) {
.intro-section {
background-color: #f0f9f4;
padding: 20px 5px;
text-align: center;
border-radius: 10px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
margin: auto;
max-width: 900px;
}
}