*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html,
body,
main {
  height: 100%;
  overflow: hidden;
}

body {
  background: #0e1116;
  color: #ebebeb;
  font-family: "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.hero {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.time {
  font-size: 4rem;
}

.controls {
  font-size: 3rem;
  display: flex;
  gap: 1rem;
}

button {
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 1rem;
  margin: 0;
  font: inherit;
}

.material-icons {
  font-family: "Material Icons";
  font-weight: 400;
  font-style: normal;
  font-size: inherit;
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "liga";
}

.hidden {
  display: none;
}

.auto-toggle {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #646464;
  transition: 0.4s;
  border-radius: 34px;
}

.slider::before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background: #fff;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background: #498c8a;
}

input:focus-visible + .slider {
  box-shadow: 0 0 1px #374a67;
}

input:checked + .slider::before {
  transform: translateX(26px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
