body {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  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: 2.5rem;
  margin-bottom: 30px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  padding: 10px 25px;
  border-radius: 15px;
  backdrop-filter: blur(5px);
}

.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
  padding: 20px;
  max-width: 1200px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.mero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.gate-wrapper {
  background: rgba(255, 255, 255, 0.08);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease-in-out;
}
.gate-wrapper:hover {
  transform: translateY(-5px);
}

.label {
  margin-top: 10px;
  font-weight: bold;
  color: #ffffff;
  font-size: 1.2rem;
}

svg {
  width: 120px;
  height: 80px;
}

.input-line, .output-line {
  stroke: #ffffff;
  stroke-width: 3;
}

.circle {
  fill: white;
  stroke: white;
  stroke-width: 1;
}

.led {
  cursor: pointer;
  stroke: black;
  stroke-width: 1;
  transition: fill 0.3s;
}

.led.off {
  fill: #555;
}

.led.on {
  fill: #00ff88;
  box-shadow: 0 0 8px #00ff88;
}
