body {
  margin: 0;
  font-family: 'Fira Code', monospace;
  font-size: 14px;
  position: absolute;
  background: #F2F2FF;
}

h1, ul, p {
  margin: 0;
  padding: 0;
}

ul {
  padding-left: 20px;
}

.green {
  color: #00ff00;
}

.red {
  color: red;
}

#container {
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  position: relative;
}

body.pointer {
  cursor: pointer;
}

.square {
  width: 12px;
  height: 12px;
  background: black;
}

header {
  position: fixed;
  top: 3px;
  right: 6px;
  display: flex;
  flex-direction: row;
  align-items: center;
  font-weight: bold;
  z-index: 10;
  background: #F2F2FF;
  padding-left: 5px;
  padding-bottom: 1px;
  pointer-events: none;
}

header .square {
  margin-right: 6px;
}

@keyframes rotating {
  0% {
    transform: rotate(0deg);
  }
  90% {
    transform: rotate(380deg);
  }
  95% {
    transform: rotate(345deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#loader {
  position: fixed;
  bottom: 4px;
  left: 5px;
  display: flex;
  flex-direction: row;
  align-items: center;
  font-weight: bold;
  z-index: 10;
  background: #F2F2FF;
  padding-right: 5px;
  padding-top: 1px;
  pointer-events: none;
}

#loader .square {
  margin-left: 6px;
  animation: rotating 2s ease-in-out infinite;
}

#loader.loaded .square {
  animation: none;
}

#cover-white {
  position: fixed;
  z-index: 1;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  background: #F2F2FF;
  transition: all 3s ease-out;
  opacity: 1;
  pointer-events: all;
}

#cover-white.loaded {
  opacity: 0;
  pointer-events: none;
}

#cover-square {
  position: fixed;
  top: 7px;
  right: 7px;
  left: 7px;
  bottom: 7px;
  border: 1px solid rgba(0, 0, 0, 0.26);
  pointer-events: none;
  z-index: 5;
}

#hover-circle {
  position: absolute;
  transform: translate(-50%, -50%) scale(0.2);
  width: 40px;
  height: 40px;
  border: 2px solid rgba(0, 0, 0, 0.7);
  border-radius: 100px;
  pointer-events: none;
  background: transparent;
  opacity: 0;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

#hover-circle.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  background: rgba(255, 255, 255, 0.4);
}

#hover-author {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out, font-variation-settings 0.3s ease-out;
  transform: skew(30deg, 0deg) translate(10px, -5px) scaleY(10);
  transform-origin: 50% 100%;
  font-weight: bold;
  background: white;
}

#hover-author.active {
  opacity: 1;
  transform: translate(22px, -20px) scale(1);
}

#node-details {
  position: fixed;
  z-index: 100;
  bottom: 7px;
  right: 7px;
  background: black;
  color: white;
  padding: 10px;
  padding-top: 30px;
  transform: translateY(calc(100% + 7px));
  transition: all 0.3s ease-out;
}

#node-details.active {
  transform: translateY(0);
}

#node-details .close {
  position: absolute;
  top: 0;
  right: 0;
  padding: 10px;
  cursor: pointer;
  font-weight: bold;
}

#node-details .content {
  max-height: min(100vh - 54px, 300px);
  max-width: calc(100vw - 34px);
  overflow: auto;
}

@media screen and (max-width: 500px) {
  .node-details {
    font-size: 0.9em;
  }
}