html {
  box-sizing: border-box;
  font-family: "Menlo", "Monaco", "monospace";
}

#gameboy {
  float: left;
  width: 635px;
  height: 1052px;
  position: relative;
}
#gameboy #frame {
  width: 635px;
  height: 1052px;
  position: absolute;
  top: 0;
  left: 0;
}
#gameboy #screen-bg {
  width: 360px;
  height: 324px;
  background: #9BBC0F;
  position: absolute;
  top: 124px;
  left: 138px;
}
#gameboy .screen-layer, #gameboy #parallax {
  position: absolute;
  background: none;
  width: 320px;
  height: 288px;
  top: 145px;
  left: 156px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

#screen-bg,
#tiles,
#background0,
#background1,
canvas {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
#gameboy .button {
  position: absolute;
  touch-action: none;
}
#gameboy #button-a {
  top: 626px;
  left: 492px;
  width: 90px;
  height: 90px;
}
#gameboy #button-b {
  top: 674px;
  left: 392px;
  width: 90px;
  height: 90px;
}
#gameboy #button-start {
  top: 823px;
  left: 290px;
  width: 88px;
  height: 64px;
}
#gameboy #button-select {
  top: 823px;
  left: 187px;
  width: 88px;
  height: 64px;
}
#gameboy #button-up {
  top: 608px;
  left: 95px;
  width: 80px;
  height: 80px;
  border-radius: 40px;
}
#gameboy #button-down {
  top: 716px;
  left: 95px;
  width: 80px;
  height: 80px;
  border-radius: 40px;
}
#gameboy #button-left {
  top: 662px;
  left: 41px;
  width: 80px;
  height: 80px;
  border-radius: 40px;
}
#gameboy #button-right {
  top: 662px;
  left: 149px;
  width: 80px;
  height: 80px;
  border-radius: 40px;
}

#other {
  float: left;
}
#other #rom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
#other #break-condition {
  width: 240pt;
}
#other #previous-asm {
  color: gray;
}
#other #address {
  width: 40pt;
}
#other #memory thead {
  text-align: center;
}
#other #serial-output {
  border: black 1px solid;
}

#remake-menu {
  border: 1px solid #222;
  background: #f4f4f4;
  padding: 8px;
  margin-top: 8px;
  max-width: 260px;
}

#remake-menu h4 {
  margin: 0 0 6px;
  font-size: 12px;
}

#remake-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.remake-game-button {
  text-align: left;
  padding: 6px 8px;
  border: 1px solid #777;
  background: #fff;
  cursor: pointer;
}

.remake-game-button:hover {
  background: #e9e9e9;
}

body.fullscreen-mode {
  background: #000;
  overflow: hidden;
}

body.fullscreen-mode #gameboy {
  --screen-scale: 1;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  float: none;
  margin: 0;
  z-index: 10;
}

body.fullscreen-mode #gameboy #frame,
body.fullscreen-mode #gameboy .button {
  display: none;
}

body.fullscreen-mode #gameboy #screen-bg,
body.fullscreen-mode #gameboy #parallax,
body.fullscreen-mode #gameboy .screen-layer {
  width: calc(320px * var(--screen-scale));
  height: calc(288px * var(--screen-scale));
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/*# sourceMappingURL=style.css.map */
