-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
250 lines (226 loc) · 4.76 KB
/
style.css
File metadata and controls
250 lines (226 loc) · 4.76 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
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
body {
background-image: url('assets/IMG_2138.png');
background-size: cover;
background-position: center;
}
.container {
max-width: 900px;
margin: 40px auto;
background: #fee2e2;
border-radius: 16px;
box-shadow: 0 4px 24px rgba(0,0,0,0.08);
padding: 32px;
border: 15px solid;
border-image: url('assets/border.png') 70 round; /* Use your own border image */
}
h1 {
text-align: center;
color: #3b3b3b;
}
.game-area {
display: flex;
flex-direction: row;
gap: 32px;
margin-top: 32px;
justify-content: flex-start;
align-items: flex-start;
}
.character-area {
position: relative;
width: 400px;
height: 600px;
background: #faefef;
border-radius: 12px;
border: 15px solid;
border-image: url('assets/border.png') 70 round; /* Use your own border image */
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 2px 8px rgba(0,0,0,0.04);
margin-left: 0;
margin-right: auto;
}
#character-base {
width: 400px;
height: 600px;
z-index: 1;
background-image: url('assets/character.png');
background-size: cover;
background-position: center;
}
#dressed-items {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 2;
}
.items-area {
position: static;
right: unset;
top: unset;
width: 260px;
background: #faefef;
border-radius: 16px;
border: 8px solid;
border-image: url('assets/border.png') 70 round;
box-shadow: 0 4px 24px rgba(0,0,0,0.08);
padding: 24px 16px;
z-index: 1;
margin-left: 32px;
align-self: flex-start;
}
.items-list {
display: flex;
flex-wrap: wrap;
gap: 16px;
margin-top: 16px;
}
.draggable-item {
width: 80px;
height: 80px;
object-fit: contain;
border-radius: 8px;
background: #f8fafc;
box-shadow: 0 1px 4px rgba(0,0,0,0.06);
cursor: grab;
transition: box-shadow 0.2s;
}
.draggable-item:active {
box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.main-screen {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background-image: url('assets/IMG_2140.png');
background-size: cover;
background-position: center;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
z-index: 1000;
}
#start-btn {
width: 320px;
height: 300px;
padding: 0;
border: none;
border-radius: 24px;
background-image: url('assets/IMG_2142.png');
background-size: 250px 250px;
background-repeat: no-repeat;
background-position: center;
color: transparent;
cursor: pointer;
margin-top: 260px;
transition: box-shadow 0.2s;
display: block;
background-color: transparent;
outline: none;
box-shadow: none;
}
#start-btn:hover {
background-image: url('assets/IMG_2146.png');
background-size: 250px 250px;
background-repeat: no-repeat;
background-position: center;
background-color: transparent;
outline: none;
box-shadow: none;
border: none;
}
#reset-btn {
position: fixed;
right: 40px;
bottom: 40px;
margin: 0;
padding: 12px 32px;
font-size: 1.1rem;
border-radius: 10px;
border: none;
background: rgb(211, 144, 144);
color: #fff;
cursor: pointer;
box-shadow: 0 2px 8px rgba(0,0,0,0.12);
transition: background 0.2s;
z-index: 1100;
}
#reset-btn:hover {
background: rgb(158, 85, 85);
}
.menu-area {
display: flex;
flex-direction: column;
gap: 16px;
align-items: flex-start;
justify-content: flex-start;
margin-right: 24px;
}
.menu-btn {
padding: 18px 0;
width: 70px;
height: 70px;
border: none;
border-radius: 16px;
background: rgb(211, 144, 144);
color: #fff;
font-size: 1.2rem;
cursor: pointer;
box-shadow: 0 2px 8px rgba(0,0,0,0.12);
transition: background 0.2s;
min-width: 70px;
min-height: 70px;
display: block;
text-align: center;
}
.menu-btn.active,
.menu-btn:hover {
background: rgb(158, 85, 85);
border: 4px solid;
border-image: url('assets/btnHoverBorder.png') 10 round; /* Use your own border image */
}
/* ── Add these rules to your existing style.css ── */
/* Selected state for item thumbnails */
.item-wrapper {
position: relative;
display: inline-block;
}
.draggable-item.selected {
outline: 3px solid rgb(158, 85, 85);
outline-offset: 2px;
border-radius: 8px;
}
/* Small ✕ badge to remove a worn item */
.remove-badge {
position: absolute;
top: -6px;
right: -6px;
width: 20px;
height: 20px;
border-radius: 50%;
border: none;
background: rgb(158, 85, 85);
color: #fff;
font-size: 10px;
line-height: 1;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
padding: 0;
box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.remove-badge:hover {
background: rgb(120, 50, 50);
}
/* Drag-over highlight on character area */
.character-area.drag-over {
outline: 3px dashed rgb(211, 144, 144);
outline-offset: -4px;
}