body {
  background: linear-gradient(to right, #0f0f0f, #1c1c1c);
  color: #00ffee;
  font-family: 'Courier New', monospace;
  margin: 0;
  transition: background 1s;
  cursor: none;
}

.main-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 50px;
  padding: 20px;
  flex-wrap: wrap;
}

.left-panel, .right-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.clock {
  width: 300px;
  height: 300px;
  border: 8px solid #00ffee;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 20px #00ffeeaa;
  background: radial-gradient(circle, #222 30%, #000);
}

.hand {
  width: 50%;
  height: 4px;
  position: absolute;
  top: 50%;
  transform-origin: 100%;
  transform: rotate(0deg);
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.hour {
  height: 6px;
  background: #ff00ff;
  transform: rotate(0deg) scaleX(-1);
}

.minute {
  height: 4px;
  background: #00ff00;
  transform: rotate(0deg) scaleX(-1);
}

.second {
  height: 2px;
  background: red;
  transform: rotate(0deg) scaleX(-1);
}

.number {
  position: absolute;
  width: 30px;
  height: 30px;
  text-align: center;
  line-height: 30px;
  color: #00ffee;
  font-size: 1.1rem;
  font-weight: bold;
  transform: rotate(calc(30deg * var(--n))) translate(130px) rotate(calc(-30deg * var(--n)));
  left: 50%;
  top: 50%;
  transform-origin: center;
  text-shadow: 0 0 4px #00ffee;
}

.digital {
  font-size: 2rem;
  margin-top: 20px;
  color: #00ffee;
  text-shadow: 0 0 5px #00ffee88;
}

.label {
  margin-top: 10px;
  font-size: 1.1rem;
  color: #aaa;
}

.controls {
  margin-top: 20px;
  text-align: center;
}

.controls button {
  padding: 10px 20px;
  font-size: 1rem;
  background: #222;
  color: #00ffee;
  border: 2px solid #00ffee;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 0 10px #00ffee88;
  transition: 0.3s;
}

.controls button:hover {
  background: #00ffee;
  color: #000;
}

#status {
  color: #00ffee;
  margin-top: 10px;
  font-style: italic;
  font-size: 1.1rem;
}

.scanner {
  margin-top: 10px;
  width: 300px;
  height: 220px;
  border: 4px solid #00ffee;
  position: relative;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 10px #00ffee88;
}

#webcam {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  position: absolute;
  top: 0;
  left: 0;
}

.results {
  margin-top: 15px;
  text-align: center;
  color: #00ffee;
  font-size: 1rem;
  max-width: 300px;
  line-height: 1.5;
  text-shadow: 0 0 5px #00ffeeaa;
}

/* Time Travel Animation */
body.time-traveling {
  animation: warp 5s linear infinite;
}

@keyframes warp {
  0% { background: linear-gradient(to right, #0f0f0f, #1c1c1c); }
  50% { background: radial-gradient(circle, #111 10%, #0f0f80, #1c1c1c); }
  100% { background: linear-gradient(to right, #0f0f0f, #1c1c1c); }
}

/* Fake Cursor */
#fake-cursor {
  position: fixed;
  width: 16px;
  height: 16px;
  background-color: #00ffee;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  box-shadow: 0 0 10px #00ffeeaa;
  transition: transform 0.03s linear;
}
