* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background-color: hsl(0, 0%, 0%);
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  color: white;
}

header {
  padding: 5vmin;
  place-items: center;
  text-align: center;
}

canvas {
  image-rendering: pixelated;
}

main {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  width: 100%;
  gap: 2vmin;
  padding: 2vmin;
}

a {
  color: unset;
  position: relative;
}

.center {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
}

.center > * {
  width: 100%;
  height: 100%;
}

.center > .info {
  position: absolute;
  top: 0;
  left: 0;
  place-items: center;
  background-color: #0008;
  display: grid;
  place-items: center;
  text-align: center;
}

.center > .info[hidden] {
  display: none
}


.loading-circle {
  width: 5vmax;
  height: 5vmax;
  border-radius: 50%;
  border: 0.5vmax solid white;
  border-bottom: 1vmin solid transparent;
  animation: rotate 1s linear infinite;
}


#autoScroll {
  position: fixed;
  bottom: 8vmin;
  right: 8vmin;
  padding: 8px 12px;
  border-radius: 8px;
  border: 2px solid gray;
  box-shadow: 4px 4px #0004;
}
#autoScroll > span {
  font-weight: bold;
  color: red;
}


::-webkit-scrollbar {
  width: 2vmin;
  background-color: transparent;
  left: 0;
}

::-webkit-scrollbar-thumb {
  background-color: gray;
}


@keyframes rotate {
  0% {
    transform: rotate(0turn);
  }

  100% {
    transform: rotate(1turn);
  }
}

@keyframes appear {
  0% {
    opacity: 0;
    transform: scale(0);
    transform-origin: left;
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}
