html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family:Arial,Helvetica,sans-serif;
  overflow: hidden; /* prevent page scroll; we'll scroll the image container */
}
#container{display:flex;height:100%;}
/* Street-view fills the viewport height and scrolls sideways */

/*#panel{width:260px;padding:1rem;background:#fafafa;box-shadow:-2px 0 5px rgba(0,0,0,.2);overflow:auto;}
h2{font-size:1rem;margin-top:0;}*/

.sliderWrap{height:230px;display:flex;justify-content:center;}
/*#gdpSlider{writing-mode:bt-lr;-webkit-appearance:slider-vertical;width:8px;height:100%;transform:scaleY(-1);}*/
.inputWrap{display:flex;justify-content:center;margin-top:.5rem;}
#gdpInput{width:90%;padding:4px;font-size:.9rem;text-align:center;}

#selectedValue{text-align:center;margin:.5rem 0 1rem;font-weight:bold;}
button{width:100%;padding:.5rem;margin-top:.5rem;font-size:1rem;cursor:pointer;}
#result{margin-top:1rem;min-height:4rem;text-align:center;}

.grid{display:grid;grid-template-columns:repeat(5,1fr);gap:2px;font-size:1.3rem;margin-top:1rem;justify-items:center;}
.score{margin-top:1rem;font-weight:bold;text-align:center;}

/* Make the map fill the screen */
html, body, #pano { height: 100%; margin: 0; }

/*  ───────── Slider HUD ─────────  */
#hud {
  position: absolute;
  bottom: 6%;               /* keeps fingers away from system-bar */
  left: 50%;
  transform: translateX(-50%);
  width: 82vw;              /* ~ cropped nicely in a 9:16 frame   */
  max-width: 580px;
  padding: .9rem 1.2rem;
  backdrop-filter: blur(6px);
  background: rgba(255,255,255,.75);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  z-index: 10;
}

/* slider line */
#gdpSlider {
  width: 100%;
  accent-color: #000;       /* black line & knob – easy to see */
}

/* big round knob */
#gdpSlider::-webkit-slider-thumb {
  width: 34px; height: 34px; border-radius: 50%;
  background: #000; cursor: pointer;
}

/* value read-out */
#sliderValue {
  font: 600 1.1rem/1 monospace;
}

/*  ───────── Modal ─────────  */
#roundModal {              /* default: hidden */
  position: absolute;
  inset: 0;
  display: grid;           /* <── only this line changes */
  place-items: center;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.35);
  z-index: 20;
}

#roundModal.open {         /* visible state */
  display: flex;
}
#roundModal .card {
  width: min(80vw, 460px);
  padding: 1.4rem 1.2rem;
  background: #fff;
  border: 4px solid #000;
  border-radius: 8px;
  text-align: center;
}

#nextBtn { margin-top: 1rem; }

/* tiny 5×5 emoji grid fits beneath */
#gridScore{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:4px;
  font-size:1.3rem;      /* size of ⬜/💵 */
  justify-items:center;
  margin-top:1rem;
}

.hidden {               /* utility class */
  display: none !important;
}

/*  ───────── Small desktop tweak ─────────  */
@media (orientation: landscape) and (min-width: 900px) {
  #hud        { width: 450px; bottom: 2rem; }
  #roundModal { font-size: 1.1rem; }
}

/* Start/Instructions Modal — force full-viewport overlay */

#startModal {              /* default: hidden */
  position: absolute;
  inset: 0;
  display: grid;           /* <── only this line changes */
  place-items: center;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.35);
  z-index: 20;
}

#startModal.open {         /* visible state */
  display: flex;
}
#startModal .card {
  width: min(80vw, 460px);
  padding: 1.4rem 1.2rem;
  background: #fff;
  border: 4px solid #000;
  border-radius: 8px;
  text-align: left;
}

#startModal .card h2 { 
  text-align: center; 
  margin: 0 0 .5rem; 
}

#startModal.modal.hidden { display: none !important; }

#startModal .card button {
  padding: 10px 14px;
  border-radius: 10px;
  border: 0;
  background: #2a6;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

@keyframes popBounce {
  0%   { transform: scale(0.5); opacity: 0; }
  60%  { transform: scale(1.4); opacity: 1; color: #2ecc71; } /* green peak */
  80%  { transform: scale(0.92); }
  100% { transform: scale(1); color: inherit; }
}
.scoreNum {
  display: inline-block;             /* needed so scale works on inline text */
}
.scoreNum.pop {
  animation: popBounce 0.8s cubic-bezier(.34,1.56,.64,1);
}

/* Base: desktop-style cover (clean, full-bleed) */
/* Base: desktop-style cover (clean, full-bleed) */
#street-view {
  height: 100vh;
  overflow: hidden;
  background: #000;

  /* NEW: make it fill the flex row on desktop */
  flex: 1 1 auto;
  width: 100%;
  min-width: 0; /* prevents flex sizing quirks in some browsers */
}
@supports (height: 100svh) {
  #street-view { height: 100svh; }
}

#street-view img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: 100%;
}

/* Mobile / narrow: fill height + horizontal scroll */
#street-view.mobile {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}
#street-view.mobile img {
  height: 100%;
  width: auto;
  max-width: none;      /* allow overflow horizontally */
  object-fit: contain;  /* optional: keeps aspect ratio when short/wide */
}
