@charset "utf-8";

/**
* @author	Frédéric POURRAZ ~ frederic.pourraz@univ-smb.fr
*/
*
{
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

:focus
{
	outline: none;
}

body
{
	background-color: #EFEFEF;
	color: LightSlateGrey;
	font-family: Arial;
	font-size: 1em;
	font-weight: bold;
	margin-bottom: 4em;
	padding: 0 2em;
}

header
{
	margin: 4em 0 0 0;
}

header h1
{
	font-size: 2em;
}

article
{
	border-bottom: 2px solid LightSlateGrey;
	padding-bottom: 2em;
	text-align: center;
}

section
{
	display: inline-block;
}

p
{
	margin-bottom: 1em;
}

label
{
	display: inline-block;
	margin-right: 1em;
}

input
{
	margin-top: 0.5em;
}

button
{
	font-size: 2em;
	font-weight: bold;
	margin: 0 0.2em;
	padding: 0 0.4em;
}

#scene_1
{
	width: 200px;
	height: 200px;
	margin: 100px;
	perspective: 400px;
}

.cube
{
	width: 100%;
	height: 100%;
	position: relative;
	transform-style: preserve-3d;
	transition: transform 1s;
}

.cube.is-spinning
{
	animation: spinCube 20s infinite linear;
}

@keyframes spinCube
{
	0%
	{
		transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
	}
	100%
	{
		transform: rotateX(360deg) rotateY(720deg) rotateZ(0deg) ;
	}
}

.cube__face
{
	position: absolute;
	width: 200px;
	height: 200px;
	border: 2px solid LightSlateGrey;
	line-height: 200px;
	
	display: flex;
	justify-content: center;
	align-items: center;
}

/* .cube__face--front		{ background: hsla(0, 100%, 50%, 0.7); } */

.cube__face--front,
.cube__face--right,
.cube__face--back,
.cube__face--left,
.cube__face--top,
.cube__face--bottom
{
	background-color: rgba(255, 255, 255, 0.8);
}

.cube.show-front  { transform: rotateY(   0deg); }
.cube.show-right  { transform: rotateY( -90deg); }
.cube.show-back   { transform: rotateY(-180deg); }
.cube.show-left   { transform: rotateY(  90deg); }
.cube.show-top    { transform: rotateX( -90deg); }
.cube.show-bottom { transform: rotateX(  90deg); }

.cube__face--front		{ transform: rotateY(0deg) translateZ(100px); }
.cube__face--right		{ transform: rotateY(90deg) translateZ(100px); }
.cube__face--back		{ transform: rotateY(180deg) translateZ(100px); }
.cube__face--left			{ transform: rotateY(-90deg) translateZ(100px); }
.cube__face--top			{ transform: rotateX(90deg) translateZ(100px); }
.cube__face--bottom	{ transform: rotateX(-90deg) translateZ(100px); }

.cube.is-spinning .cube__face--front img		{ transform: rotateZ(0deg); }
.cube.is-spinning .cube__face--right img		{ transform: rotateZ(0deg); }
.cube.is-spinning .cube__face--back img		{ transform: rotateZ(180deg); }
.cube.is-spinning .cube__face--left img		{ transform: rotateZ(0deg); }
.cube.is-spinning .cube__face--top img			{ transform: rotateZ(180deg); }
.cube.is-spinning .cube__face--bottom img	{ transform: rotateZ(180deg); }

.cube.is-backface-hidden .cube__face
{
	backface-visibility: hidden;
}

.cube img
{
	width: 90%;
}

.radio-group.is-spinning
{
	opacity: 0.5;
}

.radio-group img
{
	vertical-align: text-bottom;
	width: 60px;
}











#scene_2
{
	margin: 2em 0 4em 0;
	width: 1024px;
	height: 550px;
	perspective: 2000px;
}

.carousel
{
	width: 100%;
	height: 100%;
	transform-style: preserve-3d;
	transition: transform 1s;
}

.carousel__cell
{
	position: absolute;
	width: 100%;
	height: 100%;
	text-align: left;
	padding: 0 50px;
}

.carousel__cell p
{
	font-size: 1.5em;
	margin-left: 1em;
	margin-bottom: 0.5em;
}

.carousel iframe
{
	border: 2px solid LightSlateGrey;
	background-color: rgba(255, 255, 255, 0.8);
	height: 100%;
	width: 100%;
}









