Kims12 commited on
Commit
9f342ec
·
verified ·
1 Parent(s): 751d683

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +126 -36
style.css CHANGED
@@ -1,74 +1,109 @@
 
1
  body {
2
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
3
- background-color: #f4f4f4;
4
  margin: 0;
5
  padding: 0;
 
 
 
 
6
  }
7
 
8
  .container {
9
  width: 90%;
10
  max-width: 800px;
11
- margin: 50px auto;
12
- background: #fff;
13
- padding: 30px;
14
- box-shadow: 0 0 10px rgba(0,0,0,0.1);
15
- border-radius: 8px;
 
16
  }
17
 
18
  h1 {
19
  text-align: center;
20
- color: #333;
 
21
  margin-bottom: 20px;
22
  }
23
 
24
  h2 {
25
- color: #555;
26
- margin-bottom: 15px;
 
 
27
  }
28
 
29
  .question {
30
- margin-bottom: 20px;
 
 
 
 
 
 
 
 
31
  }
32
 
33
  .question p {
34
- font-size: 1.1em;
35
- margin-bottom: 10px;
36
- color: #333;
37
  }
38
 
39
  label {
40
  display: block;
41
- margin-bottom: 8px;
42
  font-size: 1em;
43
- color: #555;
 
 
 
 
 
 
44
  }
45
 
46
  input[type="radio"] {
47
- margin-right: 10px;
 
 
48
  }
49
 
50
  button {
51
- padding: 10px 20px;
52
- background-color: #5A67D8;
53
- color: #fff;
54
  border: none;
55
- border-radius: 5px;
56
  cursor: pointer;
57
  font-size: 1em;
58
- margin: 5px;
59
- transition: background-color 0.3s ease;
60
  }
61
 
62
  button:hover {
63
- background-color: #434190;
 
 
 
 
 
 
 
 
 
 
 
64
  }
65
 
66
  .next-button, .submit-button {
67
- float: right;
68
  }
69
 
70
  .prev-button {
71
- float: left;
72
  background-color: #A0AEC0;
73
  }
74
 
@@ -76,40 +111,95 @@ button:hover {
76
  background-color: #718096;
77
  }
78
 
 
 
 
 
 
 
 
 
79
  .clearfix::after {
80
  content: "";
81
  clear: both;
82
  display: table;
83
  }
84
 
 
85
  #result-page {
86
  text-align: center;
 
 
 
 
 
 
87
  }
88
 
89
  #result-text {
90
  text-align: left;
91
- margin-bottom: 20px;
92
- color: #333;
 
 
 
 
 
 
93
  }
94
 
95
  #result-image {
96
- max-width: 100%;
97
  height: auto;
98
- margin-bottom: 20px;
99
- border-radius: 8px;
 
100
  }
101
 
102
- @media (max-width: 600px) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
103
  .container {
104
- padding: 20px;
 
 
 
 
 
 
 
 
 
 
 
 
105
  }
106
 
107
  button {
108
  width: 100%;
109
- margin: 10px 0;
110
  }
111
 
112
- .next-button, .submit-button, .prev-button {
113
- float: none;
 
 
 
 
 
114
  }
115
  }
 
1
+ /* 기본 스타일 및 폰트 설정 */
2
  body {
3
+ font-family: 'Noto Sans KR', sans-serif;
4
+ background: linear-gradient(135deg, #ece9e6, #ffffff);
5
  margin: 0;
6
  padding: 0;
7
+ min-height: 100vh;
8
+ display: flex;
9
+ align-items: center;
10
+ justify-content: center;
11
  }
12
 
13
  .container {
14
  width: 90%;
15
  max-width: 800px;
16
+ margin: 40px auto;
17
+ background: #ffffff;
18
+ padding: 40px;
19
+ box-shadow: 0 8px 16px rgba(0,0,0,0.1);
20
+ border-radius: 12px;
21
+ animation: fadeIn 1s ease-in-out;
22
  }
23
 
24
  h1 {
25
  text-align: center;
26
+ color: #4A5568;
27
+ font-size: 2.5em;
28
  margin-bottom: 20px;
29
  }
30
 
31
  h2 {
32
+ color: #2D3748;
33
+ margin-bottom: 25px;
34
+ border-bottom: 2px solid #EDF2F7;
35
+ padding-bottom: 10px;
36
  }
37
 
38
  .question {
39
+ margin-bottom: 25px;
40
+ padding: 15px;
41
+ background-color: #F7FAFC;
42
+ border-radius: 8px;
43
+ transition: background-color 0.3s ease;
44
+ }
45
+
46
+ .question:hover {
47
+ background-color: #EDF2F7;
48
  }
49
 
50
  .question p {
51
+ font-size: 1.2em;
52
+ margin-bottom: 12px;
53
+ color: #2D3748;
54
  }
55
 
56
  label {
57
  display: block;
58
+ margin-bottom: 10px;
59
  font-size: 1em;
60
+ color: #4A5568;
61
+ cursor: pointer;
62
+ transition: color 0.3s ease;
63
+ }
64
+
65
+ label:hover {
66
+ color: #2B6CB0;
67
  }
68
 
69
  input[type="radio"] {
70
+ margin-right: 12px;
71
+ accent-color: #2B6CB0;
72
+ transform: scale(1.2);
73
  }
74
 
75
  button {
76
+ padding: 12px 25px;
77
+ background-color: #2B6CB0;
78
+ color: #ffffff;
79
  border: none;
80
+ border-radius: 25px;
81
  cursor: pointer;
82
  font-size: 1em;
83
+ transition: background-color 0.3s ease, transform 0.2s ease;
84
+ box-shadow: 0 4px 6px rgba(0,0,0,0.1);
85
  }
86
 
87
  button:hover {
88
+ background-color: #2C5282;
89
+ transform: translateY(-2px);
90
+ }
91
+
92
+ button:active {
93
+ transform: translateY(0);
94
+ }
95
+
96
+ .buttons {
97
+ display: flex;
98
+ justify-content: space-between;
99
+ margin-top: 20px;
100
  }
101
 
102
  .next-button, .submit-button {
103
+ background-color: #2B6CB0;
104
  }
105
 
106
  .prev-button {
 
107
  background-color: #A0AEC0;
108
  }
109
 
 
111
  background-color: #718096;
112
  }
113
 
114
+ .submit-button {
115
+ background-color: #38A169;
116
+ }
117
+
118
+ .submit-button:hover {
119
+ background-color: #2F855A;
120
+ }
121
+
122
  .clearfix::after {
123
  content: "";
124
  clear: both;
125
  display: table;
126
  }
127
 
128
+ /* 결과 페이지 스타일 */
129
  #result-page {
130
  text-align: center;
131
+ animation: fadeIn 1s ease-in-out;
132
+ }
133
+
134
+ #result-page h1 {
135
+ color: #2D3748;
136
+ margin-bottom: 30px;
137
  }
138
 
139
  #result-text {
140
  text-align: left;
141
+ margin: 20px 0;
142
+ color: #4A5568;
143
+ line-height: 1.6;
144
+ }
145
+
146
+ #result-text h3 {
147
+ color: #2B6CB0;
148
+ margin-top: 20px;
149
  }
150
 
151
  #result-image {
152
+ max-width: 200px;
153
  height: auto;
154
+ margin: 20px 0;
155
+ border-radius: 50%;
156
+ box-shadow: 0 4px 8px rgba(0,0,0,0.1);
157
  }
158
 
159
+ #result-page button {
160
+ margin-top: 20px;
161
+ background-color: #2B6CB0;
162
+ }
163
+
164
+ #result-page button:hover {
165
+ background-color: #2C5282;
166
+ }
167
+
168
+ /* 애니메이션 */
169
+ @keyframes fadeIn {
170
+ from { opacity: 0; transform: translateY(20px); }
171
+ to { opacity: 1; transform: translateY(0); }
172
+ }
173
+
174
+ /* 반응형 디자인 */
175
+ @media (max-width: 768px) {
176
  .container {
177
+ padding: 30px;
178
+ }
179
+
180
+ h1 {
181
+ font-size: 2em;
182
+ }
183
+
184
+ h2 {
185
+ font-size: 1.8em;
186
+ }
187
+
188
+ .question p {
189
+ font-size: 1.1em;
190
  }
191
 
192
  button {
193
  width: 100%;
194
+ margin-bottom: 10px;
195
  }
196
 
197
+ .buttons {
198
+ flex-direction: column;
199
+ align-items: stretch;
200
+ }
201
+
202
+ .next-button, .prev-button, .submit-button {
203
+ width: 100%;
204
  }
205
  }