html, body{
  height: 100%;
  margin: 0;
}

body {
  background: url("/assets/bg-3d18b7a8.png") repeat;
  font-family: "Press Start 2P";
  font-size: 16px;
  color: #212529;
}

#container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100vh;
  max-width: 980px;
  margin: 0 auto;
}

#header, #footer {
  flex-shrink: 0;
  padding: 0 35px;
}

#footer {
  margin-bottom: 20px;
}

#header {
  display: flex;
  margin-top: 2rem;
  justify-content: space-between;
  align-items: center;
}

h1, h2, h3, h4, h5, h6, ul, li, p {
  margin: 0;
  padding: 0;
  line-height: 1;
}

a {
  color: #0056b3;
  text-decoration: none;
}

a:hover {
  color: #007bff;
  text-decoration: none;
}

h1 a {
  color: unset;
}

h1 a:hover {
  color: #0056b3;
}


#main {
  position: relative;
  flex-grow: 1;
  box-sizing: border-box;
  min-height: 0;
  overflow: hidden;
  background-image: url("/assets/bg-light-26716150.png");
  border-image: url("/assets/border-6715820a.png");
  border-image-slice: 33.333%;
  border-image-width: 28px;
  padding: 40px;
}

#flash {
  text-align: center;
  font-weight: bold;
  font-size: 20px;
  margin-bottom: 1rem;
}

#inner-main {
  position: relative;
  box-sizing: border-box;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}

ul {
  font-size: 18px;
  margin-left: 4px;
  list-style-type: none;
}

#inner-main::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 33%;
  background: url("/assets/bg-light-26716150.png") repeat;
  mask-image: linear-gradient(to bottom, transparent, black);
  pointer-events: none;
}

li {
  margin: 0.8rem 0;
}

#hearts-container {
  position: absolute;
  top: 24px;
  left: 24px;
  width: calc(100% - 48px);
  height: calc(100% - 48px);
  overflow: hidden;
  text-align: end;
  z-index: 2;
  pointer-events: none;
}

.heart2 {
  background-image: url("/assets/heart3-4095a658.png");
  background-size: cover;
  background-repeat: no-repeat;
  position: absolute;
  transform-origin: center center;
}

.nes-field {
  display: flex;
  gap: 20px;
  margin-bottom: 10px;
}

input:focus {
  outline: none;
}
