* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'DS-Digital', monospace;
}

/* BACKGROUND */
body {
  min-height: 100vh;
  background: linear-gradient(135deg, #020617, #0f172a, #020617);
}

/* CENTER */
.container {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

/* CLOCK BOX */
.clock-box {
  display: flex;
  gap: 40px;
  background: rgba(2, 6, 23, 0.8);
  padding: 32px 40px;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

/* DAYS */
.days {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}

.days span {
  color: #64748b;
}

.days .active {
  color: #22d3ee;
  font-weight: bold;
}

/* TIME */
.time {
  display: flex;
  align-items: flex-end;
  animation: textblink 1s infinite;
}


.ampm {
  color: hsl(180deg 100% 50%);
  font-size: 20px;
  margin-right: 8px;
}

.main-time {
  font-size: 96px;
  font-weight: bold;
  color: #fff;
  letter-spacing: 4px;
  text-shadow: 0 0 30px rgba(255,255,255,0.5);
}

.seconds {
  font-size: 32px;
  color: #94a3b8;
  margin-left: 8px;
  margin-bottom: 10px;
}

/* COLON BLINK */
.colon {
  animation:  blink 1s ease-in-out infinite;
}

/* @keyframes blink {
  50% { opacity: 0; }
} */
@keyframes blink {
    0%,to {
        opacity: 1;
        text-shadow: 0 0 20px hsl(180 100% 50% / .5), 0 0 40px hsl(180 100% 50% / .3), 0 0 60px hsl(180 100% 50% / .1);
    }

    50% {
        opacity: .85;
        text-shadow: 0 0 10px hsl(180 100% 50% / .4), 0 0 20px hsla(180, 100%, 50%, 0.4);
    }
}



/* DATE */
.date {
  display: flex;
  align-items: center;
  font-size: 40px;
  color: #fb923c;
}

.date-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.label {
  font-size: 12px;
  color: #fdba74;
}

.slash {
  margin: 0 6px;
}

/* ---------- MEDIA QUERIES ---------- */

@media (max-width: 768px) {
  .clock-box {
    gap: 24px;
    padding: 24px;
  }

  .main-time {
    font-size: 64px;
  }

  .seconds {
    font-size: 24px;
  }

  .date {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .clock-box {
    flex-direction: column;
    align-items: center;
  }

  .days {
    flex-direction: row;
    gap: 10px;
  }
}
