﻿body {
  background: #0a0a0a;
  color: #eee; 
  font-family: 'Segoe UI', sans-serif;
  align-items: center;
  min-height: 100vh;
  margin: 0;

}

h1 {
  margin-top: 20px;
  color: #00bcd4;
}

#speedometer {
  margin: 20px auto;
  width: 220px;
  height: 220px;
  /**/
    display: flex;
  flex-direction: column;
  justify-content: center;

}

/* Arc ticks and labels */
#ticks line {
  stroke: #eee;              /* light tick marks */
}

#ticks text {
  fill: #eee;                /* light numbers */
  font-family: 'Segoe UI', sans-serif;
  font-size: 10px;           /* balanced size */
  font-weight: bold;
  text-anchor: middle;
}

#controls {
  margin: auto; /* 20px;*/
  text-align:center;
}

button {
  background: #1e1e1e;
  border: 2px solid #333;
  border-radius: 6px;
  padding: 10px 20px;
  margin: 5px;
  font-size: 16px;
  font-weight: bold;
  color: #eee;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

button:hover {
  background: #333;
  transform: scale(1.05);
}

#btnDw {
  color: #00bcd4;
}

#btnUp {
  color: #ba68c8;
}

#results {
  margin: 20px;
  font-size: 18px;
}

#lblDw, #lblUp {
  font-weight: bold;
  margin: 10px 0;
  color: #ccc;
}

/* Smooth text updates for animated count-up */
button, #lblDw, #lblUp {
  transition: all 0.5s ease;
}

/* Explicit needle styling so they remain visible */
#needleDwGroup line {
  stroke: #00bcd4;
  stroke-width: 4;
  filter: drop-shadow(0 0 4px #00bcd4);
}

#needleUpGroup line {
  stroke: #ba68c8;
  stroke-width: 4;
  filter: drop-shadow(0 0 4px #ba68c8);
}