:root {
    --font-family: 'Monoton', cursive;
    --text-glow: 0 0 20px #00ffcc, 0 0 40px #00ffff;
    --media-opacity: 0.3;
    --font-size: 10vw;
  }

  html, body {
    margin: 0;
    padding: 0;
    background: black;
    color: #00ffcc;
    font-family: var(--font-family);
    height: 100%;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
#clock {
  font-size: var(--font-size);
  transition: font-size 0.3s ease;
}

  #container {
    display: flex;
    width: 100%;
    height: 100%;
  }

  #clock, #mediaContainer {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-shadow: var(--text-glow);
    transition: text-shadow 0.5s ease;
  }

  #clock.animate {
    animation: glowPulse 2s ease-in-out infinite;
  }

  #date {
    font-size: 2vw;
    margin-top: 1vh;
    display: none;
  }
  
  #time {
    word-break: break-word;
    max-width: 100%;
    text-align: center;
  }

  .power-saving #clock {
    text-shadow: none !important;
    animation: none !important;
  }

  #mediaContainer {
    position: relative;
    overflow: hidden;
    background: black;
  }

  #mediaOverlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: black;
    opacity: var(--media-opacity);
    pointer-events: none;
  }

  #uploadedMedia {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
  }

  #options {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    padding: 8px;
    display: none;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    z-index: 10;
  }

  #options select,
  #options label,
  #options input[type="range"] {
    font-family: sans-serif;
    color: white;
    background: #111;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
  }

  @keyframes glowPulse {
    0%, 100% {
      text-shadow: 0 0 10px #00ffcc, 0 0 20px #00ffff;
    }
    50% {
      text-shadow: 0 0 30px #00ffff, 0 0 60px #00ffcc;
    }
  }
  
  #fontModal input {
background: #222;
color: white;
border: 1px solid #333;
padding: 4px;
margin-top: 4px;
border-radius: 4px;
}