Skip to content

Commit a64bb02

Browse files
committed
Added mobile view
1 parent d930de9 commit a64bb02

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

index.html

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,29 @@
5252
display: block;
5353
touch-action: none;
5454
}
55+
56+
/* --------------------------------------------- */
57+
/* 📱 MOBILE VERSION — scoreboard moves BELOW */
58+
/* --------------------------------------------- */
59+
@media (max-width: 700px) {
60+
#gameContainer {
61+
flex-direction: column; /* stack vertically */
62+
align-items: center; /* center everything */
63+
}
5564

65+
#leftPanel {
66+
width: 100%;
67+
max-width: 400px;
68+
order: 2; /* scoreboard goes BELOW the board */
69+
text-align: center;
70+
}
71+
72+
#gameWrapper {
73+
order: 1; /* board goes ABOVE the scoreboard */
74+
width: 100%;
75+
max-width: 90vw; /* scale nicely on phones */
76+
}
77+
}
5678
</style>
5779
</head>
5880
<body>

0 commit comments

Comments
 (0)