@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500&display=swap');

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: #111;
  color: #ff3333;
  font-family: 'Orbitron', monospace;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/5/59/Black_leather_texture.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.taxi-meter {
  background: rgba(10, 10, 10, 0.8);
  border-radius: 20px;
  border: 2px solid #444;
  box-shadow: 0 0 60px rgba(255, 0, 0, 0.15), inset 0 0 20px rgba(255, 0, 0, 0.1);
  padding: 30px;
  width: 800px;
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/5/59/Black_leather_texture.jpg');
  background-size: cover;
  background-blend-mode: overlay;
}

.taxi-meter::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 0, 0, 0.2) 0%, transparent 70%);
  animation: pulse 5s linear infinite;
  z-index: 0;
}

@keyframes pulse {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.header {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.id-block, .info-block, .logo {
  font-size: 0.8em;
}

.logo {
  text-align: right;
}

.display-frame {
  border: 2px solid rgba(255, 0, 0, 0.4);
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  background: rgba(0, 0, 0, 0.5);
  box-shadow: inset 0 0 15px rgba(255, 0, 0, 0.3);
  transition: 0.3s;
  position: relative;
  z-index: 1;
}

.display-frame:hover {
  box-shadow: inset 0 0 25px rgba(255, 50, 50, 0.6), 0 0 10px rgba(255, 0, 0, 0.3);
}

.info-block {
  text-align: center;
  flex-grow: 1;
}

.tarif-symbols {
  font-size: 1.2em;
  letter-spacing: 1em;
  margin: 10px 0;
}

.digits {
  font-size: 1.6em;
  letter-spacing: 0.2em;
  text-shadow: 0 0 10px red;
}

.buttons {
  margin-top: 40px;
  display: flex;
  justify-content: space-around;
  position: relative;
  z-index: 1;
}

.meter-btn {
  width: 50px;
  height: 50px;
  background: radial-gradient(circle at 30% 30%, #ff3333, #cc0000);
  border: none;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(255, 50, 50, 0.6), inset 0 0 10px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.meter-btn:hover {
  transform: scale(1.2);
  box-shadow: 0 0 25px rgba(255, 80, 80, 0.9), inset 0 0 15px rgba(0, 0, 0, 0.6);
}

.meter-btn::after {
  content: "";
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 20px;
  left: 20px;
  opacity: 0.2;
  animation: glow 2s infinite alternate;
}

@keyframes glow {
  0% { opacity: 0.1; transform: scale(1); }
  100% { opacity: 0.6; transform: scale(1.1); }
}
