* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { 
  width: 100%; 
  min-height: 100%;
  background: #0a0a0a;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#map { 
  width: 100%; 
  height: 100vh;
  display: block;
}

.land { fill: #151515; stroke: #252525; stroke-width: 0.5px; }

.panel {
  position: absolute;
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid #222;
  padding: 14px;
  color: #888;
  font-size: 10px;
}
/* Earthquake Monitor panel */
#info {
  top: 20px;
  right: 200px; /* was left 10 px*/
  max-width: 220px;
}
#info h1 {
  font-size: 10px;
  font-weight: 500;
  color: #ff0000;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 2px;
}
#info h3 {   /* I added this h3 block 2-26-2026 Stanwmusic*/
  font-size: 10px;
  font-weight: 200;
  color: #f00; 
  margin-bottom: 8px;
  text-transform: lowercase;
  letter-spacing: 2px;
}
.live {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 9px;
  color: #c44;
}
.live-dot {
  width: 6px;
  height: 6px;
  background: #c44;
  border-radius: 50%;
  animation: blink 1.5s infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.scale {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 9px;
  color: #555;
}
.scale-bar {
  flex: 1;
  height: 4px;
  background: linear-gradient(to right, #2a5, #ca4, #c44);
  border-radius: 2px;
}

#stats {
  top: 20px;
  right: 20px;
  text-align: right;
}
.stat-val { font-size: 20px; color: #ff0; font-weight: 300; }
.stat-label { font-size: 9px; color: #999; text-transform: uppercase; margin-top: 2px; }
.stat-row { margin-bottom: 12px; }

#tooltip {
  position: absolute;
  background: rgba(0, 0, 0, 0.95);
  border: 1px solid #333;
  padding: 12px;
  color: #aaa;
  font-size: 10px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 20;
  max-width: 280px;
}
#tooltip h3 { font-size: 11px; font-weight: 500; margin-bottom: 8px; color: #fff; }
#tooltip .row { display: flex; justify-content: space-between; margin: 3px 0; gap: 15px; }
#tooltip .val { color: #666; }

#time {
  bottom: 20px;
  left: 20px;
}
#controls {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 1px;
  background: #222;
}
.btn {
  background: #111;
  border: none;
  color: #555;
  padding: 8px 14px;
  font-size: 9px;
  cursor: pointer;
  transition: all 0.15s;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: inherit;
}
.btn:hover { color: #999; background: #1a1a1a; }
.btn.active { color: #fff; background: #222; }

.quake-pulse {
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { r: 5; opacity: 0.8; }
  100% { r: 30; opacity: 0; }
}
/* ============================= */
/* Footer Styling */
/* ============================= */

footer {
  background: #000;
  border-top: 1px solid #222;
  color: #666;
  text-align: center;
  padding: 25px 15px;
  font-size: 10px;
  letter-spacing: 1px;
}

footer a {
  color: #888;
  text-decoration: none;
}

footer a:hover {
  color: #fff;
}

/* ============================= */
/* Mobile Layout Adjustments */
/* ============================= */

@media (max-width: 768px) {

  #info {
    top: 10px;
    right: 10px;
    max-width: 180px;
  }

  #stats {
    top: 140px;
    right: 10px;
  }

  #controls {
    bottom: 10px;
    right: 10px;
  }

  .stat-val {
    font-size: 16px;
  }

  #map {
    height: 75vh;
  }
}