body {
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  image-rendering: pixelated;
  font-family: 'Press Start 2P', cursive;
  color: #f5deb3;
  background-color: #1a1a1a;
  text-align: center;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  transition: background-image 0.8s ease-in-out; /* 🖼️ background fade */
}

#status-box {
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid #ff6600;
  padding: 1em;
  display: inline-block;
  border-radius: 8px;
  margin-top: 60px;
  max-width: 90%;
}

/* 🔴 Blinking dot for offline */
#status.offline {
  color: red;
  font-weight: bold;
}

#status.offline .dot {
  display: inline-block;
  margin-left: 8px;
  height: 10px;
  width: 10px;
  background-color: red;
  border-radius: 50%;
  animation: blink 1s infinite;
  vertical-align: middle;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ☠️ Background darkening */
.offline-background {
  filter: brightness(50%);
  transition: filter 0.5s ease-in-out;
}

/* ⏱️ Bottom-left time info */
#bginfo {
  position: fixed;
  bottom: 10px;
  left: 10px;
  font-size: 10px;
  color: #aaa;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 8px;
  border-radius: 6px;
  font-family: monospace;
  z-index: 100;
}

#background-toggle {
  position: fixed;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 10px;
  font-family: 'Press Start 2P', monospace;
  z-index: 1000;
  color: #f5deb3;
}

#background-toggle select {
  background: #111;
  color: #f5deb3;
  border: 2px solid #ff6600;
  font-family: inherit;
  font-size: 10px;
  padding: 4px;
  margin-left: 4px;
  box-shadow: 0 0 8px #000;
}

#server-info {
  position: fixed;
  bottom: 35px;
  left: 10px;
  font-size: 10px;
  color: #f5deb3;
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 8px;
  border-radius: 6px;
  font-family: 'Press Start 2P', monospace;
  z-index: 100;
}

@media (max-width: 600px) {
  body {
    background-size: cover; /* fallback for mobile to avoid undersized image */
  }
}
