body {
  height: 100vh;
  line-height: 1.2;
  font-family: sans-serif;
  display: flex;
}

.center {
  text-align: center;
}

.hide {
  display: none;
}

.upload-error {
  color: red;
}

.section {
  border: 1px solid var(--fg-colour);
  padding: 8px;
}

.button {
  border: 1px solid var(--fg-colour);
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  user-select: none;
  font-weight: bold;
}
.button:hover {
  background-color: var(--bg-accent);
}


.print {
  background-color: var(--fg-colour);
  margin: 0 auto;
  width: 4rem;
  height: 4rem;
  border-radius: 4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}

.print svg {
  fill: var(--bg-colour);
  height: 2rem;
  width: 2rem;
}

.menu {
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  padding-right: 1rem;
}


.sources-title {
  text-align: center;
}

.sources-race-container,
.sources-class-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.sources-race,
.sources-class {
  flex-grow: 1;
}

.class-colour {
}

.sources {
}

.source {
}

.source:hover {
}

th {
  font-size: 16px;
}

.sources-table tr {
  border-top: 1px solid var(--fg-colour);
  border-bottom: 1px solid var(--fg-colour);
}

.source-license {
}

.source-active {
  text-align: center;
}


.upload {
  text-align: center;
  display: flex;
  gap: 4px;
  flex-direction: column;
}

input.card-colour {
  width: 8rem;
}

input[type=file] {
  display: none;
}

.file-upload {
  width: 100%;
  display: inline-block;
  cursor: pointer;
  user-select: none;
}

.sample {
  width: 100%;
  border: 1px solid var(--fg-colour);
  color: var(--fg-colour);
  display: inline-block;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
}

.preview {
  width: 100%;
}

.preview .sheet {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  overflow: visible;
  gap: 1px;
}

.license-info td {
  padding: 0.5rem 1rem;
}

@media screen {
  body {
    padding: 1rem;
  }
  .preview {
    overflow-y: scroll;
  }
  .preview .sheet {
    padding: 4px;
  }
}

@media print {
  .menu,
  #bmc-wbtn,
  #bmc-wbtn * {
    display: none!important;
  }

  .preview .sheet:not(:first-child) {
    margin-top: 1rem;
  }
}
