body {
  background-color: #1e1e1e;
  color: white;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
}

.main-title {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #ffffff;
  padding: 10px;
  border-bottom: 2px solid #ffffff33;
  text-align: center;
}

.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 1500px;
  background-color: #2a2a2a;
  border-radius: 10px;
}

.mero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.gate-wrapper {
  background-color: #3a3a3a;
  padding: 15px;
  border-radius: 8px;
  transition: transform 0.2s;
}
.gate-wrapper:hover {
  transform: scale(1.02);
}

.label {
  margin-top: 10px;
  font-weight: 600;
  font-size: 1rem;
}

svg {
  width: 100px;
  height: 70px;
}

.input-line, .output-line {
  stroke: #ffffff;
  stroke-width: 2;
}

.circle {
  fill: white;
}

.led {
  cursor: pointer;
  stroke: black;
  stroke-width: 1;
  transition: fill 0.3s;
}

.led.off {
  fill: #444;
}

.led.on {
  fill: #00ff88;
}
