#cube-instructions {
  position: absolute;
  left: 50%;
  top: 10%;
  z-index: 20;
  transform: translateX(-50%);
  pointer-events: none;

  color: rgb(207, 200, 200);
  font-family: var(--font-retro);
  font-size: 10px;
  line-height: 1.8;
  text-align: center;
  text-shadow: 0 0 8px white;

  opacity: 1;
  animation: instructionBlink 3s ease-in-out infinite;
  transition: opacity 1s ease;
}

#cube-instructions.fade-out {
  opacity: 0;
}

#cube-instructions.hidden {
  display: none;
}

.mobile-instructions {
  display: none;
}

@keyframes instructionBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.introduction {
  position: absolute;
  left: 50%;
  top: 10%;

  transform: translateX(-50%);
  z-index: 19;
  pointer-events: none;

  color: rgb(207, 200, 200);
  font-family: var(--font-retro);
  font-size: 16px;
  text-align: center;
  text-shadow: 0 0 8px white;

  opacity: 0;
  transition: opacity 1s ease;
}

.introduction.show {
  opacity: 1;
}

.introduction.hidden {
  display: none;
}

.introduction.fade-out {
  opacity: 0;
}

body.light-mode #cube-instructions,
body.light-mode .introduction {
  color: #3d3a3a;
  text-shadow: 0 0 10px rgba(77, 77, 77, 0.15);
}