body {
  background-color: rgb(75, 76, 76);
  font-family: "Courier New", "Monaco", "Lucida Console", "Liberation Mono",
    "DejaVu Sans Mono", monospace;
  padding-bottom: 50px;
}
div.styling-container {
  background-color: whitesmoke;
  max-width: 600px;
  margin: 30px auto;
  padding: 20px;
  padding-bottom: 30px;
  border: 3px solid greenyellow;
  outline: 3px solid black;
  outline-offset: 3px;
  border-radius: 5px;
}
div.clock-wrapper {
  background: black;
  color: greenyellow;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  border-radius: 5px;
}

/* Scrolling marquee container for city and date */
.marquee-container {
  width: 100%;
  height: 50px;
  background: linear-gradient(45deg, #333, #555);
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  border: 2px solid greenyellow;
  border-radius: 5px;
  box-shadow: inset 0 0 20px rgba(173, 255, 47, 0.4),
    0 0 10px rgba(173, 255, 47, 0.2);
}

.marquee-content {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: scroll 30s linear infinite;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
  font-family: "Courier New", "Monaco", "Lucida Console", "Liberation Mono",
    "DejaVu Sans Mono", monospace;
  font-weight: bold;
  font-size: 32px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.marquee-content.show {
  opacity: 1;
  visibility: visible;
}

.city-date-combo {
  display: flex;
  align-items: center;
  margin-right: 100px;
}

.city-date-combo h2 {
  font-size: 36px;
  margin: 0 20px 0 0;
  color: greenyellow;
  text-shadow: 0 0 10px rgba(173, 255, 47, 0.5);
}

.city-date-combo .date {
  font-size: 28px;
  margin: 0;
  padding: 0;
  color: #ccc;
}

@keyframes scroll {
  0% {
    transform: translateX(50%);
  }
  100% {
    transform: translateX(-100%);
  }
}

div.clock {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  min-height: 120px;
}

div.time-zone-container {
  margin-bottom: 20px;
}

p.description {
  font-size: 15px;
  color: #444;
  margin-bottom: 25px;
  line-height: 1.7;
  text-align: center;
  padding: 18px 25px;
  background: linear-gradient(145deg, #ffffff, #f5f5f5);
  border: 1px solid #e0e0e0;
  border-left: 3px solid greenyellow;
  border-right: 3px solid greenyellow;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 6px rgba(0, 0, 0, 0.05);
  font-style: normal;
  font-weight: 300;
  letter-spacing: 0.3px;
}
h1 {
  text-align: center;
  background-color: #000000;
  color: greenyellow;
  box-shadow: inset 0 0 10px black;
  border-radius: 5px;
  padding: 10px;
  letter-spacing: 2px;
  font-size: 48px;
  margin-bottom: 0;
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
}
h2 {
  font-size: 36px;
  align-self: center;
}
select {
  display: block;
  border: 2px solid black;
  outline: 3px solid greenyellow;
  outline-offset: 3px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  width: calc(90% - 40px);
  height: auto;
  font-size: 20px;
  padding: 15px 20px;
  margin: 0 auto 20px auto;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 8px;
  color: #333;
  font-weight: 500;
}

select:focus {
  border-color: greenyellow;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1),
    0 0 0 3px rgba(173, 255, 47, 0.3);
  outline: none;
}

select:hover {
  background: linear-gradient(135deg, #f1f3f4, #e2e6ea);
  cursor: pointer;
}

.time {
  font-size: 60px;
  font-weight: bold;
  color: greenyellow;
  text-shadow: 0 0 20px rgba(173, 255, 47, 0.8),
    0 0 40px rgba(173, 255, 47, 0.6), 0 0 60px rgba(173, 255, 47, 0.4),
    5px 5px 0px #000, 10px 10px 20px rgba(0, 0, 0, 0.8);
  transform: translateZ(0);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-5px) scale(1.02);
  }
}

footer {
  text-align: center;
  color: #555;
  padding: 12px 20px;
  font-size: 12px;
  line-height: 2;
  margin: 20px 0 15px 0;
  border-top: 1px solid #ddd;
  background: rgba(248, 249, 250, 0.5);
  border-radius: 0;
}

@media (max-width: 768px) {
  div.styling-container {
    margin: 15px auto;
    padding: 15px;
    max-width: 95%;
  }

  h1 {
    font-size: 28px;
    padding: 8px;
  }
  p.description {
    font-size: 13px;
    padding: 10px 15px;
    margin-bottom: 18px;
    line-height: 1.5;
    border-left: 2px solid greenyellow;
    border-right: 2px solid greenyellow;
  }

  select {
    width: calc(100% - 40px);
    font-size: 18px;
    padding: 12px 15px;
  }

  .marquee-content {
    font-size: 24px;
  }

  .city-date-combo h2 {
    font-size: 28px;
  }

  .city-date-combo .date {
    font-size: 22px;
  }

  .time {
    font-size: 45px;
  }

  .global-ticker-content {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  div.styling-container {
    margin: 10px;
    padding: 12px;
    max-width: calc(100% - 20px);
  }

  h1 {
    font-size: 24px;
    padding: 6px;
  }
  p.description {
    font-size: 11px;
    padding: 8px 12px;
    margin-bottom: 12px;
    line-height: 1.4;
    border-left: 2px solid greenyellow;
    border-right: 2px solid greenyellow;
  }

  select {
    width: calc(100% - 30px);
    font-size: 16px;
    padding: 10px 12px;
  }

  .marquee-content {
    font-size: 20px;
  }

  .city-date-combo h2 {
    font-size: 24px;
  }

  .city-date-combo .date {
    font-size: 18px;
  }

  .time {
    font-size: 36px;
  }
  .global-ticker-content {
    font-size: 18px;
  }

  footer {
    font-size: 10px;
    padding: 6px 8px;
    margin: 10px 0 8px 0;
    line-height: 1.4;
  }

  footer a {
    padding: 1px 2px;
    font-size: 9px;
  }
}

a {
  color: #333;
  background: greenyellow;
  box-shadow: inset 0 0 8px rgba(173, 255, 47, 0.3);
  padding: 2px 4px;
  font-size: 12px;
  text-decoration: none;
  border-radius: 3px;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
}

a:hover {
  background: #adff2f;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(173, 255, 47, 0.4);
}

.ladybug-glow {
  text-shadow: 0 0 3px #4da6ff, 0 0 6px #4da6ff;
  filter: drop-shadow(0 0 4px #4da6ff);
  animation: pulse-blue 3s ease-in-out infinite alternate;
}

@keyframes pulse-blue {
  from {
    text-shadow: 0 0 2px #4da6ff, 0 0 4px #4da6ff;
  }
  to {
    text-shadow: 0 0 4px #4da6ff, 0 0 8px #4da6ff, 0 0 12px #4da6ff;
  }
}

.global-ticker-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  margin-top: 20px;
  background: linear-gradient(45deg, #333, #555);
  border: 2px solid greenyellow;
  box-shadow: inset 0 0 20px rgba(173, 255, 47, 0.4),
    0 0 10px rgba(173, 255, 47, 0.2);
  height: 35px;
  overflow: hidden;
  z-index: 1000;
}

.global-ticker-content {
  display: flex;
  width: max-content;
  min-width: 400px;
  align-items: center;
  padding: 6px 10px;
  white-space: nowrap;
  animation: scroll-global 55s linear infinite;
  font-family: "Courier New", "Monaco", "Lucida Console", "Liberation Mono",
    "DejaVu Sans Mono", monospace;
  font-weight: bold;
  font-size: 22px;
  letter-spacing: 1px;
  color: greenyellow;
}

.ticker-city {
  margin-right: 40px; /* Space between cities */
  flex-shrink: 0; /* Prevent shrinking */
  padding: 0 20px;
}

@keyframes scroll-global {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}
