-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
283 lines (247 loc) · 4.7 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* 기본 스타일 */
html,
body {
height: 100%;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}
.container {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 90%;
max-width: 1000px;
height: 90vh;
display: flex;
flex-direction: column;
background: white;
border-radius: 25px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
padding: 30px;
overflow-y: auto;
}
/* 진행 상태 바를 상단에 배치 */
.progress-bar {
width: 100%;
height: 10px;
background: #e0e0e0;
border-radius: 5px;
margin-bottom: 20px; /* 아래쪽 여백 추가 */
position: sticky; /* 스크롤 시에도 상단에 고정 */
top: 0;
z-index: 1000;
}
.progress {
height: 100%;
background: #1a73e8;
border-radius: 5px;
transition: width 0.3s;
}
/* 시작 화면 */
.start-screen {
text-align: center;
padding: 40px;
margin: auto;
width: 100%;
}
.logo {
width: 300px; /* 기본 너비 설정 */
height: 200px; /* 원본 비율 유지 (약 1.5:1) */
object-fit: contain; /* 이미지 비율 유지 */
margin: 20px auto;
animation: bounce 2s infinite;
}
@keyframes bounce {
0%,
100% {
transform: translateY(0);
}
50% {
transform: translateY(-10px);
}
}
.slide {
display: none;
background: white;
border-radius: 15px;
padding: 30px;
margin-bottom: 20px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
animation: fadeIn 0.5s;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.slide.active {
display: block;
}
.image-container {
width: 100%;
height: 300px;
overflow: hidden;
border-radius: 10px;
margin: 20px 0;
}
.image-container img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.3s;
}
.image-container img:hover {
transform: scale(1.05);
}
.button {
padding: 12px 25px;
background: #1a73e8;
color: white;
border: none;
border-radius: 25px;
cursor: pointer;
font-size: 16px;
transition: all 0.3s;
margin: 10px;
}
.button:hover {
background: #1557b0;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}
.navigation {
display: flex;
justify-content: space-between;
margin-top: 20px;
}
.progress-bar {
width: 100%;
height: 10px;
background: #e0e0e0;
border-radius: 5px;
margin: 20px 0;
}
.food-section {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 20px;
margin: 20px 0;
}
.food-item {
background: #fff;
padding: 15px;
border-radius: 10px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
text-align: center;
}
.food-item img {
width: 200px; /* 이미지 너비 고정 */
height: 200px; /* 이미지 높이 고정 */
object-fit: cover;
border-radius: 8px;
margin-bottom: 10px;
}
.progress {
height: 100%;
background: #1a73e8;
border-radius: 5px;
transition: width 0.3s;
}
.quiz {
display: none;
background: white;
padding: 30px;
border-radius: 15px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.quiz-question {
margin: 20px 0;
padding: 15px;
background: #f8f9fa;
border-radius: 10px;
}
.result-message {
margin: 10px 0;
padding: 10px;
border-radius: 5px;
}
.correct {
background: #d4edda;
color: #155724;
}
.incorrect {
background: #f8d7da;
color: #721c24;
}
.final-score {
text-align: center;
margin-top: 30px;
padding: 20px;
background: #f8f9fa;
border-radius: 10px;
}
/* 기본 이미지 컨테이너 스타일 */
.image-container {
width: 100%;
height: 300px;
overflow: hidden;
border-radius: 10px;
margin: 20px 0;
}
/* 파스타 이미지 스타일 */
.pasta-image {
height: 400px; /* 컨테이너 높이 조정 */
}
.pasta-image img {
width: 100%;
height: 100%;
object-fit: cover;
aspect-ratio: 9/2;
}
/* 피자 이미지 스타일 */
.pizza-image {
height: 350px;
width: 350px; /* 정사각형 컨테이너 */
margin: 20px auto; /* 가운데 정렬 */
}
.pizza-image img {
width: 100%;
height: 100%;
object-fit: cover;
}
#copyright {
font-size: 5;
color: grey;
}
@media (max-width: 768px) {
.container {
padding: 10px;
}
.button {
padding: 10px 20px;
font-size: 14px;
}
}
/* iPad Pro 11" - Portrait */
@media only screen and (device-width: 834px) and (device-height: 1194px) and (-webkit-min-device-pixel-ratio: 2) and (orientation: portrait) {
/* CSS rules */
}
/* iPad Pro 11" - Landscape */
@media only screen and (device-width: 1194px) and (device-height: 834px) and (-webkit-min-device-pixel-ratio: 2) and (orientation: landscape) {
/* CSS rules */
}