/* Reset and base styles */
html, body {
  height: 100%;
  margin: 0;
  background: black;
  color: white;
  font-family: 'Courier New', monospace;
  font-size: 16px; /* base font size */
}

/* Container fills the viewport and centers content vertically + horizontally */
#container {
  height: 100vh;
  display: flex;
  flex-direction: column;     /* stack clock and date vertically */
  justify-content: center;    /* vertical center */
  align-items: center;        /* horizontal center */
  text-align: center;
  padding: 0 1rem;
  box-sizing: border-box;
  max-width: 100%;            /* avoid overflow */
}

/* Clock container */
.clock {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

/* FORCE FlipClock wrapper to be horizontally centered */
.clock .flip-clock-wrapper {
  position: static !important;     
  margin: 0 auto !important;       
  float: none !important;          
  display: inline-block !important; 
  left: auto !important;
  right: auto !important;
}

/* Date below clock */
#date {
  margin-top: 1rem;
  font-size: 2vw;
  color: #ccc;
  user-select: none;
  line-height: 1.2;
}

/* Footer pinned to bottom center */
#footer {
  position: fixed;
  bottom: 1rem;
  width: 100%;
  text-align: center;
  font-size: 1.2vw;
  color: #34c6ed;
  font-style: italic;
  user-select: none;
  padding: 0 1rem;
  box-sizing: border-box;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  #date {
    font-size: 4vw; /* bigger on smaller screens */
  }
  #footer {
    font-size: 3vw;
    bottom: 0.5rem;
  }
}

@media (max-width: 480px) {
  #date {
    font-size: 5vw;
  }
  #footer {
    font-size: 4vw;
    bottom: 0.5rem;
  }
  
  /* Optional: reduce padding on container for very small screens */
  #container {
    padding: 0 0.5rem;
  }
}



