*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;  /* prevents all text from being selected */
}

/* The animated region */
canvas {
  width: 100%;
  height: 100vh; /* full viewport height */
  display: block;
  position: relative; /* allow content below the canvas */
  z-index: 0;
}

/* The main heading of the website in the centre of the animation */
.overlay-heading {
  font-family: "Segoe UI", "Open Sans", "Helvetica Neue", sans-serif;
  font-weight: bold;
  margin: 0;
  position: absolute;
  text-align: center;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgb(0, 0, 0);
  font-size: 75px; 
  z-index: 1; /* above canvas */
  pointer-events: none; /* this is important as it ensures that the effect works under the heading */
}

/* Content below the animation canvas */
.page-content {
  padding: 20px;
  color: black;
  background-color: transparent;
}

/* Landscape orientation */
@media (orientation: landscape) {
  .overlay-heading {
    font-size: 6vw;
  }
}

/* Portrait orientation */
@media (orientation: portrait) {
  .overlay-heading {
    font-size: 12vw;
  }
}

