/* Layout and skin matching the original Kolor Panotour 1.8 / krpano tour */
* { padding: 0; margin: 0; }
html, body { height: 100%; overflow: hidden; background: #000; }
#pano { position: absolute; inset: 0; }

/* hotspot: animated 20-frame sprite (64x64 frames), 0.1 s per frame */
.tour-hotspot {
  width: 64px; height: 64px; border: 0; padding: 0; cursor: pointer;
  background: url(spot0.png) 0 0 / 64px 1280px no-repeat transparent;
  transform: translate(-50%, -50%);
  animation: tour-spot 2s steps(20) infinite;
}
@keyframes tour-spot { to { background-position: 0 -1280px; } }

/* bottom menu: 40x40 buttons, centred, 10 px above the bottom edge */
#tour-ui {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
  display: flex; z-index: 10;
}
#tour-ui button {
  /* 40 px like the original; shrinks so all 10 fit on narrow phones */
  --size: min(40px, calc((100vw - 8px) / 10));
  width: var(--size); height: var(--size); border: 0; padding: 0; cursor: pointer;
  background: transparent no-repeat 0 0 / 100% 200%;
}
#tour-ui button:hover, #tour-ui button:focus-visible { background-position: 0 100%; }
#tour-ui button[hidden] { display: none; }
#tour-ui [data-act="in"]    { background-image: url(menu0.png); }
#tour-ui [data-act="out"]   { background-image: url(menu1.png); }
#tour-ui [data-act="left"]  { background-image: url(menu2.png); }
#tour-ui [data-act="right"] { background-image: url(menu3.png); }
#tour-ui [data-act="up"]    { background-image: url(menu4.png); }
#tour-ui [data-act="down"]  { background-image: url(menu5.png); }
#tour-ui [data-act="home"]  { background-image: url(menu6.png); }
#tour-ui [data-act="fullscreen"] { background-image: url(menu7.png); }
#tour-ui.is-fullscreen [data-act="fullscreen"] { background-image: url(menu8.png); }
#tour-ui [data-act="rotate"] { background-image: url(menu9.png); }
#tour-ui.is-rotating [data-act="rotate"] { background-image: url(menu10.png); }
#tour-ui [data-act="help"]  { background-image: url(menu11.png); }

/* intro image and help screen, centred */
#tour-intro, #tour-help {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  max-width: 100%; max-height: 100%; z-index: 20; cursor: pointer;
}
#tour-intro { opacity: 0; transition: opacity .5s; }
#tour-intro.is-shown { opacity: 1; }
#tour-intro.is-hidden { opacity: 0; }
#tour-intro[hidden], #tour-help[hidden] { display: none; }
