/* Everything is scoped to .slime-game so it doesn't affect the rest of the site */
.slime-scaler {
  overflow: hidden;
  margin-bottom: 1rem;
}

.slime-game {
  position: relative;
  width: 750px;
  height: 375px;
  margin: 0 auto;
  transform-origin: top left;
  color: #222;
  font-family: Arial, sans-serif;
}

.slime-game h1 {
  margin: 0;
  color: #222;
  font-size: 48px;
  letter-spacing: normal;
}

.slime-game h2 {
  margin: 8px 0;
  font-size: 1.4rem;
}

.slime-game h3 {
  margin: 0.75rem 0 0.25rem;
  font-size: 1.05rem;
}

.slime-game p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.slime-game a {
  color: #1f4f8d;
}

.slime-btn {
  padding: 10px 20px;
  border: 5px solid #1f628d;
  border-radius: 1.5em;
  background: linear-gradient(to bottom, #3498db, #2980b9);
  color: #fff;
  cursor: pointer;
  user-select: none;
}

.slime-btn:hover {
  background: linear-gradient(to bottom, #3cb0fd, #3498db);
}

#OptionsDiv {
  position: relative;
  z-index: 2;
  display: none;
  width: 400px;
  height: 360px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  overflow: auto;
  border: 3px solid #ca6;
  background: #eee;
  text-align: center;
}

#OptionsDiv .options-list {
  text-align: left;
}

#OptionsDiv label {
  display: block;
  margin: 0.25rem 0;
}

#OptionsDiv input[type="checkbox"] {
  margin-right: 0.75em;
}

#btnCloseOptions {
  position: absolute;
  top: 5px;
  right: 8px;
  border: 0;
  background: none;
  font: bold 1rem Arial, sans-serif;
  cursor: pointer;
}

#btnOptions {
  position: absolute;
  top: 385px;
  left: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

#btnOptions:hover {
  color: var(--text);
}

.slime-game.is-scaled {
  margin: 0;
}

/* On-screen buttons, only on touch screens */
.slime-touch {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 750px;
  margin: 0 auto 1.5rem;
}

@media (pointer: coarse) {
  .slime-touch {
    display: flex;
  }
}

.slime-pad {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.slime-pad-label {
  color: var(--muted);
  font-size: 0.8rem;
}

.slime-touch button {
  min-width: 3.5rem;
  height: 3.5rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-raised);
  color: var(--text);
  font: inherit;
  font-size: 1.2rem;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.slime-touch button:active {
  background: var(--border);
}

.slime-touch .slime-continue {
  padding: 0 1rem;
  font-size: 0.95rem;
}

.slime-help {
  max-width: 750px;
  margin: 0 auto;
  color: var(--muted);
}
