:root {
  font-size: 2rem;
}

/* Centering Showcase */
body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  flex-direction: column;
}

.container {
  width: max-content;
}

/* Styling the buttons */
.buttons {
  min-width: 100%;
  display: flex;
  justify-content: left;
}

* + .buttons {
  margin-bottom: 2em;
}

button {
  background-color: #222;
  font-family: "Courier Prime", monospace;
  font-size: 0.75rem;
  border: none;
  padding: 0.5em 1.5em;
  size: 0.5em 1em;
  color: aliceblue;
  cursor: pointer;
}

button:hover {
  opacity: 0.8;
}

* + button {
  margin-left: 4.5em;
}

/* Nice Large Text */
.time {
  min-width: 100%;
  text-align: center;
  font-size: 5rem;
}

/* Fancy Checkbox Styles */
.check-container {
  display: flex;
  justify-content: center;
}

input[type="checkbox"].toggle {
  opacity: 0;
  position: absolute;
  left: -9000px;
  top: -9000px;
}

input[type="checkbox"].toggle + label {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
}

input[type="checkbox"].toggle + label::before {
  content: "";
  width: 2em;
  height: 1em;
  background-color: hsl(0, 80%, 90%);
  border-radius: 1em;
  margin-right: 0.25em;
  transition: background-color 200ms ease-in-out;
}

input[type="checkbox"].toggle + label::after {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  content: "\2715";
  font-size: 0.5em;
  height: 0.9em;
  left: 0.2em;
  width: 1.8em;
  height: 1.8em;
  background-color: hsl(0, 80%, 60%);
  color: white;
  border-radius: 1em;
  transition: background-color 200ms ease-in-out, transform 200ms ease-in-out;
}

input[type="checkbox"].toggle:focus + label::before {
  outline: 1px solid black;
}

input[type="checkbox"].toggle:checked + label::before {
  background-color: hsl(100, 70%, 90%);
}

input[type="checkbox"].toggle:checked + label::after {
  content: "\2713";
  transform: translateX(100%);
  background-color: hsl(100, 70%, 60%);
}

input[type="checkbox"].toggle:disabled + label {
  color: #777;
}

input[type="checkbox"].toggle:disabled + label::before {
  background-color: #ccc;
}

input[type="checkbox"].toggle:disabled + label::after {
  background-color: #777;
}
