body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
}

#temp {
  display: inline-flex;
  align-items: baseline;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  min-width: 4.5ch;
  vertical-align: bottom;
}

.temp-char {
  display: inline-block;
  flex: 0 0 auto;
  line-height: 1;
  min-width: .32ch;
  text-align: center;
  vertical-align: baseline;
}

.temp-roll {
  display: inline-block;
  width: 1ch;
  height: 1em;
  overflow: hidden;
}

.temp-roll-track {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 2em;
  line-height: 1;
  animation: temp-roll-track 450ms cubic-bezier(.4, 0, .2, 1) forwards;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.temp-roll-track span {
  display: block;
  width: 100%;
  height: 1em;
  line-height: 1;
  text-align: center;
}

@keyframes temp-roll-track {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(0, -1em, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .temp-roll-track {
    animation: none;
    transform: translate3d(0, -1em, 0);
  }
}

.sauna-meter {
  position: absolute;
  top: clamp(10px, 2.5vh, 22px);
  left: 50%;
  z-index: 2;
  width: clamp(150px, 25vw, 234px);
  aspect-ratio: 598 / 946;
  transform: translateX(-50%);
}

.sauna-meter-face {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .35));
}

.sauna-meter-needle {
  position: absolute;
  top: 48%;
  left: 66.5%;
  z-index: 4;
  width: 3%;
  height: 18%;
  border-radius: 999px;
  background: #111;
  box-shadow: 0 1px 2px rgba(255, 255, 255, .35) inset, 0 2px 5px rgba(0, 0, 0, .45);
  transform: translate(-50%, 0) rotate(-7deg);
  transform-origin: 50% 0;
  transition: transform 700ms cubic-bezier(.22, 1, .36, 1), opacity 200ms ease;
}

.sauna-meter-needle--unknown {
  opacity: 0;
}

.sauna-meter-knob {
  position: absolute;
  top: 48.5%;
  left: 65.5%;
  z-index: 5;
  display: block;
  width: 15%;
  height: auto;
  transform: translate(-50%, -50%);
  pointer-events: none;
}


@media (prefers-reduced-motion: reduce) {
  .sauna-meter-needle {
    transition: none;
  }
}

.savu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

@keyframes zyklonb {
    0% {
        opacity: 0;
        transform: scale(1);
    }

    25%, 75%{
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: scale(3);
    }
}

@media(min-width: 400px) {
h1 {
  font-size: 110px;
}

h3 {
  font-size: 60px;
}

.sauna-kuva {
  background-image: url("../img/ausvitsmobiili.jpg");
  background-color: #cccccc;
  height: 100vh;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.sauna-teksti {
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
}

.savu img {
    position: absolute;
    bottom: 0;
    max-width: 100%;
    max-height: 80%;
    animation: zyklonb calc(3s * var(--i)) linear infinite;
}
}

@media(min-width: 1250px) {
h1 {
  font-size: 100px;
}

h3 {
  font-size: 50px;
}

.sauna-kuva {
  background-image: url("../img/ausvits.jpg");
  background-color: #cccccc;
  height: 100vh;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.sauna-teksti {
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
}

.savu img {
    position: absolute;
    bottom: 0;
    max-width: 100%;
    max-height: 40%;
    animation: zyklonb calc(3s * var(--i)) linear infinite;
}
}
