@import url('https://fonts.googleapis.com/css2?family=Faustina&display=swap'); body{ --C_PRIMARY: #f89a17; --C_SEC: #44968e; --C_TER: #2a5999; --C_OK: #67b60a; --C_TRIADIC1: #85ea11; --C_TRIADIC2: #11ea76; --C_BG1: #c0ccdf; --C_BG2: #e3ecf3; --C_BG3: #e9f3e3; --C_UNKNOWN: #f84c17; --C_TEXTINPUT_COLOR: #2f4c6e; font-family: 'Faustina', serif; --MAINBOX_WIDTH: 30em; } input[type="text"] { font-family: 'Faustina', serif; font-size: 32px; border-color: #2a5999; border-width: 0 0 0.1em 0; } input[type="text"]:focus { outline: none; } input#nameinput { width: 100%; color: var(--C_TEXTINPUT_COLOR); transition: color 0.3s ease; } input#nameinput[validity="ok"] { color: var(--C_OK); transition: color 0.3s ease; } input#nameinput[validity="bad"] { color: var(--C_UNKNOWN); transition: color 0.3s ease; } section#hintbox { background-color: var(--C_BG2); margin: 0.2em 0.5em; color: var(--C_TER); font-size: 24px; padding: 0.5em 0; } span.hit { display: block; position: static; padding: 0.2em 0.5em; cursor: pointer; } span.hit:hover { background-color: var(--C_BG3); } span.highlight { font-weight: bold; color: var(--C_SEC); text-decoration: underline; } section#mainbox { display: block; position: absolute; width: min(var(--MAINBOX_WIDTH), calc(100vw - 1em)); } *[shown="false"] { visibility: hidden; display: none; opacity: 0; transition: 0.3s ease; width: 0; height: 0; } *[shown="true"] { opacity: 1; transition: 0.3s ease; }