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

body {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
}

body::before {
  background: linear-gradient(45deg, #e91e63, #e91e63 50%, #ffc107 50%, #ffc107);
  content: '';
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

body::after {
  animation: float-panel 5s ease-in-out infinite;
  background: linear-gradient(160deg, #03a9f4, #03a9f4 50%, transparent 50%, transparent);
  content: '';
  height: 100%;
  left: 0;
  position: absolute;
  top: -20px;
  width: 100%;
}

.container {
  position: relative;
}

.container::before {
  background: radial-gradient(rgba(0, 0, 0, 0.2), transparent, transparent);
  border-radius: 50%;
  bottom: -80px;
  content: '';
  height: 60px;
  position: absolute;
  width: 100%;
}

.box {
  animation: float-panel 5s ease-in-out infinite;
  animation-delay: -2.5s;
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  height: min(400px, 84vmin);
  position: relative;
  width: min(400px, 84vmin);
  z-index: 1;
}

.clock {
  align-items: center;
  backdrop-filter: blur(25px);
  background: radial-gradient(transparent, rgba(255, 255, 255, 0.2)), url("clock.png");
  background-size: cover;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-bottom: none;
  border-radius: 50%;
  border-right: none;
  bottom: 10px;
  box-shadow:
    -10px -10px 20px rgba(255, 255, 255, 0.1),
    10px 10px 20px rgba(0, 0, 0, 0.1),
    0 40px 50px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: center;
  left: 10px;
  position: absolute;
  right: 10px;
  top: 10px;
}

.clock::before {
  background: #fff;
  border-radius: 50%;
  content: '';
  height: 15px;
  position: absolute;
  width: 15px;
  z-index: 20;
}

.hour,
.min,
.sec {
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.hour {
  height: 40%;
  width: 40%;
}

.min {
  height: 48%;
  width: 48%;
}

.sec {
  height: 58%;
  width: 58%;
}

.hr,
.mn,
.sc {
  border-radius: 50%;
  display: flex;
  height: 100%;
  inset: 0;
  justify-content: center;
  position: absolute;
  width: 100%;
}

.hr::before {
  background: #ff105e;
  border-radius: 6px;
  content: '';
  height: 50%;
  position: absolute;
  width: 8px;
  z-index: 11;
}

.mn::before {
  background: #fff;
  border-radius: 6px;
  content: '';
  height: 47%;
  position: absolute;
  width: 4px;
  z-index: 12;
}

.sc::before {
  background: #fff;
  border-radius: 6px;
  content: '';
  height: 65%;
  position: absolute;
  width: 2px;
  z-index: 12;
}

@keyframes float-panel {
  0%,
  100% {
    transform: translateY(10px);
  }

  50% {
    transform: translateY(-10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  body::after,
  .box {
    animation: none;
  }
}
