#coords
{
    position: absolute;
    width: var(--cellW);
    height: var(--cellH);
    margin: 0;
    padding: 0;
    left: 12px;
    top: 12px;
    z-index: 900;
    pointer-events: none;
}

#coords .highlight
{
    position: absolute;
    left: 0;
    top: 0;
    width: var(--cellW);
    height: var(--cellH);
    background: rgba(255, 255, 255, .6);
    backdrop-filter: blur(3px);
}

#coordsText
{
    position: absolute;
    left: 50%;
    bottom: calc(100% + 5px);
    width: fit-content;
    transform: translateX(-50%) scale(calc(1 / var(--scale) * 1.2));
    transform-origin: center calc(100% + 2px);
    white-space: nowrap;
    background: rgba(255,255,255,0.6);
    padding:  4px 6px;
    color: rgba(0,0,0,0.8);
    backdrop-filter: blur(3px);
    border-radius: 2px;
    font-family: Calibri;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
    box-shadow: 0 0 5px rgba(0,0,0,0.6);
    padding-bottom: 6px;
    z-index: 1000;
}

#coordsText::before
{
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    width: 10px;
    height: 5px;
    background: rgba(255,255,255,0.6);
    transform: translateX(-50%);
    clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
}

.legend
{
    position: fixed;
    left: 12px;
    bottom: 12px;
    background: rgba(17, 24, 39, .75);
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 10px;
    padding: 8px 10px;
    font-variant-numeric: tabular-nums;
    font-family: Calibri;
    font-size: 16px;
    backdrop-filter: blur(3px);
}

.legend > div
{
    display: flex;
    align-items: center;
}

.legend > div > img
{
    margin-right: 5px;
}

.copyright
{
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    background: rgba(17, 24, 39, .75);
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 10px 10px 0 0;
    padding: 2px 10px;
    font-variant-numeric: tabular-nums;
    font-family: Calibri;
    font-size: 16px;
    backdrop-filter: blur(3px);
}

.copyright a
{
    color: white;
    font-weight: bold;
}

.copyright a:hover
{
    color: lightgray;
}
