:root.dark {
  background-color: black;
  color: #f2f3f5;
}

:root.light {
  background-color: white;
  color: #1a1a1a;
}

:root {
  --font-size: calc(100 / 16 * 1rem);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

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

#clock {
  display: flex;
  align-items: center;
}

.display {
  height: calc(var(--font-size) * 1.2);
  width: calc(var(--font-size) * 0.7);
  overflow: hidden;
}

.number {
  font-size: var(--font-size);
  display: block;
  width: calc(var(--font-size) * 0.7);
  height: calc(var(--font-size) * 1.2);
  text-align: center;
  transition: all 250ms linear;
  user-select: none;
  -moz-user-select: none;
  -moz-user-select: -moz-none;
  -webkit-user-select: none;
}

.group {
  display: flex;
  align-items: center;
  gap: 0;
}

@media screen and (max-width: 720px) {
  :root {
    font-size: 50%;
  }
}
