-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstyles.css
658 lines (571 loc) · 10.5 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
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
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
body {
font-family: Arial, sans-serif;
width: 96%;
margin: 0 auto;
padding: 0;
color: #333;
background-color: white;
}
.container {
width: 80%;
max-width: 1200px;
margin: 0 auto;
padding: 20px 0;
}
header,
.hero,
.gallery,
.section,
footer {
background-color: #f0f0f0;
border-radius: 10px;
margin: 20px 0;
padding: 40px;
}
ul {
list-style-type: none;
padding: 0;
margin: 0;
}
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
background-color: rgba(255, 255, 255, 0.8);
padding: 20px 30px;
border-radius: 10px;
position: fixed;
width: 96%;
top: 0;
left: 50%;
transform: translateX(-50%);
z-index: 1000;
backdrop-filter: blur(10px);
}
.navbar__logo {
display: flex;
font-size: 24px;
color: #333;
}
.navbar__logo a {
padding: 4px 0;
text-decoration: none;
color: inherit;
}
.navbar__logo-image {
height: 32px;
width: auto;
margin: 0;
padding: 0;
vertical-align: middle;
}
.navbar__menu {
display: flex;
list-style: none;
padding-left: 0;
margin: 0;
position: static;
display: flex;
flex-direction: row;
}
@media (max-width: 768px) {
.navbar__menu {
background-color: #ffffff;
flex-direction: column;
display: none;
position: absolute;
top: 70px;
left: 0;
width: 100%;
}
}
.navbar__menu.active {
display: block; /* 메뉴 활성화 시 블록으로 표시 */
}
.navbar__menu li {
padding: 8px 12px;
text-align: center;
word-break: keep-all;
}
.navbar__menu li a {
text-decoration: none;
color: inherit;
}
/* 768px 이상 화면에서 active 클래스 효과 */
@media (min-width: 768px) {
.navbar__menu li a.active {
color: #1a871a;
}
.navbar__menu li a:hover {
/* 768px 이상에서 hover 효과 추가 */
color: #1a871a;
}
}
/* 768px 미만 화면에서 hover 효과 (햄버거 메뉴) */
@media (max-width: 768px) {
.navbar__menu li a {
/* .active 클래스 없이 li a에 hover 효과 */
display: inline-block;
width: 100%;
padding: 8px 12px;
}
.navbar__menu li a:hover {
color: #1a871a;
}
}
.navbar__toggleBtn {
font-size: 24px;
color: #333;
display: none;
}
/* 히어로 섹션 스타일 */
.hero,
.gallery,
.section {
display: flex;
flex-direction: column;
justify-content: center;
align-items: flex-start;
text-align: left;
word-break: keep-all;
padding: 60px;
}
.hero {
background: url("./image/heroSection.jpg") no-repeat center center/cover;
color: #333;
height: 700px;
}
.hero h2 {
font-size: 2.5em;
}
.hero p {
font-size: 1.5em;
word-break: keep-all;
}
.hero .btn {
display: inline-block;
margin-top: 20px;
padding: 10px 20px;
background: white;
border: 1px solid #333;
color: #333;
text-decoration: none;
word-break: keep-all;
border-radius: 20px;
}
/* 갤러리 섹션 스타일 */
.gallery h1,
.section h2 {
text-align: center;
word-break: keep-all;
margin: 20px 0 10px 0;
}
.section p {
line-height: 200%;
word-break: keep-all;
}
.section .container {
display: flex;
flex-direction: row;
gap: 0px;
@media (max-width: 768px) {
flex-direction: column;
}
}
.gallery .container {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
}
.image-item {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
overflow: hidden;
cursor: pointer;
transition: transform 0.3s;
}
.image-item:hover {
transform: scale(1.05);
}
.image-item img {
width: 100%;
height: 200px;
object-fit: cover;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
figcaption {
margin-top: 10px;
font-size: 14px;
color: #555;
text-align: center;
}
/* 모달 창 스타일 */
/* 공통 모달 스타일 */
.modal {
display: none;
position: fixed;
z-index: 1001;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: hidden;
background-color: rgba(0, 0, 0, 0.5);
}
.modal-content {
text-align: center;
word-break: keep-all;
background-color: #fff;
position: fixed;
bottom: -100%;
left: 50%;
transform: translateX(-50%);
padding: 20px;
border-radius: 10px;
width: 97%;
max-width: 1500px;
height: calc(100% - 67.5px);
overflow-y: auto;
animation: slideUp 0.5s forwards;
scrollbar-width: none;
-ms-overflow-style: none;
}
.modal-content::-webkit-scrollbar {
width: 0;
height: 0;
}
/* 모달 애니메이션 */
@keyframes slideUp {
from {
top: 100%;
}
to {
top: 67.5px;
}
}
.modal-close {
position: absolute;
top: 20px;
right: 20px;
color: #fa8072;
font-size: 32px;
font-weight: bold;
}
.modal-close:hover,
.modal-close:focus {
color: #ff0000;
text-decoration: none;
cursor: pointer;
}
/* 반응형 스타일 */
@media (max-width: 768px) {
.navbar__menu {
display: none;
flex-direction: column;
align-items: center;
width: 100%;
}
.navbar__toggleBtn {
display: block;
}
.hero,
.gallery,
.section {
padding: 30px;
}
.hero h2 {
font-size: 2em;
word-break: keep-all;
}
.hero p {
font-size: 1.2em;
word-break: keep-all;
}
.gallery .container,
.section .container {
grid-template-columns: 1fr 1fr;
gap: 10px;
}
.modal-content {
width: 95%;
height: calc(100% - 67.5px);
}
}
@media (max-width: 480px) {
.gallery .container,
.section .container {
grid-template-columns: 1fr;
}
.modal-content {
width: 90%;
height: calc(100% - 67.5px);
}
}
.modal-content img {
max-width: 80%;
height: auto;
margin: 0 auto;
}
/* Journal 섹션 */
.journal.container,
.faq-container {
display: flex;
gap: 0px;
}
@media (max-width: 768px) {
.faq-container {
display: flex;
flex-direction: column;
}
}
@media (max-width: 480px) {
.faq-container {
display: flex;
flex-direction: column;
}
}
.journal-entry {
margin-bottom: 15px;
padding: 10px;
border-bottom: 1px solid #ddd;
}
.journal-entry h4 {
margin: 0;
font-size: 18px;
}
.journal-entry p {
margin: 5px 0;
color: #555;
word-break: keep-all;
}
.form-groups {
flex: 1;
}
.journal-entries-section {
flex: 2;
}
#journalForm {
display: flex;
flex-direction: column;
gap: 15px;
}
#journalForm .form-group {
display: flex;
flex-direction: column;
}
#journalForm input,
#journalForm textarea {
padding: 10px;
margin: 10px;
border-radius: 5px;
border: 1px solid #ccc;
}
#journalEntries {
text-align: center;
word-break: keep-all;
padding: 20px;
margin: 10px;
background-color: #f9f9f9;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
/* FAQ 스타일 */
.question-form,
#journalEntries {
border: 1px solid lightgray;
}
.accordion-section {
margin: 0 10px; /* 좌우 margin을 줄임 */
}
.accordion-section + .question-form {
margin-top: 10px; /* 두 섹션 사이의 상하 간격을 줄임 */
}
.accordion label {
display: flex;
justify-content: space-between;
cursor: pointer;
padding: 10px;
}
.accordion em {
transition: transform 0.3s ease;
}
.accordion input:checked + label em {
transform: rotate(180deg);
}
.accordion-title {
display: flex;
align-items: center;
padding: 10px;
}
.accordion-title h2 {
margin: 0;
flex-grow: 1;
}
.fa-chevron-down::before {
content: "\f078";
font-size: 15px;
padding-left: 10px;
}
.accordion {
width: 70%;
margin: 10px auto;
border-radius: 15px;
overflow: hidden;
border: 1px solid #ddd;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
cursor: pointer;
}
.btn {
background-color: #4caf50;
border: 1px solid #4caf50;
color: white;
padding: 10px 20px;
text-align: center;
word-break: keep-all;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 10px;
cursor: pointer;
border-radius: 5px;
}
.btn:hover {
background-color: #218838;
}
.btn-no-hover:hover {
background-color: white;
}
/* 라디오 버튼 숨기기 */
input[id*="answer"] {
display: none;
}
input[id*="answer"] + label {
display: block;
padding: 20px;
border-bottom: 1px solid #ddd;
color: #333;
font-weight: 900;
background: #f9f9f9;
cursor: pointer;
position: relative;
}
input[id*="answer"]:last-of-type + label {
border-bottom: none;
}
input[id*="answer"] + label + div {
max-height: 0;
transition: all 0.35s;
overflow: hidden;
background: #fafafa;
font-size: 12px;
padding: 0;
}
input[id*="answer"]:checked + label + div {
max-height: 250px;
padding: 0 20px;
}
input[id*="answer"] + label em {
position: absolute;
top: 50%;
right: 10px;
margin-top: -15px;
disaplay: flex;
justify-content: center;
display: inline-block;
background-size: cover;
}
.accordion-section {
text-align: center;
word-break: keep-all;
}
/* 질문 작성 섹션 */
.question-form {
flex: 1; /* 질문 작성 섹션의 너비를 1로 설정 */
margin: auto;
padding: 20px;
background-color: #f9f9f9;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.question-form h2 {
margin-bottom: 10px;
}
#questionForm {
display: flex;
flex-direction: column;
gap: 15px;
}
#questionForm .form-group {
display: flex;
flex-direction: column;
}
#questionForm input {
padding: 10px;
border-radius: 5px;
border: 1px solid #ccc;
}
/* Footer 스타일 */
footer {
text-align: center;
word-break: keep-all;
padding: 20px;
color: #333;
background-color: #f0f0f0;
border-radius: 10px;
}
footer p {
margin: 0;
word-break: keep-all;
}
/* 모바일 대응: 작은 화면에서는 더 좁게 */
@media screen and (max-width: 768px) {
.accordion {
width: 90%; /* 작은 화면에서는 더 좁게 */
}
}
.info__container {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 20px; /* 박스 사이 간격 */
margin-top: 20px;
margin: 30px auto;
@media (max-width: 768px) {
display: flex;
flex-direction: column;
}
}
.info__box {
flex-grow: 1; /* 가용 공간을 차지하게 설정 */
height: 550px; /* 고정된 높이 */
text-align: center;
word-break: keep-all;
padding: 20px;
border: 1px solid #ddd;
border-radius: 10px;
background-color: #f9f9f9;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
transition: background-color 0.3s ease;
@media (max-width: 768px) {
height: 520px;
}
}
.info__image {
width: 100%;
height: 400px; /* 이미지 높이 고정 */
object-fit: cover; /* 이미지 비율을 유지하면서 크기에 맞게 자름 */
border-radius: 10px;
}
.info__box h4 {
margin-top: 5px;
font-size: 1.5rem;
}
.info__box p {
margin-top: 2px;
font-size: 1rem;
color: #555;
word-break: keep-all;
}