html { background: #14141c; }
html.js body {
  opacity: 0;
  transition: opacity 0.35s ease;
}
html.js body.ready {
  opacity: 1;
}

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #000;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Background with size (320x180), scaled to fill screen */
.stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 320px;
  height: 180px;
  transform-origin: top left;
}

/* if the screen is wider than tall, scale by width-fit instead */
@media (min-aspect-ratio: 16/9) {
  .stage { transform: scale(calc(100vh / 180)); }
}
@media (max-aspect-ratio: 16/9) {
  .stage { transform: scale(calc(100vw / 320)); }
}

.bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  animation: cycle-frames 1s steps(1) infinite;
}

@keyframes cycle-frames {
  0% { background-image: url('graphics/backgroundFrame1.png'); }
  25% { background-image: url('graphics/backgroundFrame2.png'); }
  50% { background-image: url('graphics/backgroundFrame3.png'); }
  75% { background-image: url('graphics/backgroundFrame4.png'); }
}

.btn-personal,
.btn-prof {
  position: absolute;
  image-rendering: pixelated;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* PERSONAL button size (75 x 48) */
.btn-personal {
  width: 75px;
  height: 48px;
  left: 123px;
  top: 39px;
  background-image: url('graphics/buttonPersonal.png');
}
.btn-personal:hover {
  background-image: url('graphics/buttonPersonalHover.png');
  cursor: pointer;
}

/* PROFESSIONAL button size (95 x 29) */
.btn-prof {
  width: 95px;
  height: 29px;
  left: 113px;
  top: 95px;
  background-image: url('graphics/buttonProf.png');
}
.btn-prof:hover {
  background-image: url('graphics/buttonProfHover.png');
  cursor: pointer;
}

.hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}