/* -----------------------------------------------------------
 * La Vie en 360°
 *
 * CSS par Paul Bonnef-Puget
 * version 1.0
 *
 * Convertion multi navigateur par http://cssprefixer.appspot.com/
 * ----------------------------------------------------------- */
 
 /* ----------------------------------------------------------
  * Foundation Fixes
  * ---------------------------------------------------------- */
.top-bar-section ul {
	background: none;
}
.top-bar-section li.active:not(.has-form) a:not(.button) {
    background: #F28900;
}.top-bar-section li.active:not(.has-form) a:hover:not(.button) {
    background: #FBBA16;
}
.top-bar-section ul li a {
	font-size: 1rem;
}
.row {
	max-width: none;
}


 /* ----------------------------------------------------------
  * Typographie
  * ---------------------------------------------------------- */
 
.centered-text { text-align: center; }
.justified-text { text-align: justify; }

.content {
	width: 100%;
	overflow: hidden;
	display: inline-block;
	position: absolute;
	top: 50px;
	transition: all 1s;
}

li {
	padding-bottom: 5px !important;
}

h1, h2, h3, h4 {
	/*font-family: 'Sue Ellen Francisco', cursive;*/
	font-family: 'Economica', sans-serif;
	font-variant: small-caps;
}

h1 {
	margin-top: 50px;
}

.important {
	color: #F28900;
}

.form_error {
	color: #ff0000 !important;
	border: 1px solid #ff0000 !important;
}

.button {
	/*font-family: 'Sue Ellen Francisco', cursive;*/
	/*font-family: 'Economica', sans-serif;*/
	font-size: 1em;
    line-height: 1em;
}
.button.grand {
	font-size: 1.6em;
    line-height: 0.6em;
}

.title span {
	position: relative;
	top: 20px;
	/*font-family: 'Sue Ellen Francisco', cursive;*/
	font-family: 'Economica', sans-serif;
	font-variant: small-caps;
	font-size: 3.6em;
}

.demo-link {
	border: 3px solid #F28900;
	display: inline-block;
	margin-bottom: 15px;
}

.columned {
	-moz-column-count : 2;
	-moz-column-gap: 35px;
	-moz-column-rule: 2px solid #ddd;
	-webkit-column-count : 2;
	-webkit-column-gap: 35px;
	-webkit-column-rule: 2px solid #ddd;
	column-count : 2;
	column-gap: 35px;
	column-rule: 2px solid #ddd;
	}
@media screen and (max-width: 850px) {
	.columned {
		-moz-column-count : 1;
		-moz-column-gap: 35px;
		-moz-column-rule: 2px solid #ddd;
		-webkit-column-count : 1;
		-webkit-column-gap: 35px;
		-webkit-column-rule: 2px solid #ddd;
		column-count : 1;
		column-gap: 35px;
		column-rule: 2px solid #ddd;
	}
}


 /* ----------------------------------------------------------
  * Contact
  * ---------------------------------------------------------- */

.pageContact {
	background-color: #F28600;
}
.pageContact div.row {
	padding: 3% 7%;
}
.vertical-container {
	line-height: 35px;
	margin-bottom: 5px;
	vertical-align: middle;
}
.vertical-container img {
	margin: 0 10px;
}

 /* ----------------------------------------------------------
  * Home
  * ---------------------------------------------------------- */

.helper {
	height: 100.5%;
	margin-left:-4px;
	vertical-align: middle;
	display: inline-block;
}

.hidden {
	opacity: 0;
	filter: alpha(opacity=0);
}

.button { z-index: 1000; }

.orange       {
	background: linear-gradient(#F28900, #FBBA16);
	transition: all 300ms ease-out;
}

.orange:hover {
	text-shadow: 0 0 5px white;
}

.logo_centre {
	width: 100%;
	height: 100%;
	display: block;
	position: absolute;
	top: 0;
    text-align: center;
}

.logo {
	vertical-align: middle;
	margin: 4.5px 0 0 4.5px;
}
#logo  { display: none; }
#waity { display: inline-block; }

#main-logo {
	height: 65px;
}

.menu {
	height: 130px;
	padding-top: 38px;
}

.title {
	margin-top: 150px;
	margin-bottom: 20px;
}

.puchline {
	margin-bottom: 50px;
}

.submenu {
	padding: 0 10px;
	background-color: #FFFFFF;
}

hr {
	margin-top: 0.25em;
}
hr.top:before {
	content: " ";
	border-bottom:10px solid #f28900;
	border-left:10px solid transparent;
	border-right:10px solid transparent;
	margin-top: -10px;
	right: 0;
	width: 0; height: 0;
	float: right;
}
hr.top {
	margin: 0em 1em;
}

.iFramer {
	width: 75%;
	padding-top: 40%;
	position: relative;
	display: none;
	border: 3px solid black;
}

#panoDIV {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
}
		
/*.pageCenter { position: relative; top: 0; width: 100%; }
.pageLeft   { position: absolute; top: 0; width: 100%; transform: translateX( -2000px); }
.pageRight  { position: absolute; top: 0; width: 100%; transform: translateX(  2000px); }*/

/**
 * Moving pages
 */
.moveCLeft   { transform: translateX(  2000px ); transition: transform 1s; }
.moveCRight  { transform: translateX( -2000px ); transition: transform 1s; }
.moveCCenter { transform: translateX(     0px ); transition: transform 1s; }

.moveLLeft   { transform: translateX(     0px ); transition: transform 1s; }
.moveLRight  { transform: translateX( -4000px ); transition: transform 1s; }
.moveLCenter { transform: translateX( -2000px ); transition: transform 1s; }

.moveRLeft   { transform: translateX( 4000px ); transition: transform 1s; }
.moveRRight  { transform: translateX(    0px ); transition: transform 1s; }
.moveRCenter { transform: translateX( 2000px ); transition: transform 1s; }

.information img {
	width: 50%;
	margin: 5px;
	cursor: pointer;
}

.information div:hover:after{
	border: 1px solid black;
	color: white;
	border-radius: 3px;
	padding: 3px 6px;
	background: linear-gradient(#F28900, #FBBA16) repeat scroll 0 0 rgba(0, 0, 0, 0);
	content: attr(data-title);
	margin: 70px -30px;
	position: absolute;
	z-index: 1000;
}

/* FIX for fullscreen on device & Mac */
#martin { z-index: 9999; }

/*.facebook-zone, .twitter-zone {
	width: 50px;
}*/

.subchoice {
    border: 1px solid #cccccc;
    border-radius: 6px;
    padding: 5px 10px;
	position: absolute;
}

select {
	background: white;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) inset;
}

.floating-mic > a {
	cursor: pointer;
	display: inline-block;
	height: 100%;
	width: 100%;
}

.floating-mic {
	position: absolute;
	right: 0;
	top: 25%;
	z-index: 10;
}

.floating-mic img {
	width: 45px;
}

.over-title {
	background: rgba(255, 255, 255, 0.40) url('../images/big-hole2.png') no-repeat scroll 0 0 / 100% 100%;
	display: inline-block;
	/*font-family: "Sue Ellen Francisco",cursive;*/
	font-family: 'Economica', sans-serif;
	font-size: 3rem;
	height: 100%;
	line-height: 323px;
	position: absolute;
	text-align: center;
	vertical-align: middle;
	width: 100%;
	color: black;
}
.over-title:hover {
	background: rgba(255, 255, 255, 0.0) url('../images/big-hole2.png') no-repeat scroll 0 0 / 100% 100%;
	color: white;
	text-shadow: 0px 0px 5px black;
}

.borne {
	position:relative;
	top:-40px;
}
/*
.roundup {
	width: 100%;
	height: 100%;
	position: relative;
	top: 0; left: 0;
}
.roundup img.cache {
	position: absolute;
	left: 0;
	top: 0;
}*/

.wave {
	width: 100%;
	height: 25px;
}
.white-orange { background: url('../images/white-orange-wave.jpg') no-repeat; background-size: 100% 100%; }
.white-grey   { background: url('../images/white-grey-wave.jpg') no-repeat; background-size: 100% 100%; }
.grey-white   { background: url('../images/grey-white-wave.jpg') no-repeat; background-size: 100% 100%; }

.twentytwenty-container img {
	width: 100%;
}

.twentytwenty-container {
	box-shadow: 0 0 5px #555555;
	border: 3px solid #f28900;
}


 /* ----------------------------------------------------------
  * Footer
  * ---------------------------------------------------------- */

#copyright {
	padding: 5px;
	width: 100%;
	background: #333333;
	color: white;
	font-size: 0.8rem;
}

#copyright span {
	margin: 0 20px;
	float: right;
	line-height: 3.5rem;
}

.debug { display: none; }

.social-icons {
	display: inline-block;
}


.soc-facebook {
	background: url("../images/icons/social-white.png") no-repeat -127px -32px;
	display: inline-block;
	height: 50px;
	width: 50px;
}

.soc-500px {
	background: url("../images/icons/social-white.png") no-repeat -127px -558px;
	display: inline-block;
	height: 50px;
	width: 50px;
}

.soc-gplus {
	background: url("../images/icons/social-white.png") no-repeat -21px -294px;
	display: inline-block;
	height: 50px;
	width: 50px;
}

 /* ----------------------------------------------------------
  * Galerie
  * ---------------------------------------------------------- */

#tab-visit-gallery div.row {
	background-color: #dddddd;
}

/*#tab-image-gallery, #tab-visit-gallery {
	margin-top: 30px;
}*/

#gallery-links li {
	display: inline-block;
	list-style: none;
	text-align: center;
	width: 49%;
}
#gallery-links {
	display: none;
}

#galery-logo {
	margin-top: 30px;
	height: 115px;
}

.description {
	padding: 0 20px;
}
/*
#thumbs:before, #thumbs:after {
	display: none;
}*/

.thumb img, .thumb_nott img {
	border: 3px solid white;
	transition: all 400ms;
	box-shadow: 0 0 5px #555555;
}

.thumb_nott {
	margin-bottom: 5px;
}

.thumb, .thumb_nott {
	background-color: #000;
	display: inline-block;
	opacity: 1.0;
	position: relative;
	top: 0;
	left: 0;
}

.thumb img:hover, .thumb_nott img:hover {
	opacity: 0.6;
	border: 3px solid #F28900;
	box-shadow: 0 0 15px #555555;
}
.thumb:hover:after{
	border: 1px solid black;
	color: white;
	border-radius: 3px;
	padding: 3px 6px;
	background: linear-gradient(#F28900, #FBBA16) repeat scroll 0 0 rgba(0, 0, 0, 0);
	content: attr(data-title);
	position: absolute;
	margin: 15px 0 0 -685px;
}

.options {
	display: block;
	margin-top: -38px;
	right: -6px;
	position: absolute;
}

.options div {
	background-size: 46px 40px;
	display: block;
	height: 40px; width: 46px;
	float:right;
	margin-left: 3px;
}

.options .visit {
	background-image: url("../images/jump.jpg");
}
.options .hdr {
	background-image: url("../images/hdr.jpg");
}
.options .music {
	background-image: url("../images/media.jpg");
}
.options .style {
	background-image: url("../images/magic.jpg");
}
.options .data {
	background-image: url("../images/multi_data.jpg");
}
.options .map {
	background-image: url("../images/map.jpg");
}
.options .tuned {
	background-image: url("../images/select.jpg");
}

.options div:hover:after{
	border: 1px solid black;
	color: white;
	border-radius: 3px;
	padding: 3px 6px;
	background: linear-gradient(#F28900, #FBBA16) repeat scroll 0 0 rgba(0, 0, 0, 0);
	content: attr(data-title);
	position: absolute;
	margin: -45px 0 0 -50px;
	z-index: 10000;
}

#standardGallery {
	margin: 0 auto;
}
#demoGallery {
	margin: 0 auto;
}

#standardGallery img {
	width: 290px;
}
#demoGallery img {
	width: 215px;
}

 /* ----------------------------------------------------------
  * Popups
  * ---------------------------------------------------------- */
  
 #pageContact p, #pageContact hr {
	margin-bottom: 0.15em;
 }
  
 /* ----------------------------------------------------------
  * Animation Cube 3D
  * ---------------------------------------------------------- */

.panoBack {
	width: 100%;
	background-color: #000;
	overflow: hidden;
	position: absolute;
	top: 50px; left: 0;
	z-index: -1;
	background-color: #fff;
	height: 100%;
	display: none;
	background-position: center;
}

.masker {
	width: 100%;
	height: 100%;
	background-color: black;
	position: absolute;
	top: 0;
    -moz-transition: all 1s;
    -o-transition: all 1s;
    -webkit-transition: all 1s;
    transition: all 1s
}

.viewport {
	width: 300px;
	height: 300px;
	margin: 0 auto 0; // 100 auto 0
	position: relative;
	perspective: 304px;
	-webkit-perspective: 304px;
	z-index: 0;
}

.gradient-top {
	background: url('../images/gradient-haut.png');
	display: block;
	height: 30px;
	position: absolute;
	/* Initial Animation Position: -25->0 */
	top: -30px;
	width: 100%;
}

.gradient-bot {
	background: url('../images/gradient-bas.png');
	/*top: 410 puis 320px;*/
	position: absolute;
	bottom: -30px;
	/*display: block;*/
	height: 30px;
	width: 100%;
	/* Intial Animation Position: 1000->320px */
	/*top: 1000px;*/
	/* Initial Animation Display: none->block */
	display: none;
}

.cube {
	width: 100%;
	height: 100%;
	position: absolute;
	transform-style: preserve-3d;
	-webkit-transform-style: preserve-3d;
	transform: translateZ( 300px );
	-webkit-transform: translateZ( 300px );
}

.face {
	margin: 0;
	position: absolute;
	width: 100%;
	height: 100%;
	font-size: 5em;
	text-align: center;
	backface-visibility: hidden;
	transform-style: preserve-3d;
}

.face-front  { transform: rotateY(   0deg ) translateZ( -150px ); }
.face-left   { transform: rotateY(  90deg ) translateZ( -150px ); }
.face-right  { transform: rotateY( -90deg ) translateZ( -150px ); }
.face-rear   { transform: rotateY( 180deg ) translateZ( -150px ); }
.face-top    { transform: rotateX( -90deg ) translateZ( -150px ); }
.face-bottom { transform: rotateX(  90deg ) translateZ( -150px ); }

figure img { width: 300px; height: 300px; backface-visibility: hidden; }

.partA { width:152px; height: 152px; position: relative; top:   -1px; left: -76px; }
.partB { width:152px; height: 152px; position: relative; top: -153px; left:  75px; }
.partC { width:152px; height: 152px; position: relative; top: -154px; left: -76px; }
.partD { width:152px; height: 152px; position: relative; top: -306px; left:  75px; }

figure {
	transition: all 1s;
}

.rotateLeft {
	transform: translateZ(300px) rotateY( 90deg );
	transition: transform 1s;
}

.rotateRight {
	transform: translateZ(300px) rotateY( -90deg );
	transition: transform 1s;
}

.rotateCenter {
	transform: translateZ(300px) rotateY( 0deg );
	transition: transform 1s;
}

.rotateBack {
	transform: translateZ(300px) rotateY( 179deg );
	transition: transform 1s;
}

/* ----------------------------------------------------------
  * Téléchargements
  * ---------------------------------------------------------- */

.photo {
    border: 1px solid #555555;
    margin-bottom: 15px;
    padding: 20px;
}

/*.favorite::after { DOES NOT WORK Properly: use JS instead
	content: url("./images/logo360_m_notext.png");
	width: 35px;
	height: auto;
	margin: 5px 0 0 -40px;
	position: absolute;
}*/
.favoriteImg {
	width: 35px;
	height: auto;
	margin: 5px 0 0 -40px;
	position: absolute;
}

/* Image Block : img + download link */
.blocky {

}

.download_link {
	position: absolute;
	margin-top: -39px;
	left: 13px;
	color: white;
	text-shadow: 2px 2px 2px black;
	/*font-family: "Sue Ellen Francisco",cursive;*/
}
.download_link:hover {
	color: #F28900 !important;
}
.download_link img { width: 20px; }
	
/* =================================================================== */
/* ==                       Multi-plateforme                        == */
/* =================================================================== */

/* ----------------------------------------------------------
  * Typographie
  * ---------------------------------------------------------- */
.centered-text {
    text-align: center
    }

.content {
    width: 100%;
    overflow: hidden;
    display: inline-block;
    position: absolute;
    top: 50px;
    -moz-transition: all 1s;
    -o-transition: all 1s;
    -webkit-transition: all 1s;
    transition: all 1s
    }

.page {
    z-index: 1;
    /*-moz-box-shadow: 0 15px 10px rgba(0, 0, 0, 0.7);
    -webkit-box-shadow: 0 15px 10px rgba(0, 0, 0, 0.7);
    box-shadow: 0 15px 10px rgba(0, 0, 0, 0.7)*/
    }

li {
    padding-bottom: 5px !important
    }


/* ----------------------------------------------------------
  * Home
  * ---------------------------------------------------------- */
.hidden {
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
    filter: alpha(opacity=0);
    opacity: 0;
    filter: alpha(opacity=0)
    }

.button {
    z-index: 1000
    }

.orange {
    background: -moz-linear-gradient(#F28900, #FBBA16);
    background: -o-linear-gradient(#F28900, #FBBA16);
    background: -webkit-linear-gradient(#F28900, #FBBA16);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #F28900), color-stop(1, #FBBA16));
    filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr=#F28900, EndColorStr=#FBBA16)";
    background: linear-gradient(#F28900, #FBBA16);
    -moz-transition: all 300ms ease-out;
    -o-transition: all 300ms ease-out;
    -webkit-transition: all 300ms ease-out;
    transition: all 300ms ease-out
    }

.orange:hover {
    text-shadow: 0 0 5px white
    }

.submenu {
    padding: 0 10px;
    background-color: #FFF
    }

/*.pageCenter {
    position: relative;
    top: 0;
    width: 100%
    }*/

/*.pageLeft {
    position: absolute;
    top: 0;
    width: 100%;
    -moz-transform: translatex(-2000px);
    -ms-transform: translatex(-2000px);
    -o-transform: translatex(-2000px);
    -webkit-transform: translatex(-2000px);
    transform: translatex(-2000px)
    }*/

/*.pageRight {
    position: absolute;
    top: 0;
    width: 100%;
    -moz-transform: translatex(2000px);
    -ms-transform: translatex(2000px);
    -o-transform: translatex(2000px);
    -webkit-transform: translatex(2000px);
    transform: translatex(2000px)
    }*/

/**
 * Moving pages
 */
.moveCLeft {
    -moz-transform: translatex(2000px);
    -ms-transform: translatex(2000px);
    -o-transform: translatex(2000px);
    -webkit-transform: translatex(2000px);
    transform: translatex(2000px);
    -moz-transition: -moz-transform 1s;
    -o-transition: -o-transform 1s;
    -webkit-transition: -webkit-transform 1s;
    transition: transform 1s
    }

.moveCRight {
    -moz-transform: translatex(-2000px);
    -ms-transform: translatex(-2000px);
    -o-transform: translatex(-2000px);
    -webkit-transform: translatex(-2000px);
    transform: translatex(-2000px);
    -moz-transition: -moz-transform 1s;
    -o-transition: -o-transform 1s;
    -webkit-transition: -webkit-transform 1s;
    transition: transform 1s
    }

.moveCCenter {
    -moz-transform: translatex(0);
    -ms-transform: translatex(0);
    -o-transform: translatex(0);
    -webkit-transform: translatex(0);
    transform: translatex(0);
    -moz-transition: -moz-transform 1s;
    -o-transition: -o-transform 1s;
    -webkit-transition: -webkit-transform 1s;
    transition: transform 1s
    }

.moveLLeft {
    -moz-transform: translatex(0);
    -ms-transform: translatex(0);
    -o-transform: translatex(0);
    -webkit-transform: translatex(0);
    transform: translatex(0);
    -moz-transition: -moz-transform 1s;
    -o-transition: -o-transform 1s;
    -webkit-transition: -webkit-transform 1s;
    transition: transform 1s
    }

.moveLRight {
    -moz-transform: translatex(-4000px);
    -ms-transform: translatex(-4000px);
    -o-transform: translatex(-4000px);
    -webkit-transform: translatex(-4000px);
    transform: translatex(-4000px);
    -moz-transition: -moz-transform 1s;
    -o-transition: -o-transform 1s;
    -webkit-transition: -webkit-transform 1s;
    transition: transform 1s
    }

.moveLCenter {
    -moz-transform: translatex(-2000px);
    -ms-transform: translatex(-2000px);
    -o-transform: translatex(-2000px);
    -webkit-transform: translatex(-2000px);
    transform: translatex(-2000px);
    -moz-transition: -moz-transform 1s;
    -o-transition: -o-transform 1s;
    -webkit-transition: -webkit-transform 1s;
    transition: transform 1s
    }

.moveRLeft {
    -moz-transform: translatex(4000px);
    -ms-transform: translatex(4000px);
    -o-transform: translatex(4000px);
    -webkit-transform: translatex(4000px);
    transform: translatex(4000px);
    -moz-transition: -moz-transform 1s;
    -o-transition: -o-transform 1s;
    -webkit-transition: -webkit-transform 1s;
    transition: transform 1s
    }

.moveRRight {
    -moz-transform: translatex(0);
    -ms-transform: translatex(0);
    -o-transform: translatex(0);
    -webkit-transform: translatex(0);
    transform: translatex(0);
    -moz-transition: -moz-transform 1s;
    -o-transition: -o-transform 1s;
    -webkit-transition: -webkit-transform 1s;
    transition: transform 1s
    }

.moveRCenter {
    -moz-transform: translatex(2000px);
    -ms-transform: translatex(2000px);
    -o-transform: translatex(2000px);
    -webkit-transform: translatex(2000px);
    transform: translatex(2000px);
    -moz-transition: -moz-transform 1s;
    -o-transition: -o-transform 1s;
    -webkit-transition: -webkit-transform 1s;
    transition: transform 1s
    }

/* ----------------------------------------------------------
  * Galerie
  * ---------------------------------------------------------- */


.thumb img, .thumb_nott img {
    border: 3px solid white;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
    filter: alpha(opacity=100);
    opacity: 1.0;
    -moz-transition: all 400ms;
    -o-transition: all 400ms;
    -webkit-transition: all 400ms;
    transition: all 400ms
    }

.thumb, .thumb_nott {
    background-color: #FFF;
    display: inline-block
    }

.thumb img:hover, .thumb_nott img:hover {
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
    filter: alpha(opacity=60);
    opacity: 0.6;
    -moz-box-shadow: 0 0 15px #555;
    -webkit-box-shadow: 0 0 15px #555;
    box-shadow: 0 0 15px #555
    }

.thumb:hover:after {
    border: 1px solid black;
    color: white;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    padding: 3px 6px;
    background: linear-gradient(#F28900, #FBBA16) repeat scroll 0 0 rgba(0, 0, 0, 0);
    content: attr(data-title);
    position: absolute;
    margin: 15px 0 0 -685px
    }

.options div {
    -webkit-background-size: 46px 40px;
    background-size: 46px 40px;
    display: block;
    height: 40px;
    width: 46px;
    float: right;
    margin-left: 3px
    }

.options .visit {
    background-image: url(../images/jump.jpg)
    }

.options .hdr {
    background-image: url(../images/hdr.jpg)
    }

.options .music {
    background-image: url(../images/media.jpg)
    }

.options .style {
    background-image: url(../images/magic.jpg)
    }

.options .data {
    background-image: url(../images/multi_data.jpg)
    }

.options .map {
    background-image: url(../images/map.jpg)
    }

.options div:hover:after {
    border: 1px solid black;
    color: white;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    padding: 3px 6px;
    background: linear-gradient(#F28900, #FBBA16) repeat scroll 0 0 rgba(0, 0, 0, 0);
    content: attr(data-title);
    position: absolute;
    margin: -45px 0 0 -50px
    }

/* ----------------------------------------------------------
  * Popups
  * ---------------------------------------------------------- */
/* ----------------------------------------------------------
  * Animation Cube 3D
  * ---------------------------------------------------------- */

.viewport {
    width: 300px;
    height: 300px;
    margin: 0 auto 0;
    position: relative;
    perspective: 304px;
    -webkit-perspective: 304px;
    z-index: 0
    }

.cube {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    -moz-transform: translatez(300px);
    -ms-transform: translatez(300px);
    -o-transform: translatez(300px);
    -webkit-transform: translatez(300px);
    transform: translatez(300px)
    }

.face {
    margin: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    font-size: 5em;
    text-align: center;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    }

.face-front {
    -moz-transform: rotatey(0deg) translatez(-150px);
    -ms-transform: rotatey(0deg) translatez(-150px);
    -o-transform: rotatey(0deg) translatez(-150px);
    -webkit-transform: rotatey(0deg) translatez(-150px);
    transform: rotatey(0deg) translatez(-150px)
    }

.face-left {
    -moz-transform: rotatey(90deg) translatez(-150px);
    -ms-transform: rotatey(90deg) translatez(-150px);
    -o-transform: rotatey(90deg) translatez(-150px);
    -webkit-transform: rotatey(90deg) translatez(-150px);
    transform: rotatey(90deg) translatez(-150px)
    }

.face-right {
    -moz-transform: rotatey(-90deg) translatez(-150px);
    -ms-transform: rotatey(-90deg) translatez(-150px);
    -o-transform: rotatey(-90deg) translatez(-150px);
    -webkit-transform: rotatey(-90deg) translatez(-150px);
    transform: rotatey(-90deg) translatez(-150px)
    }

.face-rear {
    -moz-transform: rotatey(180deg) translatez(-150px);
    -ms-transform: rotatey(180deg) translatez(-150px);
    -o-transform: rotatey(180deg) translatez(-150px);
    -webkit-transform: rotatey(180deg) translatez(-150px);
    transform: rotatey(180deg) translatez(-150px)
    }

.face-top {
    -moz-transform: rotatex(-90deg) translatez(-150px);
    -ms-transform: rotatex(-90deg) translatez(-150px);
    -o-transform: rotatex(-90deg) translatez(-150px);
    -webkit-transform: rotatex(-90deg) translatez(-150px);
    transform: rotatex(-90deg) translatez(-150px)
    }

.face-bottom {
    -moz-transform: rotatex(90deg) translatez(-150px);
    -ms-transform: rotatex(90deg) translatez(-150px);
    -o-transform: rotatex(90deg) translatez(-150px);
    -webkit-transform: rotatex(90deg) translatez(-150px);
    transform: rotatex(90deg) translatez(-150px)
    }

figure img {
    width: 300px;
    height: 300px;
	backface-visibility: hidden;
    }

figure {
    -moz-transition: all 1s;
    -o-transition: all 1s;
    -webkit-transition: all 1s;
    transition: all 1s
    }

.rotateLeft {
    -moz-transform: translatez(300px) rotatey(90deg);
    -ms-transform: translatez(300px) rotatey(90deg);
    -o-transform: translatez(300px) rotatey(90deg);
    -webkit-transform: translatez(300px) rotatey(90deg);
    transform: translatez(300px) rotatey(90deg);
    -moz-transition: -moz-transform 1s;
    -o-transition: -o-transform 1s;
    -webkit-transition: -webkit-transform 1s;
    transition: transform 1s
    }

.rotateRight {
    -moz-transform: translatez(300px) rotatey(-90deg);
    -ms-transform: translatez(300px) rotatey(-90deg);
    -o-transform: translatez(300px) rotatey(-90deg);
    -webkit-transform: translatez(300px) rotatey(-90deg);
    transform: translatez(300px) rotatey(-90deg);
    -moz-transition: -moz-transform 1s;
    -o-transition: -o-transform 1s;
    -webkit-transition: -webkit-transform 1s;
    transition: transform 1s
    }

.rotateCenter {
    -moz-transform: translatez(300px) rotatey(0deg);
    -ms-transform: translatez(300px) rotatey(0deg);
    -o-transform: translatez(300px) rotatey(0deg);
    -webkit-transform: translatez(300px) rotatey(0deg);
    transform: translatez(300px) rotatey(0deg);
    -moz-transition: -moz-transform 1s;
    -o-transition: -o-transform 1s;
    -webkit-transition: -webkit-transform 1s;
    transition: transform 1s
    }

.rotateBack {
    -moz-transform: translatez(300px) rotatey(179deg);
    -ms-transform: translatez(300px) rotatey(179deg);
    -o-transform: translatez(300px) rotatey(179deg);
    -webkit-transform: translatez(300px) rotatey(179deg);
    transform: translatez(300px) rotatey(179deg);
    -moz-transition: -moz-transform 1s;
    -o-transition: -o-transform 1s;
    -webkit-transition: -webkit-transform 1s;
    transition: transform 1s
    }