* { box-sizing: border-box; } body { margin: 0; font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial; } /* ---------------------------------------------------------------------------*/ /* 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; display: flex; flex-direction: column; background-color: rgb(255, 255, 255); page-break-inside: avoid; border-radius: 4px; box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.37); } .deck-tile-header { background-color: #F44336; color: rgb(255, 255, 255); display: flex; flex-direction: row; padding: 0.5rem; border-radius: 4px 4px 0 0; font-size: 1.2rem; font-weight: 400; } .deck-tile-header:hover { background-color: rgb(96, 104, 126); cursor: pointer; } .deck-tile-header-name { flex: 1; } .deck-tile-header-id { } .deck-tile-body { flex: 1; 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; border-radius: 0 0 4px 4px; color: #a8a8a8; background: #eaeaea; }