html, body {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  background-color: #1c1c1c;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  overflow: auto;
}

.skag-container {
  position: relative;
  width: 1920px;
  height: 1713px;
  margin: 0 auto;
}

#skaggy {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px;
  height: 1713px;
  display: block;
}

.map-nav-buttons {
  position: absolute;
  top: 80px; /* Adjust as needed */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  z-index: 50;
}

.nav-btn-home,
.nav-btn-prev {
  background-color: rgba(41, 41, 41, 0.9);
  border: 2px solid #fbffbb;
  border-radius: 8px;
  padding: 10px 20px;
  font-family: 'Cinzel Decorative', cursive;
  font-size: 18px;
  color: #fbffbb;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.nav-btn-home:hover,
.nav-btn-prev:hover {
  background-color: rgba(251, 255, 187, 0.2);
  transform: scale(1.05);
}



/* Voluspa region image sizing */
img#volu {
  width: 412px;
  height: 365px;
}

/* Overlay container for Voluspa */
#voluo {
  left: 1112px;
  top: 1042px;
  width: 412px;
  height: 365px;
  z-index: 9;
}

/* Tooltip wrapper */
#volut {
  width: 100%;
  height: 100%;
}

/* illvyrka region image sizing */
img#illv {
  width: 186px;
  height: 200px;
}

/* Overlay container for illvyrka */
#illvo {
  left: 1482px;
  top: 1114px;
  width: 186px;
  height: 200px;
  z-index: 9;
}

/* Tooltip wrapper */
#illvt {
  width: 100%;
  height: 100%;
}

/* Text Positioning */
#illvx {
  left: 45%;
}

/* Popup position for illvyrka  */
#illvyrka-popup {
  left: 1000px;
  top: 1000px;
}

/* Wolsung region image sizing */
img#wols {
  width: 414px;
  height: 326px;
}

/* Overlay container for Wolsung */
#wolso {
  left: 1214px;
  top: 866px;
  width: 414px;
  height: 326px;
  z-index: 9;
}

/* Tooltip wrapper */
#wolst {
  width: 100%;
  height: 100%;
}


/* Popup position for Wolsung  */
#wolsung-popup {
  left: 750px;
  top: 900px;
}

/* Asteron region image sizing */
img#aste {
  width: 703px;
  height: 487px;
}

/* Overlay container for Asteron */
#asteo {
  left: 1109px;
  top: 665px;
  width: 703px;
  height: 487px;
  z-index: 8;
}

/* Tooltip wrapper */
#astet {
  width: 100%;
  height: 100%;
}

/* Text Positioning */
#astex {
  top: 40%;
}

/* Fyrisian Federation region image sizing */
img#fyri {
  width: 764px;
  height: 620px;
}

/* Overlay container for Fyrisian Federation */
#fyrio {
  left: 677px;
  top: 232px;
  width: 764px;
  height: 620px;
  z-index: 5;
}

/* Tooltip wrapper */
#fyrit {
  width: 100%;
  height: 100%;
}

/* Text Positioning */
#fyrix {
  top: 30%;
  left: 40%;
  text-align: center;
}

/* Reidgot region image sizing */
img#reid {
  width: 703px;
  height: 523px;
}

/* Overlay container for Reidgot */
#reido {
position: absolute;
  left: 249px;
  top: 390px;
  width: 703px;
  height: 523px;
  z-index: 6;
}

/* Tooltip wrapper */
#reidt {
  width: 100%;
  height: 100%;
}

/* Text Positioning */
#reidx {
  top: 40%;
}

/* Popup position for Reidgot */
#reidgot-popup {
  left: 50px;
  top: 200px;
}

/* Domar region image sizing */
img#doma {
  width: 247px;
  height: 278px;
}

/* Overlay container for Domar */
#domao {
  left: 606px;
  top: 606px;
  width: 247px;
  height: 278px;
  z-index: 7;
}

/* Tooltip wrapper */
#domat {
  width: 100%;
  height: 100%;
}

/* Text Positioning */
#domax {
  top: 48%;
  left: 58%;
}

/* Popup position for Domar */
#domar-popup {
  left: 450px;
  top: 370px;
}
/* Sindari region image sizing */
img#sind {
  width: 247px;
  height: 246px;
}

/* Overlay container for Sindari */
#sindo {
  position: absolute;
  left: 595px;
  top: 745px;
  width: 247px;
  height: 246px;
  z-index: 9;
}

/* Tooltip wrapper */
#sindt {
  width: 100%;
  height: 100%;
}

/* Text Positioning */
#sindx {
  left: 45%;
}

/* Popup position for Sindari */
#sindari-popup {
  left: 450px;
  top: 420px;
}
/* Beowa region image sizing */
img#beow {
  width: 529px;
  height: 441px;
}

/* Overlay container for Beowa */
#beowo {
  position: absolute;
  left: 347px;
  top: 786px;
  width: 529px;
  height: 441px;
  z-index: 8;
}

/* Tooltip wrapper */
#beowt {
  width: 100%;
  height: 100%;
}

/* Text Positioning */
#beowx {
  top: 34%;
}

/* Popup position for Beowa */
#beowa-popup {
  left: 420px;
  top: 470px;
}

/* Nøkk region image sizing */
img#nokk {
  width: 426px;
  height: 478px;
}

/* Overlay container for Nøkk */
#nokko {
  position: absolute;
  left: 361px;
  top: 949px;
  width: 426px;
  height: 478px;
  z-index: 10;
}

/* Tooltip wrapper */
#nokkt {
  width: 100%;
  height: 100%;
}

/* Text Positioning */
#nokkx {
  top: 54%;
}

/* Popup position for Nøkk */
#nokk-popup {
  left: 450px;
  top: 620px;
}
/* Wuotan region image sizing */
img#wuot {
  width: 317px;
  height: 491px;
}

/* Overlay container for Wuotan */
#wuoto {
  position: absolute;
  left: 152px;
  top: 923px;
  width: 317px;
  height: 491px;
  z-index: 9;
}

/* Tooltip wrapper */
#wuott {
  width: 100%;
  height: 100%;
}

/* Text Positioning */
#wuotx {
}

/* Popup position for Wuotan */
#wuot-popup {
  left: 100px;
  top: 620px;
}

#toggle-journey {
  background-color: rgba(41,41,41,.9);
  border: 2px solid #fbffbb;
  border-radius: 8px;
  padding: 10px 20px;
  font-family: 'Cinzel Decorative', cursive;
  font-size: 18px;
  color: #fbffbb;
  cursor: pointer;
}

.journey-toggle-wrap{
  position: absolute;
  top: 1400px;
  left: 0;
  width: 100%;       /* full width of the 1920px map */
  z-index: 100;
  text-align: center;
}
#toggle-journey{ display: inline-block; }

#journey-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px;
  height: 1713px;
  pointer-events: none;
  z-index: 15;
}

.journey-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #ffcc00;
  position: absolute;
  pointer-events: auto;
  border: 2px solid #000;
  box-shadow: 0 0 5px #ffcc00;
  cursor: pointer;
}

#journey-summary {
  position: absolute;
  top: 100px;
  left: 20px;
  max-width: 260px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  z-index: 21;
  border-left: 4px solid #ffcc00;
  display: none;
}

#journey-paths {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 14;
  pointer-events: none;
}

#journey-paths path {
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px #ffcc00);
  pointer-events: none;
}

#journey-path-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px;
  height: 1713px;
  z-index: 14;        /* above most overlays, below the button (100) */
  pointer-events: none; /* so it never blocks clicks */
  /* remove the inline debug: margin/padding/background/border */
}

#journey-path-wrapper,
#journey-container {
  transition: opacity 0.3s ease;
}

.hidden {
  display: none;
  opacity: 0;
}
#journey-tooltip {
  position: absolute;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 30;
  transform: translate(-50%, -120%);
  font-family: inherit;
  box-shadow: 0 0 5px #000;
}

#journey-tooltip.hidden {
  display: none;
}

  /* 
  © 2025 Daniela A. Wolfe. All rights reserved.
  Styling for Heimshuhl interactive map.
*/