body {
  font-family: sans-serif;
  padding: 1em;
}

h1 { margin-top: 0; }

.chara-cards {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1em;
}

.chara-cards .card {
  width: 100%;
  max-width: 200px;
  height: 250px;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.chara-cards .card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.chara-cards .card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.chara-cards .card .text {
  margin: auto 0 0;
  padding: 1em;
  background: white;
  text-align: center;
}

#wiki img {
  max-height: 100%;
  max-width: 100%;
}

aside {
  float: right;
  border: 1px solid gray;
  width: 300px;
  height: fit-content;
  margin: 0 0 1em 1em;
}

aside img {
  max-height: 350px;
}

.wiki-quote {
  text-align: center;
}

.wiki-quote > span {
  display: block;
  margin-bottom: 0.5em;
}

.wiki-quote > span::before,
.wiki-quote > span::after {
  content: "“";
  padding: 0 0.5em;
  font-size: 1.25em;
  line-height: 0;
  font-family: serif;
  font-weight: bold;
  color: gray;
}

.wiki-quote > span::after {
  content: "”";
}

.wiki-quote > cite::before {
  content: "―";
  margin-right: 0.5em;
}

.wiki-table {
  text-align: left;
}

.wiki-table td:first-of-type {
  padding: 0;
}

th { padding-top: .5em; padding-right: .5em; }

td, tr, th { vertical-align: bottom; }

.wiki-caption {
  text-align: center;
  font-style: italic;
}

.wiki-gallery img {
  height: 250px;
  margin: .25em;
  border: 1px solid black;
}

@media screen and (max-width: 600px) {
  aside {
    float: none;
    width: 90%;
  }
}
