#background {
  background-image: url('image.png');
  background-size: cover;
  background-position: center;
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  overflow: hidden;
}

#signal {
  width: 100px;
  height: 320px;
  background-color: black;
  border-radius: 12px;
  position: absolute;
  right: 60px;
  top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  padding: 10px 0;
  box-shadow: 0 0 15px rgba(0,0,0,0.6);
}

#red, #yellow, #green {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  opacity: 0.3;
  transition: opacity 0.4s ease;
}

#red { background-color: red; }
#yellow { background-color: yellow; }
#green { background-color: green; }

#car {
  position: absolute;
  bottom: 0%;
  left: 0%;
  top: 40%;
  width: 200px;
  height: auto;
  transition: left 0.05s linear;
}

#controls {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
}

#controls button {
  padding: 12px 30px;
  font-size: 18px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

#startBtn {
  background: linear-gradient(45deg, #00c853, #64dd17);
  color: white;
}

#stopBtn {
  background: linear-gradient(45deg, #d50000, #ff1744);
  color: white;
}

#controls button:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
