2025-01-25 00:30:04 +00:00
|
|
|
:root {
|
|
|
|
--color-no-letter-bg: #666;
|
|
|
|
--color-no-letter-fg: #fff;
|
|
|
|
|
|
|
|
--color-has-letter-bg: #dd4;
|
|
|
|
--color-has-letter-fg: #000;
|
|
|
|
|
|
|
|
--color-right-letter-bg: #4b4;
|
|
|
|
--color-right-letter-fg: #fff;
|
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
2025-01-25 23:26:39 +00:00
|
|
|
min-height: 100dvh;
|
2025-01-25 00:30:04 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
2025-01-25 23:19:06 +00:00
|
|
|
button {
|
|
|
|
font-size: 0.9em;
|
|
|
|
}
|
|
|
|
|
|
|
|
button.secondary {
|
|
|
|
background: var(--bg);
|
|
|
|
color: var(--accent);
|
|
|
|
}
|
|
|
|
|
|
|
|
button.secondary:hover {
|
|
|
|
background: var(--bg);
|
|
|
|
color: var(--accent-hover);
|
|
|
|
}
|
|
|
|
|
2025-01-25 00:30:04 +00:00
|
|
|
main {
|
|
|
|
flex-grow: 1;
|
|
|
|
flex-shrink: 1;
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
2025-01-25 23:19:06 +00:00
|
|
|
body header > h1:only-child {
|
|
|
|
margin-block: 0.5rem;
|
|
|
|
font-size: 2rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
body header {
|
|
|
|
padding-block-end: 0;
|
2025-01-25 02:02:46 +00:00
|
|
|
}
|
|
|
|
|
2025-01-25 00:30:04 +00:00
|
|
|
main > div:first-child {
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
div.playfield {
|
|
|
|
text-align: center;
|
|
|
|
font-size: 1.5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
div.playfield div[data-playfield-target="topMessage"] {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
div.playfield div[data-playfield-target="playfield"] {
|
|
|
|
margin-block: 1rem;
|
2025-01-25 02:02:46 +00:00
|
|
|
font-size: 2.5rem;
|
2025-01-25 00:30:04 +00:00
|
|
|
}
|
|
|
|
|
2025-01-25 23:19:06 +00:00
|
|
|
div.playfield div[data-playfield-target="nextPuzzleButtons"] {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
gap: 0.8rem;
|
2025-01-25 23:32:07 +00:00
|
|
|
margin-block-end: 0.8rem;
|
2025-01-25 23:19:06 +00:00
|
|
|
}
|
|
|
|
|
2025-01-25 00:30:04 +00:00
|
|
|
div.keyboard > div {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-around;
|
|
|
|
}
|
|
|
|
|
|
|
|
div.keyboard button {
|
|
|
|
width: 9vw;
|
|
|
|
border-radius: 2px;
|
|
|
|
height: 4rem;
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
|
|
|
background: #bbb;
|
|
|
|
color: #000;
|
|
|
|
border: solid 1px #444;
|
|
|
|
}
|
|
|
|
|
2025-01-25 23:19:06 +00:00
|
|
|
div.keyboard button:hover {
|
|
|
|
background: #bbb;
|
|
|
|
}
|
|
|
|
|
2025-01-25 00:30:04 +00:00
|
|
|
div.keyboard > div:nth-child(2) {
|
|
|
|
margin-inline: 2vw;
|
|
|
|
}
|
|
|
|
|
|
|
|
div.keyboard > div:nth-child(3) {
|
|
|
|
margin-inline: 4vw;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2025-01-21 11:13:56 +00:00
|
|
|
button[data-keyboard-target="key"].right-pos {
|
2025-01-25 00:30:04 +00:00
|
|
|
background: var(--color-right-letter-bg);
|
|
|
|
color: var(--color-right-letter-fg);
|
2025-01-21 11:13:56 +00:00
|
|
|
}
|
|
|
|
|
2025-01-25 23:19:06 +00:00
|
|
|
button[data-keyboard-target="key"].right-pos:hover {
|
|
|
|
background: var(--color-right-letter-bg);
|
|
|
|
}
|
|
|
|
|
2025-01-21 11:13:56 +00:00
|
|
|
button[data-keyboard-target="key"].right-char {
|
2025-01-25 00:30:04 +00:00
|
|
|
background: var(--color-has-letter-bg);
|
|
|
|
color: var(--color-has-letter-fg);
|
2025-01-21 11:13:56 +00:00
|
|
|
}
|
|
|
|
|
2025-01-25 23:19:06 +00:00
|
|
|
button[data-keyboard-target="key"].right-char:hover {
|
|
|
|
background: var(--color-has-letter-bg);
|
|
|
|
}
|
|
|
|
|
2025-01-21 11:13:56 +00:00
|
|
|
button[data-keyboard-target="key"].miss {
|
2025-01-25 00:30:04 +00:00
|
|
|
background: var(--color-no-letter-bg);
|
|
|
|
color: var(--color-no-letter-fg);
|
2025-01-21 11:13:56 +00:00
|
|
|
}
|
|
|
|
|
2025-01-25 23:19:06 +00:00
|
|
|
button[data-keyboard-target="key"].miss:hover {
|
|
|
|
background: var(--color-no-letter-bg);
|
|
|
|
}
|
|
|
|
|
|
|
|
button[data-keyboard-target="key"].attempted {
|
|
|
|
background: #ddd;
|
|
|
|
}
|
|
|
|
|
|
|
|
button[data-keyboard-target="key"].miss:hover {
|
|
|
|
background: #ddd;
|
|
|
|
}
|
|
|
|
|
2025-01-25 00:30:04 +00:00
|
|
|
div.playfield div.row {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
2025-01-21 11:13:56 +00:00
|
|
|
|
|
|
|
div.playfield div.row span {
|
|
|
|
display: inline-block;
|
|
|
|
border: solid thin gray;
|
|
|
|
|
|
|
|
height: 1.1em;
|
|
|
|
width: 1.1em;
|
2025-01-25 00:30:04 +00:00
|
|
|
line-height: 1.1em;
|
|
|
|
margin: 5px;
|
2025-01-21 11:13:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
div.playfield div.row span.right-pos {
|
2025-01-25 00:30:04 +00:00
|
|
|
background: var(--color-right-letter-bg);
|
|
|
|
color: var(--color-right-letter-fg);
|
2025-01-21 11:13:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
div.playfield div.row span.right-char {
|
2025-01-25 00:30:04 +00:00
|
|
|
background: var(--color-has-letter-bg);
|
|
|
|
color: var(--color-has-letter-fg);
|
2025-01-21 11:13:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
div.playfield div.row span.miss {
|
2025-01-25 00:30:04 +00:00
|
|
|
background: var(--color-no-letter-bg);
|
|
|
|
color: var(--color-no-letter-fg);
|
|
|
|
}
|
|
|
|
|
|
|
|
div.overlay {
|
|
|
|
position: fixed;
|
2025-01-25 23:19:06 +00:00
|
|
|
bottom: 30%;
|
2025-01-25 00:30:04 +00:00
|
|
|
left: 10%;
|
|
|
|
right: 10%;
|
|
|
|
z-index: 10;
|
|
|
|
|
|
|
|
display: none;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
div.overlay.show {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
div.overlay-message {
|
2025-01-25 23:19:06 +00:00
|
|
|
font-size: 1.8rem;
|
2025-01-25 00:30:04 +00:00
|
|
|
line-height: 2.2rem;
|
|
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
color: white;
|
|
|
|
background-color: rgba(0, 0, 0, 70%);
|
|
|
|
border-radius: 5px;
|
|
|
|
|
|
|
|
padding-block: 12px;
|
|
|
|
padding-inline: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hide {
|
2025-01-25 23:19:06 +00:00
|
|
|
display: none !important;
|
2025-01-21 11:13:56 +00:00
|
|
|
}
|