body {
  background: #040404;
  color: #1a1a1a;
  font-family: "Muli", "Verdana", sans-serif;
  font-size: 12pt;
  margin: 0;
  padding: 1rem 2rem;
}
body > h1:first-child {
  margin-top: 0;
}

h1 {
  font-size: 16pt;
}

h2 {
  font-size: 14pt;
}

h3 {
  font-size: 12pt;
  color: #555;
}

#main {
  box-sizing: border-box;
  max-width: 1800px;
  margin: 1rem auto;
  background: white;
  padding: 1rem;
  border-radius: 4px;
}
#main h1 {
  margin: 0 0 0.5rem 0;
}

#lists {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 0.5rem;
}

.cat {
  display: flex;
  flex-direction: row;
  border: 1px solid #0b559b;
  background: #f2f8ff;
  border-radius: 2px;
  box-sizing: border-box;
  flex: 1 0 18rem;
  gap: 0.5rem;
  justify-content: space-between;
  padding: 0.25rem 0.5rem;
}
.cat:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  background: #e0f0f8;
}
.cat h2 {
  font-size: 1.1rem;
  margin: 0 0 0.25rem 0;
  letter-spacing: 0.2px;
}
.cat .summary {
  flex: 1;
}
.cat .summary p {
  margin: 0 0 0.25rem 0;
  font-size: 10pt;
}
.cat .activity {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.cat .activity a {
  display: inline-block;
  font-size: 10pt;
  color: #fdfdfd;
  background: #222222;
  padding: 4px 8px;
  border-radius: 2px;
  text-align: center;
  margin-bottom: 0;
}
.cat .activity a:hover {
  filter: brightness(1.05);
  outline: 2px solid rgba(11, 85, 155, 0.35);
}
.cat .activity a:last-child {
  margin-bottom: 0;
}
.cat .activity a.vocab {
  background: #16a34a;
}
.cat .activity a.flash {
  background: #2563eb;
}
.cat .activity a.match {
  background: #d97706;
}

#work {
  display: flex;
  flex-direction: row;
}

#board {
  flex-basis: 70%;
  background: #f8f8f8;
  border: 1px solid #dddddd;
  padding: 0.4rem;
  position: relative;
  margin-bottom: 2rem;
}

#cards {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  perspective: 100rem;
  user-select: none;
}

.card {
  flex: 0 0 12rem;
  height: 12rem;
  margin: 0.4rem;
  transition: transform 1s;
  transform-style: preserve-3d;
  position: relative;
}
.card.flip {
  transform: rotateY(180deg);
}
.card.match .face {
  opacity: 0.5;
}
.card .face {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  backface-visibility: hidden;
  border: 2px solid #bfbfbf;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.card .face.lang-0 {
  color: #1a1a1a;
  background: white;
}
.card .face.lang-1 {
  color: #1a1a1a;
  background: lightcoral;
}
.card .face img {
  width: 8rem;
  image-rendering: auto;
  -webkit-font-smoothing: antialiased;
}
.card .face span {
  text-align: center;
}
.card .blank {
  background: url("img/card.png") no-repeat 100% 100%;
}
.card .front {
  transform: rotateY(180deg);
}

#board.no-text img {
  width: 12rem;
}
#board.no-text span.has-image {
  display: none;
}

#score {
  background: white;
  padding: 1rem;
  color: darkgreen;
  border: 1px solid darkseagreen;
  border-radius: 0.25rem;
}

table.tb {
  border-collapse: collapse;
  margin-bottom: 1em;
}
table.tb th, table.tb td {
  border: 1px solid #888888;
  padding: 4px 8px;
}
table.tb th {
  background: #040404;
  color: #fdfdfd;
  text-align: left;
}
table.tb tr.eng {
  font-style: italic;
}
table.tb td.na {
  background: #cccccc;
}

table.list {
  border-collapse: collapse;
}
table.list tr {
  border: 1px solid silver;
}
table.list tr.hid {
  display: none;
}
table.list th, table.list td {
  padding: 4px 8px;
}
table.list th {
  background: #040404;
  color: #fdfdfd;
  text-align: left;
}
table.list td:first-child {
  text-align: right;
}

table.cheat {
  width: 100%;
}
table.cheat td span {
  margin: 4px;
  visibility: hidden;
}
table.cheat:hover td span {
  visibility: visible;
}
table.cheat.show {
  background: #ffffee;
}
table.cheat.show td span {
  visibility: visible;
}

#reload {
  position: absolute;
  right: 0;
  bottom: -2rem;
  height: 2rem;
  box-sizing: border-box;
  cursor: pointer;
  display: block;
  padding: 0.25rem 0.5rem;
  background: #0b559b;
  color: #fdfdfd;
}
#reload:hover {
  background: #2C8AEF;
}

#list {
  flex-basis: 30%;
  padding-left: 1rem;
}
#list > p {
  font-size: 90%;
  font-style: italic;
}

#opts {
  display: flex;
  background: #2C8AEF;
  border: 1px solid #4444ff;
  color: #fdfdfd;
  padding: 4px 8px;
  margin-bottom: 1rem;
}
#opts .levels {
  margin-left: 1rem;
}
#opts label {
  margin-right: 1rem;
}

#links {
  display: flex;
  background: #2C8AEF;
  border: 1px solid #4444ff;
  color: #fdfdfd;
  padding: 4px 8px;
  margin-top: 1rem;
}
#links span, #links a {
  margin-right: 1rem;
}
#links span {
  font-weight: bold;
}
#links a {
  color: #fdfdfd;
}

a.link-button {
  display: inline-block;
  background: #2C8AEF;
  color: #fdfdfd;
  padding: 2px 7px 4px 7px;
  margin: 1rem 1rem 0 0;
  border-radius: 4px;
}
a.link-button:hover {
  background: #44ccff;
}

.am-book {
  display: flex;
}
.am-book img {
  width: 120px;
  margin-right: 1rem;
}

@media print {
  #opts, #links, a.link-button {
    display: none !important;
  }

  #main, #game {
    margin: 0 !important;
  }

  #table.list {
    width: 100% !important;
    page-break-inside: auto;
  }
  #table.list tr {
    page-break-inside: avoid;
    page-break-after: auto;
  }

  h1 {
    font-size: 14pt !important;
  }

  h2 {
    font-size: 12pt !important;
  }

  body {
    font-size: 10pt !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cat, .cat .activity a, .card {
    transition: none;
  }
}

/*# sourceMappingURL=main.css.map */
