* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  position: relative;
  font: 18px 'Helvetica Neue LT', 'Helvetica Neue', Helvetica, sans-serif; }

body {
  height: 100vh; }

.hidden {
  display: none !important; }

.bg-dark {
  color: white;
  background-color: black; }

.bg-light {
  background-color: white; }

.w-50 {
  width: 50%; }

#popup-wrapper {
  position: fixed;
  z-index: 1; }

.popup {
  display: flex;
  flex-direction: row;
  z-index: 10;
  width: 30vw;
  padding: 1rem;
  border: 2px solid black;
  border-radius: 0.375rem;
  background: white;
  margin: 0.5rem 35vw;
  justify-content: space-between;
  align-items: center; }
  .popup-close {
    cursor: pointer; }

@keyframes pop-in {
  50% {
    transform: scale(1.1); } }

@keyframes pop-out {
  from {
    transform: scale(1);
    opacity: 1; }
  to {
    transform: scale(0);
    opacity: 0; } }
  .popup-anim-in {
    animation: pop-in 0.3s linear; }
  .popup-anim-out {
    animation: pop-out 0.3s linear; }

.home {
  height: inherit;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center; }
  .home-item {
    height: inherit;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; }
    .home-item > * {
      width: 100%;
      height: inherit;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center; }
    .home-item input[type='text'],
    .home-item input[type='password'],
    .home-item button {
      text-align: center;
      width: 50%; }
    .home-item *:not(:last-child) {
      margin-bottom: 1rem; }

.input {
  font: inherit;
  outline: inherit;
  padding: 0.5rem 1rem;
  transition: 0.3s;
  border-radius: 0.375rem;
  width: 100%; }
  .input.dark {
    color: white;
    background-color: black;
    border: 2px solid white; }
  .input.light {
    color: black;
    background-color: white;
    border: 2px solid black; }
  .input:disabled {
    cursor: not-allowed;
    background-color: #e2e2e2; }

.input-group {
  margin-bottom: 1rem; }
  .input-group label {
    display: flex;
    align-items: center;
    margin-bottom: 0.25rem; }
    .input-group label > .validation-error {
      margin-left: auto;
      font-size: 0.75rem;
      color: red; }

.btn {
  color: inherit;
  font: inherit;
  outline: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 1rem;
  transition: 0.3s;
  border-radius: 0.375rem; }
  .btn.light {
    color: black;
    background-color: white;
    border: 2px solid black; }
    .btn.light:hover {
      color: white;
      background-color: black; }
    .btn.light:disabled {
      cursor: not-allowed;
      color: black;
      background-color: white;
      border: 2px solid black; }
  .btn.dark {
    color: white;
    background-color: black;
    border: 2px solid white; }
    .btn.dark:hover {
      color: black;
      background-color: white; }
    .btn.dark:disabled {
      cursor: not-allowed;
      color: white;
      background-color: black;
      border: 2px solid white; }

#lobby {
  height: inherit;
  display: flex;
  flex-direction: row; }

.sidebar {
  width: 16rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 0.75rem; }
  .sidebar-title {
    margin: 0.5rem 0 1rem 0;
    font-size: 1.2rem; }
  .sidebar .players {
    width: 100%;
    text-align: center;
    margin-bottom: 1rem; }
    .sidebar .players-title {
      margin: 0.5rem 0; }
    .sidebar .players-body {
      width: 100%;
      list-style-type: none; }
      .sidebar .players-body-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 0.5rem 1rem; }
  .sidebar .chat {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0; }
    .sidebar .chat-title {
      margin: 0.5rem 0;
      text-align: center; }
    .sidebar .chat-body {
      flex: 1;
      min-height: 8rem;
      max-height: 16rem;
      overflow-y: auto;
      list-style-type: none;
      width: 100%;
      padding: 0.5rem;
      margin: 0;
      background-color: rgba(0, 0, 0, 0.15);
      border-radius: 4px; }
      .sidebar .chat-body li {
        margin: 0.25rem 0;
        word-wrap: break-word;
        font-size: 0.85rem; }
    .sidebar .chat-time {
      opacity: 0.6;
      font-size: 0.75rem;
      margin-right: 0.25rem; }
    .sidebar .chat-input-group {
      display: flex;
      flex-direction: row;
      margin-top: 0.5rem;
      width: 100%; }
      .sidebar .chat-input-group button {
        margin-left: 0.5rem; }
    .sidebar .chat-input {
      flex: 1;
      min-width: 0; }

.game-board {
  display: flex;
  flex-direction: column;
  width: calc(100vw - 16rem); }
  .game-board-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin: 0.5rem 1rem; }
    .game-board-header #round-number {
      font-weight: bold; }
    .game-board-header button:last-child {
      margin-left: 0.5rem; }
  .game-board-idle-timer {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: black;
    margin: auto; }
    .game-board-idle-timer > span {
      display: block;
      text-align: center;
      font-size: 1.25rem;
      line-height: 2rem;
      color: white; }
  .game-board-settings {
    display: flex;
    flex-direction: column;
    margin: 0.5rem 1rem;
    flex-grow: 1; }
  .game-board-playing-area {
    display: flex;
    flex-direction: column;
    margin: 0.5rem 1rem;
    flex-grow: 1; }
    .game-board-playing-area > .table-top {
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      flex-grow: 1;
      flex-shrink: 1; }
      .game-board-playing-area > .table-top > .select-wrapper {
        width: 100%; }
    .game-board-playing-area > .hand {
      min-height: 25rem; }

.game-board-select {
  display: grid;
  grid-template-columns: repeat(auto-fill, 10rem);
  grid-template-rows: repeat(auto-fill, 12rem);
  grid-gap: 0.5rem;
  height: 100%; }
  .game-board-select .black-card {
    width: auto;
    height: calc(100% - 34px - 1rem);
    border-radius: 0.375rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    border: 2px solid black;
    background-color: black;
    color: white; }
    .game-board-select .black-card-wrapper {
      grid-column: 1 / 3;
      grid-row: 1 / 3; }
      .game-board-select .black-card-wrapper > button {
        width: 100%;
        margin: 0.5rem 0; }
    .game-board-select .black-card-text {
      flex-grow: 1; }
    .game-board-select .black-card-pick {
      text-align: right; }
  .game-board-select-item {
    width: 10rem;
    height: 12rem;
    border-radius: 0.375rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    border: 2px solid black; }
    .game-board-select-item:hover {
      cursor: pointer; }
    .game-board-select-item.selected {
      background-color: black;
      color: white; }
  .game-board-select.disabled .game-board-select-item:hover {
    cursor: default; }

.player-hand {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap; }
  .player-hand-item {
    width: 10rem;
    height: 12rem;
    border-radius: 0.375rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    border: 2px solid black;
    margin: 0.25rem; }
    .player-hand-item:hover {
      cursor: pointer; }
    .player-hand-item.selected {
      background-color: black;
      color: white; }

.card-pack-select {
  border: 2px solid black;
  border-radius: 0.375rem; }
  .card-pack-select .search {
    border: none;
    width: 100%; }
  .card-pack-select .header {
    display: grid;
    grid-template-columns: 4fr 1fr 1fr;
    list-style-type: none;
    padding: 0.5rem 1rem;
    color: white;
    background-color: black; }
    .card-pack-select .header li:not(:first-child) {
      text-align: right; }
  .card-pack-select .body {
    height: 10rem;
    overflow-y: scroll; }
    .card-pack-select .body.disabled .pack-option {
      cursor: not-allowed;
      pointer-events: none; }
    .card-pack-select .body .pack-option {
      display: grid;
      grid-template-columns: 4fr 1fr 1fr;
      list-style-type: none;
      padding: 0.25rem 1rem;
      cursor: pointer; }
      .card-pack-select .body .pack-option li {
        pointer-events: none; }
      .card-pack-select .body .pack-option li:not(:first-child) {
        text-align: right; }
      .card-pack-select .body .pack-option:hover {
        background-color: #e2e2e2; }
      .card-pack-select .body .pack-option.selected {
        background-color: #e2e2e2; }
  .card-pack-select .footer {
    border-top: 2px solid black;
    padding: 0.5rem 1rem; }

#filters {
  margin: 1rem; }
  #filters #packs {
    margin-bottom: 1rem; }

#cards-list-wrapper {
  margin: 2rem 1rem;
  border-radius: 0.375rem;
  overflow: hidden; }

table#cards-list {
  width: 100%;
  border-collapse: collapse; }
  table#cards-list thead tr {
    background-color: black;
    color: white; }
    table#cards-list thead tr th {
      padding: 1rem; }
  table#cards-list tbody tr:nth-child(even) {
    background-color: #e2e2e2; }
  table#cards-list td,
  table#cards-list th {
    border-top: 2px solid #000;
    border-bottom: 2px solid #000;
    padding: 0.5rem 1rem; }
    table#cards-list td:first-child,
    table#cards-list th:first-child {
      border-left: 2px solid #000; }
    table#cards-list td:last-child,
    table#cards-list th:last-child {
      border-right: 2px solid #000; }
    table#cards-list td:not(:first-child),
    table#cards-list th:not(:first-child) {
      text-align: center; }

::-webkit-scrollbar {
  width: 0.7rem; }

::-webkit-scrollbar-track {
  background: #f1f1f1; }

::-webkit-scrollbar-thumb {
  background: #444444; }

::-webkit-scrollbar-thumb:hover {
  background: #222222; }
