Spaces:
Running
Running
File size: 1,905 Bytes
cc82499 ecbc75e cc82499 | 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 | * {
box-sizing: border-box;
}
html,
body {
margin: 0;
width: 100%;
min-height: 100%;
}
body {
background: #0b0d12;
color: #ffffff;
font-family: Arial, Helvetica, sans-serif;
}
#app {
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 24px;
padding: 24px;
}
/* Animation stage */
#stage {
width: min(900px, 100%);
aspect-ratio: 1 / 1;
display: flex;
align-items: center;
justify-content: center;
background: #11151d;
border: 1px solid #252b36;
border-radius: 12px;
overflow: hidden;
}
#animation-canvas {
width: 100%;
height: 100%;
display: block;
image-rendering: pixelated;
}
/* Animation controls */
#controls {
width: min(900px, 100%);
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 10px;
}
#controls button {
appearance: none;
padding: 10px 18px;
background: #171c25;
color: #ffffff;
border: 1px solid #303744;
border-radius: 6px;
font: inherit;
cursor: pointer;
transition:
background 120ms ease,
border-color 120ms ease,
transform 120ms ease;
}
#controls button:hover {
background: #202733;
border-color: #4b5565;
}
#controls button:active {
transform: translateY(1px);
}
#controls button.active {
background: #ffffff;
color: #0b0d12;
border-color: #ffffff;
}
/* Mobile */
@media (max-width: 600px) {
#app {
padding: 12px;
gap: 16px;
}
#controls {
justify-content: flex-start;
}
#controls button {
flex: 1 1 auto;
}
}
#engine-error {
width: min(900px, 100%);
margin: 0;
padding: 12px 16px;
color: #ffb4b4;
background: #2a1518;
border: 1px solid #70343b;
border-radius: 6px;
text-align: center;
} |