-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
552 lines (493 loc) · 11.4 KB
/
style.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
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
body, html {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
position: relative;
overflow: hidden; /* 스크롤 가능하게 설정 */
background-color: rgb(255, 255, 255);
display: flex;
justify-content: center;
align-items: center;
}
.background-grid {
position: absolute;
top: 50%;
left: 50%;
width: 400%;
height: 400%;
background-image: linear-gradient(to right, #d9f0ff 1px, transparent 1px),
linear-gradient(to bottom, #d9f0ff 1px, transparent 1px);
background-size: 20px 20px;
z-index: 0;
transform-origin: center center;
transition: transform 1s ease;
transform: translate(-50%, -50%);
}
.background-grid.rotate-left {
transform: translate(-50%, -50%) rotateX(50deg) rotateY(0deg) rotateZ(-25deg) translateZ(-100px);
}
#reset-button{
position: fixed;
top: 36px;
right: 90px;
padding: 5px 10px; /* 내부 여백 */
font-size: 15px; /* 폰트 크기 */
background-color:#d4c8ed; /* 배경색 */
color: white; /* 글자색 */
border: none; /* 테두리 제거 */
border-radius: 5px; /* 테두리 둥글기 설정 */
cursor: pointer;
z-index: 1000;
font-family: 'Comic Sans MS', cursive, sans-serif;
display: none;
}
#audio-toggleButton{
position: fixed; /* 고정 위치 설정 */
top: 20px; /* 상단 여백 */
right: 20px; /* 우측 여백 */
padding: 5px 10px; /* 내부 여백 */
font-size: 36px; /* 폰트 크기 */
background-color:rgba(0, 0, 0, 0); /* 배경색 */
color: white; /* 글자색 */
border: none; /* 테두리 제거 */
border-radius: 5px; /* 테두리 둥글기 설정 */
cursor: pointer;
z-index: 1000; /* 다른 요소들 위에 표시 */
}
.buildings {
display: none;
position: absolute;
top: -10%;
left: 0%;
z-index: 100; /* 건물 이미지가 격자 무늬 위에 표시되도록 설정 */
padding: 20px;
transition: margin-left 0.3s ease; /* 메인 콘텐츠 이동 시 부드럽게 애니메이션 적용 */
}
#sidebar {
position: fixed;
left: -250px;
top: 0;
width: 250px;
height: 100%;
background-color: #f1f1f1;
transition: left 0.3s ease-in-out;
z-index: 1001;
}
#sidebar.open {
left: 0;
}
#toggleBtn {
position: fixed;
left: 0px;
top: 400px;
z-index: 1002;
background-color: #d4c8ed;
border-radius: 5px;
border: none;
padding: 10px;
cursor: pointer;
display: none;
color: white;
font-size: 20px;
font-family: 'Comic Sans MS', cursive, sans-serif;
}
.sidebar-content {
padding: 20px;
margin-top: 2px;
}
.sidebar-button {
display: block;
width: 100%;
padding: 10px;
margin-bottom: 10px;
background-color: #ffcccb;
color: white;
border-radius: 5px;
border: none;
cursor: pointer;
text-align: center;
font-family: 'Comic Sans MS', cursive, sans-serif;
}
.floating_mini_icons {
position: absolute;
width: 100%;
height: 100%;
pointer-events: none;
}
.floating_mini_icons img {
position: absolute;
width: 50px;
height: 50px;
animation: float 5s infinite ease-in-out;
}
@keyframes float {
0% { transform: translateY(0); }
50% { transform: translateY(-20px); }
100% { transform: translateY(0); }
}
.center_elements {
position: relative;
text-align: center;
z-index: 2;
}
.center_elements img#main-image{
width: 200px;
height: auto;
transition: transform 1s ease;
}
.center_elements img#main-image.rotate-left {
transform: rotateX(50deg) rotateY(0deg) rotateZ(-25deg) translateZ(-100px);
}
.center_elements button {
display: block;
margin: 20px auto;
padding: 10px 20px;
font-size: 16px;
background-color: #ffcccb;
border: none;
border-radius: 5px;
cursor: pointer;
color: white;
font-family: 'Comic Sans MS', cursive, sans-serif;
}
.center_elements button:hover {
background-color: #fab0b0;
}
.center_elements p {
display: none;
position: relative;
top: -80px;
left: 80px;
font-size: 30px;
color: rgb(66, 103, 183);
font-family: 'Gamja Flower', cursive;
}
.center_elements p.rotate-left {
transform: rotateX(50deg) rotateY(0deg) rotateZ(-25deg) translateZ(-100px);
}
.center_elements img#angle-down {
display: none;
position: relative;
top: -100px;
left: 350px;
width: 100px;
height: auto;
margin-top: 20px;
cursor: pointer;
}
.center_elements img#angle-down.rotate-left {
transform: rotateX(50deg) rotateY(0deg) rotateZ(-25deg) translateZ(-100px);
}
.backyong-before {
position: absolute;
top: 80%;
left: -600px; /*초기 위치 설정 */
transform: translateX(200%) translateY(-20%);
transition: left 2s ease;
z-index: 3; /*가장 위쪽에 배치*/
width: 80px;
height: auto;
cursor: pointer;
}
.bbugong-before {
position: absolute;
top: 78%;
left: -600px; /* 초기 위치 설정 */
transform: translateX(650%) translateY(-40%);
transition: left 2s ease;
z-index: 3; /* 가장 위쪽에 배치 */
width: 60px;
height: auto;
cursor: pointer;
}
.backyong {
position: absolute;
top: 78%;
left: calc(-380px + 100%);
z-index: 1000; /*가장 위쪽에 배치*/
width: 80px;
height: auto;
cursor: pointer;
display: none;
}
.bbugong {
position: absolute;
top: 75.5%;
left: calc(-130px + 100%);
z-index: 1000; /*가장 위쪽에 배치 */
width: 60px;
height: auto;
cursor: pointer;
display: none;
}
#backyong-heart {
position: absolute;
top: 77%;
/* left: 65.5%; */
left: calc(90px + 50%);
width: 20px;
height: auto;
display: none;
}
#backyong-heart.active{
display: block;
}
#bbugong-heart {
position: absolute;
top: 73.5%;
left: calc(312px + 50%);
width: 15px;
height: auto;
display: none;
}
#bbugong-heart.active{
display: block;
}
#backyong-speech-bubble {
position: absolute;
top: 77%;
left: calc(-60px + 50%);
background-color: #ffcccb;
border: 1px solid #d9f0ff;
padding: 10px;
border-radius: 5px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
display: none;
}
#backyong-speech-bubble.active{
display: block;
}
#bbugong-speech-bubble {
position: absolute;
top: 73%;
left: calc(332px + 50%);
background-color: #d4c8ed;
border: 1px solid #d9f0ff;
padding: 10px;
border-radius: 5px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
display: none;
}
#bbugong-speech-bubble.active {
display: block;
}
#backyong-speech-bubble p {
margin: 0;
font-size: 15px;
line-height: 1.4;
color: white;
font-family: 'Single Day', cursive;
}
#bbugong-speech-bubble p {
margin: 0;
font-size: 18px;
line-height: 1.4;
color: white;
font-family:'Dongle', cursive;
}
/*백경이 팝업*/
.backyong-popup{
display: none;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: #f8e7e6;
padding: 20px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
z-index: 1000;
width: 400px;
height: 300px;
border: none;
border-radius: 10px;
text-align: center;
}
.popup-backyong-speech-bubble {
width: 180px;
left: 50%;
transform: translateX(50%);
background-color: #ffcccb;
border: 1px solid #d9f0ff;
padding: 10px;
border-radius: 5px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
#popup-backyong-speech-bubble p {
margin: 0;
font-size: 17px;
color: white;
font-family: 'Single Day', cursive;
}
.popup-backyong-img {
width: 150px;
height: auto;
margin: 0 auto;
}
.popup-backyong-buttons {
width: 100%;
top: 10px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.popup-backyong-check,
.popup-backyong-close {
width: 160px; /* 버튼의 고정된 너비 */
margin: 0 10px; /* 버튼 사이의 간격 */
padding: 10px 18px;
font-size: 16px;
background-color: #ffffff;
border: 1px solid #d9f0ff;
border-radius: 5px;
cursor: pointer;
color: rgb(62, 59, 59);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
font-family: 'Gamja flower', cursive, sans-serif;
text-align: center;
}
/*뿌공이 팝업*/
.bbugong-popup{
display: none;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: #eee7fd;
padding: 20px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
z-index: 1000;
width: 400px;
height: 300px;
border: none;
border-radius: 10px;
text-align: center;
}
.popup-bbugong-speech-bubble {
width: 180px;
left: 50%;
transform: translateX(50%);
background-color: #d4c8ed;
border: 1px solid #d9f0ff;
padding: 10px;
border-radius: 5px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
#popup-bbugong-speech-bubble p {
margin: 0;
font-size: 17px;
color: white;
font-family: 'Single Day', cursive;
}
.popup-bbugong-img {
top: 10px;
width: 120px;
height: auto;
margin: 50px auto 10px;
}
.popup-bbugong-buttons {
width: 100%;
margin: 20px auto 10px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.popup-bbugong-check,
.popup-bbugong-close {
width: 160px; /* 버튼의 고정된 너비 */
margin: 0 10px; /* 버튼 사이의 간격 */
padding: 10px 18px;
font-size: 16px;
background-color: #ffffff;
border: 1px solid #d9f0ff;
border-radius: 5px;
cursor: pointer;
color: rgb(62, 59, 59);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
font-family: 'Gamja flower', cursive, sans-serif;
text-align: center;
}
#modal-overlay{
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
z-index: 999;
}
/*백경이 팝업 선택*/
.backyong.animate-right {
animation: moveRight 0.5s forwards;
}
@keyframes moveRight {
from {
transform: translateX(-100);
}
to {
transform: translateX(140px) translateY(-20px);
}
}
/*뿌공이 팝업 선택*/
.bbugong.animate-left {
animation: moveLeft 0.5s forwards;
}
@keyframes moveLeft {
from {
transform: translateX(-100);
}
to {
transform: translateX(-80px) translateY(20px);
}
}
.modal {
display: none;
position: fixed;
z-index: 1002;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0,0,0,0.4);
}
.modal-content {
text-align: center;
background-color: #fefefe;
margin: 6% auto;
padding: 20px;
border: 1px solid #888;
width: 80%;
height: 600px;
max-width: 800px;
border-radius: 10px; /* 모달 창 모서리를 둥글게 만듭니다 */
box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* 선택적: 그림자 효과 추가 */
}
.modal-img{
width: 600px;
height: 400px;
margin-top:5px;
border-radius: 10px; /* 모달 창 모서리를 둥글게 만듭니다 */
box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* 선택적: 그림자 효과 추가 */
}
.close {
color: #aaa;
float: right;
font-size: 28px;
font-weight: bold;
cursor: pointer;
}
.close:hover,
.close:focus {
color: black;
text-decoration: none;
cursor: pointer;
}
h2{
font-size: 30px;
font-family: 'Jua', cursive;
}
.modal-content p{
font-size: 18px;
font-family: 'Gamja flower', cursive;
font-weight: 800;
margin-top: 5px;
margin-bottom: 0px;
}