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

/* BODY */
body {
  font-family: "Times New Roman", Times, serif;
  background: #7b78e6;
  color: #ffffff;
  transition: background-color 0.6s ease, color 0.6s ease;
}

/* DARK MODE BODY */
body.dark {
  background: #0f172a;
  color: #e5e7eb;
}

/* CONTAINER */
.container {
  width: 60%;
  max-width: 800px;
  height: 400px;
  margin: 200px auto;
  text-align: center;
}

/* CLOCK */
.spanParent {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 60px;
}

/* TIME BOX */
.hour,
.min,
.sec {
  background-color: #f5f5f5;
  height: 90px;
  width: 110px;
  color: #333;
  font-size: 60px;
  border-radius: 16px;

  display: flex;
  justify-content: center;
  align-items: center;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: background-color 0.5s ease, color 0.5s ease;
}

/* DARK MODE TIME BOX */
body.dark .hour,
body.dark .min,
body.dark .sec {
  background-color: #1e293b;
  color: #e5e7eb;
}

/* COLON */
.col {
  font-size: 60px;
  margin: 0 12px;
  color: #f0f0f0;
}

/* TEXT */
.text {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 10px;
}

.source {
  font-size: 1.1rem;
  opacity: 0.9;
}

.digital {
  margin-top: 10px;
  font-size: 2.2rem;
  letter-spacing: 2px;
}

.project-name {
  margin-top: 12px;
  background-color: #f5f5f5;
  color: #333;
  padding: 10px 24px;
  border-radius: 6px;
  transition: background-color 0.5s ease, color 0.5s ease;
}

/* DARK MODE PROJECT NAME */
body.dark .project-name {
  background-color: #1e293b;
  color: #e5e7eb;
}

/* AM PM */
.am {
  font-size: 40px;
  margin-left: 10px;
}

/* FORMAT BUTTON */
.format {
  margin-top: 20px;
  padding: 12px 28px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 1px;

  color: #020024;
  background-color: #ffffff;
  border: none;
  border-radius: 30px;

  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.format:hover {
  transform: translateY(-2px);
}

.format:active {
  transform: scale(0.96);
}

/* DARK MODE FORMAT BUTTON */
body.dark .format {
  background-color: #334155;
  color: #e5e7eb;
}

/* THEME TOGGLE */
.theme-toggle {
  width: 64px;
  height: 32px;
  background-color: #f06292;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  position: relative;
  transition: background-color 0.4s ease;
}

/* Toggle Circle */
.toggle-circle {
  width: 26px;
  height: 26px;
  background-color: #ffffff;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 4px;
  transition: transform 0.4s ease;
}

/* DARK MODE TOGGLE */
body.dark .theme-toggle {
  background-color: #6366f1;
}

body.dark .toggle-circle {
  transform: translateX(30px);
}
