body {
  overflow: hidden;
}

div#memes {
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  grid-template-rows: repeat(10, 1fr);
  gap: 2.5vw;
  padding: 140px 100px 100px 100px;
  height: 100vh;
}

div#buttons {
  position: fixed;
  top: 40px;
  right: 40px;
  gap: 10px;
  display: flex;
  font-size: 20px;
  align-items: center;
  z-index: 1;
}

div#buttons button {
  border-color: rgb(190, 190, 190);
  color: rgb(190, 190, 190);
}

div#buttons button:nth-child(1) {
  margin-left: 20px;
}

div#buttons button.selected {
  border-color: black;
  color: black;
}

img {
  width: 100%;
  animation-duration: 0.5s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

img.freestyle {
  position: absolute;
  width: 2vw;
}

@keyframes dance-left {
  0% {
    transform: rotate(-20deg) translate(-10px);
  }

  50% {
    transform: rotate(0deg) translate(0px);
  }

  100% {
    transform: rotate(20deg) translate(10px);
  }
}

@keyframes dance-right {
  0% {
    transform: rotate(20deg) translate(10px);
  }

  50% {
    transform: rotate(0deg) translate(0px);
  }

  100% {
    transform: rotate(-20deg) translate(-10px);
  }
}
