*,
*:before,
*:after {
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: acumin-pro, helvetica, sans-serif;
}

a,
a:hover {
  text-decoration: none;
}

.hide-overflow {
  overflow: hidden;
}

.gradient {
  background: #ccc;
  background: -webkit-gradient(radial, center center, 0, center center, 560, from(#e6eaeb), to(#cfd3da));
  background: -moz-radial-gradient(radial, center center, 0, center center, 560, from(#e6eaeb), to(#cfd3da));
  height: 100%;
  width: 100%;
  position: fixed;
  z-index: -1;
  left: 0;
  top: 0;
}

button {
  cursor: pointer;
  border: none;
  color: #fff;
  font-size: 20px;
  outline: none;
  width: 237px;
  height: 55px;
  font-weight: bold;
  background-color: #000;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  margin-top: 20px;
  padding: 10px 20px;
}

.main {
  z-index: 2;
}

.main,
.perspective {
  width: 860px;
  height: 1020px;
  margin: 140px auto;
  padding: 50px;
  background: #fff;
  transition-duration: 0.5s;
  transition-timing-function: cubic-bezier(0, 1.01, 1, 1);
  animation-fill-mode: forwards;
  opacity: 0;
  transform: scale(0.8);
  visibility: hidden;
}

.initial {
  visibility: visible;
  transform: scale(1);
  opacity: 1;
}

@keyframes appear {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.perspective {
  background: none;
  margin: 50px;
  transform: perspective(500px) rotateX(0deg) rotateZ(0deg);
}

.main.animate,
.perspective.animate {
  transform: rotateX(64deg) rotateZ(50deg) scale(0.8);
  position: absolute;
  left: 0;
  right: 0;
  margin: auto;
  top: 0;
  bottom: 0;
}

.perspective .column {
  background: #fff;
  transform-style: preserve-3d;
  transition-timing-function: cubic-bezier(0, 1.01, 1, 1);
  animation-fill-mode: forwards;
  transition-duration: 0.5s;
}

.perspective.animate .column {
  transition-duration: 0.5s;
  transition-timing-function: ease-in-out;
}

.main,
.row,
.column {
  position: relative;
}

/* Top */

.row {
  width: 100%;
}

.row:first-child {
  transform: translateX(0px) translateZ(1px);
  transition-delay: 0s;
  transition-duration: 0s;
}

.column {
  box-sizing: border-box;
  padding: 20px;
  cursor: pointer;
  transform-origin: center bottom;
  transition-timing-function: cubic-bezier(0, 1.01, 1, 1);
  transition-duration: 0.2s;
}

.animate .column img {
  position: relative;
  z-index: 1;
}

.address {
  padding-top: 30px;
}

.hover,
.main .column:hover,
.main.animate.zoom-out .column.hover {
  transform-style: preserve-3d;
  transform: translateX(-50px) translateZ(5px);
  box-shadow:
    80px 112px 40px rgba(0, 0, 0, 0.2),
    80px 80px 40px rgba(0, 0, 0, 0.2);
  background: #fff;
  transition-timing-function: ease-in-out;
  z-index: 5;
}

.main.animate.zoom-out .column {
  transform: none;
  box-shadow: none;
  background: none;
}

.animate .column.hover img {
  transform: none;
}

.dim {
  background: #e6eaeb;
}

.zoom {
  transform-style: preserve-3d;
  transform: rotateX(-65deg) rotateY(0deg) rotateZ(-16deg) translateZ(101px);
}

.main.animate.zoom-out {
  transform: rotateX(60deg) rotateZ(35deg) scale(0.25) translateX(1320px) translateZ(260px);
  opacity: 0.8;
  background: #fff;
  left: auto;
  right: 20px;
  top: auto;
  bottom: auto;
  cursor: pointer;
}
.main.animate.zoom-out:hover {
  opacity: 1;
}

.main.animate.zoom-out .row {
  pointer-events: none;
}

.zoom-index {
  z-index: 11;
}

.content-card {
  display: none;
  padding: 20px;
  position: absolute;
  left: 75px;
  width: 600px;
}

.content-card .content-card-title {
  font-size: 26px;
  color: #212128;
  letter-spacing: -1px;
  line-height: 35px;
  opacity: 1;
  font-weight: 600;
  margin-bottom: 5px;
  margin-top: 10px;
}

.content-card p {
  opacity: 0.5;
  font-size: 21px;
  color: #212128;
  letter-spacing: -0.61px;
  line-height: 28px;
}

.content-card .display-next-card {
  opacity: 0.3;
  border-bottom: solid 1px;
  padding-bottom: 3px;
  text-decoration: none;
  font-size: 13px;
  color: #212128;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 30px;
  display: inline-block;
  white-space: nowrap;
  font-weight: bold;
}

.display-next-card:hover {
  opacity: 1;
}

.show-pop-up {
  animation-name: cardEntryMove;
}

.show-pop-up,
.hide-pop-up {
  animation-duration: 1s;
  transform-style: preserve-3d;
  animation-timing-function: cubic-bezier(0, 0.71, 1, 1);
  animation-fill-mode: forwards;
  display: block;
  opacity: 0;
  animation-delay: 0.3s;
  z-index: 11;
}

.hide-pop-up {
  animation-name: cardExitMove;
  z-index: 1;
}

.intro.hide-title {
  animation-name: hideTitle;
  animation-timing-function: ease-in;
  animation-fill-mode: forwards;
  animation-duration: 0.1s;
}

@keyframes hideTitle {
  100% {
    opacity: 0;
  }
}

@keyframes cardEntryMove {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes cardExitMove {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.position {
  left: 50px !important;
  top: 75px !important;
  transition-timing-function: cubic-bezier(0, 1.01, 1, 1);
  position: absolute;
  transition-duration: 0s;
}

.index {
  z-index: 10;
}

.shadow {
  box-shadow:
    0 2px 9px 0 rgba(0, 0, 0, 0.1),
    0 20px 30px 1px rgba(0, 0, 0, 0.15),
    0 40px 40px 1px rgba(0, 0, 0, 0.15);
}

.slide,
.bounce {
  animation-timing-function: cubic-bezier(0, 1.01, 1, 1);
  animation-fill-mode: forwards;
}

.slide {
  animation-name: slide;
  animation-duration: 0.5s;
}

.preserve-animation {
  transform-style: preserve-3d;
}

.bounce {
  animation-name: bounce;
  animation-duration: 0.9s;
}

@keyframes slide {
  0% {
    transform: none;
    background: none;
    box-shadow:
      0px 0px 0px rgba(0, 0, 0, 0),
      0 0 0 rgba(0, 0, 0, 0);
  }
  50% {
    transform: translateX(-100px) translateZ(80px);
    background: #fff;
    box-shadow:
      80px 112px 40px rgba(0, 0, 0, 0.2),
      80px 80px 40px rgba(0, 0, 0, 0.2);
  }
  100% {
    transform: none;
    background: none;
    box-shadow:
      0px 0px 0px rgba(0, 0, 0, 0),
      0 0 0 rgba(0, 0, 0, 0);
  }
}

@keyframes bounce {
  0% {
    transform: none;
    background: none;
    box-shadow:
      0px 0px 0px rgba(0, 0, 0, 0),
      0 0 0 rgba(0, 0, 0, 0);
  }
  50% {
    transform: translateX(-100px) translateZ(140px);
    background: #fff;
    box-shadow:
      80px 112px 40px rgba(0, 0, 0, 0.2),
      80px 80px 40px rgba(0, 0, 0, 0.2);
  }
  100% {
    transform: none;
    background: none;
    box-shadow:
      0px 0px 0px rgba(0, 0, 0, 0),
      0 0 0 rgba(0, 0, 0, 0);
  }
}

.intro {
  position: absolute;
  left: 50%;
  top: 50%;
  border: none;
  text-align: center;
  transform: translateX(-50%) translateY(-50%);
}

.title {
  font:
    normal 45px / normal "Passero One",
    Helvetica,
    sans-serif;
  color: rgba(255, 255, 255, 1);
  text-align: center;
  text-shadow:
    0 1px 0 rgb(204, 204, 204),
    0 2px 0 rgb(201, 201, 201),
    0 3px 0 rgb(187, 187, 187),
    0 4px 0 rgb(185, 185, 185),
    0 5px 0 rgb(170, 170, 170),
    0 6px 1px rgba(0, 0, 0, 0.0980392),
    0 0 5px rgba(0, 0, 0, 0.0980392),
    0 1px 3px rgba(0, 0, 0, 0.298039),
    0 3px 5px rgba(0, 0, 0, 0.2),
    0 5px 10px rgba(0, 0, 0, 0.247059),
    0 10px 10px rgba(0, 0, 0, 0.2),
    0 20px 20px rgba(0, 0, 0, 0.14902);
  transition: text-shadow 0.3s ease-in-out;
  transform: scale(1.5);
  margin-bottom: 45px;
}

.translate-top {
  transition-duration: 0.3s;
  transition-timing-function: cubic-bezier(0, 1.01, 1, 1);
  animation-fill-mode: forwards;
  right: 50px;
  left: auto;
  top: 30px;
  transform: translateX(0%) translateY(0%);
  opacity: 0.3;
}

.translate-top .title {
  transform: scale(1);
}

.intro-content {
  font-size: 24px;
  color: #2f2f2f;
  width: 70%;
  margin: 0 auto;
  margin-top: 20px;
}

.translate-top .intro-content {
  display: none;
}

@keyframes slideHeading {
  100% {
    right: 50px;
    left: auto;
    top: 30px;
    transform: translateX(0%) translateY(0%);
    opacity: 0.3;
  }
}

.header,
.footer,
.preview {
  position: absolute;
  opacity: 0;
  font-size: 19px;
  line-height: 41px;
  color: #191919;
}

.footer,
.preview {
  font-weight: bold;
  bottom: 25px;
  left: 50px;
}

.header {
  top: 25px;
  left: 25px;
}

.header-text {
  opacity: 0.4;
  font-size: 13px;
  color: #000000;
  letter-spacing: -0.38px;
  line-height: 16px;
  max-width: 300px;
  white-space: normal;
  display: inline-block;
  vertical-align: middle;
  margin-left: 10px;
}

.footer span {
  margin-right: 10px;
}

.footer img {
  width: 50px;
  height: 50px;
  cursor: pointer;
}

.header.visible,
.footer.visible,
.preview.visible {
  animation-name: showFooter;
  animation-timing-function: ease-in;
  animation-fill-mode: forwards;
  animation-duration: 0.5s;
  animation-delay: 2s;
}

@keyframes showFooter {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.mouse-events {
  pointer-events: none;
}

.preview {
  left: 50px;
}

.preview button {
  width: auto;
  padding: 7px 10px;
}

.mobile {
  display: none;
}

@media all and (max-width: 1024px) {
  .content-card {
    width: 450px;
  }
  .content-card .display-next-card {
    white-space: normal;
  }
  .perspective .col-sm-12 {
    width: auto;
  }
}

.hint,
.back-icon {
  position: absolute;
  opacity: 0;
  font-size: 11px;
  background: #323232;
  color: #fff;
  padding: 5px 10px;
  animation-duration: 0.3s;
  animation-timing-function: cubic-bezier(0, 1.01, 1, 1);
  animation-fill-mode: forwards;
  cursor: default;
  border-radius: 2px;
}

.back-icon:hover,
.back-icon:visited {
  color: #fff;
  text-decoration: none;
}

.hint {
  left: 43%;
}

.back-icon {
  left: 100px;
  animation-delay: 0.3s;
}

.hint:after,
.back-icon:after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid #323232;
  transform: rotate(180deg);
  top: 25px;
  left: 102px;
  z-index: 1;
}

.back-icon:after {
  left: 47px;
}

.hint.enter-tooltip,
.back-icon.enter-tooltip {
  animation-name: tooltipEntry;
}

@keyframes tooltipEntry {
  0% {
    top: 50px;
    opacity: 0;
  }
  100% {
    top: 75px;
    opacity: 0.9;
  }
}

.hint.exit-tooltip,
.back-icon.exit-tooltip {
  animation-name: tooltipExit;
}

.back-icon.exit-tooltip {
  animation-duration: 0s;
}

@keyframes tooltipExit {
  0% {
    top: 75px;
    opacity: 0.9;
  }
  100% {
    top: 50px;
    opacity: 0;
  }
}

@media all and (max-width: 736px) {
  .main,
  .perspective,
  .content-card,
  .footer,
  .intro {
    display: none;
  }
  .mobile {
    display: block;
    padding: 20px;
    position: absolute;
    left: 50%;
    width: 600px;
    font-size: 24px;
    line-height: 36px;
    color: #2f2f2f;
    text-align: center;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

@media screen and (min-color-index: 0) and(-webkit-min-device-pixel-ratio:0) {
  @media {
    .gradient {
      position: absolute;
    }
    .perspective.animate .column {
      opacity: 0;
    }
  }
}
