@import url("https://fonts.googleapis.com/css2?family=Anton&family=Antonio:wght@400;500;600;700&family=Fjalla+One&family=Great+Vibes&family=Moirai+One&family=Orbitron:wght@500;800;900&family=Poppins:wght@100;200;300;400;500;700;800&family=Six+Caps&family=Teko:wght@300;400;500&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
body {
  min-height: 100vh;
  background-color: #acbaca;
  margin: auto;
}
.container{
  display: grid;
  grid-template-columns:repeat(3, 1fr);
  grid-template-rows:repeat(3, 1fr) ;
  width: 100%;
  max-height: 100vh;
  justify-content: center;
}
.dg-clock{
  display: flex;
  align-self: self-start;
  justify-self: center;
  margin-top:20px;
}

.dg-clock {
  width: 400px;
  height: 150px;
  justify-content: center;
  align-items: center;
  background-color: #cad5e0;
  border-radius: 25px;
  display: flex;
  box-shadow: 30px 30px 30px -10px rgba(0, 0, 0, 0.15),
    inset 15px 15px 10px rgba(255, 255, 255, 0.75),
    -15px -15px 35px rgba(255, 255, 255, 0.55),
    inset -1px -1px 10px rgba(0, 0, 0, 0.2);
}
.dg-clock span {
  position: absolute;
  font-size: 4em;
  font-family: "Antonio", sans-serif;
  font-weight: 700;
  background: linear-gradient(135deg, #01756b, #817401, #950184);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: animate2 1.5s linear infinite;
}


/* Analog Clock */
.clock{
  grid-column: 2/3;
  grid-row: 2/3;
  align-self: center;
  justify-self: center;
}
.date {
  grid-column: 3/-1;
  grid-row: 3 / -1;
  margin-top: -30px;
}
.clock {
  position: relative;
  width: 300px;
  height: 300px;
  background-color: #cad5e0;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  display: flex;
  box-shadow: 30px 30px 30px -10px rgba(0, 0, 0, 0.15),
    inset 15px 15px 10px rgba(255, 255, 255, 0.75),
    -15px -15px 35px rgba(255, 255, 255, 0.55),
    inset -1px -1px 10px rgba(0, 0, 0, 0.2);
}

.date {
  bottom: 50px;
  right: 80px;
  width: 400px;
  height: 150px;
  justify-content: center;
  align-items: center;
  background-color: #cad5e0;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 30px 30px 30px -10px rgba(0, 0, 0, 0.15),
    inset 15px 15px 10px rgba(255, 255, 255, 0.75),
    -15px -15px 35px rgba(255, 255, 255, 0.55),
    inset -1px -1px 10px rgba(0, 0, 0, 0.2);
}
.date #day {
  font-size: 4.2em;
  font-weight: 900;
  letter-spacing: 8px;
  font-family: "Great Vibes", cursive;
  background: linear-gradient(130deg, #dd0000, #cfc500, #15d100);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: -6px 0;
  animation: animate2 1.5s linear infinite;
}
.date #date {
  font-size: 3em;
  font-family: "Antonio", sans-serif;
  font-weight: 900;
  margin: -13px 0;
  background: linear-gradient(130deg, #dd0000, #cfc500, #15d100);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: animate2 1.5s linear infinite;
}

@keyframes animate2 {
  100% {
    filter: hue-rotate(360deg);
  }
}
.clock .numbers {
  position: absolute;
  inset: 35px;
  background-color: #152b4a;
  border-radius: 50%;
  font-family: "Antonio", sans-serif;
  box-shadow: 5px 5px 15px #152b4a66,
    inset 5px 5px 3px rgba(255, 255, 255, 0.55),
    -6px -6px 10px rgba(255, 255, 255, 1);
}
.clock .numbers span {
  position: absolute;
  inset: 10px;
  color: #fff;
  text-align: center;
  font-size: 1.25em;
  transform: rotate(calc(30deg * var(--i)));
}
.clock .numbers span b {
  position: absolute;
  transform: rotate(calc(-30deg * var(--i)));
  display: inline-block;
  text-align: center;
  font-weight: 600;
}
.clock .numbers::before {
  content: "";
  position: absolute;
  inset: 40px;
  background: linear-gradient(#2196f3, #e91e63);
  border-radius: 50%;
  animation: animate 2s linear infinite;
}
@keyframes animate {
  0% {
    transform: rotate(360deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

.clock .numbers::after {
  content: "";
  position: absolute;
  inset: 43px;
  background: #152b4a;
  border-radius: 50%;
}
.clock .numbers .circle {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  z-index: 10;
}
.clock .numbers .circle i {
  position: absolute;
  background: #fff;
  width: 3px;
  height: 50%;
  transform: scaleY(0.55);
  transform-origin: bottom;
}
.clock .numbers .circle#hr i {
  transform: scaleY(0.4);
  width: 4px;
}
.clock .numbers .circle#mn i {
  transform: scaleY(0.48);
}
.clock .numbers .circle#sc i {
  transform: scaleY(0.58);
  width: 2px;
  background-color: #e91e63;
  box-shadow: 0 30px 0 #e91e63;
}

.clock::before {
  content: "";
  position: absolute;
  height: 4px;
  width: 4px;
  background: #e91e63;
  border-radius: 50%;
  z-index: 1000;
  box-shadow: 0 0 0 1px, 0 0 0 3px #fff, 0 0 5px 5px rgba(0, 0, 0, 0.15);
}
