.land{
    fill:#d1a1b5;
    stroke: #4da39e;
    stroke-width: 1px;
}
.river{
    fill:none;
    stroke: #ff992b;
    stroke-width: 1.5px;
}

.lake{
    fill:#ff992b;
    stroke: #ff992b;
    stroke-width: 1.5px;
}

.world{
    fill:#cc9c3b;
    stroke: black;
    stroke-width: 0px;
}

.storyConnections path {
    fill: none;
    stroke: rgb(0 0 0 / 20%);
    stroke-width: 1.2px;
    pointer-events: none;
}

.space{
    fill:#5064b4;
} 
  
.mapPart {
    position: absolute
}
  
html, body {
    overflow: hidden; /* Hide scrollbars */
    background-color: #5064b4;
  }

  #div_tooltip{
    box-sizing: border-box;
    position: fixed;
    z-index: 900;
    visibility: hidden;
    width: min(650px, calc(100vw - 24px));
    aspect-ratio: 650 / 338;
    overflow: hidden;
    border: 1px solid #000;
    border-radius: clamp(24px, 5.4vw, 35px);
    background: #63A19E;
    color: #000;
    font-family: var(--site-font-family);
    pointer-events: none;
  }

  #div_tooltip.hasNoImage{
    aspect-ratio: auto;
  }

  #div_tooltip.isTapTarget{
    pointer-events: auto;
    cursor: pointer;
  }

  #div_tooltip.hasNoImage .storyTooltipHeader{
    height: auto;
    min-height: clamp(48px, 7.4vw, 58px);
    padding-top: 12px;
    padding-bottom: 12px;
    border-bottom: 0;
  }

  #div_tooltip.hasNoImage .storyTooltipMedia{
    display: none;
  }

  .storyTooltipHeader{
    box-sizing: border-box;
    display: flex;
    align-items: center;
    height: clamp(38px, 7.4vw, 48px);
    padding: 0 clamp(14px, 3.5vw, 23px);
    border-bottom: 1px solid #000;
  }

  .storyTooltipHeading{
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: #000;
    font-family: inherit;
    font-size: clamp(13px, 2.45vw, 16px);
    font-weight: 700;
    line-height: 1.1;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .tooltip_location{
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
  }

  .storyTooltipMedia{
    box-sizing: border-box;
    height: calc(100% - clamp(38px, 7.4vw, 48px));
    padding: clamp(12px, 2.45vw, 16px) clamp(14px, 3.5vw, 23px) clamp(18px, 5.7vw, 37px);
  }

  .storyTooltipImageFrame{
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: clamp(22px, 5.4vw, 35px);
    background: #E5E5E5;
  }

  .storyTooltipImageFrame::after{
    content: "";
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    display: none;
    box-sizing: border-box;
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
    border: 3px solid rgba(0, 0, 0, 0.2);
    border-top-color: #F19E47;
    border-radius: 50%;
    animation: storyTooltipImageLoading 700ms linear infinite;
  }

  #div_tooltip.isLoading .storyTooltipImageFrame::after{
    display: block;
  }

  #div_tooltip.isLoading .tooltip_image{
    opacity: 0;
  }

  .tooltip_image{
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    opacity: 1;
    object-fit: cover;
    object-position: center;
  }

  @keyframes storyTooltipImageLoading{
    to{
      transform: rotate(360deg);
    }
  }

  @media (prefers-reduced-motion: reduce){
    .storyTooltipImageFrame::after{
      animation: none;
      border-top-color: rgba(0, 0, 0, 0.2);
      border-right-color: #F19E47;
    }
  }
  #zoomButtons{
  position: fixed;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
}

#zoomButtons button{
  display: grid;
  place-items: center;

  width: 56px;
  height: 56px;
  margin: 6px 0;

  padding: 0;
  border: 1px solid #000;
  border-radius: 20px;
  background: #F19E47;
  cursor: pointer;
}

#zoomButtons button img{
  width: 40px;
  height: 40px;
  display: block;
}
#zoomButtons button{
  transition: filter 120ms ease, transform 60ms ease;
}

#zoomButtons button:hover{
  filter: brightness(1.06);
}

#zoomButtons button:active{
  filter: brightness(0.94);
  transform: translateY(1px);
}

/* keyboard users */
#zoomButtons button:focus-visible{
  outline: 3px solid #000;
  outline-offset: 2px;
}

@media (max-width: 700px){
  #div_tooltip{
    z-index: 10002;
  }

  #map svg{
    touch-action: none;
  }

  #zoomButtons{
    top: auto;
    bottom: 12px;
    left: 12px;
    transform: none;
    z-index: 1;
  }

  body[data-story-details="true"] #zoomButtons{
    bottom: 90px;
  }

  #zoomButtons button{
    width: 56px;
    height: 56px;
    margin: 5px 0;
    border-radius: 20px;
  }

  #zoomButtons button img{
    width: 40px;
    height: 40px;
  }
}
