card { position: absolute; display: block; width: 150px; height: 230px; background-color: var(--card-bg); color: var(--card-color); border: 2px solid var(--card-border); border-radius: 10px; transition-duration: 0.2s; cursor: pointer; flex-direction: column; overflow: hidden; user-select: none; box-sizing: border-box; } card:hover { box-shadow: 0 0 10px var(--card-hover); } carea { padding-left: 2px; padding-right: 2px; position: absolute; display: flex; vertical-align: middle; width: 100%; box-sizing: border-box; } carea.top, carea.topl, carea.topr { top: 0; height: 8%; text-align: center; } carea.topl { width: 50%; text-align: left; } carea.topr { right: 0; width: 50%; text-align: right; } carea.mid { top: 8%; height: 84%; } carea.midt { top: 8%; height: 42%; } carea.midb { top: 50%; height: 42%; } carea.bot, carea.botl, carea.botr { bottom: 0; height: 8%; text-align: center; } carea.botl { width: 50%; text-align: left; } carea.botr { right: 0; width: 50%; text-align: right; } carea.all { top: 0; height: 100%; } ctext { display: inline-block; flex: 1; font-size: small; height: auto; } cimage { background-position: center center; background-repeat: no-repeat; background-size: contain; flex: 1; } card[drag=true] { z-index: 3; } /* Deck */ deck { position: absolute; width: 0; height: 0; top: 0; left: 0; overflow: visible; display: flex; justify-content: center; align-content: center; } deck > card { transform: translate(-75px, calc(-115px + ( var(--cpos) * 3px ))); } deck[mode="strip-hl"] > card { transform: translate(calc(-75px - ( var(--cpos) * 75px )), -115px); } deck[mode="strip-hr"] > card { transform: translate(calc(-75px + ( var(--cpos) * 75px )), -115px); } deck[mode="strip-vu"] > card { transform: translate(-75px, calc(-115px - ( var(--cpos) * 115px ))); } deck[mode="strip-vd"] > card { transform: translate(-75px, calc(-115px + ( var(--cpos) * 115px ))); }