This repository was archived by the owner on Aug 27, 2025. It is now read-only.
Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
202 lines (193 loc) · 4.7 KB
/
Copy pathstyle.css
File metadata and controls
202 lines (193 loc) · 4.7 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
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;700;900&display=swap');
:root {
--soft-peach-color: #FFB99A;
--hard-peach-color: #FF8282;
--background-color: #FFF5F0;
--text-color: #5D4037;
--fever-color: #ffde59;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Noto Sans KR', sans-serif;
background-color: var(--background-color);
color: var(--text-color);
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
-webkit-user-select: none; /* 드래그 방지 */
user-select: none;
}
#container {
width: 100%;
max-width: 420px;
background-color: #fff;
border-radius: 20px;
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
text-align: center;
overflow: hidden;
}
section {
padding: 30px;
display: none;
animation: fadeIn 0.5s;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
/* --- 시작 페이지 --- */
#start-page { display: block; }
.title {
font-size: 28px;
font-weight: 900;
line-height: 1.4;
margin-bottom: 15px;
}
.description {
font-size: 16px;
line-height: 1.6;
margin-bottom: 25px;
}
.faction-selector {
display: flex;
gap: 15px;
}
.faction-card {
width: 50%;
padding: 20px 10px;
border: 3px solid var(--light-gray);
border-radius: 15px;
cursor: pointer;
transition: all 0.2s;
}
.faction-card:hover {
transform: translateY(-5px);
box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.faction-card.soft { border-color: var(--soft-peach-color); }
.faction-card.hard { border-color: var(--hard-peach-color); }
.faction-card h2 { font-size: 18px; margin-bottom: 10px; }
.faction-card img { width: 80%; }
.btn-select {
width: 100%;
padding: 10px;
margin-top: 10px;
border: none;
border-radius: 8px;
color: #fff;
font-weight: 700;
font-size: 16px;
}
.faction-card.soft .btn-select { background-color: var(--soft-peach-color); }
.faction-card.hard .btn-select { background-color: var(--hard-peach-color); }
/* --- 게임 페이지 --- */
.game-ui {
display: flex;
justify-content: space-around;
margin-bottom: 20px;
}
.ui-item .ui-label { font-size: 14px; }
.ui-item .ui-value { font-size: 28px; font-weight: 900; }
#fever-gauge-bar {
width: 100%;
height: 15px;
background-color: #eee;
border-radius: 10px;
margin-bottom: 20px;
overflow: hidden;
}
#fever-gauge {
width: 0%;
height: 100%;
background-color: var(--fever-color);
transition: width 0.1s;
}
.instruction-text {
font-size: 18px;
font-weight: 700;
margin-bottom: 20px;
animation: blink 1.5s infinite;
}
@keyframes blink {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}
#peach-button-container { position: relative; }
#peach-button {
width: 200px;
height: 200px;
font-size: 100px;
border: none;
background: linear-gradient(145deg, var(--soft-peach-color), var(--hard-peach-color));
border-radius: 50%;
box-shadow: 0 5px 15px rgba(0,0,0,0.2);
cursor: pointer;
transition: transform 0.1s;
animation: pulse 1.2s infinite;
}
#peach-button:active {
transform: scale(0.95);
animation: none; /* 클릭 시에는 pulse 애니메이션 일시 중지 */
}
@keyframes pulse {
0% { transform: scale(1); }
50% { transform: scale(1.05); }
100% { transform: scale(1); }
}
#fever-text {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 40px;
font-weight: 900;
color: #fff;
text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
opacity: 0;
animation: fever-anim 1s infinite;
}
@keyframes fever-anim {
0%, 100% { transform: translate(-50%, -50%) scale(1); }
50% { transform: translate(-50%, -50%) scale(1.1); }
}
/* --- 결과 페이지 --- */
.result-rank {
font-size: 32px;
font-weight: 900;
line-height: 1.4;
color: var(--hard-peach-color);
margin-bottom: 10px;
}
.result-score-text { font-size: 18px; margin-bottom: 20px; }
.result-score-text span { font-size: 22px; font-weight: 700; }
.result-desc {
font-size: 16px;
line-height: 1.6;
margin-bottom: 30px;
padding: 15px;
background-color: var(--background-color);
border-radius: 10px;
}
.result-buttons {
display: flex;
flex-direction: column;
gap: 10px;
}
.btn-restart, .btn-action {
width: 100%;
padding: 15px;
font-size: 18px;
font-weight: 700;
border: none;
border-radius: 12px;
cursor: pointer;
transition: opacity 0.2s;
}
.btn-restart:hover, .btn-action:hover { opacity: 0.8; }
.btn-restart { background-color: #eee; color: var(--text-color); }
.btn-action { background-color: #76B900; color: #fff; }