/* Basic Body Styling */
body {
  font-family: Arial, sans-serif;
  text-align: center;
  background-color: #111;
  color: #fff;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* Main Heading */
h1 {
  font-size: 2.5em;
  margin: 0.2em 0;
}

/* Difference Display */
#difference {
  margin: 0.5em 0;
  font-size: 1em;
  color: #ccc;
}

/* Main Clock Container */
#clock-container {
  display: flex;
  align-items: baseline;
  justify-content: center;
  font-weight: bold;
}

/* Clock Digits */
#clock {
  font-size: 5em;
}

/* AM/PM Indicator */
#ampm {
  font-size: 2em;
  margin-left: 0.3em;
}

/* Date Display */
#date {
  font-size: 1.3em;
  margin-top: 0.3em;
}

/* New: Current Time Zone Display */
#current-tz {
  color: orange;
  font-size: 1em;  /* Approximately 2 points smaller than ticker text */
  margin: 10px 0;
}

/* Subheading */
h2 {
  margin-top: 0.5em;
  font-size: 1.2em;
  font-weight: normal;
}

/* City Times Container */
.city-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

/* City Blocks */
.city {
  background-color: #fff;
  color: #000;
  padding: 15px 20px;
  margin: 10px;
  border-radius: 8px;
  font-size: 1.1em;
  text-align: center;
  min-width: 130px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

/* City Name */
.city-name {
  font-weight: bold;
}

/* City Time */
.city-time {
  margin-top: 5px;
  font-size: 1.2em;
  font-weight: normal;
}

/* Media Queries for Smaller Screens */
@media (max-width: 600px) {
  #clock {
    font-size: 3.5em;
  }
  #ampm {
    font-size: 1.2em;
  }
  .city {
    font-size: 1em;
  }
}

/* Ticker Container */
.ticker-container {
  width: 100%;
  overflow: hidden;
  background-color: #222;
  padding: 5px 0;
  margin-bottom: 20px;
  height: 1.5em; /* One-line height */
}

/* Ticker */
.ticker {
  display: inline-flex;
  white-space: nowrap;
  transform: translateX(0);
  user-select: none;
  cursor: grab;
}

/* Ticker Items */
.ticker-item {
  margin-right: 50px;
  font-size: 1.2em;
  color: orange;
  display: inline-block;
  position: relative;
}

/* Global Tooltip Styles */
#global-tooltip {
  position: absolute;
  display: none;
  z-index: 9999;
  background: #333;
  color: #fff;
  padding: 5px 8px;
  border-radius: 3px;
  font-size: 0.9em;
  white-space: nowrap;
  pointer-events: none;
}

/* Optional: Highlight Active Ticker Item */
.ticker-item.active {
  text-decoration: underline;
}
.page-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  padding: 10px;
  background-color: #222;
}

@media (max-width: 600px) {
  .page-footer {
    position: static;
  }
}

