body {
  padding-top: 30px;
  width: 95%;
  margin: auto auto;
  padding-bottom: 40px;
  font-family: sans-serif;
  background: #121212;
  color: grey;
}

#soundboard {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between; /* or space-around */
}

a {
  display: inline-block;
  margin-bottom: 8px;
  text-decoration: none;
  color: black;
}

@media screen and (min-width: 50em) {
  .overlay .closebtn {
    font-size: 40px;
    top: 15px;
    right: 40px;
  }
}

/* Buzz */
@-webkit-keyframes hvr-buzz {
  50% {
    -webkit-transform: translateX(3px) rotate(2deg);
    transform: translateX(3px) rotate(2deg);
  }
  100% {
    -webkit-transform: translateX(-3px) rotate(-2deg);
    transform: translateX(-3px) rotate(-2deg);
  }
}
@keyframes hvr-buzz {
  50% {
    -webkit-transform: translateX(3px) rotate(2deg);
    transform: translateX(3px) rotate(2deg);
  }
  100% {
    -webkit-transform: translateX(-3px) rotate(-2deg);
    transform: translateX(-3px) rotate(-2deg);
  }
}

.soundboardimg:hover {
      -webkit-animation-name: hvr-buzz;
  animation-name: hvr-buzz;
  -webkit-animation-duration: 0.15s;
  animation-duration: 0.15s;
  -webkit-animation-timing-function: linear;
  animation-timing-function: linear;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
}

figure {
  margin: 0;
  cursor: pointer;
  overflow: hidden;
}
.playing{
  margin: 1;
  border: dashed red;
}

audio {
	display:none
}

.soundboardimg {
  max-width: 400px;
  max-height: 270px;
  width: auto;
  height: auto;
}

h3 {
   margin-top: 20px;
   color: grey;
}

.overlay {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0, 0.9);
  overflow-x: hidden;
  transition: 0.5s;
}

.overlay-content {
  position: relative;
  top: 100px;
  width: 80%;
  text-align: left;
  margin-top: 30px;
  margin-left: 30%;
  color: #818181;
}

.overlay h3, h4, a {
  color: #818181;
  text-decoration: none;
  transition: 0.3s;
}

.overlay a:hover, .overlay a:focus {
    color: #f1f1f1;
}

.overlay .closebtn {
    position: absolute;
    top: 20px;
    font-size: 60px;
}
