* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

body {
  position: relative;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(
    45deg,
    rgba(146, 141, 171, 0.8),
    rgba(31, 28, 44, 0.8)
  );
}

h1 {
  margin-bottom: 1rem;
}

h1 span {
  color: #333300;
  text-shadow: 0 0 4px #ffffffcc;
}

#time {
  display: flex;
  justify-content: center;
  margin: auto 0;
  gap: 40px;
  color: #fff;
  padding: 20px;
  margin: 0 auto;
  border: 2px outset #fff;
  border-radius: 40px;
  background-color: rgba(131, 137, 150, 0.6);
  box-shadow: 0 0 8px 8px rgba(0, 0, 0, 0.25);
}

#time .circle {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 150px;
  height: 150px;
}

#time .circle svg {
  position: relative;
  width: 150px;
  height: 150px;
  transform: rotate(270deg);
}

#time .circle svg circle {
  width: 100%;
  height: 100%;
  fill: transparent;
  stroke: #333300;
  stroke-width: 4;
}

#time .circle svg circle:nth-child(2) {
  stroke: var(--clr);
  stroke-dasharray: 440;
}

#time div {
  position: absolute;
  text-align: center;
  font-weight: 500;
  font-size: 2rem;
}

#time div span {
  position: absolute;
  transform: translate(-50%, 5px);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  border-bottom: 1px solid #ffff33;
  color: #ffff33;
}

#time .ap {
  position: relative;
  right: 10px;
  transform: translateX(-20px);
}

#time .ap > div {
  font-size: 1.5rem;
}

.dots {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 10;
  display: flex;
  justify-content: center;
}

.dots::before {
  content: "";
  position: absolute;
  top: -3px;
  width: 15px;
  height: 15px;
  background: var(--clr);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--clr), 0 0 60px var(--clr);
}

.hours {
  text-shadow: 0 0 6px rgba(0, 255, 204, 0.8);
}

.minutes {
  text-shadow: 0 0 6px rgba(0, 255, 0, 0.8);
}

.seconds {
  text-shadow: 0 0 6px rgba(255, 0, 255, 0.8);
}

/* 'Designed by' element*/
.footer {
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: "Roboto", sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  color: #253529;
}

.footer a {
  display: inline-block;
  font-size: 0.9rem;
  text-decoration: none;
  color: #9acd32;
  text-shadow: 0 0 8px #00000099;
  transition: all 0.4s ease-in-out;
}

.footer a:hover {
  transform: translateY(-3px);
  color: #556b2f;
  text-shadow: 0 0 4px rgba(209, 225, 137, 0.8);
  transition: all 0.4s ease-in-out;
}

/* Noscript message */
noscript {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

noscript h3 {
  font-size: 2.5rem;
  text-align: center;
  color: rgb(0, 255, 204);
  padding: 0.5rem 1rem;
  border: 1px solid #928dabcc;
  border-radius: 0.4rem;
  background-color: rgba(176, 196, 222, 0.4);
  text-shadow: 0 0 8px rgba(255, 240, 245, 0.6);
  box-shadow: 0 0 4px rgba(0, 255, 204, 0.8);
}

@media (max-width: 600px) {
  body {
    padding: 0 16px;
  }
  h1 {
    font-size: 1.5rem;
  }
  #time {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  #time div span {
    font-size: 0.6rem;
    font-weight: 300;
    letter-spacing: 0.1rem;
  }
  #time .ap {
    position: relative;
    right: 0;
    bottom: 1.2rem;
    transform: translateX(-10px);
  }
  noscript h3 {
    padding: 0 0.5rem;
    width: 90%;
    font-size: 1.5rem;
    line-height: 2rem;
  }
}
