/* /!\ You need to add vendor prefixes in order to render the CSS properly (or simply use http://leaverou.github.io/prefixfree/) /!\ */
body {
  overflow-x:hidden;
  overflow-y: auto; 
}
#backUP {
  position: fixed;
  top: 90%;
  left: 90%;
  transition-duration: 0.4s;
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
  display: none;
}
#backUP:hover {
  background-color: gray;
  color: white;
}
#buffer {
  height: 150%;
}
#tridiv {
  perspective: 1000px;
  position: absolute;
  overflow: hidden;
  width: 100%;
  height: 100%;
  /* left: 50%;
  top: 50%; */
  background: transparent;
  font-size: 100%;
}
#name {
  position: relative;
  width: 100%;
  height: 50%;
  padding-left: 47%;
  padding-top: 15%;
}
.face {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4);
  font-family: 'Source Serif Pro', serif;
  text-align: center;
}

.face-text {
  display: inline-block;
  margin-top: 40%;
}

.title{
  font-family: 'Source Serif Pro', serif;
  font-size: 3em;
}

.section {
  height: 100%;
  padding: 10%;
}

.content {
  font-family: 'Source Serif Pro', serif;
  font-size: 1.15em;
}

.scene,
.shape,
.face,
.face-wrapper,
.cr {
  position: absolute;
  transform-style: preserve-3d;
}
.scene {
  width: 80em;
  height: 80em;
  top: 60%;
  left: 50%;
  margin: -40em 0 0 -40em;
  animation: spin 12s linear infinite;
}
.shape {
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform-origin: 50%;
}
.face,
.face-wrapper {
  overflow: hidden;
  transform-origin: 0 0;
  backface-visibility: hidden;
  /* hidden by default, prevent blinking and other weird rendering glitchs */
}
.face {
  background-size: 100% 100% !important;
  background-position: center;
  text-align: center;
}
.face-wrapper .face {
  left: 100%;
  width: 100%;
  height: 100%;
}
.photon-shader {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}
.side {
  left: 50%;
}
.cr,
.cr .side {
  height: 100%;
}
[class*="cuboid"] .ft,
[class*="cuboid"] .bk {
  width: 100%;
  height: 100%;
}
[class*="cuboid"] .bk {
  left: 100%;
}
[class*="cuboid"] .rt {
  transform: rotateY(-90deg) translateX(-50%);
}
[class*="cuboid"] .lt {
  transform: rotateY(90deg) translateX(-50%);
}
[class*="cuboid"] .tp {
  transform: rotateX(90deg) translateY(-50%);
}
[class*="cuboid"] .bm {
  transform: rotateX(-90deg) translateY(-50%);
}
[class*="cuboid"] .lt {
  left: 100%;
}
[class*="cuboid"] .bm {
  top: 100%;
}
/* .cube-resume styles */
.cube-resume {
  transform: translate3D(0em, 0em, 0.0625em) rotateX(0deg) rotateY(0deg)
    rotateZ(0deg);
  opacity: 1;
  width: 10em;
  height: 10em;
  margin: -5em 0 0 -5em;
}
.cube-resume .ft {
  transform: translateZ(5em);
  animation: color 10s alternate infinite;
}
.cube-resume .bk {
  transform: translateZ(-5em) rotateY(180deg);
  animation: color 10s alternate infinite;
}
.cube-resume .rt,
.cube-resume .lt,
.cube-resume .tp,
.cube-resume .bm {
  width: 10em;
  height: 10em;
  animation: color 10s alternate infinite;
}
.cube-resume .face {
  background-color: #ff4646;
}

@keyframes spin {
  to {
    transform: rotateX(875deg);
  }
}

@keyframes color {
  from {background-color: #ff4646;}
  to {background-color: rgb(33, 146, 221);}
}