@font-face {
  font-family: Syne Extra;
  src: url(syne-extra.woff);
}

@font-face {
  font-family: Terminalgrotesque Open;
  src: url(terminalgrotesque-open.woff);
}

@font-face {
  font-family: Syne Bold;
  src: url(syne-bold.woff);
}

body {
  font-family: Syne Extra;
  background-color: #faff7f;
  perspective: 1500px;
  height: 100vh;
  position: fixed;
  width: 100%;
}

.main {
  position: relative;
  max-height: 99vh;
  height: 100%;
}

.d-none {
  display: none !important;
}

.d-block {
  display: block !important;
}

h1 {
  position: absolute;
  font-size: 60px;
  max-width: 900px;
  z-index: 500;
  padding: 10px;
}

.explainer {
  font-family: Syne Bold;
  position: fixed;
  font-size: 100px;
  top: 10px;
  right: 10px;
  color: #fff;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
  transition: font-size 0.3s;
  cursor: pointer;
  z-index: 1001;
}

.explanation {
  border: 3px solid #000;
  box-shadow: -14px 13px;
  font-family: Syne Bold;
  background: linear-gradient(270deg, #87ff7f, #ffb8fa);
  background-size: 400% 400%;
  -webkit-animation: bgGradient 10s ease infinite;
  -moz-animation: bgGradient 10s ease infinite;
  animation: bgGradient 10s ease infinite;
  width: 100%;
  height: 100%;
  z-index: 1000;
  position: absolute;
  max-width: 800px;
  height: auto;
  left: 50%;
  transform: translate(-50%, -50%);
  top: 50%;
  padding: 40px;
  line-height: 1.3;
}

.explanation img {
  max-width: 200px;
  margin-left: 5px;
}

svg {
  height: 25px;
  width: 25px;
  vertical-align: text-top;
}

.terminal {
  font-family: Terminalgrotesque Open;
}

.sine-extra {
  font-family: Syne Extra;
}
.explanation p {
  font-size: 40px;
}

.source {
  font-size: 25px;
}

.image-info {
  display: flex;
  margin-top: 40px;
}

.explanation a {
  text-decoration: underline;
}

.explainer:hover {
  font-size: 115px;
}

.clicked {
  font-size: 150px;
}

.clicked:hover {
  font-size: 150px;
}

footer {
  font-family: Terminalgrotesque Open;
  position: fixed;
  bottom: 0;
  left: 15px;
  font-size: 40px;
  transition: font-size 0.3s;
  z-index: 500;
}

a {
  color: inherit;
  text-decoration: none;
}

footer:hover {
  font-size: 45px;
}

.album-cube {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transform: rotateX(20deg) rotateY(30deg);
}

.parent {
  -webkit-transform: translate3d(0, 0, 0);
  padding-top: 50%;
}

div.face {
  position: absolute;
  top: 0;
  left: 0;
  background-size: cover;
  height: 400px;
  width: 400px;
}

.face-cover {
  background-image: url(the_strokes.jpg);
  transform: translateX(-50%) translateY(-50%) translateZ(200px);
}

.face-spine {
  background-image: url(fall_out_boy.jpg);
  transform: translateX(-50%) translateY(-50%) rotateY(-90deg) translateZ(200px);
}

.face-back {
  background-image: url(fiona_apple.jpg);
  transform: translateX(-50%) translateY(-50%) rotateY(-180deg) translateZ(200px);
}

.face-top {
  background-image: url(bethecowboy.jpg);
  transform: translateX(-50%) translateY(-50%) rotateX(90deg) translateZ(200px);
}

.face-side {
  background-image: url(nevermind.jpg);
  transform: translateX(-50%) translateY(-50%) rotateY(90deg) translateZ(200px);
}

.face-bottom {
  background-image: url(seu_jorge.jpg);
  transform: translateX(-50%) translateY(-50%) rotateX(-90deg) translateZ(200px);
}

@media (max-width: 720px) {
  
  .main {
    max-height: 85vh;
  }
  h1 {
    font-size: 30px;
    padding: 20px;
  }
  div.face {
    width: 200px;
    height: 200px;
  }

  .face-cover {
    transform: translateX(-50%) translateY(-50%) translateZ(100px);
  }

  .face-spine {
    transform: translateX(-50%) translateY(-50%) rotateY(-90deg) translateZ(100px);
  }

  .face-bottom {
    transform: translateX(-50%) translateY(-50%) rotateX(-90deg) translateZ(100px);
  }

  .face-side {
    transform: translateX(-50%) translateY(-50%) rotateY(90deg) translateZ(100px);
  }

  .face-back {
    transform: translateX(-50%) translateY(-50%) rotateY(-180deg) translateZ(100px);
  }

  .face-top {
    transform: translateX(-50%) translateY(-50%) rotateX(90deg) translateZ(100px);
  }

  .source {
    font-size: 15px;
  }

  .explainer {
    font-size: 50px;
    top: unset;
    bottom: 20px;
  }
  
  footer {
    bottom: 20px;
  }

  .clicked {
    font-size: 70px;
  }

  footer {
    max-width: 200px;
    font-size: 35px;
  }

  .explanation {
    max-width: 330px;
    left: 52%;
    padding: 20px;
  }

  .explanation p {
    font-size: 20px;
  }
  .parent {
    padding-top: 160%;
  }
  .image-info {
    flex-direction: column;
    margin-top: 20px;
  }
  .explanation img {
    margin-top: 20px;
  }
  svg {
    width: 15px;
    height: 15px;
  }
}

@media (min-width: 1300px) {
  .explanation img {
    max-width: 300px;
  }
}

@-webkit-keyframes bgGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@-moz-keyframes bgGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@keyframes bgGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
