@font-face{
  font-family: m;
  src: url("uzura.min.woff");
  font-display: block;
}
@font-face{
  font-family: u;
  src: url("uzura.woff");
  font-display: block;
}
:root {
  font-size: 1.5rem;
}
body {
  margin: 0.3em;
  font-family: m;
  color: #3e3a38;
  background-color: #fff6f0;
}
.preload * { transition: none !important }

header {
  overflow: hidden;
  position: relative;
  margin: -0.3em -0.3em 1em;
}
header img {
  vertical-align: bottom;
  margin: 0;
}
#header-base {
  width: 100%;
  height: 40vmin;
  object-fit: cover;
}
#header-garland {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
}
#header-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#header-letter {
  cursor: pointer;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  width: 65vmin;
  height: auto;
  object-fit: contain;
}
aside {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}
aside img {
  cursor: pointer;
  margin: 0.3% 0.5%;
  width: 32%;
  object-fit: contain;

}
@media (max-width: 645px) {
  aside img {
    width: 49%;
  }
}
.search {
  display: flex;
  margin: 1.5em 1vw 1em;
  align-items: center;
  justify-content: center;
}
.search input[type=text] {
  display: block;
  appearance: none;
  background-color: rgb(248, 233, 217);
  border: 1px solid transparent;
  outline: none;
  flex: 1;
  max-width: 10rem;
  min-width: 0;
  height: 1rem;
  font-size: 1rem;
  margin: 0;
  padding: 0.5rem 1rem;
  transition: 200ms;
  transition-property: background-color, border-color, border-radius;
  font-family: m, u;
  text-shadow:
    1px 2px 0 #FFF,
    -1px -2px 0 #FFF,
    -1px 2px 0 #FFF,
    1px -2px 0 #FFF,
    2px 1px 0 #FFF,
    -2px -1px 0 #FFF,
    -2px 1px 0 #FFF,
    2px -1px 0 #FFF,

    0px 2px 0 #FFF,
    0 -2px 0 #FFF,
    -2px 0 0 #FFF,
    2px 0 0 #FFF,
    1px 1px 0 #FFF,
    -1px -1px 0 #FFF,
    -1px 1px 0 #FFF,
    1px -1px 0 #FFF,
    0px 1px 0 #FFF,
    0 -1px 0 #FFF,
    -1px 0 0 #FFF,
    1px 0 0 #FFF;
}
.search input[type=text]:focus {
  background-color: white;
  border: 1px solid black;
  border-radius: 0.2em;
}
.search input[type=text]::placeholder {
  color: #999;
}
#searching {
  cursor: pointer;
  display: block;
  margin: -1rem 0 -1rem 0;
  padding: 1rem 0 1rem 0.5rem;
  width: 2rem;
  height: 2rem;
}
#reset {
  cursor: pointer;
  margin: -1.1rem -0.3rem -0.9rem 0;
  padding: 1rem 0.3rem 1rem 0;
  font-size: 2.2rem;
  width: 2rem;
  height: 2rem;
}

main {
  margin: 1em 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}
main figure {
  cursor: pointer;
  position: relative;
  max-width: calc(45% - 4px);
  width: 200px;
  max-height: calc(45vw - 4px);
  height: 200px;
  margin: 0.67em 5px;
  border-radius: 5px;
  border: dashed 2px #c90;
  box-shadow: 5px 5px 0 rgba(192, 151, 81, 0.219);
  background-color: #fffaf6;
  outline-offset: 5px;
}
main figure.empty {
  width: 204px;
  height: 0;
  border: none;
  margin: 0 5px;
}
figcaption {
  position: absolute;
  bottom: 0;
  width: calc(100% - 2em);
  padding: 0.5em 1em;
  color: white;
  text-shadow: 0 1px 3px #630;
  background-color: rgba(90, 60, 0, 0.2);
}
main img {
  width: 100%;
}
#popup {
  z-index: 4;
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 5px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  margin: 10px;
  background-color: #fe9;
  display: none;
  opacity: 0;
  justify-content: space-around;
  align-items: center;
}
#close {
  cursor: pointer;
  position: absolute;
  right: 0;
  top: 0;
  padding: 0.3em;
  font-size: 3em;
}
#downloader {
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: space-around;
  align-items: center;
}
#popupimg {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

#up {
  cursor: pointer;
  user-select: none;
  visibility: hidden;
  opacity: 0;
  position: fixed;
  bottom: 0;
  right: 0;
  border-radius: 5%;
  margin: 0.5em;
  padding: 0.5em;
  font-size: 200%;
  color: white;
  background-color: #f66;
  outline: dashed 2px white;
  outline-offset: -0.15em;
  box-shadow: 5px 5px 0 rgba(192, 151, 81, 0.219);
  transition: 500ms;
  transition-property: opacity, visibility;
}