/* Cross-platform font rendering normalisation */
*, *::before, *::after {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html, body {
  margin: 0;
  padding: 0;
}

canvas {
  display: block;
}

/* adding text formating */

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;   /* clicks pass through to canvas */
}

/*formatting for antimatter title*/
.title-text {
  position: absolute;
  top: 3%;
  left: 12.5%;
  transform: translateX(-50%);         /* true centre */

  /* https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/clamp */
  font-size: clamp(18px, 2.8vw, 48px);    /* helps in resizing the text with to fit the window by creating a range */
  text-align: left;
  line-height: 1.15;
  white-space: nowrap;
}

/* formatting for description text top right corner */
.desc-text {
  position: absolute;
  top: 4%;
  right: 3%;
  width: clamp(200px, 22vw, 300px); 
  font-size: clamp(8px, 0.75vw, 10px); 
  line-height: 1.55;
  text-align: left;
  overflow: visible;
}

.stats-bar {
  position: absolute;
  top: 18%;
  left: 3%;
  width: 94%;

  /* creates a flexbox, which refers to a flexible container */
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 1%;

  /* adding borders and padding */
  border-top: 1px solid #232323;
  border-bottom: 1px solid #232323;
  padding-top: 0.4%;
  padding-bottom: 0.4%;
  
  /* typography formating */
  font-family: "Space Mono", "Courier New", monospace;
  font-weight: 700;
  font-size: clamp(7px, 0.7vw, 13px);
  color: #232323;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

h1{
  font-family: "Zen Dots", sans-serif;
  font-weight: 400;
  color: #232323;
  margin: 0;
}

p{
  font-family: "Courier New Bold", monospace;
  font-weight: 400;
  color: #232323;
  margin: 0;
}

.stats-bar {
  font-family: "Courier New Bold", monospace;
  font-weight: 700;
  color: #232323;
  margin: 0;
}

