@import url("https://fonts.googleapis.com/css2?family=Varela+Round&display=swap");

:root {
  --bg-color: #333;
  --text-color: #fff;
  --outer-border-color: #0af;

  color: var(--text-color);
  font-size: 5vw;
  font-size: clamp(36px, 5vw, 60px);
  font-family: "Varela Round", sans-serif;
}

* {
  background-color: var(--bg-color);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.clock {
  height: 7rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 0.25rem var(--outer-border-color), 0 0 0 0.3rem var(--text-color),
    inset 0 0 0.25rem var(--text-color), 0 0 1rem #000;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* LINES AND NUMBERS */
.lines,
.large-lines,
.medium-lines,
.small-lines,
.numbers,
.number {
  display: flex;
  justify-content: center;
  inset: 0;
  position: absolute;
  background: none;
  background: none;
}

/* large lines */
.large-lines::after {
  --border-radius: 0.15rem;
  content: "";
  height: 0.8rem;
  width: 0.5rem;
  border-bottom-left-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
  background: var(--outer-border-color);
  transform: translateY(25%);
  font-size: .6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 0 .1rem #000;
}
#large-line0::after {content: '12'; font-size: 0.35rem;}
#large-line1::after {content: '3';}
#large-line2::after {content: '6';}
#large-line3::after {content: '9';}

/* medium lines */
.medium-lines::after {
  --border-radius: 0.05rem;
  content: "";
  background: var(--text-color);
  height: 0.5rem;
  width: 0.3rem;
  border-bottom-left-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
  transform: translateY(25%);
}
#medium-line0::after,
#medium-line3::after,
#medium-line6::after,
#medium-line9::after {
  display: none;
}

/* small lines */
.small-lines::after {
  content: "";
  display: block;
  height: 0.4rem;
  width: 0.1rem;
  background: pink;
  opacity: 0.5;
  transform: translateY(50%);
}

/* numbers */
.number {
  inset: 0.7rem;
  font-size: 0.4rem;
}
#number3,
#number6,
#number9 {
  display: none;
}

/* HAND */
.hand {
  --rotate: 0;
  box-shadow: 0 0 0.1rem #000;
  border-radius: 0.2rem;
  position: absolute;
  transform-origin: bottom;
  transform: translateY(-50%) rotate(var(--rotate));
}
.second-hand {
  height: 47%;
  width: 0.05rem;
  background: #0f5;
}
.minute-hand {
  height: 40%;
  width: 0.1rem;
  background-color: #d6d6d6;
}
.hour-hand {
  height: 28%;
  width: 0.2rem;
  background-color: var(--outer-border-color);
}
.dot {
  height: 0.25rem;
  aspect-ratio: 1;
  background: var(--outer-border-color);
  border-radius: 50%;
  box-shadow: 0 0 0.1rem #000;
  position: absolute;
}