:root{
  --text: #111;
  --on: #99c46a; /* tweak to match your green */
}

*{ box-sizing: border-box; }
html, body { height: 100%; }

body{
  margin: 0;
  font-family: Helvetica, sans-serif;
  color: var(--text);
  background: #e9e9e9; /* fallback */
}

.view{
  display: none;
}

.view.is-active{
  display: block;
}

/* Two fullscreen backgrounds */
.bg{
  position: fixed;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.bg-off{
  background-image: url("bgOFF.png");
}

.bg-on{
  background-image: url("bgON.png");
  opacity: 0;
  transition: opacity 30ms ease;
}

/* Foreground layout */
.center{
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}

.stack{
  align-content: center;
  text-align: center;
  transform: translateY(8vh); /* move block down; adjust */
}

.hero{
  position: relative;
  width: min(700px, 90vw);  /* keeps it centered + responsive */
  height: 42px;            /* space so things don't push each other */
  margin: 0 auto;           /* hard-center even if something overrides */
}

/* Lock the title position */
.off-title{
  position: absolute;
  font-weight: 400;   /* regular */
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  text-align: center;
  white-space: pre-line;

  font-size: 28px;          /* adjust */
  line-height: 1.15;
}

/* Move ONLY the Off/On row by changing 'top' */
.row{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);

  top: 222px;               /* 👈 change THIS to move only Off/On up/down */
  width: min(420px, 85vw);  /* 👈 change THIS to make gap wider/narrower */

  display: flex;
  justify-content: space-between;
  align-items: center;

  font-size: 26px;          /* adjust */
}

.label.on{
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* On hover/focus triggers the ON background and green label */
.label.on{
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 10px;
}

body:has(.label.on:hover) .bg-on,
body:has(.label.on:focus) .bg-on{
  opacity: 1;
}

body:has(.label.on:hover) .label.on,
body:has(.label.on:focus) .label.on{
  color: var(--on);
