* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
  font-family: "Arial", sans-serif;
  text-align: center;
  padding: 20px;
  transition: background 0.4s, color 0.4s;
}

.container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

h1 {
  color: #ff00f3;
  font-size: clamp(1.5rem, 5vw, 3rem);
  transition: color 0.4s;
}

.clock {
  color: #fff;
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: bold;
  background: #111;
  padding: clamp(15px, 4vw, 30px) clamp(25px, 6vw, 50px);
  border-radius: 12px;
  position: relative;
  z-index: 1;
  text-shadow: 0 0 10px #fff;
  max-width: 500px; /* ✅ limit width on large screens */
  width: 100%; /* ✅ take full width on small screens */
  text-align: center; /* ✅ center text inside */
  transition: background 0.4s, color 0.4s;
}

.clock::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  z-index: -1;
  border-radius: 16px;
  background: linear-gradient(90deg, #00ffea, #ff00f3, #ffea00, #00ffea);
  background-size: 300% 300%;
  animation: glow 6s linear infinite;
  filter: blur(8px);
}
.date {
  color: #ccc;
  font-size: clamp(1rem, 3vw, 1.5rem);
  transition: color 0.4s;
}
.toggle-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  background: #ff00f3;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}
.toggle-btn:hover {
  background: #ff4ff7;
  transform: scale(1.05);
}

/* 🌞 Light Mode */
body.light {
  background: #f9f9f9;
  background:#f1e6f1;
  color: #111;
}

body.light h1 , body.light .date{
  color: #333;
}
body.light .clock {
  background: #fff;
  color: #111;
  text-shadow: none;
}
body.light .toggle-btn {
  background: #333;
  color: #fff;
}
