/* Default Moonka Mode (Dark Theme) */
:root {
    --bg-color: #0A0A0A;
    --box-color: #222222;
    --text-color: #ffffff;
    --quote-color: #bbbbbb;
    --slider-bg: #444;
    --slider-circle: #fff;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    font-family: Arial, sans-serif;
    transition: background 0.3s ease;
}

#clock-container {
    background: var(--box-color);
    border-radius: 20px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60%;
    min-height: 30%;
    max-height: 30%;
    transition: background 0.3s ease;
}

#clock {
    font-size: 10vw;
    font-weight: bold;
    text-shadow: 4px 4px 8px rgba(255, 255, 255, 0.1);
}

#seconds {
    font-size: 4vw;
    font-weight: normal;
    margin-left: 10px;
}

#quote {
    margin-top: 20px;
    font-size: 1.5vw;
    color: var(--quote-color);
}

/* Theme Toggle */
#theme-toggle {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Slider Style */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--slider-bg);
    transition: 0.3s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 3px;
    background-color: var(--slider-circle);
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: magenta;
}

input:checked + .slider:before {
    transform: translateX(28px);
}

#theme-label {
    font-size: 1.2vw;
}

/* Simon Mode (Magenta Theme) */
.simons-mode {
    --bg-color: #400040;
    --box-color: #990099;
    --text-color: #ffffff;
    --quote-color: #ff99ff;
    --slider-bg: magenta;
    --slider-circle: #ffffff;
}

/* Layered CSS Animations for Simon Mode: Bokeh and Glitter Effects */
/* Ensure Simon Mode can position pseudo-elements properly */
body.simons-mode {
  position: relative;
  overflow: hidden; /* Prevents scrollbars from off-screen animations */
}

/* Improved Bokeh Background Layer */
body.simons-mode::before {
  content: "";
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  z-index: -2;
  pointer-events: none;
  /* Multiple overlapping radial gradients for a soft bokeh effect */
  background: 
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1), transparent 60%),
    radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.15), transparent 70%),
    radial-gradient(circle at 50% 70%, rgba(255, 255, 255, 0.1), transparent 60%);
  background-size: 300px 300px;
  filter: blur(8px);
  opacity: 0.8;
  mix-blend-mode: screen;
  animation: bokehAnim 30s ease-in-out infinite;
}

/* Improved Subtle Glow/Glitter Layer */
body.simons-mode::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,0.2), transparent 70%);
  opacity: 0.5;
  mix-blend-mode: screen;
  animation: glowAnim 10s ease-in-out infinite;
}

/* Keyframes for gentle bokeh movement */
@keyframes bokehAnim {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(10%, 10%) scale(1.1);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

/* Keyframes for subtle glow pulse */
@keyframes glowAnim {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.7;
  }
}