* {
  margin: 0;
  padding: 0;
  font: inherit;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

a {
  color: inherit;
  display: inline-block;
}

button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  border: 0;
}

ul,
ol {
  list-style: none;
}

body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  font-family: "Arial";
  background-color: rgb(0, 0, 0);
}

.container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* /* start exc 1 in challange 3 */

/* .box {
  background-color: rgb(58, 179, 220);
  width: 150px;
  aspect-ratio: 1/1;
  border-radius: 8px;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  position: relative;
}

.clock-circle {
  width: 10px;
  aspect-ratio: 1/1;
  background-color: black;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  animation: clock-animation 5s;
  animation-delay: 0.5s;
}

.clock-bar {
  --bar-space: 10px;
  position: absolute;
  width: 2px;
  height: 50%;
  left: 50%;
  bottom: 50%;
  background-color: white;
  height: calc(50% - var(--bar-space));
  margin-top: var(--bar-space);
  border-radius: 3px;
  animation: clock-bar-animation 60s infinite linear;
  animation-timing-function: steps(60, start);
  transform-origin: bottom center;
}

.three {
  width: 10px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(60px, -12px);
  animation: clock-animation 5s;
  animation-delay: 0.5s;
}
.six {
  width: 10px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-3px, 52px);
  animation: clock-animation 5s;
  animation-delay: 0.5s;
}
.nine {
  width: 10px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-75px, -10px);
  animation: clock-animation 5s;
  animation-delay: 0.5s;
}
.Twelve {
  width: 10px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-10px, -75px);
  animation: clock-animation 5s;
  animation-delay: 0.5s;
}

@keyframes clock-bar-animation {
  to {
    transform: rotate(360deg);
  }
} */

/* end exc 1 in challange 3 */

/*  start exc 2 in challange 3 */

.box {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 80px;
}

.earth {
  /* background-color: rgb(133, 249, 0); */
  background-image: url("e139edce-0c12-4ab2-93fa-772ecc2f8212.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 150px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  color: white;
  display: flex;
  place-content: center;
  font-size: 24px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.moon-container {
  position: absolute;
  /* background-color: red; */
  width: 250px;
  aspect-ratio: 1/1;
  border-radius: 8px;
  color: white;
  display: flex;
  place-content: center;
  /* opacity: 0.5; */
  display: flex;
  animation: moon-animation 5s linear infinite;
}

.moon {
  background-color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  box-shadow: 0 0 10px white;
}

/* Keyframes */
@keyframes moon-animation {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}
.box:hover .moon-container {
  animation-duration: 20s;
}
