body { margin: 0; font-family: sans-serif; } * { box-sizing: border-box; } .fs, body, html { width: 100%; height: 100%; overflow: hidden; } .card, .cp { display: flex; align-items: center; justify-content: center; } .button { background-color: rgba(0, 0, 0, 0); transition: background-color 200ms ease-in-out; } .button:hover { background-color: rgba(0, 0, 0, 0.2); } .cp { color: white; font-family: monospace; font-size: 48px; } .card { width: 150px; height: 220px; background-color: #d8ecbe; margin: 5px; float: left; box-shadow: #000000 1px 1px 5px -1px; font-size: 17pt; color: #4c4c4c; opacity: 1; user-select: none; transition: background-color 200ms ease-in-out, opacity 200ms ease-in-out, top 200ms ease-in-out, left 200ms ease-in-out, transform 100ms ease-in-out; } .selected { background-color: #8bc9ee; z-index: 5; } .card.selected:hover { background-color: #8bc9ee; } .card:hover { background-color: #e3cfbb; } .panel { position: absolute; top: 0; left: 0; width: 100%; background-color: #198cfc; box-shadow: #000000 0px 1px 4px 0px; }