* { box-sizing: border-box; } body { margin: 0; font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial; } /* ---------------------------------------------------------------------------*/ /* Misc */ /* ---------------------------------------------------------------------------*/ .error { display: flex; flex-direction: column; align-items: center; font-size: 2.6rem; margin: 2rem; } /* ---------------------------------------------------------------------------*/ /* Header */ /* ---------------------------------------------------------------------------*/ .navbar { display: flex; flex-direction: row; height: 3rem; background-color: #4CAF50; color: #FFF; font-size: 1.8rem; line-height: 3rem; } .navbar-item, .plain-navbar-item { padding: 0 .5rem; } .navbar-item:hover { cursor: pointer; background-color: #999; } .flex-navbar-item { flex: 1; } .navbar-item.account-id { display: flex; flex-direction: column; margin-right: 1rem; } .navbar-item.account-id .heading { font-size: 0.8rem; line-height: 0.9rem; color: rgb(217, 216, 219); text-align: center; text-transform: uppercase; margin-top: 0.4rem; } .navbar-item.account-id .value { font-size: 1.5rem; line-height: 1.5rem; } .navbar-item.account-id:hover { cursor: initial; background-color: inherit; } /* ---------------------------------------------------------------------------*/ /* List of decks */ /* ---------------------------------------------------------------------------*/ .decks { margin-top: 1rem; display: flex; flex-direction: row; flex-wrap: wrap; } .deck-tile { margin: .5rem; width: 20rem; height: 12rem; border: 1px solid gray; display: flex; flex-direction: column; page-break-inside: avoid; } .deck-tile :hover { background-color: rgb(200, 200, 255); } .deck-tile-content { flex-grow: 1; display: flex; flex-direction: column; background-color: white; page-break-inside: avoid; } .deck-tile-header { font-weight: 700; padding: 1rem; font-size: 1.28571429em; line-height: 1.2857em; background-color: #3F51B5; color: white; } .deck-tile-meta { font-size: 1em; color: rgba(0,0,0,.4); } .deck-tile-body { flex: 1; padding: 1rem; display: flex; justify-content: center; flex-direction: column; align-items: center; } .deck-tile-body-item { /* Vertical centering */ /* display: flex; flex-direction: column; justify-content: center; */ width: 100%; padding: 0 1rem; flex: 1; } .deck-tile-footer { padding: 0.5rem; color: #a8a8a8; background: #eaeaea; }