html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
  overflow-y: hidden;
  background-color: black;
  font-family: 'Inter', sans-serif;
}

.border-container {
  position: relative;
  overflow: hidden;
  border: 2px solid white;
  margin: 1rem;
  height: calc(100% - 2rem);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  flex-direction: column;
  z-index: 1;
}

.main-section {
  background-color: black;
  padding: 2rem 3rem;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 2rem;
  max-width: 150px;
  width: 90vw;
  z-index: 1;
}

canvas {
  display: block;
}

.content {
  text-align: center;
  z-index: 1;
}

::selection {
  background: #b6ee46;
  color: black;
}

h1 {
  margin: 0;
  font-size: 3rem;
  font-weight: 700;
}

.links {
  margin-top: 1rem;
  font-weight: 300;
  font-size: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.links a:not(.active) {
  color: white;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
}

.links a.active {
  text-decoration: none;
  background: #b6ee46;
}

.links a:hover {
  background-color: white;
  color: black;
}

.image-row {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 10px;
}

.image-row img {
  flex-shrink: 0;
}

#dotCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

#content-images {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  width: 100vw;
}

#content-images img {
  flex-shrink: 0;
  width: auto;
  overflow: hidden;
}

#info-box {
  position: fixed;
  bottom: calc(1rem - 4px);
  left: 1rem;
  right: 1rem;
  height: 33vh;
  border: 2px solid white;
  background-color: black;
  color: white;
  padding: 0.5rem;
  box-sizing: border-box;
  overflow: hidden;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.1s;
  z-index: 9999;
}

#info-box img {
  height: calc(33vh - 1rem);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

#info-box.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  border-radius: 0 0 2px 2px;
}

#badges-window {
  position: fixed;
  top: 40px;
  right: 40px;
  background-color: black;
  border: 2px solid white;
  display: none;
  flex-direction: column;
  width: 350px;
  height: 150px;
  color: white;
  z-index: 10000;
  user-select: none;
  cursor: default;
  overflow-y: auto;
}

#badges-titlebar {
  height: 20px;
  background-color: black;
  border-bottom: 2px solid white;
  padding: 0 0.5rem;
  cursor: grab;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

#badges-close {
  background: white;
  color: white;
  border: 0px;
  border-radius: 50%;
  width: 12px;
  height: 12px;
  cursor: pointer;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.badges-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0rem;
  padding: 0rem;
}

.badges-container img {
  max-width: 88px;
  max-height: 64px;
  display: block;
}

.badge-img {
  width: 88px;
  height: auto;
  margin: 5px;
}

#sprite-window {
  position: fixed;
  border: 2px solid white;
  background-color: black;
  display: flex;
  flex-direction: column;
  user-select: none;
  cursor: default;
  top: 50px;
  left: 50px;
  z-index: 10000;
  overflow: hidden;
}

#sprite-titlebar {
  background-color: black;
  border-bottom: 2px solid white;
  cursor: grab;
  padding: 0rem;
  height: 20px;
  width: 100%;
  user-select: none;
}

#sprite-content {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0px;
}

#sprite-content img {
  max-width: 80px;
  max-height: 80px;
}