@charset "utf-8";

:root {
  --width: 960px;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #ddd;
  background-image: radial-gradient(at 50% 45%, #f6f6f6 0%, #ddd 70%);
  background-repeat: no-repeat;
  background-size: 200%;
  background-position: center;
}

/* helper */

.h-container {
  max-width: var(--width);
  padding: 1rem;
  box-sizing: border-box;
}

.h-mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.h-grid {
  display: grid;
}

.h-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.h-gap-s {
  gap: 1rem;
}

.h-gap-m {
  gap: 2rem;
}

.h-gap-l {
  gap: 3rem;
}

.h-gap-xl {
  gap: 4rem;
}

/* layout */

.header {
  padding: 5rem 2rem;
  text-align: center;
  background-color: #eee;
  border-bottom: solid 1px #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, .1) inset;
}

.header__title {
  font-size: 5rem;
  font-weight: 700;
  color: rgba(0, 0, 0, .5);
  text-shadow: 1px 1px #fff;
}

.section {
  color: rgba(0, 0, 0, .35);
  text-shadow: 1px 1px #fff;
  line-height: 1.7;
}

.section__title {
  font-weight: 600;
  font-size: 1.5rem;
}

/* module */

.clock {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  position: relative;
  border: solid 15px transparent;
  box-sizing: border-box;
}

.clock::after {
  position: absolute;
  top: calc(50% - 10px);
  left: calc(50% - 10px);
  content: '';
  width: 20px;
  height: 20px;
  background-color: #000;
  border-radius: 50%;
}

.clock-border {
  background-color: #fff;
  border-color: rgba(0, 0, 0, 1);
  box-shadow:
    -10px 10px 15px rgba(0, 0, 0, .3) inset,
    -10px 10px 15px rgba(0, 0, 0, .3);
}

.clock__horizontal {
  position: absolute;
  top: calc(50% - 88px / 2);
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.clock__vertical {
  position: absolute;
  left: calc(50% - 94.3px / 2);
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
}

.clock__num {
  font-size: 3.5rem;
  padding: 1rem;
  color: rgba(0, 0, 0, .5);
  text-shadow: 1px 1px #fff;
}

.clock__hour, .clock__min, .clock__sec {
  position: absolute;
  background-color: #000;
  transform-origin: center bottom;
}

.clock__hour {
  top: 25%;
  left: calc(50% - 4px);
  width: 8px;
  height: 25%;
}

.clock__hour::after {
  position: absolute;
  top: 100%;
  content: '';
  width: 8px;
  height: 40px;
  background-color: #000;
}

.clock__min {
  top: 13%;
  left: calc(50% - 3px);
  width: 6px;
  height: 37%;
}

.clock__min::after {
  position: absolute;
  top: 100%;
  content: '';
  width: 6px;
  height: 40px;
  background-color: #000;
}

.clock__sec {
  top: 15%;
  left: 50%;
  width: 1px;
  height: 35%;
  background-color: red;
}

.clock__sec::after {
  position: absolute;
  top: 100%;
  content: '';
  width: 1px;
  height: 50px;
  background-color: red;
}