2024-05-23 14:05:13 -04:00
|
|
|
@font-face {
|
|
|
|
font-family: 'monogram';
|
|
|
|
src: url('assets/fonts/monogram-extended.woff2');
|
|
|
|
font-weight: normal;
|
|
|
|
font-style: normal;
|
|
|
|
}
|
|
|
|
|
2024-05-17 13:08:43 -04:00
|
|
|
body {
|
2024-05-26 14:55:04 -04:00
|
|
|
display: flex;
|
2024-05-26 08:02:08 -04:00
|
|
|
background-color: #222034;
|
2024-05-17 13:08:43 -04:00
|
|
|
margin: 0;
|
|
|
|
width: 100vw;
|
|
|
|
height: 100vh;
|
|
|
|
}
|
|
|
|
|
2024-06-03 12:18:19 -04:00
|
|
|
/* Scale up canvas image on small screens. Loses pixel perfectness
|
|
|
|
but improves visibility on phones. */
|
|
|
|
@media (max-width: 960px) or (max-height: 720px) {
|
|
|
|
canvas {
|
|
|
|
display: block;
|
|
|
|
margin: auto auto;
|
|
|
|
image-rendering: pixelated;
|
|
|
|
object-fit: contain;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (min-width: 960px) or (min-height: 720px) {
|
|
|
|
canvas {
|
|
|
|
display: block;
|
|
|
|
margin: auto auto;
|
|
|
|
}
|
2024-05-26 14:55:04 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
@media (pointer: fine) {
|
|
|
|
#onscreen-controls {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Onscreen controls for "coarse" pointer devices assumed to be
|
|
|
|
touchscreens on phones/tablets. Inline SVG is used so that we can
|
|
|
|
attach click handlers to individual elements of the controls. */
|
|
|
|
@media (pointer: coarse) {
|
|
|
|
#onscreen-controls {
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
bottom: 0;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
#onscreen-controls #dpad-container {
|
2024-06-03 12:18:07 -04:00
|
|
|
width: min(40vw,40vh);
|
|
|
|
height: min(40vw,40vh);
|
2024-05-26 14:55:04 -04:00
|
|
|
margin: 5%;
|
|
|
|
}
|
|
|
|
|
|
|
|
#onscreen-controls #button-container {
|
2024-06-03 12:18:07 -04:00
|
|
|
width: min(25vw,25vh);
|
|
|
|
height: min(25vw,25vh);
|
2024-05-26 14:55:04 -04:00
|
|
|
margin: 5%;
|
|
|
|
margin-left: auto;
|
|
|
|
}
|
2024-05-17 13:08:43 -04:00
|
|
|
}
|