body{
  background: linear-gradient(0deg, rgb(213, 121, 137), rgb(240, 178, 102));
  margin: 0;
  height: 100vh;
  overflow: hidden;
}
.step-button {
  width: 50px;
  height: 50px;
  margin:auto;
  margin-bottom: 5vh;
  background-image: url("buttons/clear_square.webp");
  border: 0;
  background-color: transparent;
  background-size: contain;
  background-repeat: no-repeat;
  filter:opacity(70%);
}

.step-button:hover{
  animation: wiggle 0.6s;
}

.step-button.pressed{
  background-image: url("buttons/clear_pressed_square.webp");
}

button:hover{
  background-size: 90%;
  background-position: center;
}

@keyframes wiggle {
  0% {
    transform: scale(1, 1);
  }
  15% {
    transform: scale(1.25, 0.75);
  }
  30% {
    transform: scale(0.75, 1.25);
  }
  45% {
    transform: scale(1.15, 0.85);
  }
  60% {
    transform: scale(0.95, 1.05);
  }
  75% {
    transform: scale(1.05, 0.95);
  }
  100% {
    transform: scale(1, 1);
  }
}

.step-button.active{
  background-image: url("buttons/clear_lit_square.webp");
  filter:opacity(100%);
}

#controls button {
  padding: 10px 20px;
  margin: 20px;
  font-size: 16px;
  background-color: #eee;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
}

#gif-container {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 40vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-start; /* align to the top inside the container */
}

#gif-container img {
  display: block;
  height: 100%;
  width: auto; /* allow it to be wider than viewport */
  object-fit: contain;
}

#sequencer{
  display: block;
  margin: auto;
  width: 95%;
}

#sequencer-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: auto;
  width: fit-content;
}

.track-row {
  display: flex;
  gap: 2px;
}