2023-09-13 19:10:25 -06:00
|
|
|
/* Color palette: http://paletton.com/#uid=33x0u0klrl-4ON9dhtKtAdqMQ4T */
|
2023-09-08 18:05:51 -06:00
|
|
|
|
|
|
|
body {
|
|
|
|
font-family: sans-serif;
|
2023-09-13 19:10:25 -06:00
|
|
|
background: #010e19 url("bg.png") center fixed;
|
2023-09-13 18:52:52 -06:00
|
|
|
background-size: cover;
|
2023-09-12 17:30:36 -06:00
|
|
|
background-blend-mode: soft-light;
|
2023-09-13 19:10:25 -06:00
|
|
|
background-color: #010e19;
|
|
|
|
color: #edd488;
|
2023-09-12 17:30:36 -06:00
|
|
|
}
|
|
|
|
canvas.wallpaper {
|
|
|
|
position: fixed;
|
|
|
|
display: block;
|
|
|
|
z-index: -1000;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
height: 100vh;
|
|
|
|
width: 100vw;
|
|
|
|
opacity: 0.2;
|
|
|
|
image-rendering: pixelated;
|
2023-09-08 18:05:51 -06:00
|
|
|
}
|
|
|
|
main {
|
|
|
|
max-width: 40em;
|
2023-09-13 18:52:52 -06:00
|
|
|
margin: 1em auto;
|
2023-09-08 18:05:51 -06:00
|
|
|
padding: 1px 3px;
|
|
|
|
border-radius: 5px;
|
2023-09-13 19:10:25 -06:00
|
|
|
background: #000d;
|
|
|
|
}
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
|
|
color: #cb2408cc;
|
2023-09-08 18:05:51 -06:00
|
|
|
}
|
|
|
|
h1 {
|
2023-09-13 19:10:25 -06:00
|
|
|
background: #cb240844;
|
2023-09-08 18:05:51 -06:00
|
|
|
padding: 3px;
|
2018-09-18 18:22:03 -06:00
|
|
|
}
|
|
|
|
p {
|
|
|
|
margin: 1em 0em;
|
|
|
|
}
|
2023-09-13 19:10:25 -06:00
|
|
|
a:any-link {
|
|
|
|
color: #b9cbd8;
|
|
|
|
}
|
2018-09-18 18:22:03 -06:00
|
|
|
form, pre {
|
|
|
|
margin: 1em;
|
2023-09-12 19:30:53 -06:00
|
|
|
overflow-x: auto;
|
2018-09-18 18:22:03 -06:00
|
|
|
}
|
2018-10-02 19:21:54 -06:00
|
|
|
input, select {
|
2018-09-18 18:22:03 -06:00
|
|
|
padding: 0.6em;
|
|
|
|
margin: 0.2em;
|
2018-10-09 16:05:02 -06:00
|
|
|
max-width: 30em;
|
2018-09-18 18:22:03 -06:00
|
|
|
}
|
2023-09-13 19:24:05 -06:00
|
|
|
input {
|
|
|
|
background-color: #ccc4;
|
|
|
|
color: inherit;
|
|
|
|
}
|
2023-09-08 18:05:51 -06:00
|
|
|
.notification, .error {
|
|
|
|
padding: 0 1em;
|
|
|
|
border-radius: 8px;
|
2018-09-18 18:22:03 -06:00
|
|
|
}
|
2023-09-13 19:10:25 -06:00
|
|
|
.notification {
|
|
|
|
background: #ac8f3944;
|
|
|
|
}
|
|
|
|
.error {
|
|
|
|
background: red;
|
|
|
|
color: white;
|
|
|
|
}
|
2023-09-13 18:52:52 -06:00
|
|
|
.hidden {
|
|
|
|
display: none;
|
|
|
|
}
|
2023-09-08 18:05:51 -06:00
|
|
|
|
2023-09-13 18:52:52 -06:00
|
|
|
/** Puzzles list */
|
|
|
|
.category {
|
|
|
|
margin: 5px 0;
|
|
|
|
background: #ccc4;
|
|
|
|
}
|
|
|
|
.category h2 {
|
|
|
|
margin: 0 0.2em;
|
|
|
|
}
|
2023-09-14 17:42:02 -06:00
|
|
|
.category .solved {
|
|
|
|
text-decoration: line-through;
|
|
|
|
}
|
2018-09-18 18:22:03 -06:00
|
|
|
nav ul, .category ul {
|
2023-09-13 18:52:52 -06:00
|
|
|
margin: 0;
|
|
|
|
padding: 0.2em 1em;
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
gap: 8px 16px;
|
2018-09-18 18:22:03 -06:00
|
|
|
}
|
|
|
|
nav li, .category li {
|
|
|
|
display: inline;
|
|
|
|
}
|
2023-09-13 18:52:52 -06:00
|
|
|
.mothball {
|
|
|
|
float: right;
|
|
|
|
text-decoration: none;
|
|
|
|
border-radius: 5px;
|
|
|
|
background: #ccc;
|
|
|
|
padding: 4px 8px;
|
|
|
|
margin: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/** Puzzle content */
|
|
|
|
#puzzle {
|
|
|
|
border-bottom: solid;
|
|
|
|
padding: 0 0.5em;
|
2018-09-21 14:29:05 -06:00
|
|
|
}
|
2023-09-13 18:52:52 -06:00
|
|
|
#puzzle img {
|
2018-09-21 14:29:05 -06:00
|
|
|
max-width: 100%;
|
|
|
|
}
|
2019-02-24 17:02:28 -07:00
|
|
|
input:invalid {
|
2023-09-13 19:24:05 -06:00
|
|
|
background-color: #800;
|
|
|
|
color: white;
|
2019-02-24 17:02:28 -07:00
|
|
|
}
|
2023-09-12 17:32:34 -06:00
|
|
|
.answer_ok {
|
|
|
|
cursor: help;
|
|
|
|
}
|
2023-09-13 18:52:52 -06:00
|
|
|
|
|
|
|
/** Scoreboard */
|
2020-02-29 17:12:35 -07:00
|
|
|
#rankings {
|
2018-09-21 14:29:05 -06:00
|
|
|
width: 100%;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
2020-02-29 17:12:35 -07:00
|
|
|
#rankings span {
|
2018-09-21 14:29:05 -06:00
|
|
|
font-size: 75%;
|
|
|
|
display: inline-block;
|
|
|
|
overflow: hidden;
|
|
|
|
height: 1.7em;
|
|
|
|
}
|
2020-02-29 17:12:35 -07:00
|
|
|
#rankings span.teamname {
|
2018-09-21 14:29:05 -06:00
|
|
|
font-size: inherit;
|
|
|
|
color: white;
|
|
|
|
text-shadow: 0 0 3px black;
|
|
|
|
opacity: 0.8;
|
|
|
|
position: absolute;
|
|
|
|
right: 0.2em;
|
|
|
|
}
|
2020-02-29 17:12:35 -07:00
|
|
|
#rankings div * {white-space: nowrap;}
|
2018-09-21 14:29:05 -06:00
|
|
|
.cat0, .cat8, .cat16 {background-color: #a6cee3; color: black;}
|
|
|
|
.cat1, .cat9, .cat17 {background-color: #1f78b4; color: white;}
|
|
|
|
.cat2, .cat10, .cat18 {background-color: #b2df8a; color: black;}
|
|
|
|
.cat3, .cat11, .cat19 {background-color: #33a02c; color: white;}
|
|
|
|
.cat4, .cat12, .cat20 {background-color: #fb9a99; color: black;}
|
|
|
|
.cat5, .cat13, .cat21 {background-color: #e31a1c; color: white;}
|
|
|
|
.cat6, .cat14, .cat22 {background-color: #fdbf6f; color: black;}
|
|
|
|
.cat7, .cat15, .cat23 {background-color: #ff7f00; color: black;}
|
2018-10-09 18:05:58 -06:00
|
|
|
|
2023-09-13 18:52:52 -06:00
|
|
|
.debug {
|
2023-09-08 18:05:51 -06:00
|
|
|
overflow: auto;
|
2023-09-13 18:52:52 -06:00
|
|
|
padding: 1em;
|
|
|
|
border-radius: 10px;
|
|
|
|
margin: 2em auto;
|
2023-09-13 19:10:25 -06:00
|
|
|
background: #cccc;
|
|
|
|
color: black;
|
2023-09-13 18:52:52 -06:00
|
|
|
}
|
|
|
|
.debug dt {
|
|
|
|
font-weight: bold;
|
2019-02-22 17:43:04 -07:00
|
|
|
}
|
2020-02-29 17:12:35 -07:00
|
|
|
|
2023-09-13 18:52:52 -06:00
|
|
|
/** Draggable items, from the draggable plugin */
|
2020-02-29 17:12:35 -07:00
|
|
|
li[draggable]::before {
|
|
|
|
content: "↕";
|
|
|
|
padding: 0.5em;
|
|
|
|
cursor: move;
|
|
|
|
}
|
|
|
|
li[draggable] {
|
|
|
|
list-style: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
[draggable].moving {
|
|
|
|
opacity: 0.4;
|
|
|
|
}
|
|
|
|
|
|
|
|
[draggable].over {
|
|
|
|
border: 1px white dashed;
|
|
|
|
}
|
|
|
|
|
2023-09-13 18:52:52 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** Toasts are little pop-up informational messages. */
|
|
|
|
.toasts {
|
|
|
|
position: fixed;
|
|
|
|
z-index: 100;
|
|
|
|
bottom: 10px;
|
|
|
|
left: 10px;
|
|
|
|
text-align: center;
|
|
|
|
width: calc(100% - 20px);
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
.toast {
|
|
|
|
border-radius: 0.5em;
|
|
|
|
padding: 0.2em 2em;
|
|
|
|
animation: fadeIn ease 1s;
|
|
|
|
margin: 2px auto;
|
2023-09-13 19:10:25 -06:00
|
|
|
background: #333;
|
|
|
|
color: #eee;
|
|
|
|
box-shadow: 0px 0px 8px 0px #0b0;
|
2023-09-13 18:52:52 -06:00
|
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
|
|
0% { opacity: 0; }
|
|
|
|
100% { opacity: 1; }
|
2020-02-29 17:12:35 -07:00
|
|
|
}
|
2023-09-13 19:10:25 -06:00
|
|
|
|
|
|
|
@media (prefers-color-scheme: light) {
|
|
|
|
/*
|
|
|
|
* This uses the alpha channel to apply hue tinting to elements, to get a
|
|
|
|
* similar effect in light or dark mode. That means there aren't a whole lot of
|
|
|
|
* things to change between light and dark mode.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
body {
|
|
|
|
background-color: #b9cbd8;
|
|
|
|
color: black;
|
|
|
|
}
|
|
|
|
main {
|
|
|
|
background-color: #fffd;
|
|
|
|
}
|
|
|
|
a:any-link {
|
|
|
|
color: #092b45;
|
|
|
|
}
|
|
|
|
}
|