@font-face {
  font-family: "TTHoves";
  src: url("./assets/fonts/TTHovesPro-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
}

:root {
  --bg: #C1C0BE;
  --ball: #D5FB11;
  --black: #000000;

  --ball-size: 28px;

  --timer-size: 60px;
  --text-size: 60px;

  --title-size: 200px;
  --title-line-height: 180px;

  --line-width: 4px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  font-family: "TTHoves", sans-serif;
}

#app-bg {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 0;
}

#physics-layer {
  position: fixed;
  left: 0;
  top: 0;
  width: 50vw;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

#physics {
  display: block;
  width: 100%;
  height: 100%;
}

#timer {
  position: fixed;
  top: 64px;
  right: 60px;
  font-size: var(--timer-size);
  line-height: 1;
  color: var(--black);
  z-index: 30;
}

#slides {
  position: relative;
  width: 100vw;
  height: 100vh;
  z-index: 10;
}

.slide {
  position: absolute;
  inset: 0;
  display: none;
}

.slide.active {
  display: block;
}

/* slide 1 */

.title {
  position: absolute;
  left: calc(50% + 50px);
  bottom: 86px;
  font-size: var(--title-size);
  line-height: var(--title-line-height);
  color: var(--black);
  white-space: pre-line;
}

/* slide 2 */

.left-title {
  position: absolute;
  top: 64px;
  left: 60px;
  font-size: var(--text-size);
  line-height: 1.05;
  color: var(--black);
}

.scale {
  position: absolute;
  left: 50%;
  top: 0;
  width: 0;
  height: 100vh;
  transform: translateX(-50%);
}

.scale-line {
  position: absolute;
  left: 50%;
  top: 0;
  width: var(--line-width);
  height: 100vh;
  background: var(--black);
  transform: translateX(-50%);
}

.marker {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
}

.tick {
  width: 50px;
  height: var(--line-width);
  background: var(--black);
}

.ton-count {
  position: absolute;
  left: 70px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 60px;
  line-height: 1;
  color: var(--black);
  white-space: nowrap;
}

.legend {
  position: absolute;
  right: 60px;
  bottom: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.legend-ball {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--ball);
  flex: 0 0 auto;
}

.legend-text {
  font-size: 60px;
  line-height: 1;
  color: var(--black);
  white-space: nowrap;
}
