/* Global Styles */

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

/* Main Div */

.main {
  width: 100%;
  height: 100vh;
  background-image: linear-gradient(to right, #434343 0%, black 100%);
  overflow: auto;
  position: relative;
}

h1 {
  text-align: center;
  color: #fff;
  margin-top: 30px;
}

/* Start Clock Section */

.clock {
  width: 400px;
  height: 400px;
  background-color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  border-radius: 10%;
  transition: border-radius 0.3s ease;
  border: 7px solid #282828;
  box-shadow: -4px -4px 10px rgba(67,67,67,0.5),
                inset 4px 4px 10px rgba(0,0,0,0.5),
                inset -4px -4px 10px rgba(67,67,67,0.5),
                4px 4px 10px rgba(0,0,0,0.3);
}

.clock .circle {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: #282828;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.clock #hours,
.clock #minutes,
.clock #seconds {
  --rotation: 0;
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform: translateX(-50%) rotate(calc(var(--rotation) * 1deg));
  transform-origin: bottom;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 10px;
}

.clock #hours {
  width: 7px;
  height: 120px;
  background-color: #44678e;
  z-index: 5;
}

.clock #minutes {
  width: 4px;
  height: 140px;
  background-color: rgb(146, 100, 13);
  z-index: 6;
}

.clock #seconds {
  width: 2px;
  height: 160px;
  background-color: #a08a75;
  z-index: 7;
}

.clock p {
  --rotation: 0;
  position: absolute;
  height: 50%;
  padding: 15px 0px;
  transform-origin: 50% 100%;
  font-weight: bold;
  color: #282828;
  transform: rotate(var(--rotation));
}

.clock p:first-of-type {
  --rotation: 30deg;
}
.clock p:nth-of-type(2) {
  --rotation: 60deg;
}
.clock p:nth-of-type(3) {
  --rotation: 90deg;
}
.clock p:nth-of-type(4) {
  --rotation: 120deg;
}
.clock p:nth-of-type(5) {
  --rotation: 150deg;
}
.clock p:nth-of-type(6) {
  --rotation: 180deg;
}
.clock p:nth-of-type(7) {
  --rotation: 210deg;
}
.clock p:nth-of-type(8) {
  --rotation: 240deg;
}
.clock p:nth-of-type(9) {
  --rotation: 270deg;
}
.clock p:nth-of-type(10) {
  --rotation: 300deg;
}
.clock p:nth-of-type(11) {
  --rotation: 330deg;
}
.clock p:last-of-type {
  --rotation: 360deg;
}

/* End Clock Section */