body {
  background-color: black;
}

@font-face {
  font-family: "whitespace";
  src: URL("/fonts/OMORI_GAME2.ttf") format("truetype");
}

#episodes {
  display: flex;
  flex-direction: row;
  max-width: calc(190px + 4px + 190px + 4px + 190px);
  flex-wrap: wrap;
  gap: 4px;
}

.episode {
  border: 1px solid #666;
  display: flex;
  flex-direction: column;
  color: white;
  font-size: 15px;
  font-family: whitespace;
  width: 190px;
  padding: 5px;
  gap: 4px;
  box-sizing: border-box;
}

.episode .name {
  white-space: pre;
}

.episode .duration {
  font-size: 13px;
  color: grey;
  white-space: pre;
  margin-right: auto;
}

.buttons {
  display: flex;
  flex-direction: row;
  gap: 8px;
}

.buttons a {
  color: white;
  text-decoration: none;
  text-decoration:underline;
}

.episode .thumb,
.episode .thumb img {
  /* 320x227 */
  width: 100px;
  height: 57px;
}

.episode .thumb {
  position: relative;
  display: block;
  cursor: pointer;
}

.episode .thumb img {
  position: absolute;
  top: 0;
  left: 0;
}

.episode.hover .thumb .anim {
  opacity: 1 !important;
  pointer-events: all !important;
}

.episode .thumb .anim {
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease-in-out;
}

.player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: black;
}

.player video {
  width: 100%;
  height: 100%;
}

.player .x {
  font-family: whitespace;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fffa;
  color: #000;
  border: 1px solid #000;
  cursor: pointer;
  text-decoration: none;
  font-size: 20px;
  position: fixed;
  top: 20px;
  left: 20px;
  width: 30px;
  height: 30px;
  z-index: 10000;
}
