/* =============================================================================
  COMMONS
============================================================================= */
*,
*:before;
*:after {
	box-sizing: border-box;
}
.clearfix:after {
  content: "";
  display: table;
  clear: both;
}
/* global */
body {
  background-color: rgb(40,40,40);
  color: rgb(100,100,100);
  font-family: sans-serif;
  font-size: 14px;
  line-height: 1.3;
}
.cube_wrapper {
  margin: 0 auto;
  padding: 20px;
  max-width: 95%;
  background-color: #fff;
}
/* grid */
.cube_row {
  display: flex;
  -webkit-flex-flow: row wrap;
          flex-flow: row wrap;
  margin: 0 -10px;
  margin-bottom: 10px;
}
.cube_row:last-child {
  margin-bottom: 0;
}
[class*="cube_col-"] {
  padding: 0px;
  width: 100%;
}
/* 
=============================================================================
  Audio
============================================================================= */
.wrap_audio {
  position: relative;
  height: 10%;
  width: 95%;  
  min-height: 10px; 
}
.wrap_audio  p {
	display: none;
}
.wrap_audio:hover  p {
	float: right;
/*	background: #adad85;
	color: #1a1a1a; */
	display: block;
}
/* Audio controls sizing */
.wrap_audio .audio_controls {
  float: Left;
  width: 80%;
}

/* Apply row format */
@-webkit-media all and ( min-width: 600px ) {
  
  /* set col widths */
  .cube_col-2-3 {
    width: 66.66%;
  }
  .cube_col-1-2 {
    width: 50%;
  }
  .cube_col-1-3 {
    width: 33.33%;
  }
  .cube_col-1-4 {
    width: 25%;
  }
  .cube_col-1-8 {
    width: 12.5%;
  }
  
}
@media all and ( min-width: 600px ) {
  
  /* set col widths */
  .cube_col-2-3 {
    width: 66.66%;
  }
  .cube_col-1-2 {
    width: 50%;
  }
  .cube_col-1-3 {
    width: 33.33%;
  }
  .cube_col-1-4 {
    width: 25%;
  }
  .cube_col-1-8 {
    width: 12.5%;
  }
  
}

/* =============================================================================
  3D CUBE
============================================================================= */
.wrap_cube {
  -webkit-perspective: 500px;
          perspective: 500px;
  -webkit-perspective-origin: 50% 50%;
          perspective-origin: 50% 50%;
   background: #adad85;
}

.cube {
  position: relative;
  margin: 100px auto;
  width: 100px;
  height: 100px;
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
}

.cube_face {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 150px;
  height: 150px;
  color: #666;
  font-size: 18px;
  text-align: center;
  line-height: 200px;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.5);
}
/* Centers the Image */
.cube_face img {
    height: 100px;
    width: 100px;
    float: center;
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%)  
}
/*
  Expands the base of the cube
*/
.cube_face img.cube_base {
    height: 200px;
     width: 200px;
}


.cube_front {
  -webkit-transform: translateZ(100px) rotateY(0deg);
          transform: translateZ(100px) rotateY(0deg);
}
.cube_back {
  -webkit-transform: translateZ(-100px) rotateY(-180deg);
          transform: translateZ(-100px) rotateY(-180deg);
}
/* Bring top and back together */
.cube_back_x {
  -webkit-transform: translateZ(100px) rotateY(180deg);
          transform: translateZ(100px) rotateY(180deg);
}
/* Bring top StarWars Effect */
.cube_back_x3 {
  -webkit-transform: translateZ(300px) rotateY(180deg);
          transform: translateZ(300px) rotateY(180deg);
}
.cube_top {
  -webkit-transform: translateY(-100px) rotateX(90deg);
          transform: translateY(-100px) rotateX(90deg);
}

.cube_bottom {
  -webkit-transform: translateY(100px) rotateX(-90deg);
          transform: translateY(100px) rotateX(-90deg);
}

.cube_left {
  -webkit-transform: translateX(-100px) rotateY(-90deg);
          transform: translateX(-100px) rotateY(-90deg);
}

.cube_right {
  -webkit-transform: translateX(100px) rotateY(90deg);
          transform: translateX(100px) rotateY(90deg);
}

.cube_rotate-x {
  -webkit-animation: spinX 64s infinite linear;
          animation: spinX 64s infinite linear;
}
.cube_rotate-x-d {
  -webkit-animation: spinX-d 64s infinite linear;
          animation: spinX-d 64s infinite linear;
}

.cube_rotate-y {
  -webkit-animation: spinY 64s infinite linear;
          animation: spinY 64s infinite linear;
}

@-webkit-keyframes spinX {
  from {
    -webkit-transform: rotateX(0);
            transform: rotateX(0);
  }
  to {
    -webkit-transform: rotateX(360deg);
            transform: rotateX(360deg);
  }
}

@keyframes spinX {
  from {
    -webkit-transform: rotateX(0);
            transform: rotateX(0);
  }
  to {
    -webkit-transform: rotateX(360deg);
            transform: rotateX(360deg);
  }
}
/* Spin X d */
@-webkit-keyframes spinX-d {
  from {
    -webkit-transform: rotateX(0);
            transform: rotateX(0);
  }
  to {
    -webkit-transform: rotateX(-360deg);
            transform: rotateX(-360deg);
  }
}
@keyframes spinX-d {
  from {
    -webkit-transform: rotateX(0);
            transform: rotateX(0);
  }
  to {
    -webkit-transform: rotateX(-360deg);
            transform: rotateX(-360deg);
  }
}

@-webkit-keyframes spinY {
  from {
    -webkit-transform: rotateY(0);
            transform: rotateY(0);
  }
  to {
    -webkit-transform: rotateY(360deg);
            transform: rotateY(360deg);
  }
}
@keyframes spinY {
  from {
    -webkit-transform: rotateY(0);
            transform: rotateY(0);
  }
  to {
    -webkit-transform: rotateY(360deg);
            transform: rotateY(360deg);
  }
}
