Spaces:
Running
Running
Update style.css
Browse files
style.css
CHANGED
@@ -1,17 +1,128 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
/* --- Character Sheet Styling --- */
|
2 |
#character-sheet-container {
|
3 |
background-color: #3a3a3a;
|
4 |
-
|
5 |
padding: 15px;
|
6 |
-
|
7 |
border-radius: 5px;
|
8 |
display: flex;
|
9 |
flex-direction: column;
|
10 |
gap: 15px;
|
11 |
color: #eee;
|
12 |
-
max-width: 450px;
|
13 |
-
margin-left: auto;
|
14 |
-
margin-right: auto;
|
15 |
}
|
16 |
|
17 |
#character-sheet-container h2,
|
@@ -62,7 +173,6 @@
|
|
62 |
color: #fff;
|
63 |
}
|
64 |
|
65 |
-
|
66 |
.char-level-xp {
|
67 |
display: flex;
|
68 |
justify-content: space-around;
|
@@ -76,7 +186,6 @@
|
|
76 |
gap: 5px;
|
77 |
}
|
78 |
|
79 |
-
|
80 |
.char-stats h3 {
|
81 |
margin-bottom: 5px;
|
82 |
}
|
@@ -104,6 +213,7 @@
|
|
104 |
color: #aaa;
|
105 |
display: block;
|
106 |
text-align: center;
|
|
|
107 |
}
|
108 |
|
109 |
.char-possessions h3 {
|
@@ -142,21 +252,21 @@
|
|
142 |
color: #666;
|
143 |
font-style: italic;
|
144 |
font-size: 0.9em;
|
145 |
-
/* Removed ::before content, put [Empty] directly in HTML */
|
146 |
}
|
147 |
|
148 |
-
/* ---
|
149 |
.sheet-button {
|
150 |
-
background-color: #555;
|
151 |
border: 1px solid #777;
|
152 |
color: #eee;
|
153 |
-
padding: 4px 8px;
|
154 |
border-radius: 4px;
|
155 |
cursor: pointer;
|
156 |
-
font-size: 0.9rem;
|
157 |
line-height: 1.2;
|
158 |
transition: background-color 0.2s, border-color 0.2s;
|
159 |
text-align: center;
|
|
|
160 |
}
|
161 |
|
162 |
.sheet-button:hover:not(:disabled) {
|
@@ -169,18 +279,37 @@
|
|
169 |
}
|
170 |
|
171 |
.sheet-button:disabled {
|
172 |
-
opacity: 0.6;
|
173 |
cursor: not-allowed;
|
174 |
background-color: #484848;
|
175 |
border-color: #666;
|
176 |
color: #aaa;
|
177 |
}
|
178 |
|
179 |
-
/*
|
180 |
.stat-increase {
|
181 |
-
font-size: 1rem;
|
182 |
font-weight: bold;
|
183 |
-
padding: 0px 6px;
|
184 |
line-height: 1;
|
185 |
-
min-width: 25px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
186 |
}
|
|
|
1 |
+
/* --- Base Styles --- */
|
2 |
+
body {
|
3 |
+
font-family: sans-serif;
|
4 |
+
background-color: #222;
|
5 |
+
color: #ddd;
|
6 |
+
margin: 0;
|
7 |
+
padding: 15px;
|
8 |
+
line-height: 1.6;
|
9 |
+
}
|
10 |
+
|
11 |
+
h1, h2, h3 {
|
12 |
+
color: #eee;
|
13 |
+
}
|
14 |
+
|
15 |
+
h1 {
|
16 |
+
text-align: center;
|
17 |
+
margin-bottom: 20px;
|
18 |
+
}
|
19 |
+
|
20 |
+
a {
|
21 |
+
color: #8af;
|
22 |
+
}
|
23 |
+
|
24 |
+
p {
|
25 |
+
margin-bottom: 1em;
|
26 |
+
}
|
27 |
+
|
28 |
+
/* --- Layout --- */
|
29 |
+
.game-container {
|
30 |
+
display: flex;
|
31 |
+
flex-wrap: wrap; /* Allow wrapping on smaller screens */
|
32 |
+
gap: 20px;
|
33 |
+
}
|
34 |
+
|
35 |
+
#scene-container {
|
36 |
+
flex: 2; /* Takes up more space */
|
37 |
+
min-width: 300px; /* Minimum width */
|
38 |
+
min-height: 400px; /* Minimum height */
|
39 |
+
background-color: #111; /* Fallback bg */
|
40 |
+
border: 1px solid #444;
|
41 |
+
position: relative; /* Needed for potential overlays */
|
42 |
+
overflow: hidden; /* Hide anything overflowing canvas */
|
43 |
+
}
|
44 |
+
|
45 |
+
#scene-container canvas {
|
46 |
+
display: block; /* Remove extra space below canvas */
|
47 |
+
}
|
48 |
+
|
49 |
+
|
50 |
+
.ui-container {
|
51 |
+
flex: 1; /* Takes up less space */
|
52 |
+
min-width: 300px;
|
53 |
+
display: flex;
|
54 |
+
flex-direction: column;
|
55 |
+
gap: 20px;
|
56 |
+
}
|
57 |
+
|
58 |
+
.panel {
|
59 |
+
background-color: #333;
|
60 |
+
border: 1px solid #555;
|
61 |
+
padding: 15px;
|
62 |
+
border-radius: 5px;
|
63 |
+
}
|
64 |
+
|
65 |
+
/* --- Story UI --- */
|
66 |
+
#story-ui h2 {
|
67 |
+
margin-top: 0;
|
68 |
+
margin-bottom: 10px;
|
69 |
+
border-bottom: 1px solid #666;
|
70 |
+
padding-bottom: 5px;
|
71 |
+
}
|
72 |
+
|
73 |
+
#story-content p:last-child {
|
74 |
+
margin-bottom: 0;
|
75 |
+
}
|
76 |
+
|
77 |
+
#choices {
|
78 |
+
margin-top: 20px;
|
79 |
+
display: flex;
|
80 |
+
flex-direction: column;
|
81 |
+
gap: 10px;
|
82 |
+
}
|
83 |
+
|
84 |
+
.choice-button {
|
85 |
+
background-color: #4a4a4a;
|
86 |
+
border: 1px solid #666;
|
87 |
+
color: #eee;
|
88 |
+
padding: 10px 15px;
|
89 |
+
border-radius: 4px;
|
90 |
+
cursor: pointer;
|
91 |
+
text-align: left;
|
92 |
+
transition: background-color 0.2s, border-color 0.2s;
|
93 |
+
width: 100%; /* Make buttons fill container */
|
94 |
+
}
|
95 |
+
|
96 |
+
.choice-button:hover:not(:disabled) {
|
97 |
+
background-color: #5a5a5a;
|
98 |
+
border-color: #888;
|
99 |
+
}
|
100 |
+
|
101 |
+
.choice-button:active:not(:disabled) {
|
102 |
+
background-color: #404040;
|
103 |
+
}
|
104 |
+
|
105 |
+
.choice-button:disabled {
|
106 |
+
opacity: 0.6;
|
107 |
+
cursor: not-allowed;
|
108 |
+
background-color: #404040;
|
109 |
+
border-color: #555;
|
110 |
+
color: #aaa;
|
111 |
+
}
|
112 |
+
|
113 |
+
|
114 |
/* --- Character Sheet Styling --- */
|
115 |
#character-sheet-container {
|
116 |
background-color: #3a3a3a;
|
117 |
+
/* Styles from previous step */
|
118 |
padding: 15px;
|
119 |
+
border: 1px solid #555;
|
120 |
border-radius: 5px;
|
121 |
display: flex;
|
122 |
flex-direction: column;
|
123 |
gap: 15px;
|
124 |
color: #eee;
|
125 |
+
/* max-width: 450px; /* Removed max-width to let flexbox handle it */
|
|
|
|
|
126 |
}
|
127 |
|
128 |
#character-sheet-container h2,
|
|
|
173 |
color: #fff;
|
174 |
}
|
175 |
|
|
|
176 |
.char-level-xp {
|
177 |
display: flex;
|
178 |
justify-content: space-around;
|
|
|
186 |
gap: 5px;
|
187 |
}
|
188 |
|
|
|
189 |
.char-stats h3 {
|
190 |
margin-bottom: 5px;
|
191 |
}
|
|
|
213 |
color: #aaa;
|
214 |
display: block;
|
215 |
text-align: center;
|
216 |
+
margin-top: 5px; /* Added space */
|
217 |
}
|
218 |
|
219 |
.char-possessions h3 {
|
|
|
252 |
color: #666;
|
253 |
font-style: italic;
|
254 |
font-size: 0.9em;
|
|
|
255 |
}
|
256 |
|
257 |
+
/* --- Character Sheet Button Styling --- */
|
258 |
.sheet-button {
|
259 |
+
background-color: #555;
|
260 |
border: 1px solid #777;
|
261 |
color: #eee;
|
262 |
+
padding: 4px 8px;
|
263 |
border-radius: 4px;
|
264 |
cursor: pointer;
|
265 |
+
font-size: 0.9rem;
|
266 |
line-height: 1.2;
|
267 |
transition: background-color 0.2s, border-color 0.2s;
|
268 |
text-align: center;
|
269 |
+
white-space: nowrap; /* Prevent wrapping on small buttons */
|
270 |
}
|
271 |
|
272 |
.sheet-button:hover:not(:disabled) {
|
|
|
279 |
}
|
280 |
|
281 |
.sheet-button:disabled {
|
282 |
+
opacity: 0.6;
|
283 |
cursor: not-allowed;
|
284 |
background-color: #484848;
|
285 |
border-color: #666;
|
286 |
color: #aaa;
|
287 |
}
|
288 |
|
289 |
+
/* Stat increase buttons (+) */
|
290 |
.stat-increase {
|
291 |
+
font-size: 1rem;
|
292 |
font-weight: bold;
|
293 |
+
padding: 0px 6px;
|
294 |
line-height: 1;
|
295 |
+
min-width: 25px;
|
296 |
+
}
|
297 |
+
|
298 |
+
|
299 |
+
/* --- Item Type Styling (Example) --- */
|
300 |
+
/* Add specific styles for item types if desired */
|
301 |
+
.item-weapon {
|
302 |
+
/* background-color: #733 !important; */
|
303 |
+
/* border: 1px solid #a55; */
|
304 |
+
}
|
305 |
+
.item-armor {
|
306 |
+
/* background-color: #367 !important; */
|
307 |
+
}
|
308 |
+
.item-spell {
|
309 |
+
/* background-color: #737 !important; */
|
310 |
+
/* font-style: italic; */
|
311 |
+
}
|
312 |
+
.item-quest {
|
313 |
+
/* color: #fc5 !important; */
|
314 |
+
/* font-weight: bold; */
|
315 |
}
|