html, body, p { margin: 0; padding: 0; }
body { background: #ddd; font-family: sans-serif; }

.group:after {
  content: "";
  display: table;
  clear: both;
}

.pull-left { float: left; }
.pull-right { float: right; }

.all-dice {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  /* max-width: 1088px; */
  /* margin: 30px auto 40px; */
  margin: 0px auto 40px;
}

.play-a {
  cursor: pointer;
  display: inline-block;
  position: relative;
  background: #fff;
  text-align: center;
  /* padding: 15px 0px 5px; */
  width: 100%;
  border-top: solid 1px #ccc;
  height: 300px;
  line-height: 300px;
  font-weight: bold;
}

.play-a .sound {
  width: 100%;
  height: 100%;
  position: relative;
  font-size: 60px;
  line-height: 60px;
  /* padding: 15px 0; */
  display: flex;
  text-align: center;
  justify-content: center;
}

.play-a .sound .flipper, .play-a .sound .pronounce { position: absolute; height: 100%; width: 50% }
.play-a .sound .flipper { right: 0 }
.play-a .sound .pronounce { left: 0 }

.play-a .sound p {
  align-self: center;
}

.category-link {
  width: 100%;
  height: 100%;
  display: block;
  color: black;
  text-decoration: none;
}
.category-link:visited {
  color: black;
  text-decoration: none;
}

.description {
  font-size: 2.2vw;
  line-height: 3vw;
  padding: 0 1vw;
}

.flip-container {
  width: 100%;
  height: 300px;
  position: relative;
  -webkit-perspective: 800px;
  -moz-perspective: 800px;
  -o-perspective: 800px;
  perspective: 800px;
}
.card {
  width: 100%;
  height: 100%;
  position: absolute;
  -webkit-transition: -webkit-transform .2s;
  -moz-transition: -moz-transform .2s;
  -o-transition: -o-transform .2s;
  transition: transform .2s;
  -webkit-transform-style: preserve-3d;
  -moz-transform-style: preserve-3d;
  -o-transform-style: preserve-3d;
  transform-style: preserve-3d;
  -webkit-transform-origin: 50% 50%;
  transform-origin: 50% 50%;
}

.card div {
  display: block;
  height: 100%;
  width: 100%;
  text-align: center;
  font-weight: bold;
  position: absolute;
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  -o-backface-visibility: hidden;
  backface-visibility: hidden;
}
.card .back {
  -webkit-transform: rotateX( 180deg );
  -moz-transform: rotateX( 180deg );
  -o-transform: rotateX( 180deg );
  transform: rotateX( 180deg );
}
.card.flipped {
  -webkit-transform: rotateX( 180deg );
  -moz-transform: rotateX( 180deg );
  -o-transform: rotateX( 180deg );
  transform: rotateX( 180deg );
}

@media only screen and (max-width: 800px) {
  .description {
    font-size: 4vw;
    line-height: 5vw;
    padding: 0 1vw;
  }
}
