Spaces:
Running
Running
Update style.css
Browse files
style.css
CHANGED
@@ -9,13 +9,15 @@ body {
|
|
9 |
background: linear-gradient(to bottom, #0f0f0f, #131313);
|
10 |
font-family: 'Arial', sans-serif;
|
11 |
color: white;
|
12 |
-
overflow: auto;
|
|
|
13 |
}
|
14 |
|
15 |
.game-container {
|
16 |
position: relative;
|
17 |
-
width: 100vw;
|
18 |
-
height: 100vh;
|
|
|
19 |
display: flex;
|
20 |
justify-content: center;
|
21 |
align-items: center;
|
@@ -62,11 +64,11 @@ body {
|
|
62 |
top: 20px;
|
63 |
width: 100%;
|
64 |
text-align: center;
|
65 |
-
font-size: 24px;
|
66 |
}
|
67 |
|
68 |
.life {
|
69 |
margin-right: 10px;
|
70 |
color: red; /* Red hearts */
|
71 |
-
font-size: 24px;
|
72 |
}
|
|
|
9 |
background: linear-gradient(to bottom, #0f0f0f, #131313);
|
10 |
font-family: 'Arial', sans-serif;
|
11 |
color: white;
|
12 |
+
overflow-x: auto; /* Allow horizontal scroll */
|
13 |
+
overflow-y: hidden; /* Optional: Hide vertical scroll */
|
14 |
}
|
15 |
|
16 |
.game-container {
|
17 |
position: relative;
|
18 |
+
width: 100vw; /* Full viewport width */
|
19 |
+
height: 100vh; /* Full viewport height */
|
20 |
+
min-width: 500px; /* Minimum width to ensure proper game visibility */
|
21 |
display: flex;
|
22 |
justify-content: center;
|
23 |
align-items: center;
|
|
|
64 |
top: 20px;
|
65 |
width: 100%;
|
66 |
text-align: center;
|
67 |
+
font-size: 24px; /* Same as score and level font size */
|
68 |
}
|
69 |
|
70 |
.life {
|
71 |
margin-right: 10px;
|
72 |
color: red; /* Red hearts */
|
73 |
+
font-size: 24px; /* Same as score and level font size */
|
74 |
}
|