html, body {
  height: 100%;
  margin: 0;
  background: #000;
  color: #fff;
  font-family: "Helvetica", Arial, sans-serif;
  text-transform: lowercase;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1; /* this fills the remaining vertical space */
}


body {
  background: black;
  color: white;
  font-family: Helvetica, Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  overflow: hidden;
}

.wrapper {
  width: 1200px;
  height: 900px;
  position: relative;
  background: url('/assets/map.svg') center/contain no-repeat;
  filter: brightness(0) invert(1);
  transform-origin: top left;
  transition: transform 0.3s ease;
}

.clock {
  position: absolute;
  bottom: 40px;
  left: 40px;
  font-size: 20px;
  letter-spacing: 1px;
  text-transform: lowercase;
}

/* Smooth proportional scaling on smaller screens */
@media (max-width: 1200px) {
  body {
    align-items: flex-start;
  }
  .wrapper {
    transform: scale(calc(100vw / 1200));
  }
}

.music-player {
  position: absolute;
  bottom: 40px;
  right: 40px;
  text-align: right;
}

.music-player button {
  background: none;
  border: none;
  color: white;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 16px;
  text-transform: lowercase;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.music-player button:hover {
  opacity: 0.7;
}

.music-player {
  position: absolute;
  bottom: 40px;
  right: 40px;
  text-align: right;
}

.music-player button {
  background: none;
  border: none;
  color: white;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 20px; /* match clock */
  text-transform: lowercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.music-player button:hover {
  opacity: 0.7;
}

.route {
  stroke: red;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: draw 5s linear infinite;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

.dot {
  fill: white;
  animation: blink 2s ease-in-out infinite alternate;
}

@keyframes blink {
  to {
    fill: red;
  }
}

.ticker {
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  height: 40px;
  overflow: hidden;
  white-space: nowrap;
  font-family: "Helvetica", Arial, sans-serif;
  font-size: 20px;
  letter-spacing: 2px;
  color: white;
  text-transform: lowercase;
  opacity: 0.9;
  pointer-events: none;

  /* fade edges */
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);

 
  /* flicker */
  animation: flicker 18s infinite ease-in-out;

  /* 3D perspective setup */
  perspective: 1000px;
  transform-style: preserve-3d;
}

.ticker__inner {
  display: inline-block;
  padding-left: 100%;
  animation: scrollText 40s linear infinite;
  transform-origin: center;
  transform: rotateX(12deg); /* tilt toward viewer */
}

@keyframes scrollText {
  from {
    transform: rotateX(12deg) translateX(0);
  }
  to {
    transform: rotateX(12deg) translateX(-100%);
  }
}

/* flicker pulse */
@keyframes flicker {
  0%, 92%, 100% { opacity: 0.9; }
  95% { opacity: 0.6; }
  96% { opacity: 0.4; filter: brightness(1.3); }
  98% { opacity: 0.95; }
}

.retro-footer {
  width: 100%;
  background: #000;
  color: #ccc;
  font-size: 10px;
  padding: 20px 40px;
  display: flex;
  justify-content: center;
  margin-top: 100px; /* adds breathing room above it */
}

.footer-content {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-left,
.footer-center,
.footer-right {
  width: 32%;
}

.footer-left p,
.footer-right p,
.footer-center p {
  margin: 3px 0;
  line-height: 1.4;
}

.glow {
  color: #ff3030;
}

.badges img {
  height: 20px;
  margin-right: 6px;
  opacity: 0.4;
  filter: grayscale(1);
  transition: opacity 0.2s ease;
}
.badges img:hover {
  opacity: 1;
}

.tiny {
  opacity: 0.6;
  font-size: 9px;
}

.enter-button {
  /* Positioning: Fixed to the viewport */
  position: fixed;
  
  /* Center horizontally */
  left: 50%;
  transform: translateX(-50%); /* Moves it back by half its own width for perfect centering */
  
  /* Vertical alignment: Aligned with the bottom elements (40px up) */
  bottom: 40px; 

  /* Styling to match clock and music player */
  font-family: "Helvetica", Arial, sans-serif;
  font-size: 20px; /* Same as clock/player */
  letter-spacing: 1px;
  text-transform: lowercase;
  color: #fff;
  text-decoration: none; /* Removes the underline */
  
  /* Optional: Z-index ensures it's on top of the map/other content */
  z-index: 100;
  
  /* No hover effect requested */
}

/* Ensure no hover/active styles are present */
.enter-button:hover,
.enter-button:active {
  color: #fff; /* Keep the color the same */
}

/* Mobile adjustment */
@media (max-width: 600px) {
  .enter-button {
    font-size: 14px; /* Matches mobile adjustment for other elements */
    bottom: 20px; /* Matches mobile adjustment for other elements */
  }
}