@font-face {
  font-family: "Fell";
  src: url("/IMFePIit29P.ttf");
}

@font-face {
  font-family: "Fell Sc";
  src: url("/IMFePIsc29P.ttf");
}

body {
  background-color: #e1eef2;
  margin: 0;
  font-family: "Fell";
  hyphens: auto;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.wrapper {
  max-width: 70em;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  background-color: #FFC63F;
  position: relative;
  box-sizing: border-box;
  padding: 1em;
  flex: 1;
}

.items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.items > li {
  display: inline-block;
}

.items > li a {
  width: min(12vh, 12vw);
  height: min(12vh, 12vw);
  background: #D66C00;
  border-radius: min(7vh, 7vw);
  display: block;
  border: 3px solid #1a1c1c;
}

.items > li a:hover {
  background-color: #f39a3f;
  z-index: 1;
}

.items > li.face-up a {
  background-color: #ed8112;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.line {
  border-bottom: 3px solid #1a1c1c;
  height: 1.4em;
  text-align: center;
  position: absolute;
  transform-origin: 0 0;
  font-size: 1.2em;
  padding: 0 min(6vh, 6vw);
  box-sizing: border-box;
}

.fullview {
  width: 100%;
  height: 100%;
  position: fixed;
  left: 0;
  top: 0;
  background-color: #e1eef280;
  box-sizing: border-box;
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
}
a.fullview {
  text-decoration: none;
}
.fullview > div {
  font-size: 1.2em;
  max-height: 100%;
  max-width: 75vh;
  background-color: #006680;
  padding: 1em;
  color: white;
  border-radius: 20px;
  border: 5px solid #1a1c1c;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.fullview > div img {
  float: right;
  width: 7em;
  height: 7em;
  border-radius: 7em;
  border: 3px solid #1a1c1c;
  margin-bottom: 1em;
}

h1, .desc {
  font-family: "Fell Sc";
  margin-left: 0.5rem;
}

/* This wrapper is necessary so that the scrollbar doesn't clip out of
 * the rounded border */
.fulltext-wrapper {
  flex-grow: 1;
  background-color: #99d7e9;
  border-radius: 20px;
  border: 3px solid #1a1c1c;
  color: #1a1c1c;
  overflow: hidden;
}

.fulltext {
  padding: 0 0.5em;
  overflow-y: auto;
  height: 100%;
}

.fulltext p {
  margin: 0.5em 0;
}
blockquote {
  background: #f9f9f9cc;
  border-left: .5em solid #1a1c1c66;
  margin: .5em;
  padding: .5em;
  quotes: "\201C""\201D""\2018""\2019";
  /* Otherwise the :before is larger than the blockquote and creates a scrollbar in the parent */
  min-height: 4em;
}
blockquote:before {
  color: #1a1c1c66;
  content: open-quote;
  font-size: 4em;
  line-height: 0.1em;
  margin-right: 0.25em;
  float: left;
  margin-top: 2.5rem;
}

aside {
  float: right;
  padding: 1em;
}
