h1, h3 {
    width: 100%;
    text-align: center;
    font-size: 2em;
    margin: 0.1em auto;
}

h3 {
    font-size: 1.5em;
    font-style: italic;
    font-weight: 400;
    opacity: 0.8;
}

#css {
  display: inline-block;
  font-family: monospace;
  white-space: pre;
  width: fit-content;
  margin: 1em;
  padding: 8px 18px;
  border-radius: 8px;
  background-color: var(--anti-text-50);
  font-size: 1.25em;
  overflow-x: auto;

  @media screen and (width < 1500px) {
    width: 90%;
    margin: 0 auto;
    display: block;
  }
}

@media (width < 1000px) {
  #container {
    width: calc(100vw - 80px);
  }
}

#targetpen {
    display: inline-block;
    aspect-ratio: var(--aspect-ratio);
    position: relative;
    width: 40vmin;
    margin: 20px auto;
    vertical-align: center;
    @media screen and (width < 1500px) {
        display: block;
    }
}

#target, #ghost-target, #points {
    position: absolute;
    width: 100%;
    height: 100%;
}

#target, #ghost-target {
    background-color: var(--highlight-3);
    background-size: 100% 100%;
}

#points {
    z-index: 2;
}

#ghost-target {
    opacity: 0.4;
    z-index: 1;
    background-image: url("https://zatzhing.me/pages/fidget/pebbles/graph.png");
    background-size: 10%;
}

.pin {
    position: absolute;
    top: var(--y);
    left: var(--x);
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background-color: hsl(calc(sibling-index() * 30deg - 30deg) 50% 50%);
    border-radius: 10px;
    outline: 2px var(--text) solid;
}

.pin:before {
    content: var(--id);
    position: absolute;
    top: 0.1em;
    left: 0;
    width: 100%;
    display: inline-block;
    text-align:center;
}

.pin:after {
    content: var(--coords);
    position: absolute;
    left: 25px;
    width: max-content;
    display: inline-block;
    border-radius: 10px;
    padding: 5px 10px;
    font-size: 12px;
    background-color: var(--anti-text-50);
}

#reference {
    font-family: DM Mono, monospace;
    white-space: pre;
    text-align: center;
    margin-top: 1em;
}

#reference > b {
    font-family: DM Mono, monospace;
    font-weight: 600;
}

.link {
    width: fit-content;
    margin: 0 auto;
    user-select: none;
}

/* i hate css i hate css */
::highlight(coords-0) {
    background-color: hsla(0deg, 50%, 50%, 0.5);
}

::highlight(coords-1) {
    background-color: hsla(30deg, 50%, 50%, 0.5);
}

::highlight(coords-2) {
    background-color: hsla(60deg, 50%, 50%, 0.5);
}

::highlight(coords-3) {
    background-color: hsla(90deg, 50%, 50%, 0.5);
}

::highlight(coords-4) {
    background-color: hsla(120deg, 50%, 50%, 0.5);
}

::highlight(coords-5) {
    background-color: hsla(150deg, 50%, 50%, 0.5);
}

::highlight(coords-6) {
    background-color: hsla(180deg, 50%, 50%, 0.5);
}

::highlight(coords-7) {
    background-color: hsla(210deg, 50%, 50%, 0.5);
}

::highlight(coords-8) {
    background-color: hsla(240deg, 50%, 50%, 0.5);
}

::highlight(coords-9) {
    background-color: hsla(270deg, 50%, 50%, 0.5);
}

::highlight(coords-10) {
    background-color: hsla(300deg, 50%, 50%, 0.5);
}

::highlight(coords-11) {
    background-color: hsla(330deg, 50%, 50%, 0.5);
}