/* Body Section */
body {
    font-family: Arial, sans-serif;
    padding: 5px;
}

/* Header Section */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap; /* prevent wrapping */
    white-space: nowrap; /* prevent text wrap */
}

.header h2 {
    margin: 0;
}

/* Index Value Styling */
#indexValue {
    font-size: 28px;
    font-weight: bold;
}

#current-index {
    font-size: 24px;
    /* whole line bigger */
}

/* Flash Update Styling */
.flash-update {
    background-color: rgba(0, 102, 102); /* 20% opacity */
    /* background-color: rgba(0, 102, 102, 0.2); /* 20% opacity */
    transition: background-color 0.3s ease;
}

.right {
    text-align: right;
}

/* Tooltip Styling */
/* .tooltip {
    position: fixed;
    display: none;
    z-index: 9999;
    background: #fff;
    border: 1px solid #333;
    box-shadow: 2px 2px 16px rgba(0,0,0,.3);
    padding: 5px;
  } */

  /* .tooltip img { max-width: 400px; display: block; } */

  .tooltip {
    position: fixed;
    display: none;
    z-index: 9999;
    background: #fff;
    border: 1px solid #333;
    box-shadow: 2px 2px 12px rgba(0,0,0,0.5);
    padding: 3px;
    max-width: 600px;      /* wider tooltip */
    max-height: 800px;     /* taller tooltip */
    overflow: auto;        /* add scroll if content is too big */
}

.tooltip img {
    max-width: 600px;   /* adjust width as needed */
    max-height: 800px;  /* adjust height as needed */
    width: auto;        /* keep aspect ratio */
    height: auto;       /* keep aspect ratio */
    display: block;
}



  /* Shared tooltip */
  #rowTooltip {
    position: absolute;
    display: none;
    background: #003366;
    border: 1px solid #999;
    padding: 6px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
    z-index: 10000;
    pointer-events: none; /* important prevents flickering */
  }

  #rowTooltip table {
    border-collapse: collapse;
    width: 100%;
  }

  #rowTooltip th,
  #rowTooltip td {
    padding: 4px 8px;
    border: 1px solid #555;
    font-size: 12px;
  }