
body {
  position: relative;
  margin: 0;
  font-size: 120%;
}

#bg-effect {
  pointer-events: none;
  position: fixed;
  z-index: 2;
  width: 100%;
  height: 100%;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image:
    linear-gradient(0deg,
      transparent 10%,
      #7f7f7f 100%),
    url('../salty/perlin.gif');
  background-size: cover, 512px 512px;
  background-repeat: no-repeat, repeat;
  background-position: center;
  background-attachment: fixed;
  animation: bg 30s infinite linear;
  background-blend-mode: normal, normal;
  mix-blend-mode: overlay;
  opacity: 0.5;
}

@keyframes bg {
  from {
    background-position-y: center, top 512px
  }

  to {
    background-position-y: center, top 0
  }
}

header {
  height: 3rem;
  background: var(--haitouch-purple);
  border-bottom: 0.25rem solid var(--haitouch-purple2);
  text-align: center;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  right: 0;
}

header img {
  height: 3rem;
  width: auto;
  margin: 0 auto;
}

.disclaimer {
  font-size: 75%;
}

article {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 3rem 1rem;
  background-image: radial-gradient(circle,
      #71c586, #60955f);
  background-attachment: fixed;
}

article:nth-child(2n) {
  background-image: radial-gradient(circle,
      rgb(228, 96, 136), rgb(104, 36, 51));
}

article:nth-child(2n+1) {
  background-image: radial-gradient(circle,
      rgb(41, 122, 75), rgb(22, 77, 51));
}

article#title {
  margin-top: 3rem;
  /* header height */
  background-image: radial-gradient(circle,
      #71c586, #60955f);
}

article#trailer {
  background-image: radial-gradient(circle,
      rgb(59,58,64), rgb(10, 8, 16));
}

article#news {
  background-image: radial-gradient(circle,
      rgb(250, 236, 110), rgb(165, 127, 67));
}

img#gamelogo {
  position: relative;
  display: block;
  z-index: 3;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100svh - 3rem);
  margin: 0 auto;
  transform: translate(0);
}

.tagline {
  position: relative;
  z-index: 3;
  margin-top: -1rem;
  margin-bottom: 2rem;
  text-align: center;
  font-style: italic;
  color: white;
}

.synopsis {
  position: relative;
  z-index: 3;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.8);
  border-left: 0.5rem solid black;
  padding: 1rem;
  color: black;
  margin: 1rem auto;
}

p:first-child {
  margin-block-start: 0;
}

p:last-child {
  margin-block-end: 0;
}

.release {
  font-weight: 800;
  font-size: 1.50rem;
  color: #e81759;
}

b {
  font-weight: 800;
}

h3 {
  margin: 0;
  font-size: 2rem;
  line-height: 2.5rem;
  letter-spacing: 0.15em;
  font-variant: small-caps;
  font-style: italic;
  font-weight: 800;
}

h4 {
  font-weight: bold;
  font-size: 1.25rem;
  margin: 1rem 0 0;
}

h4 + p {
  margin-top: 0rem;
}

section {
  position: relative;
  z-index: 3;
  max-width: 500px;
  background: linear-gradient(0deg,
      #ebebeb 0%,
      #ffffff 100%), #ebebeb;
  background-size: 100% 5rem, 100% 100%;
  background-repeat: no-repeat;
  margin: 0 auto;
  padding: 2rem;
  border-radius: 0.5rem;
}

ul {
  padding-inline-start: 1rem;
}

ul li {
  margin-block-start: 0.5rem;
}

ul li:first-child {
  margin-block-start: 0;
}

a.big-bottom-link {
  position: relative;
  z-index: 3;
  display: block;
  text-align: center;
  text-decoration: none;
  width: 256px;
  margin: 8px auto 24px;
  padding: 0.8em;
  background-color: var(--haitouch-blue);
  color: black;
  border-radius: 8px;
}

a.big-bottom-link:hover {
  background-color: var(--haitouch-blue2);
}

a.big-bottom-link::before {
  display: none;
}

.video_selector {
  position: relative;
  z-index: 3;
  height: 3rem;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
}

.video_selector a,
.video_selector a:visited {
  color: var(--haitouch-blue);
}

.video_carousel {
  position: relative;
  z-index: 3;
  width: 100%;
  /* video width */
  --vwidth: calc(100vw - 3rem);
  --vheight: calc(var(--vwidth) * 9 / 16);
  text-align: center;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  height: calc(var(--vheight) + 24px); /* try to avoid scrollbar */
}

.video_wrapper {
  scroll-snap-align: start;
  flex-shrink: 0;
  width: var(--vwidth);
  margin-right: 8rem;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video_wrapper_inner {
  width: var(--vwidth);
  padding-bottom: var(--vheight);
}

.video_wrapper iframe {
  position: absolute;
  width: var(--vwidth);
  height: var(--vheight);
  top: 1rem;
  left: 0;
  right: 0;
  bottom: 0;
}

.platform {
  background: white;
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: row;
  align-items: center;
}

label[for='showCheatCodes'] {
  background: rgb(41, 122, 75);
  color: white;
  padding: 0.5rem;
  border-radius: 0.25rem;
  display: inline-block;
  margin-bottom: 1rem;
}

input#showCheatCodes {
  display: fixed;
  opacity: 0;
}

.spoilerbox {
  position: relative;
  z-index: 3;
  max-width: 500px;
  max-height: 2.5rem;
  margin: 1.5rem auto;
  padding: 1rem;
  background: white;
  transition: max-height ease 500ms;
  overflow-y: hidden;
}

input[type='checkbox']:checked+.spoilerbox {
  max-height: 100svh;
  transition: max-height ease 500ms;
}

input[type='checkbox']:checked+.spoilerbox>div {
  max-height: 100svh;
  overflow-y: scroll;
}

kbd {
  display: inline-block;
  background: #dddde7;
  box-shadow: 0px 1px 2px inset slategray;
  min-width: 1em;
  height: 1.2em;
  margin: -0.25em 0.25em;
  padding: 0 0.125em;
  text-align: center;
  font-size: 1em;
  line-height: 1em;
  border-radius: 0.25rem;
  font-family: sans-serif;
}

img.button {
  width: 1em;
  height: 1em;
  margin: 0.125em 0 -0.125em;
}

img.cheatIcon {
  width: 16px;
  height: 16px;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

img.fullwidth {
  width: auto;
  max-width: 100%;
  height: auto;
}

/* this is the only way to put the triangle icon on the right */
summary {
  position: relative;
  list-style: none;
}

summary::after {
  position: absolute;
  top: 0;
  right: 0;
  content: "＋";
  font-size: 2rem;
  line-height: 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  text-align: center;
  transform: rotate(0deg);
  transition: transform 200ms ease-in-out;
}

details[open] summary:after {
  transform: rotate(45deg);
}