* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

:root {
  --primary-color: #f6f7fb;
  --white-color: #fff;
  --black-color: #16191e;
  --red-color: #e74c3c;

  /* Clock hand colors for Light Mode */
  --hour-color: #16191e;
  --minute-color: #16191e;
  --second-color: #e74c3c;
}

body.dark {
  --primary-color: #242526;
  --white-color: #18191a;
  --black-color: #fff;
  --red-color: #e74c3c;

  /* Clock hand colors for Dark Mode */
  --hour-color: #ED775A;
  --minute-color: #ED775A;
  --second-color: #FAD691;
}


body {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  transition: background 0.3s;
}



.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}

.clock {
  display: flex;
  height: 400px;
  width: 400px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--white-color);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1), 0 25px 45px rgba(0, 0, 0, 0.1);
  position: relative;
}

.clock label {
  position: absolute;
  inset: 20px;
  text-align: center;
  transform: rotate(calc(var(--i) * 30deg));
}

.clock label span {
  display: inline-block;
  font-size: 30px;
  font-weight: 600;
  color: var(--black-color);
  transform: rotate(calc(var(--i) * -30deg));
}

.indicator {
  position: absolute;
  height: 10px;
  width: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.indicator::before {
  content: "";
  height: 100%;
  width: 100%;
  border-radius: 50%;
  z-index: 100;
  background: var(--black-color);
  border: 4px solid var(--red-color);
}

.hand {
  position: absolute;
  bottom: 0;
  transform-origin: bottom;
  border-radius: 25%;
}

.hand.hour {
  height: 100px;
  width: 6px;
  background: var(--hour-color);
  z-index: 3;
}

.hand.minute {
  height: 130px;
  width: 5px;
  background: var(--minute-color);
  z-index: 2;
}

.hand.second {
  height: 130px;
  width: 3px;
  background: var(--second-color);
  z-index: 4;
}


.mode-switch {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 22px;
  font-weight: 400;
  color: var(--white-color);
  background: var(--black-color);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}
