@import url("https://fonts.googleapis.com/css?family=Raleway:400,400i,700");

html, body {
  background-color: #839788;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  font-family: Raleway, sans-serif;
  margin: 0;
  padding: 0;
}

h1 {
  color: black;
  font-size: 5vw;
  letter-spacing: 6px;
  margin-bottom: 20px;
}

.pad {
  width: 400px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 20px 30px;
  background-color: white;
  border: 4px solid black;
  box-shadow: 4px 4px 0 0 black;
}

/* Drum key styling */
.key {
  width: 100px;
  height: 100px;
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  font-weight: 500;
  color: black;
  background-color: white;
  border: 4px solid black;
  box-shadow: 4px 4px 0 0 black;
  user-select: none;
  transform: translate(0, 0);
}

.sound {
  font-size: 14px;
  text-transform: uppercase;
  color: #ff9068;
  margin-top: 7px;
}

.key.playing {
  background-color: #ddd;
  box-shadow: 0 0 0 0 black;
  transform: translate(4px, 4px);
  border-color: #fd746c;
  transition: all 300ms cubic-bezier(0.075, 0.82, 0.165, 1);
}

.key.playing .sound {
  color: #fd746c;
  transform: scale(1.5);
  transition: all 300ms cubic-bezier(0.075, 0.82, 0.165, 1);
}

.sound2 {
  font-size: 14px;
  text-transform: uppercase;
  color: #fff8f5;
  margin-top: 7px;
}

.red {
  background-color: #fd746c;
  color: #fff8f5;
}

.green {
  background-color: #57A773;
  color: #fff8f5;
}

/* Media Query for screens less than 467px */
@media (max-width: 467px) {
  h1 {
    font-size: 8vw;
  }
  .pad {
    width: 90%;
    padding: 10px 15px;
  }
  .key {
    width: 90px;
    height: 90px;
    font-size: 16px;
  }
  .sound, .sound2 {
    font-size: 12px;
  }
}
