/* TODO: clean up / split ingame vs pregame */ :root { --main-color: #c1b19f; --link-color: #808db0; --link-hover-color: #c5cfeb; --highlight-color: #dd7e7e; --input-bg-color: #262523; --bg-color: rgba(0,0,0,.7); } html, body { margin: 0; background: #2b2b2b; color: var(--main-color); height: 100%; } * { font-family: monospace; font-size: 15px; } h1, h2, h3, h4 { font-size: 20px; } a { color: var(--link-color); text-decoration: none; } a:hover { color: var(--link-hover-color); } td, th { vertical-align: top; } .btn { display: inline-block; background: var(--input-bg-color); color: var(--link-color); border: solid 1px black; padding: 5px 10px; box-shadow: 1px 1px 2px rgba(0,0,0,.5), 0 0 1px rgba(150,150,150,.4) inset; border-radius: 4px; user-select: none; } .btn:hover { background: #2f2e2c; color: var(--link-hover-color); border: solid 1px #111; box-shadow: 0 0 1px rgba(150,150,150,.4) inset; cursor: pointer; } .btn:disabled { background: #2f2e2c; color: #8c4747 !important; border: solid 1px #111; box-shadow: 0 0 1px rgba(150,150,150,.4) inset; cursor: not-allowed; } input { background: #333230; border-radius: 4px; color: var(--main-color); padding: 6px 10px; border: solid 1px black; box-shadow: 0 0 3px rgba(0, 0,0,0.3) inset; } input:focus { border: solid 1px #686767; background: var(--input-bg-color); } /* ingame */ .scores { position: absolute; right: 0; top: 0; background: var(--bg-color); padding: 5px; border: solid 1px black; box-shadow: 0 0 10px 0 rgba(0,0,0,.7); } .timer { position: absolute; left: 0; top: 0; background: var(--bg-color); padding: 5px; border: solid 1px black; box-shadow: 0 0 10px 0 rgba(0,0,0,.7); } .menu { position: absolute; top: 0; left: 50%; transform: translateX(-50%); background: var(--bg-color); padding: 5px; border: solid 1px black; box-shadow: 0 0 10px 0 rgba(0,0,0,.7); z-index: 2; } .closed { display: none; } .overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--bg-color); } .overlay.transparent { background: transparent; } .overlay-content { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); background: var(--bg-color); padding: 5px; border: solid 1px black; box-shadow: 0 0 10px 0 rgba(0,0,0,.7); z-index: 1; } .connection-lost .overlay-content { padding: 20px; text-align: center; } .preview { position: absolute; top: 20px; left: 20px; bottom: 20px; right: 20px; } .preview .img { height: 100%; width: 100%; position: absolute; background-repeat: no-repeat; background-position: center; background-size: contain; } .menu .opener { display: inline-block; margin-right: 10px; color: var(--link-color); } .menu .opener:last-child { margin-right: 0; } .menu .opener:hover { color: var(--link-hover-color); cursor: pointer; } canvas.loaded { cursor: none; } kbd { background-color: #eee; border-radius: 3px; border: 1px solid #b4b4b4; box-shadow: 0 1px 1px rgba(0, 0, 0, .2), 0 2px 0 0 rgba(255, 255, 255, .7) inset; color: #333; display: inline-block; font-size: .85em; font-weight: 700; line-height: 1; padding: 2px 4px; white-space: nowrap; } /* pre-game stuff */ .nav { list-style: none; padding: 0; } .nav li { display: inline-block; margin-right: 1em; } .image-list { overflow: scroll; } .image-list-inner { white-space: nowrap; } .imageteaser { width: 150px; height: 100px; display: inline-block; margin: 5px; background-size: contain; background-position: center; background-repeat: no-repeat; background-color: #222; cursor: pointer; } .game-teaser-wrap { display: inline-block; width: 20%; padding: 5px; box-sizing: border-box; } .game-teaser { display: block; background-repeat: no-repeat; background-position: center; background-size: contain; position: relative; padding-top: 56.25%; width: 100%; background-color: #222222; } .game-info { position: absolute; top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; } .game-info-text { position: absolute; top: 0; background: var(--bg-color); padding: 5px; } .game-replay { position: absolute; top: 0; right: 0; } html.view-game { overflow: hidden; } html.view-game body { overflow: hidden; } html.view-replay { overflow: hidden; } html.view-replay body { overflow: hidden; } html.view-replay canvas { cursor: grab; }