@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap'); @import url('https://fonts.googleapis.com/css2?family=Source+Serif+Pro:ital,wght@0,400;0,700;1,400&display=swap'); body { color: #ddd; background-color: #000; font-family: 'Lato', sans-serif; user-select: none; margin: 0; padding: 0; } div#main { background-color: #1a1a1a; height: calc(100vh - 2*2px); width: min(80vh, calc(100vw - 2*2px)); margin: 0 auto; padding: 2px; display: grid; grid-template-columns: 1fr; grid-template-rows: min-content min-content 2fr 2fr; grid-template-areas: "settings-bar" "rem-bar" "match" "keypad"; } div#keypad { grid-area: keypad; font-size: clamp(1.5vh, 2vw, 2vh); display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 1.2fr; grid-auto-rows: 1fr; } div#oi { visibility: hidden; background-color: #1a1a1a; font-size: 2em; height: 1.2em; width: 3ch; position: absolute; left: 50%; right: 50%; top: 50%; bottom: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; } div#rem-bar { position: relative; grid-column: 1 / span 3; font-size: clamp(1.5vh, 2vw, 2vh); display: grid; grid-template-columns: repeat(2, 1fr); } div#user-state, div#boat-state { background-color: #222; font-size: 1.5em; margin: 2px; padding: 0.4rem; flex-direction: column; display: flex; align-items: center; } div#user-state.active, div#boat-state.active { background-color: #240; } div#user-rem, div#boat-rem { font-size: 3em; font-weight: bold; } div#boat-rem { justify-content: right; } div#user-name, div#boat-name { color: #aaa; } div#user-sugg, div#boat-sugg { color: #aaa; font-size: 0.8em; } div#user-sugg:after, div#boat-sugg:after { content: '\200b'; } div#prompt-container { grid-column: 1 / span 3; background-color: #222; margin: 2px; display: flex; align-items: center; justify-content: center; } div#prompt-msg, div#prompt, div#prompt-sugg { font-size: 1.5em; display: grid; align-items: center; } div#prompt-msg, div#prompt-sugg { flex: 1; color: #aaa; padding: 0 0.4rem; } div#prompt-sugg { text-align: right; } div#prompt { text-align: center; font-size: 3em; width: 4ch; } div.key { color: #aaa; background-color: #282828; font-size: 1.5em; margin: 2px; display: flex; align-items: center; justify-content: center; } @media (hover: hover) and (pointer: fine) { div.key:hover { background-color: #240; } } div.key:active { color: #fff; background-color: #360; } div.key.num { font-size: 2.5em; font-weight: 700; } div#settings-bar { grid-area: settings-bar; background-color: #222; font-size: clamp(1.5vh, 2vw, 2vh); margin: 2px; padding: 0.4rem; display: flex; align-items: center; justify-content: left; gap: 0.4rem; } div#settings-bar div { font-size: 1.5em; } div#settings-bar div.input.first { margin-left: auto; } div#settings-bar div.input { background-color: #333; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; } div#settings-bar span { padding: 0 0.4rem; } div#settings-bar input { color: #ddd; background-color: #3d2466; font-family: inherit; font-size: 1em; text-align: right; width: 4ch; padding: 0 0.4rem; border: 0; } div#settings-bar div.help-button { background-color: #3d2466; font-weight: 700; padding: 0 0.4em; } @media (hover: hover) and (pointer: fine) { div#settings-bar input:hover { background-color: #5c3699; } div#settings-bar div.help-button:hover { background-color: #5c3699; } } div#settings-bar input:focus { color: #fff; background-color: #6e41b8; outline: #5a0 solid 3px; } div#settings-bar div.help-button:active { color: #fff; background-color: #6e41b8; } div#match { grid-area: match; background-color: #222; font-size: clamp(1.5vh, 2vw, 2vh); overflow: auto; scrollbar-gutter: stable both-edges; margin: 2px; padding: 0.4rem; display: grid; grid-template-columns: 1.5ch repeat(5, 2fr) 1.5ch; grid-auto-rows: min-content; grid-row-gap: 0.3em; } div#match div { font-size: 2em; min-width: 0; display: flex; align-items: center; justify-content: center; } div#match .visit-col1 { grid-column: 2; } div#match .visit-col3 { color: #888; grid-column: 4; } div#match .p0 { color: #f00; font-weight: bold; } div#match .p1 { color: #f00; } div#match .p20 { color: #f60; } div#match .p40 { color: #fa0; } div#match .p60 { color: #dd0; } div#match .p100 { color: #2c2; } div#match .p140 { color: #0f0; } div#match .p180 { color: #0f0; font-weight: bold; } div#match .visit-col6 { color: #888; justify-content: left; font-family: monospace; white-space: pre; } .modal { background-color: rgba(0, 0, 0, 0.6); width: 100%; height: 100%; display: none; position: fixed; top: 0; left: 0; z-index: 1; } .modal-content { background-color: #222; font-size: 1.4em; font-family: 'Source Serif Pro', serif; width: calc(min(40em, 90vw) - 4em); max-height: calc(calc(100vh - 10vw) - 4em); margin: 5vw auto; padding: 2em; outline: #5a0 solid 3px; overflow: scroll; } @media (max-width: 400px) { .modal-content { font-size: 1em; } } .modal-content p { margin: 0; } .modal-content p + p { margin-top: 1em; } a { color: #5a0; } a:hover { color: #7d0; } @media (max-aspect-ratio: 9/20) { div#settings-bar div.input { display: flex; flex-direction: column; } div#settings-bar span { padding: 0 0.4rem; } div#settings-bar .help-button { font-size: 3em; } }