@import url("https://fonts.googleapis.com/css2?family=Heebo:wght@300&display=swap");

:root {
  --primary-color: black;
  --secondary-color: #fff;
}
html.dark {
  --primary-color: rgb(255, 255, 255);
  --secondary-color: rgb(39, 39, 39);
}
html.dark {
  background-color: #111;
  color: var(--secondary-color);
}

html {
  transition: 0.3s cubic-bezier(0.6, 0.04, 0.98, 0.335);
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Heebo", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  overflow: hidden;
  margin: 0;
  overflow: hidden;
}

.toggle {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: 0;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  position: absolute;
  top: 7rem;
}

.toggle:focus {
  outline: none;
}

.clock-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.clock {
  position: relative;
  width: 20rem;
  height: 20rem;
}

.needle {
  background-color: var(--primary-color);
  position: absolute;
  top: 50%;
  left: 50%;
  height: 6.5rem;
  width: 0.25rem;
  transform-origin: bottom center;
}

.needle.hour {
  transform: translate(-50%, -100%) rotate(0deg);
}

.needle.minute {
  transform: translate(-50%, -100%) rotate(30deg);
  height: 10rem;
}

.needle.second {
  transform: translate(-50%, -100%) rotate(0deg);
  height: 10rem;
  background-color: rgb(255, 102, 0);
}

.center-point {
  background-color: rgb(255, 102, 0);
  width: 1rem;
  height: 1rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.center-point::after {
  content: "";
  background-color: var(--primary-color);
  width: 0.55rem;
  height: 0.55rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.time {
  font-size: 6rem;
  color: var(--primary-color);
}

.date {
  font-size: 1.25rem;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.date .circle {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-radius: 50%;
  height: 1.75rem;
  width: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.75rem;
  transition: all 0.5s ease-in;
}
