File size: 5,947 Bytes
124d01b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6e26371
 
86fd324
124d01b
6e26371
124d01b
6e26371
 
 
86fd324
6e26371
124d01b
b0783bc
 
6e26371
 
 
 
 
 
b0783bc
 
6e26371
 
 
 
b0783bc
 
6e26371
b0783bc
 
6e26371
86fd324
b0783bc
 
6e26371
 
 
b0783bc
6e26371
86fd324
6e26371
 
 
 
 
 
 
b0783bc
6e26371
 
86fd324
6e26371
 
 
 
 
 
 
 
 
b0783bc
6e26371
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b0783bc
 
6e26371
 
86fd324
 
6e26371
b0783bc
 
6e26371
 
 
 
 
86fd324
6e26371
 
 
86fd324
b0783bc
 
6e26371
 
86fd324
6e26371
124d01b
6e26371
 
 
 
 
 
 
86fd324
6e26371
86fd324
 
6e26371
 
 
 
 
 
 
 
 
 
 
86fd324
6e26371
86fd324
6e26371
 
 
 
 
 
86fd324
6e26371
86fd324
6e26371
 
 
 
 
 
124d01b
86fd324
124d01b
86fd324
 
124d01b
6e26371
b0783bc
124d01b
86fd324
6e26371
86fd324
124d01b
b0783bc
 
86fd324
 
 
b0783bc
 
86fd324
6e26371
b0783bc
 
86fd324
124d01b
6e26371
86fd324
 
 
6e26371
 
124d01b
6e26371
124d01b
86fd324
124d01b
86fd324
124d01b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b0783bc
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
/* --- Base Styles --- */
body {
    font-family: sans-serif;
    background-color: #222;
    color: #ddd;
    margin: 0;
    padding: 15px;
    line-height: 1.6;
}

h1, h2, h3 {
    color: #eee;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
}

a {
    color: #8af;
}

p {
    margin-bottom: 1em;
}

/* --- Layout --- */
.game-container {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 20px;
}

#scene-container {
    flex: 2; /* Takes up more space */
    min-width: 300px; /* Minimum width */
    min-height: 400px; /* Minimum height */
    background-color: #111; /* Fallback bg */
    border: 1px solid #444;
    position: relative; /* Needed for potential overlays */
    overflow: hidden; /* Hide anything overflowing canvas */
}

#scene-container canvas {
    display: block; /* Remove extra space below canvas */
}


.ui-container {
    flex: 1; /* Takes up less space */
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.panel {
    background-color: #333;
    border: 1px solid #555;
    padding: 15px;
    border-radius: 5px;
}

/* --- Story UI --- */
#story-ui h2 {
    margin-top: 0;
    margin-bottom: 10px;
    border-bottom: 1px solid #666;
    padding-bottom: 5px;
}

#story-content p:last-child {
    margin-bottom: 0;
}

#choices {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.choice-button {
    background-color: #4a4a4a;
    border: 1px solid #666;
    color: #eee;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s, border-color 0.2s;
    width: 100%; /* Make buttons fill container */
}

.choice-button:hover:not(:disabled) {
    background-color: #5a5a5a;
    border-color: #888;
}

.choice-button:active:not(:disabled) {
    background-color: #404040;
}

.choice-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #404040;
    border-color: #555;
    color: #aaa;
}


/* --- Character Sheet Styling --- */
#character-sheet-container {
    background-color: #3a3a3a;
    /* Styles from previous step */
    padding: 15px;
    border: 1px solid #555;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    color: #eee;
    /* max-width: 450px; /* Removed max-width to let flexbox handle it */
}

#character-sheet-container h2,
#character-sheet-container h3 {
    margin: 0 0 10px 0;
    color: #f0f0f0;
    border-bottom: 1px solid #666;
    padding-bottom: 5px;
}

.char-section {
    background-color: #444;
    padding: 10px;
    border-radius: 4px;
}

.char-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.char-header label {
    font-weight: bold;
}

#char-name {
    flex-grow: 1;
    background-color: #555;
    border: 1px solid #777;
    color: #fff;
    padding: 4px 6px;
    border-radius: 3px;
    min-width: 100px;
}

.char-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
}
.char-details label, .char-level-xp label {
    font-weight: bold;
    color: #ccc;
}
.char-details span, .char-level-xp span {
    color: #fff;
}

.char-level-xp {
     display: flex;
     justify-content: space-around;
     align-items: center;
     gap: 15px;
     flex-wrap: wrap;
}
.char-level-xp div{
    display: flex;
    align-items: center;
    gap: 5px;
}

.char-stats h3 {
    margin-bottom: 5px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 5px 10px;
    margin-bottom: 10px;
}

.stats-grid div {
    background-color: #333;
    padding: 3px 6px;
    border-radius: 3px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.stats-grid span {
    margin-right: 5px;
}

.char-stats small {
    color: #aaa;
    display: block;
    text-align: center;
    margin-top: 5px; /* Added space */
}

.char-possessions h3 {
     margin-bottom: 5px;
}

#char-inventory-list {
    list-style: decimal;
    margin: 0;
    padding-left: 25px;
    max-height: 180px;
    overflow-y: auto;
    background-color: #333;
    border-radius: 3px;
    padding-top: 5px;
    padding-bottom: 5px;
}

#char-inventory-list li {
    margin-bottom: 3px;
    color: #ccc;
    padding: 2px 5px;
    min-height: 1.2em;
}

#char-inventory-list li span:not(.item-slot) {
    background-color: #5a5a5a;
    padding: 1px 4px;
    border-radius: 2px;
    color: #fff;
    font-size: 0.9em;
    cursor: default;
}

.item-slot {
    color: #666;
    font-style: italic;
    font-size: 0.9em;
}

/* --- Character Sheet Button Styling --- */
.sheet-button {
    background-color: #555;
    border: 1px solid #777;
    color: #eee;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.2;
    transition: background-color 0.2s, border-color 0.2s;
    text-align: center;
    white-space: nowrap; /* Prevent wrapping on small buttons */
}

.sheet-button:hover:not(:disabled) {
    background-color: #666;
    border-color: #999;
}

.sheet-button:active:not(:disabled) {
     background-color: #444;
}

.sheet-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #484848;
    border-color: #666;
    color: #aaa;
}

/* Stat increase buttons (+) */
.stat-increase {
    font-size: 1rem;
    font-weight: bold;
    padding: 0px 6px;
    line-height: 1;
    min-width: 25px;
}


/* --- Item Type Styling (Example) --- */
/* Add specific styles for item types if desired */
.item-weapon {
    /* background-color: #733 !important; */
    /* border: 1px solid #a55; */
}
.item-armor {
     /* background-color: #367 !important; */
}
.item-spell {
     /* background-color: #737 !important; */
     /* font-style: italic; */
}
.item-quest {
     /* color: #fc5 !important; */
     /* font-weight: bold; */
}