/* InfographicsViewer.css */

html, body {
    overflow: hidden !important;
    margin: 0;
    padding: 0;
    font-family: "Roboto Flex", sans-serif;
    font-weight: 300; /* light */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-smooth: always;
}

#animation_container {
    position: relative; /* REQUIRED so the panel is positioned against this */
}

/* ============================================
   PANEL BASE
   ============================================ */

.info-panel {
    position: absolute;

    width: var(--panel-width, 320px);
    min-width: var(--panel-min-width, 0px);

    background: #ffffff;

    /* panel itself should NOT scroll */
    overflow: hidden;

    box-shadow: 0 0 15px rgba(0,0,0,0.25);
    box-sizing: border-box;
    font-size: 15px;
    z-index: 999;

    opacity: 1;
    transform: translate(0,0);
    transition: transform 0.50s ease, opacity 0.30s ease;

    display: flex;
    flex-direction: column;

    /* IMPORTANT */
    min-height: 0; /* helps in some browsers when nested */
}
.info-panel.no-trans {
  transition: none !important;
}
.info-panel.is-opening {
    transition:
        transform 0.50s ease,
        opacity 0.30s ease
}
    .info-panel.hidden {
        display: none;
        opacity: 0;
    }

/* ============================================
   PANEL CONTENT AREA
   ============================================ */

.info-panel-content {
  flex: 1 1 auto;     /* take remaining height */
  min-height: 0;      /* CRITICAL: allows scrolling inside flex containers */
  overflow-y: auto;   /* enable vertical scroll when needed */
  overflow-x: hidden; /* optional */
  -webkit-overflow-scrolling: touch; /* optional (smooth iOS) */
  padding: 16px;
  box-sizing: border-box;
}

/* ============================================
   PANEL TOP NAV BAR
   ============================================ */

.info-panel-nav {
    display: flex;
    justify-content: space-between;
    gap: 8px;

    /* sticky works only inside the scroll container; see note below */
    position: sticky;
    top: 0;

    padding: 0;     
    margin-bottom: 0;       /* IMPORTANT: don't push layout outside scroll box */

    background-color: #001f6b;
    border-bottom: solid 1px #000000;

    max-width: 100%;
    flex: 0 0 auto;
    box-sizing: border-box;
}

    .info-panel-nav button {
        flex: 1 1 auto;
        padding: 6px 10px;
        border-radius: 0px;
        border: 1px solid #001f6b;
        background: #f5f5f5;
        cursor: pointer;
    }

    .info-panel-nav div {
        flex: 10 1 100%;
    }

    .info-panel-nav button:hover {
        background: #EF4060;
        color: #ffffff;
    }

    .info-panel-nav button#panelBack {
        flex: 0 0 40px;
    }

    .info-panel-nav button:disabled {
        opacity: 0.4;
        cursor: default;
    }

/* ============================================
   IMAGE RULES
   ============================================ */

.info-panel img {
    max-width: 100%;
    display: block;
    margin-bottom: 16px;
}

/* ============================================
   HIDDEN CONTENT BLOCKS (unused now)
   ============================================ */

.zone-content.hidden {
    display: none;
}

/* ============================================
   SLIDING POSITIONS
   ============================================ */

/* OFF-SCREEN START POSITIONS � they slide *into* place when .active is added */

.info-panel.left {
    left: var(--panel-inset, 16px);
    transform: translateX(-105%);
}

.info-panel.right {
    right: var(--panel-inset, 16px);
    transform: translateX(105%);
}

.info-panel.left,
.info-panel.right {
    top: 0;        /* fallback only */
    bottom: auto;  /* fallback only */
}

.info-panel.top {
    left: 50%;
    top: 0;
    transform: translate(-50%, -105%); /* off-screen */
    height: 300px; /* same as your previous style */
}

.info-panel.bottom {
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 105%); /* off-screen */
    height: 300px;
}

/* === ACTIVE STATE � brings the panel into place === */

.info-panel.active {
    transform: translate(0,0) !important;
    opacity: 1;
    display: flex;
    pointer-events: auto;
}

h1 {
    color: #001f6b;
}
p {
    color: #405965;
    line-height: 20px;
}
.info-panel-content > img:first-child {
    padding-top: 8px;
}
li
{
    color: #405965;
    line-height: 20px;
}
ul li::marker {
    color: #ef4060;
}
strong
{
font-weight: 700;
}
.info-panel-content p+ul
{
margin-top: -12px;
}
button
{
    user-select: none;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none;     /* legacy Edge / IE */
}

.popup-overlay {
  position: absolute;
  inset: 0;
  z-index: 998;
  pointer-events: none;
opacity: 0;
transition: opacity 0.50s ease;
background: var(--overlay-css);
}

.popup-overlay.active { opacity: 1; }

.info-panel.preopen {
  visibility: hidden;
  pointer-events: none;
}