/* =============================================================
   Menu look for Jump into the Pond.
   Copied from Keep Flying's style.css so both games feel the same:
   pixel font, chunky blue buttons with a dark outline, yellow titles,
   a gear button for settings. The game itself is drawn on the canvas.
   ============================================================= */

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #06204d;
  touch-action: none;          /* no scrolling or zooming while playing */
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Press Start 2P", monospace;
  color: #fff;
}

/* The game box. game.js sets its size and its font size,
   so everything here grows and shrinks with the screen. */
#wrap {
  position: relative;
  overflow: hidden;
}

canvas {
  display: block;
  touch-action: none;
}

.hidden {
  display: none !important;
}

/* ---------- Menu screens ---------- */
.screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  padding: 1.2em 1em;
  background: rgba(20, 20, 40, 0.55);
  overflow-y: auto;
  touch-action: pan-y;
  text-shadow: 0.15em 0.15em 0 #14141c;
}

.screen.show {
  display: flex;
}

.screen.dialog {
  background: rgba(20, 20, 40, 0.95);
  z-index: 5;
}

#titleScreen {
  background: rgba(20, 20, 40, 0.35);
}

h1 {
  margin: 0 0 0.5em;
  font-size: 1.6em;
  line-height: 1.4;
  color: #ffe14d;
  text-align: center;
}

h2 {
  margin: 0 0 0.3em;
  font-size: 1.3em;
  line-height: 1.4;
  color: #ffe14d;
  text-align: center;
}

.small {
  margin: 0 0 0.4em;
  font-size: 0.6em;
  line-height: 2;
  text-align: center;
}

.small .gold {
  color: #ffe14d;
}

.tiny {
  margin: 0;
  font-size: 0.45em;
  line-height: 1.8;
  text-align: center;
  max-width: 90%;
  color: #dde6ff;
  min-height: 1.8em;
}

.label {
  font-size: 0.55em;
  color: #ffe9a8;
}

.screen button {
  font-family: inherit;
  color: #fff;
  font-size: 0.75em;
  min-width: 65%;
  padding: 1em 1em;
  margin: 0;
  background: #3a78e0;
  border: 0;
  box-shadow:
    inset -0.25em -0.25em 0 #1d3f94,
    inset 0.25em 0.25em 0 #7fb2ff,
    0 0 0 0.2em #14141c;
  cursor: pointer;
  text-shadow: 0.12em 0.12em 0 #14141c;
}

/* The main button on each screen is green and a bit bigger */
.screen button[data-primary] {
  font-size: 0.9em;
  background: #3ac24a;
  box-shadow:
    inset -0.25em -0.25em 0 #248a30,
    inset 0.25em 0.25em 0 #7fe08a,
    0 0 0 0.2em #14141c;
}

.screen button:active {
  transform: translateY(0.15em);
  box-shadow:
    inset 0.25em 0.25em 0 #1d3f94,
    0 0 0 0.2em #14141c;
}

/* The settings wheel: a little pixel gear (same as Keep Flying) */
.screen button.gear {
  position: absolute;
  top: 0.5em;
  right: 0.5em;
  min-width: 0;
  width: 2.6em;
  height: 2.6em;
  padding: 0;
  background: #5a6070 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' shape-rendering='crispEdges'%3E%3Cg fill='%23fff'%3E%3Crect x='5' y='0' width='2' height='12'/%3E%3Crect x='0' y='5' width='12' height='2'/%3E%3Crect x='1' y='1' width='2' height='2'/%3E%3Crect x='9' y='1' width='2' height='2'/%3E%3Crect x='1' y='9' width='2' height='2'/%3E%3Crect x='9' y='9' width='2' height='2'/%3E%3Crect x='2' y='2' width='8' height='8'/%3E%3C/g%3E%3Crect x='4' y='4' width='4' height='4' fill='%235a6070'/%3E%3C/svg%3E") center / 60% no-repeat;
  image-rendering: pixelated;
  box-shadow: inset -0.2em -0.2em 0 #3a3f4a, inset 0.2em 0.2em 0 #8a90a0, 0 0 0 0.2em #14141c;
}

/* Pause button while playing: top right, over the game */
#pauseBtn {
  position: absolute;
  top: 0.35em;
  right: 0.4em;
  width: 2.2em;
  height: 2.2em;
  padding: 0;
  font-family: inherit;
  font-size: 0.8em;
  color: #fff;
  background: #3a78e0;
  border: 0;
  box-shadow: inset -0.2em -0.2em 0 #1d3f94, inset 0.2em 0.2em 0 #7fb2ff, 0 0 0 0.2em #14141c;
  text-shadow: 0.12em 0.12em 0 #14141c;
  cursor: pointer;
  z-index: 2;
}

#pauseBtn:active {
  transform: translateY(0.15em);
}

.row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  width: 100%;
}

.row .label {
  min-width: 6em;
  text-align: right;
}

.segmented {
  display: flex;
  gap: 0.4em;
}

.screen .segmented button {
  min-width: 0;
  padding: 0.8em 0.6em;
  font-size: 0.55em;
  background: #5a6070;
  box-shadow: inset -0.25em -0.25em 0 #3a3f4a, inset 0.25em 0.25em 0 #8a90a0, 0 0 0 0.2em #14141c;
}

.screen .segmented button.on {
  background: #3ac24a;
  box-shadow: inset -0.25em -0.25em 0 #248a30, inset 0.25em 0.25em 0 #7fe08a, 0 0 0 0.2em #14141c;
}

.screen button.toggle {
  min-width: 0;
  width: 5em;
  padding: 0.7em 0;
  font-size: 0.6em;
}

input[type=range] {
  width: 9em;
  accent-color: #ffd21f;
}

/* How to play list */
.howto {
  margin: 0;
  padding: 0 0.4em;
  list-style: none;
  font-size: 0.5em;
  line-height: 2;
  max-width: 100%;
}

.howto li {
  margin-bottom: 0.9em;
}

.howto b {
  color: #ffe14d;
  font-weight: normal;
}

.howto b.red {
  color: #ff5a5a;
}
