-body {
+:root {
+ color-scheme: light dark;
font-family: sans-serif;
background: white;
color: black;
display: block;
width: 100%;
padding: 0;
+ transform: translate(0,0); /* Make it a containing block. */
}
#hiddenboard {
display: none;
color: #555;
}
+.imbalance-inverted-piece {
+ display: none;
+ filter: invert(1);
+}
+
@media (prefers-color-scheme: dark) {
-body {
+:root {
background: black;
color: #eee;
}
a:link {
color: rgb(128,128,238);
}
+.imbalance-piece {
+ display: none;
+}
+.imbalance-inverted-piece {
+ display: initial;
+}
}