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

html,
body {
  height: 100%;
  width: 100%;
}
:root {
  --primary-color: black;
  --secondary-color: white;
}

html.dark {
  --primary-color: white;
  --secondary-color: black;
}

body {
  font-family: "poppins", serif, sans-serif;
}
main {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--primary-color);
  background-color: var(--secondary-color);
  transition: all ease 0.5s;
}

.mode-change {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
}
.toggle {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 10px 12px;
  font-size: 14px;
  border: none;
  font-weight: 800;
  border-radius: 16px;
  cursor: pointer;
  font-family: "poppins", serif, sans-serif;
  transition: 0.3s ease;

  &:hover {
    background-color: rgb(253, 68, 0);
    color: var(--primary-color);
  }
  &:focus {
    outline: none;
  }
}

.clock {
  height: 300px;
  width: 250px;
  position: relative;
}
.clock .needle {
  height: 80px;
  width: 4px;
  background-color: var(--primary-color);
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: bottom center;
  transition: all ease .5s;
}
.needle.hour {
  transform: translate(-50%, -100%) rotate(0);
}
.needle.minute {
  height: 110px;
  transform: translate(-50%, -100%) rotate(0);
}
.needle.second {
  height: 130px;
  transform: translate(-50%, -100%) rotate(0);
  background-color: orangered;
}

.clock .circle {
  width: 10px;
  height: 10px;
  background-color: orangered;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}
.circle::after {
  content: "";
  width: 5px;
  height: 5px;
  background-color: var(--primary-color);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}
.time-date {
  padding: 20px;
  text-align: center;
}
.time {
  font-size: 60px;
  font-weight: 400;
}
.date {
  font-size: 20px;
  color: #747474;
  font-weight: 400;
}
.date span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  justify-content: center;
  align-items: center;
  font-size: 16px;
}
