@keyframes pop {
  0% {transform: scale(0)}
  50% {transform: scale(0)}
  75% {transform: scale(1.1);}
  100% {transform: scale(1);}
}
@keyframes wag {
  0% {transform: rotate(-2deg);}
  100% {transform: rotate(2deg);}
}
@keyframes fade {
  0% {opacity: 0;}
  75% {opacity: 0;}
  100% {opacity: 1;}
}
@keyframes arrowfade {
  0% {opacity: 0;}
  75% {opacity: 0;}
  100% {opacity: 0.25;}
}
@keyframes tipfade {
  from {opacity: 0;}
  to {opacity: 1;}
}
@keyframes bgfade {
  0% {opacity: 0;}
  50% {opacity: 0;}
  100% {opacity: 0.25;}
}
@keyframes hover {
  0% {top: -4px;}
  100% {top: 1px;}
}

body {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

header {
  background: url("/assets/images/bg.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  flex-flow: column;
  width: 100%;
  height: 100%;
  justify-content: center;
  margin: 0;
  align-items: center;
}

#bg-shader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  opacity: 0.25;
  animation-name: bgfade;
  animation-timing-function: linear;
  animation-duration: 3s;
}
#banner {
  max-width: 70vw;
  width: 720px;
  animation-name: pop;
  animation-timing-function: ease-out;
  animation-duration: 0.5s;
}
#banner-wrapper {
  animation-name: wag;
  animation-timing-function: ease-in-out;
  animation-duration: 1.5s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}
#tagtip {
  display: none;
  position: absolute;
  bottom: -30px;
  width: 100vw;
  max-width: 70vw;
  background-color: #000000C0;
  padding: 8px;
  font-size: 1rem;
  color: #FFF;
  border-radius: 6px;
  animation: tipfade 0.5s;
}
#tagtip-wrapper {
  position: relative;
  display: flex;
  place-content: center;
  justify-content: last baseline;
}
#tagline {
  font-family: "Sudofont";
  font-size: 1.25rem;
  font-weight: bold;
  color: #6F369C;
  animation-name: fade;
  animation-timing-function: linear;
  animation-duration: 1s;
  text-shadow:
    -0.025rem -0.025rem 0 white,
    0.025rem -0.025rem 0 white,
    -0.025rem 0.025rem 0 white,
    0.025rem 0.025rem 0 white,
    0.065rem 0.065rem 0.065rem #00000080;
  z-index: 1;
}

#links {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  color: white;
  animation-name: fade;
  animation-timing-function: linear;
  animation-duration: 1s;
}
#links p {
  padding: 0px 12px;
  user-select: none;
}
#links img,
.done-button img {
  height: 36px;
  filter: drop-shadow(0.065rem 0.065rem 0.065rem #00000080);
}

.done-button {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}
.done-button img {
  margin: 0;
}

article {
  background-color:#000000C0;
  color: white;
  font-size: 1.1rem;
  position: fixed;
  top: 100vh;
  bottom: -100vh;
  left: 0;
  right: 0;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1;
  text-align: justify;
}
section {
  background-color: #00000000;
  margin-bottom: 36px;
}

br {
  display: block;
  content: "";
  margin-top: 12px;
}

h1 {
  width: 100%;
  text-align: center;
  font-size: 2.5rem;
}

section > p {
  overflow-y: auto;
  max-width: 720px;
  max-height: 65vh;
}

#post-grid {
  display: grid;
  grid-template-columns: auto;
  padding: 10px;
  max-width: 90vw;
  max-height: 50vh;
  overflow-y: auto;
}

#badge-left {
  position: absolute;
  max-height: 32px;
  bottom: 48px;
  left: 6px;
  rotate: 90deg;
  opacity: 0.25;
  animation-name: arrowfade;
  animation-timing-function: linear;
  animation-duration: 1s;
}
#badge-right {
  position: absolute;
  max-height: 32px;
  bottom: 48px;
  right: 6px;
  rotate: -90deg;
  opacity: 0.25;
  animation-name: arrowfade;
  animation-timing-function: linear;
  animation-duration: 1s;
}

#badge-marker {
  position: absolute;
  top: 48px;
  left: 32px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  color: white;
  font-family: "Sudofont";
  font-size: 1.5rem;
  animation-name: fade;
  animation-timing-function: linear;
  animation-duration: 1s;
}
#badge-marker p {
  margin: 0;
  margin-left: 6px;
  text-shadow:
    -0.025rem -0.025rem 0 white,
    0.025rem -0.025rem 0 white,
    -0.025rem 0.025rem 0 white,
    0.025rem 0.025rem 0 white;
}
#badge-marker img {
  position: relative;
  max-height: 32px;
  max-width: 32px;
  animation-name: hover;
  animation-timing-function: ease-in-out;
  animation-duration: 0.5s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

#badges {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-end;
  position: absolute;
  bottom: 45px;
  left: 42px;
  height: 128px;
  overflow-x: auto !important;
  width: calc(100vw - 84px);
  animation-name: fade;
  animation-timing-function: linear;
  animation-duration: 1s;
}

#badges a {
  min-height: 31px;
  z-index: 1;
}

.badge {
  width: 88px;
  height: 31px;
  margin: 0px 3px;
}
.pixel {
  image-rendering: pixelated;
}

#copyright {
  position: absolute;
  bottom: 0px;
  color: white;
  text-align: center;
  width: 100%;
  z-index: 0;
  animation-name: fade;
  animation-timing-function: linear;
  animation-duration: 1s;
}

@media screen and (min-width: 800px) {

  #tagline {
    font-size: 2.5rem;
    text-shadow:
      -0.05rem -0.05rem 0 white,
      0.05rem -0.05rem 0 white,
      -0.05rem 0.05rem 0 white,
      0.05rem 0.05rem 0 white,
      0.15rem 0.15rem 0.15rem #00000080;
  }
  #tagtip {
    max-width: 720px;
  }

  #links object {
    height: 36px;
    filter: drop-shadow(0.15rem 0.15rem 0.15rem #00000080)
  }

  #post-grid {
    max-width: 720px;
    grid-template-columns: auto auto;
  }
}
