#light, #pedestrianLight { display: flex; flex-direction: column; justify-content: space-around; align-items: center; width: 100px; height: 200px; margin: 20px; box-shadow: 0 0 0 1px #000; } #light div, #pedestrianLight div { width: 50px; height: 50px; box-shadow: 0 0 0 1px #000; border-radius: 40px; } #btn { width: 40px; height: 40px; border: 3px solid #000; border-radius: 45%; margin: 20px; background-color: #7dfd5d; transition: all 0.3s ease; } #btn:hover { background-color: #4efa23; transform: scale(1.05); } #btn:active { transform: scale(0.95); } #btn:disabled { transform: scale(1); background-color: #999; border-color: #7c7c7c; }