@import url('https://fonts.googleapis.com/css?family=Raleway:400,700');

* {
	margin: 0;
	padding: 0;
	outline: 0;
	-webkit-box-sizing: border-box !important;
	    box-sizing: border-box !important;
	-webkit-touch-callout: none; /* iOS Safari */
		-webkit-user-select: none; /* Safari */
			-khtml-user-select: none; /* Konqueror HTML */
				-moz-user-select: none; /* Firefox */
					-ms-user-select: none; /* Internet Explorer/Edge */
						user-select: none; /* Non-prefixed version, currently supported by Chrome and Opera */
}

.clearfix:after {
	clear:both;
	content:".";
	display:block;
	height:0;
	line-height:0;
	visibility:hidden;
}

img {
	display:block;
	max-width:100%;
	max-height:100%;
	margin:auto;
}
	
html, body {
	height:100%;
	color: black;
	font-family: 'Raleway', sans-serif;
	font-size: 14px;
	-webkit-transition: background-color 1s ease;
	-o-transition: background-color 1s ease;
	transition: background-color 1s ease;
}

@media (min-width: 992px) {
	body {
		font-size: 16px;
	}
}

#step_6, #config_3d, canvas {
	width: 100%;
	height: 100%;
	overflow: hidden;
	padding:0;
}

a {
	color: inherit;
}

.button {
	display:inline-block;
	vertical-align: middle;
	background-color: white;
	color:black;
	padding:10px 20px;
	font-weight: 700;
	font-size: 20px;
	border-radius: 5px;
	text-decoration: none;
	opacity: 0.8;
	cursor: pointer;
}

.button:hover {
	box-shadow: 0 0 6px rgba(0,0,0,0.2);
}

.button-right {
	position:relative;
	padding:20px 50px 20px 20px;
	margin:10px 50px 10px 10px;
}

.button-right img {
	position:absolute;
	right:0;
	top:50%;
	-webkit-transform: translate(50%,-50%);
	    -ms-transform: translate(50%,-50%);
	        transform: translate(50%,-50%);
	background-color: #ddd;
	border-radius: 50%;
	width:80px;
	height:80px;
	max-height: none;
}

.button-top {
	position:relative;
	padding:50px 20px 20px 20px;
	margin:50px 10px 10px 10px;
}

.button-top img {
	position:absolute;
	left:50%;
	top:0;
	-webkit-transform: translate(-50%,-50%);
	    -ms-transform: translate(-50%,-50%);
	        transform: translate(-50%,-50%);
	background-color: #ddd;
	border-radius: 50%;
	width:80px;
	height:80px;
	max-height: none;
}

.button-top-big {
	position:relative;
	padding:60px 10px 10px 10px;
	margin:70px 10px 10px 10px;
	min-width: 80px;
}

.button-top-big img {
	position:absolute;
	left:50%;
	top:0;
	-webkit-transform: translate(-50%,-50%);
	    -ms-transform: translate(-50%,-50%);
	        transform: translate(-50%,-50%);
	background-color: #ddd;
	border-radius: 50%;
	width:100px;
	height:100px;
	max-height: none;
	max-width: none;
}

#step_back {
	display:none;
	position:absolute;
	top:20px;
	left:25%;
	z-index: 2;
	line-height: 60px;
	vertical-align: middle;
	text-align: center;
	-webkit-transform: translate(-50%,0);
	    -ms-transform: translate(-50%,0);
	        transform: translate(-50%,0);
	color:white;
	cursor: pointer;
}

#logo_kastel {
	position:absolute;
	top:20px;
	left:50%;
	background-color: white;
	border-radius: 50%;
	width:60px;
	height:60px;
	z-index: 2;
	padding:10px;
	-webkit-transform: translate(-50%,0);
	    -ms-transform: translate(-50%,0);
	        transform: translate(-50%,0);
	cursor: pointer;
}

/*
@media (max-width: 991px) {
	#logo_kastel {
		width:60px;
		height:60px;
		padding:10px;
	}
}
*/

#step_counter {
	position:absolute;
	top:20px;
	left:75%;
	z-index: 2;
	line-height: 60px;
	vertical-align: middle;
	text-align: center;
	-webkit-transform: translate(-50%,0);
	    -ms-transform: translate(-50%,0);
	        transform: translate(-50%,0);
	color:white;
}

#loader {
	display:none;
	position: fixed;
	top:0;
	left:0;
	right:0;
	bottom:0;
	background-color: rgba(255,255,255,0.5);
	z-index: 3;
	background-image: url(images/loader.gif);
	background-position: center center;
	background-repeat: no-repeat;
}

.container {
	width:1024px;
	max-width: 100%;
	margin:auto;
}

.person {
	display:block;
	vertical-align: middle;
	padding:40px;
}

.person img {
	max-width: 400px;
	margin:auto;
}

.baloon {
	display:block;
	vertical-align: middle;
	padding:40px;
	margin:40px auto;
	font-size: 20px;
	border: solid 6px white;
	position: relative;
	margin-top:-150px;
	max-width: 350px;
}

.baloon:after {
	content:'';
	display: block;
	border: solid 7px white;
	background-color: inherit;
	border-top-color: transparent;
	border-right-color: transparent;
	-webkit-transform: translate(-50%,0) rotate(135deg);
	    -ms-transform: translate(-50%,0) rotate(135deg);
	        transform: translate(-50%,0) rotate(135deg);
	height:26px;
	width:26px;
	position: absolute;
	top:-20px;
	left:50%;
}

.question {
	display:block;
	margin:0 20px 20px;
}

.chair {
	display:none;
	vertical-align: middle;
	padding:40px 100px;
}

.selection {
	display:block;
	padding:0 40px 40px;
	font-size: 20px;
}

.skip {
	display:block;
	font-size: 12px;
}

@media (min-width: 992px) {
	
	.person {
		display:inline-block;
		width:33%;
	}

	.baloon {
		display:inline-block;
		width:33%;
		margin:0 auto;
		padding:30px;
	}
	
	.baloon:after {
		left:0px;
		top:50%;
		-webkit-transform: translate(-50%,-50%) rotate(45deg);
		    -ms-transform: translate(-50%,-50%) rotate(45deg);
		        transform: translate(-50%,-50%) rotate(45deg);
	}
	
	.chair {
		display:inline-block;
		width:33%;
		margin:0;
	}

}
	
.div_recap{
	display:block;
}

@media (min-width: 992px) {
	
	.div_recap{
		display:inline-block;
		width:33%;
	}
	
}

/* STEPS */

.step {
	position:absolute;
	width: 100%;
	min-height: 100%;
	color:white;
	text-align: center;
	padding: 120px 0 40px 0;
	overflow: hidden;
	-webkit-transition: all 1s ease 0s;
	-o-transition: all 1s ease 0s;
	transition: all 1s ease 0s;
	opacity: 0;
/* 	background-color: inherit; */
}

@media (max-width: 991px) {
	.step {
		padding: 80px 0 40px 0;
	}
}

.step {
/* 	min-height: 0; */
	max-height:100%;
	left:-100%;
}

.step.active {
	opacity: 1;
/* 	min-height: 100%; */
	max-height:none;
	left:0;
}

/*
.step:before {
	content:'';
	position:absolute;
	top:0;
	left:-100%;
	width:100%;
	height:100%;
	transition: all 2s ease 0s;
	background: url(images/background.svg);
	background-repeat: no-repeat;
	background-size: cover;
}
*/

body.step_0 , .step_0 .baloon {
	background-color: #dbc657;
}

body.step_1 , .step_1 .baloon {
	background-color: #9cc1d6;
}

body.step_2 , .step_2 .baloon {
	background-color: #eeb557;
}

body.step_3 , .step_3 .baloon {
	background-color: #ad5d6f;
}

body.step_4 , .step_4 .baloon {
	background-color: #9cc1d6;
}

body.step_5 , .step_5 .baloon {
	background-color: #eeb557;
}

body.step_6 {
	background-color: #ddd;
}

.step.active:before {
	left:0%;
}

.step .popping {
	opacity:0;
	-webkit-transform: rotate(45deg) scale(0);
	    -ms-transform: rotate(45deg) scale(0);
	        transform: rotate(45deg) scale(0);
	-webkit-transition: all 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0s;
	-o-transition: all 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0s;
	transition: all 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0s;
}

.step.active .popping {
	opacity:1;
	-webkit-transform: rotate(0deg) scale(1);
	    -ms-transform: rotate(0deg) scale(1);
	        transform: rotate(0deg) scale(1);
}

.step .fading {
	opacity:0;
	-webkit-transform: scale(0);
	    -ms-transform: scale(0);
	        transform: scale(0);
	-webkit-transition: all 1s ease 0s;
	-o-transition: all 1s ease 0s;
	transition: all 1s ease 0s;
}

.step.active .fading {
	opacity:1;
	-webkit-transform: scale(1);
	    -ms-transform: scale(1);
	        transform: scale(1);
}

.step .popping:nth-child(1) , .step .fading:nth-child(1) {
	-webkit-transition-delay: 0.2s;
	     -o-transition-delay: 0.2s;
	        transition-delay: 0.2s;
}
.step .popping:nth-child(2) , .step .fading:nth-child(2) {
	-webkit-transition-delay: 0.4s;
	     -o-transition-delay: 0.4s;
	        transition-delay: 0.4s;
}
.step .popping:nth-child(3) , .step .fading:nth-child(3) {
	-webkit-transition-delay: 0.6s;
	     -o-transition-delay: 0.6s;
	        transition-delay: 0.6s;
}
.step .popping:nth-child(4) , .step .fading:nth-child(4) {
	-webkit-transition-delay: 0.8s;
	     -o-transition-delay: 0.8s;
	        transition-delay: 0.8s;
}
.step .popping:nth-child(5) , .step .fading:nth-child(5) {
	-webkit-transition-delay: 1s;
	     -o-transition-delay: 1s;
	        transition-delay: 1s;
}
.step .popping:nth-child(6) , .step .fading:nth-child(6) {
	-webkit-transition-delay: 1.2s;
	     -o-transition-delay: 1.2s;
	        transition-delay: 1.2s;
}
.step .popping:nth-child(7) , .step .fading:nth-child(7) {
	-webkit-transition-delay: 1.4s;
	     -o-transition-delay: 1.4s;
	        transition-delay: 1.4s;
}
.step .popping:nth-child(8) , .step .fading:nth-child(8) {
	-webkit-transition-delay: 1.6s;
	     -o-transition-delay: 1.6s;
	        transition-delay: 1.6s;
}
.step .popping:nth-child(9) , .step .fading:nth-child(9) {
	-webkit-transition-delay: 1.8s;
	     -o-transition-delay: 1.8s;
	        transition-delay: 1.8s;
}
.step .popping:nth-child(10) , .step .fading:nth-child(10) {
	-webkit-transition-delay: 2s;
	     -o-transition-delay: 2s;
	        transition-delay: 2s;
}
.step .popping:nth-child(11) , .step .fading:nth-child(11) {
	-webkit-transition-delay: 2.2s;
	     -o-transition-delay: 2.2s;
	        transition-delay: 2.2s;
}
.step .popping:nth-child(12) , .step .fading:nth-child(12) {
	-webkit-transition-delay: 2.4s;
	     -o-transition-delay: 2.4s;
	        transition-delay: 2.4s;
}
.step .popping:nth-child(13) , .step .fading:nth-child(13) {
	-webkit-transition-delay: 2.6s;
	     -o-transition-delay: 2.6s;
	        transition-delay: 2.6s;
}
.step .popping:nth-child(14) , .step .fading:nth-child(14) {
	-webkit-transition-delay: 2.8s;
	     -o-transition-delay: 2.8s;
	        transition-delay: 2.8s;
}
.step .popping:nth-child(15) , .step .fading:nth-child(15) {
	-webkit-transition-delay: 3s;
	     -o-transition-delay: 3s;
	        transition-delay: 3s;
}

#config_buttons {
	position:absolute;
	bottom:20px;
	left:50%;
	transform: translateX(-50%);
	z-index: 2;
	text-align: center;
	width:100%;
}

#config_buttons > div , #config_buttons > a {
	border-radius: 50%;
	width:40px;
	height:40px;
	line-height: 60px;
	vertical-align: middle;
	background-color: #fff;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: 60%;
	cursor: pointer;
	display: inline-block;
	margin:0 4px;
}

#config_buttons #codice_prodotto {
	color:black;
	display:block;
	text-align: center;
	margin-bottom:15px;
}

#config_buttons #panel {
	background-color: #333;
	background-image: url(images/icon-panel.png);
}

#config_buttons #pdf {
	background-image: url(images/icon-pdf.png);
}

#config_buttons #screenshot {
	background-image: url(images/icon-image.png);
}

#config_buttons #share {
	background-image: url(images/icon-share.png);
}

#config_buttons #info {
	background-image: url(images/icon-info.png);
}

#config_panel {
	position: absolute;
	top:50%;
	left:-100%;
	width:33%;
	max-height: calc(100% - 200px);
	transform: translateY(-50%);
	overflow-y: auto;
	background-color: rgba(255,255,255,0.9);
	color:black;
	text-align: left;
	transition: all 0.5s ease 0s;
	z-index: 4;
	border-radius: 5px;
}

@media (max-width: 991px) {
	#config_panel {
		width:80%;
	}
}

#config_panel.open {
	left: -4px;
}

#config_panel #closex {
	position:absolute;
	top:10px;
	right:14px;
	font-size:20px;
	line-height: 20px;
	cursor: pointer;
}

#config_panel div {
	padding:10px 30px;
}

/*
#config_panel div:first-child {
	padding-top:30px;
}

#config_panel div:last-child {
	padding-bottom:30px;
}
*/

#config_panel div b {
	display:block;
	margin:10px 0 5px;
}

#config_panel div p {
	display: inline-block;
	margin:0 15px 5px 0;
	cursor: pointer;
	vertical-align: top;
}

#config_panel p span {
	display: inline-block;
	vertical-align: middle;
	margin-right:5px;
	width:1em;
	height:1em;
	background-color: black;
	border-radius: 50%;
	transition: all 0.5s ease 0s;
	border: solid 4px #ddd;
}

#config_panel p:hover span {
	border-width: 3px;
}

#config_panel p.selected span {
	border-width: 1px;
}

#panel_struttura {
	border-left:solid 4px #820924;
	border-right:solid 4px #820924;
}
#panel_struttura b {
	color: #820924;
}
#panel_struttura p span {
	background-color: #820924;
}

#panel_rete {
	border-left:solid 4px #e58f00;
	border-right:solid 4px #e58f00;
}
#panel_rete b {
	color: #e58f00;
}
#panel_rete p span {
	background-color: #e58f00;
}

#panel_scocca {
	border-left:solid 4px #c8a800;
	border-right:solid 4px #c8a800;
}
#panel_scocca b {
	color: #c8a800;
}
#panel_scocca p span {
	background-color: #c8a800;
}

#panel_base {
	border-left:solid 4px #68a1c1;
	border-right:solid 4px #68a1c1;
}
#panel_base b {
	color: #68a1c1;
}
#panel_base p span {
	background-color: #68a1c1;
}

#panel_sgabello {
	border-left:solid 4px #68a1c1;
	border-right:solid 4px #68a1c1;
}
#panel_sgabello b {
	color: #68a1c1;
}
#panel_sgabello p span {
	background-color: #68a1c1;
}

#panel_meccanismo {
	border-left:solid 4px #c8a800;
	border-right:solid 4px #c8a800;
}
#panel_meccanismo b {
	color: #c8a800;
}
#panel_meccanismo p span {
	background-color: #c8a800;
}

#panel_imbottitura {
	border-left:solid 4px #e58f00;
	border-right:solid 4px #e58f00;
}
#panel_imbottitura b {
	color: #e58f00;
}
#panel_imbottitura p span {
	background-color: #e58f00;
}

#panel_rivestimento {
	border-left:solid 4px #820924;
	border-right:solid 4px #820924;
}
#panel_rivestimento b {
	color: #820924;
}
#panel_rivestimento p span {
	background-color: #820924;
}
