html {
    height: 100%;
}

body {
    background-color: #121212;
    color: #eee;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    margin: 0;
}

#chart-container {
    position: relative;
    height: min(50vw,90vh);
    margin-right: 4px;
}

#title span {
    white-space: nowrap;
}

.chart-title {
    font-size: 22px;
    height: 26px;
    margin: 0;
    padding-top: 4px;
    box-sizing: border-box;
}

#date {
    color: #777;
    text-align: right;
    font-size: 0.75rem;
    margin: 4px 8px;
}

/* Tooltip container */
.tooltip {
    position: relative;
    display: inline-block;
}
/* Tooltip text */
.tooltip .tooltiptext {
    visibility: hidden;
    background-color: black;
    color: #fff;
    text-align: center;
    font-size: 1.5rem;
    padding: 2px 5px;
    border-radius: 6px;
    /* Position the tooltip text */
    position: absolute;
    z-index: 1;
    width: auto;
    top: 100%;
    left: 50%;
    margin-left: -40%; /* Use half of the width to center the tooltip */
}
/* Tooltip arrow */
.tooltip .tooltiptext::after {
    content: " ";
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent black transparent;
}
.tooltip:hover .tooltiptext {
    visibility: visible;
}