#alarms {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #171717;
  color: white;
  counter-reset: hour 5 minutes 0;
  margin-block: 1rem;
  overflow-y: auto;
}

.alarm {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-inline: 2em;
  padding-block: 1em;
  border-bottom: 2px solid #202020;

  counter-increment: minutes 1;
}

.alarm p {
  margin-block: 0;
}

.alarm:nth-child(60n + 1) {
  counter-set: minutes 0;
  counter-increment: hour 1;
}

.alarm__time::after {
  content: counter(hour, hour) ":" counter(minutes, decimal-leading-zero);
}

@counter-style time {
  system: extends decimal;
  pad: 2 "0";
}

.alarm__time::after {
  font-size: 400%;
  font-weight: 100;
  content: counter(hour, time) ":" counter(minutes, time);
}

/* ios switch */
/* From Uiverse.io by mrhyddenn */
/* The switch - the box around the slider */
.switch {
  font-size: 17px;
  position: relative;
  display: inline-block;
  width: 62px;
  height: 35px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 1;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0px;
  background: #171717;
  transition: .4s;
  border-radius: 30px;
  border: 1px solid grey;
}

.slider:before {
  position: absolute;
  content: "";
  height: 1.9em;
  width: 1.9em;
  border-radius: 16px;
  left: 1.2px;
  top: 0;
  bottom: 0;
  background-color: white;
  box-shadow: 0 2px 5px #999999;
  transition: .4s;
}

input:checked+.slider {
  background-color: #5fdd54;
  border: 1px solid transparent;
}

input:checked+.slider:before {
  transform: translateX(1.5em);
}
