@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.min.css");

::-moz-selection {
  color: white;
  background-color: transparent;
}

::selection {
  color: white;
  background-color: transparent;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-size: 100%;
  font-style: normal;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

@media screen and (min-width: 640px) {
  html {
    font-size: 2.5vw;
  }
}

body {
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 100svh;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.5;
  word-break: keep-all;
  color: dimgray;
  background-color: black;
  cursor: default;
}

a {
  text-decoration: none;
  color: white;
  cursor: pointer;
  animation: blink 1s infinite linear;
}

a:nth-child(even) {
  animation-direction: alternate-reverse;
}

a:hover {
  animation-play-state: paused;
}

main {
  flex: 1 1 auto;
  padding: 1rem;
}

:lang(ko) main,
:lang(ja) main {
  line-height: 1.625;
}

:lang(en) main {
  line-height: 1.375;
}

:lang(ja) main {
  text-align: justify;
  word-break: break-all;
}

main::after {
  content: "";
  display: block;
  clear: both;
}

main p a {
  animation-direction: alternate;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

main mark {
  color: white;
  background-color: transparent;
}

aside {
  float: right;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  width: calc(50% - .5rem);
  margin-top: .25rem;
  margin-bottom: .5rem;
  margin-left: 1rem;
  animation: blink 2s;
}

@media screen and (min-width: 640px) {
  aside {
    width: calc(100% / 3 - .5rem);
  }
}

figure {
  display: flex;
  flex-direction: column;
  gap: .375rem;
  position: relative;
}

figure img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity .25s ease;
  cursor: pointer;
}

figure img:hover {
  opacity: .75;
}

figcaption {
  font-size: .75rem;
  color: white;
}

figcaption:lang(en) {
  line-height: 1.375;
}

figcaption::-moz-selection,
figcaption a::-moz-selection {
  color: dimgray;
  background-color: transparent;
}

figcaption::selection,
figcaption a::selection {
  color: dimgray;
  background-color: transparent;
}

figcaption a {
  animation-direction: alternate-reverse;
}

figcaption a:nth-child(even) {
  animation-direction: alternate;
}

@-webkit-keyframes blink {
  0% {
    opacity: .25;
  }
  100% {
    opacity: 1;
  }
}

@keyframes blink {
  0% {
    opacity: .25;
  }
  100% {
    opacity: 1;
  }
}

dialog[open] {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100vw;
  max-height: 100vh;
  width: 100%;
  height: 100%;
  padding: 1rem;
  background-color: transparent;
  border: 0;
  cursor: pointer;
}

dialog[open]::backdrop {
  background-color: rgba(0,0,0,.75);
  -webkit-backdrop-filter: blur(.5rem);
  backdrop-filter: blur(.5rem);
}

dialog[open] img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 1;
  transition: 0s
}

nav {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(to bottom, transparent, black);
}

nav::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-image: linear-gradient(to right, transparent, black);
  pointer-events: none;
}

select {
  appearance: none;
  display: block;
  width: 100%;
  padding: 0 1rem 1rem;
  font: inherit;
  font-family: inherit;
  color: dimgray;
  cursor: pointer;
  background-color: transparent;
  border: 0;
  border-radius: 0;
  outline: 0;
}

select:hover {
  color: white;
}