/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

body {
  line-height: 1;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

@font-face {
  font-family: PixelOperator;
  font-weight: bold;
  src: url("./PixelOperatorMono8-Bold.ttf");
}
@font-face {
  font-family: PixelOperator;
  font-weight: normal;
  src: url("./PixelOperatorMono8.ttf");
}
button,
details > summary {
  cursor: pointer;
}

b,
strong {
  font-weight: bolder;
}

i,
em {
  font-style: italic;
}

:root {
  background-color: #ffffff;
  background-image: url("./bg.png");
  color: #312129;
  color-scheme: dark;
  font-family: PixelOperator;
  font-size: 16px;
  font-weight: normal;
}

a {
  color: blue;
  text-decoration: none;
}
a:hover, a:focus {
  text-decoration: underline;
}
a:active {
  color: red;
}

::selection {
  background: #312129;
  color: #fff4c4;
}

* {
  box-sizing: border-box;
  image-rendering: pixelated;
}

.pic_choices .info_1 {
  content: url("./info1.png");
  margin-right: 20px;
}

#log .info_1 {
  content: url("./info1_small.png");
  margin-left: 10px;
}

.pic_choices .info_2 {
  content: url("./info2.png");
  margin-right: 20px;
}

#log .info_2 {
  content: url("./info2_small.png");
  margin-left: 10px;
}

.pic_choices .info_3 {
  content: url("./info3.png");
  margin-right: 20px;
}

#log .info_3 {
  content: url("./info3_small.png");
  margin-left: 10px;
}

.pic_choices .log1_1 {
  content: url("./log1_1.png");
  margin-right: 20px;
}

#log .log1_1 {
  content: url("./log1_1_small.png");
  margin-left: 10px;
}

.pic_choices .log1_2 {
  content: url("./log1_2.png");
  margin-right: 20px;
}

#log .log1_2 {
  content: url("./log1_2_small.png");
  margin-left: 10px;
}

.pic_choices .log1_3 {
  content: url("./log1_3.png");
  margin-right: 20px;
}

#log .log1_3 {
  content: url("./log1_3_small.png");
  margin-left: 10px;
}

.pic_choices .log2_1 {
  content: url("./log2_1.png");
  margin-right: 20px;
}

#log .log2_1 {
  content: url("./log2_1_small.png");
  margin-left: 10px;
}

.pic_choices .log2_2 {
  content: url("./log2_2.png");
  margin-right: 20px;
}

#log .log2_2 {
  content: url("./log2_2_small.png");
  margin-left: 10px;
}

.pic_choices .log2_3 {
  content: url("./log2_3.png");
  margin-right: 20px;
}

#log .log2_3 {
  content: url("./log2_3_small.png");
  margin-left: 10px;
}

.pic_choices .log3_1 {
  content: url("./log3_1.png");
  margin-right: 20px;
}

#log .log3_1 {
  content: url("./log3_1_small.png");
  margin-left: 10px;
}

.pic_choices .log3_2 {
  content: url("./log3_2.png");
  margin-right: 20px;
}

#log .log3_2 {
  content: url("./log3_2_small.png");
  margin-left: 10px;
}

.pic_choices .log3_3 {
  content: url("./log3_3.png");
  margin-right: 20px;
}

#log .log3_3 {
  content: url("./log3_3_small.png");
  margin-left: 10px;
}

.pic_choices .log4_1 {
  content: url("./log4_1.png");
  margin-right: 20px;
}

#log .log4_1 {
  content: url("./log4_1_small.png");
  margin-left: 10px;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.25) rgba(0, 0, 0, 0.1);
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
*::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}
*::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.52);
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}
*::-webkit-scrollbar-corner {
  background: rgba(0, 0, 0, 0.1);
}

@keyframes letter-glw {
  from {
    color: transparent;
    text-shadow: 0 0 0.069em rgb(255, 255, 255), 0 0 0.2em rgba(255, 255, 255, 0);
  }
  50% {
    color: transparent;
    text-shadow: 0 0 0.069em rgb(255, 255, 255), 0 0 0.2em rgb(255, 255, 255);
  }
  to {
    color: transparent;
    text-shadow: 0 0 0.069em rgb(255, 255, 255), 0 0 0.2em rgba(255, 255, 255, 0);
  }
}
@keyframes letter-jig {
  from {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  to {
    transform: scale(1);
  }
}
@keyframes letter-rbw {
  from {
    filter: saturate(0) brightness(0.8) sepia(1) hue-rotate(0);
  }
  to {
    filter: saturate(0) brightness(0.8) sepia(1) hue-rotate(360deg);
  }
}
@keyframes letter-shk {
  0% {
    transform: translate(-0.02em, 0.11em);
  }
  5% {
    transform: translate(-0.11em, 0.06em);
  }
  10% {
    transform: translate(0.11em, -0.04em);
  }
  15% {
    transform: translate(0.01em, -0.07em);
  }
  20% {
    transform: translate(0.09em, 0.11em);
  }
  25% {
    transform: translate(0.02em, -0.1em);
  }
  30% {
    transform: translate(-0.1em, 0.1em);
  }
  35% {
    transform: translate(-0.01em, 0.04em);
  }
  40% {
    transform: translate(0.07em, 0.1em);
  }
  45% {
    transform: translate(0.07em, -0.03em);
  }
  50% {
    transform: translate(-0.01em, -0.07em);
  }
  55% {
    transform: translate(0.07em, 0.04em);
  }
  60% {
    transform: translate(-0.07em, 0.01em);
  }
  65% {
    transform: translate(0.01em, 0.04em);
  }
  70% {
    transform: translate(0.01em, 0.03em);
  }
  75% {
    transform: translate(-0.12em, -0.05em);
  }
  80% {
    transform: translate(0.11em, -0.08em);
  }
  85% {
    transform: translate(0.09em, 0.01em);
  }
  90% {
    transform: translate(-0.01em, 0.06em);
  }
  95% {
    transform: translate(0.03em, -0.02em);
  }
  100% {
    transform: translate(0, 0);
  }
}
@keyframes letter-wvy {
  from {
    transform: translateY(0.1em);
  }
  50% {
    transform: translateY(-0.1em);
  }
  to {
    transform: translateY(0.1em);
  }
}
@font-face {
  font-family: W95;
  src: url("./W95FA.otf");
}
@font-face {
  font-family: DIDACT;
  src: url("./didact.ttf");
}
@keyframes appear {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
:root {
  font-family: W95;
  background-color: #01817f;
  color: white;
}

body {
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  user-select: none;
}

main {
  position: relative;
  min-height: 100vh;
  width: 100%;
  font-size: 1rem;
  font-size: 7vw;
  font-size: max(1rem, min(7vw, 12vh));
  padding: 0.5em;
  display: flex;
  align-items: center;
  justify-content: stretch;
  /* layouts */
}
main > button {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: none;
  background-color: white;
  opacity: 0;
  color: transparent;
  transition: opacity 0.1s ease-out;
  border: none;
}
main > button:hover, main > button:focus-visible {
  opacity: 0.1;
}
main #controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  width: 8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  overflow: hidden;
  padding-top: 2rem;
}
main #controls > button {
  font: inherit;
  font-size: 1.5rem;
  margin-bottom: -2rem;
  transition: margin-bottom 0.2s ease-in-out, color 0.1s ease-out;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  border: none;
  box-shadow: none;
}
main #controls > button:hover, main #controls > button:focus {
  color: rgb(255, 255, 255);
}
main #controls::after {
  pointer-events: none;
  content: attr(data-mode);
  display: block;
  position: absolute;
  top: 0.5rem;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 1.5rem;
  color: rgb(211, 211, 149);
  transition: opacity 0.3s ease-in-out;
}
main #controls:hover > button, main #controls:focus-within > button {
  margin-bottom: 0.25rem;
}
main #controls:hover::after, main #controls:focus-within::after {
  opacity: 0;
}
main #controls[data-mode=auto] #auto {
  background: rgba(255, 255, 255, 0.5);
}
main #controls[data-mode=skip] #skip {
  background: rgba(255, 255, 255, 0.5);
}
main #text {
  width: 100%;
  line-height: 1.2;
  text-align: center;
  --d: 0.3s;
  /* speakers */
}
main #text.done {
  --d: 0s;
}
main #text.done .word > span {
  opacity: 1 !important;
}
main #text .word {
  display: inline-block;
}
main #text .word::after,
main #text .word .space::after {
  content: " ";
  letter-spacing: 0;
  margin-inline-end: 0.25em;
}
main #text .word > span {
  display: inline-block;
  animation: appear var(--d) linear both;
}
main #text .glw .word > span {
  animation: appear var(--d) linear both, letter-glw 1s ease-in-out infinite;
}
main #text .jig .word > span {
  animation: appear var(--d) linear both, letter-jig 0.5s ease-in-out infinite;
}
main #text .rbw .word > span {
  animation: appear var(--d) linear both, letter-rbw 1s linear infinite;
}
main #text .shk .word > span {
  animation: appear var(--d) linear both, letter-shk 0.5s ease-in-out infinite;
}
main #text .wvy .word > span {
  animation: appear var(--d) linear both, letter-wvy 0.5s ease-in-out infinite;
}
main #text .blurry .word > span {
  filter: blur(0.2rem);
}
main #text[data-speaker=CHARITY] {
  color: #e4ecb7;
  text-align: center;
}
main #text[data-speaker=UNKNOWN] {
  color: #e0a3e0;
}
main #text[data-speaker=RED] {
  font-family: DIDACT;
  color: #460001;
  text-align: left;
}
main #text[data-speaker=BLUE] {
  font-family: DIDACT;
  color: #00274b;
  text-align: right;
}
main #text[data-speaker=PATIENCE] {
  color: #fe7e80;
}
main #text[data-speaker=TEMPERANCE] {
  color: #e0a3e0;
}
main #text[data-speaker=HIM] {
  font-family: DIDACT;
  color: #7D7D7D;
}
main #text[data-speaker=HAND] {
  color: orange;
}
main .ending {
  background-color: black;
  color: orange;
  width: 100%;
  height: 100%;
}
main[data-tag=invert] {
  background-color: white;
}
main[data-tag=invert] #text[data-speaker=HAND] {
  color: black;
}
main[data-tag=fuck] {
  background-image: url("./fuck.png");
  background-size: cover;
}
main[data-tag=fuck] #text {
  color: white;
  background-color: black;
}
main[data-tag=basement_1] {
  background-color: black;
}
main[data-tag=basement_1] #text {
  color: white;
}
main[data-tag=basement_2] {
  background-color: #202020;
}
main[data-tag=basement_2] #text {
  color: white;
}
main[data-tag=basement_2] #text[data-speaker=HIM] {
  color: #7D7D7D;
}
main[data-tag=basement_3] {
  background-color: white;
}
main[data-tag=basement_3] #text {
  color: black;
}
main[data-tag=drained] #text[data-speaker=CHARITY] {
  color: #8a8f6e;
}
main[data-tag=ending] {
  background-color: black;
}
main[data-tag=ending] #text {
  color: orange;
}