body {
  background-color: #333;
  margin: 0;
}

#root {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#drum-machine {
  display: flex;
  flex-wrap: wrap;
  background: linear-gradient(red, purple);
  border: 3px solid purple;
  border-radius: 6px;
  box-shadow: 0px 5px 5px;
  padding: 10px;
  width: 300px;
  gap: 5px;
}

.drum-pad {
  font-family: sans-serif;
  font-size: 24px;
  color: red;
  padding-top: 20px;
  border-bottom: 4px solid #BB5500;
  background: linear-gradient(yellow, orange);
  border-radius: 6px;
  flex: 1 1 30%;
  cursor: pointer;
  user-select: none;
  height: 50px;
  text-align: center;
}

.drum-pad:hover {
  filter: contrast(150%);
}

.drum-pad.active {
  filter: contrast(150%);
  border-bottom: 1px solid #BB5500;
  transform: translateY(3px);
  border-radius: 6px;
  transition: all 0.1s;
}

#display {
  margin: 0 auto;
  background: #003300;
  color: #0F0;
  font-family: Courier;
  font-weight: 700;
  transition: all 0.25s;
  border-radius: 6px;
  width: 50%;
  text-align: center;
}

#display.initial {
  animation-name: blink;
  animation-duration: 3s;
  animation-iteration-count: infinite;
}

#display.active {
  color: #030 !important;
  transition: all 0.1s;
}

@keyframes blink {
  0% {
    color: #030;
  }
  50% {
    color: #0F0;
  }
  100% {
    color: #030;
  }
}
#speaker {
  width: 100%;
  height: 100px;
  background-image: radial-gradient(#000 2px, transparent 0);
  background-color: #333;
  background-size: 10px 10px;
  border: 3px solid black;
  border-radius: 6px;
  background-position: 3px 0px;
}

@keyframes move {
  0% {
    transform: translateX(2px);
  }
  100% {
    transofrm: translateX(-2px);
  }
}
#speaker.active {
  animation-name: move;
  animation-duration: 0.5s;
  animation-iteration-count: infinite;
  background-image: radial-gradient(#000 3px, transparent 0);
}