/* Global styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ensure body and html fill the viewport */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden; /* Prevent content overflow */
}

/* Header section (floating over chart) */
#header {
    position: absolute; /* Float above the chart */
    top: 0;
    left: 0;
    /* width: 100%; */
    height: 5%; /* Fixed height */
    padding: 10px;
    background-color: rgba(248, 248, 248, 0.3); /* Semi-transparent */
    color: black;
    font-family: Arial, sans-serif;
    font-size: 14px;
    z-index: 10; /* Ensure it's above the chart */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex; /* Use flexbox for layout */
    align-items: center; /* Align items vertically */
    justify-content: space-between; /* Space between corner-box and info */
}

/* Corner box styling */
#corner-box {
    font-size: 0.8rem;
    font-weight: bold;
    padding: 5px;
    background-color: lightgray;
    border-radius: 3px;
    flex-shrink: 0; /* Prevent it from shrinking */
}

/* Info section styling */
#info {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9rem;
    margin-left: 10px; /* Optional spacing between elements */
    flex-grow: 1; /* Allow info to take remaining space */
    text-align: left; /* Align text to the right */
}

/* Chart section */
#chart {
    position: absolute; /* Fill the entire screen */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Full height of the viewport */
    z-index: 1; /* Ensure it is behind the header */
}

.info-box {
    position: absolute;
    top: calc(5% + 10px); /* Positioned below the #header */
    left: 10px; /* Distance from the left edge */
    background-color: rgba(106, 90, 205, 0.2); /* Semi-transparent pink */
    padding: 10px; /* Space inside the container */
    border-radius: 5px; /* Rounded corners */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Slight shadow */
    z-index: 9; /* Ensure it appears below the #header */
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: black;
  }
  
  .info-item {
    padding: 3px 0; /* Add spacing between items */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05); /* Optional: Separator line */
  }
  
  .info-item:last-child {
    border-bottom: none; /* Remove border for the last item */
  }
  .hidden {
    display: none; /* Completely hides the element */
  }
  .hidden2 {
    display: none; /* Completely hides the element */
  }
  .info-box2 {
    position: absolute;
    top: calc(5% + 10px); /* Positioned below the #header */
    left: 10px; /* Distance from the left edge */
    background-color: rgba(223, 221, 238, 0.8); /* Semi-transparent pink */
    padding: 10px; /* Space inside the container */
    border-radius: 5px; /* Rounded corners */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Slight shadow */
    z-index: 9; /* Ensure it appears below the #header */
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: black;
  }