section, .button { transition-timing-function: ease; }
section, section div {
  /* I Love It In Slow Mode :D */
  transition-duration: 1.5s;
}
section {
  margin-top:0px;
  display: inline-block;
  position: relative;
  padding: .1rem .1rem 0;
  height: .1rem;
  background: #000000;
  border-radius: .1rem;
  perspective: 300;
  box-shadow: 0 -1px 2px #000, inset 0 1px 2px rgba(0,0,0,.2), inset 0 .25rem 1rem rgba(0,0,0,.1);
}


.button { opacity: 0; }

.cover {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  transform-origin: center bottom;
  transform-style: preserve-3d;
  font: 1.25em/2 "icon";
  color: black;
  text-align: center;
  pointer-events: none;
  z-index: 100;
}

.innie, .outie, .spine, .shadow { position: absolute; width: 100%; }

.innie, .outie {
  height: 100%;
  background-image: -webkit-linear-gradient(top, transparent 0%, rgba(0,0,0,.1) 100%);
  border-radius: .25rem;
}
.innie:after, .outie:after { content:"t"; }

.innie {
  background-color: #FFFFFF;
  text-shadow: 0 -2px 4px rgba(0,0,0,.2);
}

.spine {
  top: .25rem;
  background: #FFFFFF;
  height: .25rem;
  transform: rotateX(90deg);
  transform-origin: center top;
}

.shadow {
  top: 100%;
  left: 0;
  height: 3.5rem;
  transform-origin: center top;
  transform: rotateX(90deg);
  opacity: 0;
  z-index: 0;
  background-image: -webkit-linear-gradient(top, rgba(0,0,0,.6) 0%, transparent 100%);
  background-image: linear-gradient(to bottom, rgba(0,0,0,.6) 0%, transparent 100%);
  border-radius: .4rem;

}

.outie {
  background-color: #000000;
  transform: translateZ(.25rem);
  text-shadow: 0 2px 4px rgba(0,0,0,.2);
}

section:hover { background: #000000; }
section:hover .button { opacity: 1; }

section:hover .cover, section:hover .innie, section:hover .spine, section:hover .outie, section:hover .spine { transition-timing-function: cubic-bezier(.2,.7,.1,1.1); }

section:hover .cover { transform: rotateX(-120deg);  }

section:hover .innie { background-color: #000000; }
section:hover .spine { background-color: #FFFFFF; }
section:hover .outie { background-color: #FFFFFF; color: rgba(0,0,255,1); }

section:hover .shadow { 
  opacity: 1;
  transform: rotateX(45deg) scale(.95);
}


small {
  font:7.8rem/1 sans-serif;
  padding-top: 1rem;
  color: #000;
}
small a { color: #000; text-decoration: none; border-bottom: thin solid #000; }
small a:hover { border-bottom-color: #000; }

@font-face { font-family:icon; src: url('http://bennettfeely.com/fonts/icons.woff'); }