@import "https://unpkg.com/ionicons@4.5.10-0/dist/css/ionicons.min.css";
/* LOADING */
.loading {
	width:100vw;
	height: 100vh;
	position: absolute;
	top: 0;
	left: 0;
	background-color: #FFF;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1020;
	flex-direction: column;
	opacity: 1;
}
.loading .lds-ellipsis {
  display: inline-block;
  position: relative;
  width: 64px;
  height: 64px;
}
.loading .lds-ellipsis div {
  position: absolute;
  top: 27px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #444;
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
.loading .lds-ellipsis div:nth-child(1) {
  left: 6px;
  animation: lds-ellipsis1 0.6s infinite;
}
.loading .lds-ellipsis div:nth-child(2) {
  left: 6px;
  animation: lds-ellipsis2 0.6s infinite;
}
.loading .lds-ellipsis div:nth-child(3) {
  left: 26px;
  animation: lds-ellipsis2 0.6s infinite;
}
.loading .lds-ellipsis div:nth-child(4) {
  left: 45px;
  animation: lds-ellipsis3 0.6s infinite;
}
@keyframes lds-ellipsis1 {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes lds-ellipsis3 {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}
@keyframes lds-ellipsis2 {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(19px, 0);
  }
}
/* HAMBURGER WITH ANIMATION */
.hamburg {
	position: relative;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	height: 28px;
	width: 40px;
}
.hamburg .line { 
   position: absolute; 
   left:0;
   height: 4px; width: 40px; 
   background: #444; border-radius: 2px;
   display: block; 
   transition: 0.5s; 
   transform-origin: center; 
}

.hamburg .line:nth-child(1) { top: 0; }
.hamburg .line:nth-child(2) { top: 12px; }
.hamburg .line:nth-child(3) { top: 24px; }

.active.hamburg .line:nth-child(1){
   transform: translateY(12px) rotate(-45deg);
}

.active.hamburg .line:nth-child(2){
   opacity:0;
}

.active.hamburg .line:nth-child(3){
   transform: translateY(-12px) rotate(45deg);
}
/*PLUS*/
.plus {
	position: relative;
	top:0;
	left:0;
	transform: rotate(0deg);
	cursor: pointer;
	height: 40px;
	width: 40px;
	transition: .4s ease;
}

.plus span {
	width: 30px;
	height: 4px;
	background: #444;
	border-radius: 2px;
	display: block;
	position: absolute;
	top:18px;
	left:5px;
}
.plus span:last-child {
	transform: rotate(90deg);
}
.plus.active {
	transform: rotate(45deg);
}

/*ADDITIONAL CONTROLS */
.additional-controls {
	position: absolute;
	width: 50px;
	height: 50px;
	overflow: hidden;
	transition: .4s ease;
	z-index: 1;
}
.additional-controls.open {
	overflow: visible;
}
.additional-controls-opener {
	border-bottom: 1px solid #666;
}
.additional-controls .controls-button {
	position: relative;
	cursor: pointer;
	height: 50px;
	width: 50px;
	transition: .4s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #FBFBFB;
}
.additional-controls .controls-button:hover {
	background-color: rgb(210,210,210)!important;
}

.additional-controls .controls-zoomout span {
	transform: none!important;
}

/* CONFIGURATOR */
.configurator {
	width: 100%;
	height: 100%;
	background-color: rgb(233,233,233);
	display: flex;
	position: relative;
}
.configurator .credits {
	position: absolute;
	bottom: 5px;
	left: 50%;
	transform: translateX(-50%);
	color:555;
	font-family: sans-serif;
	text-align: center;
}
.configurator .credits a {
	color: #5767E5;
	text-decoration: none;
}
.configurator .credits a:hover {
	text-decoration: underline;
}
.configurator .mobile-config-button {
	position: absolute;
	right: 0;
	top: 0;
	z-index: 50;
	background-color: rgb(233,233,233);
	color: #444;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: .3s ease;
	box-sizing: border-box;
	font-size: 3em;
	display: none;
	text-align: center;
	width: 50px;
	height: 50px;
}
.configurator .mobile-config-button:hover {
	background-color: rgb(210,210,210);
}


.configurator .loading, .configurator .buy {
	width: 100%;
	height: 100%;
	position: absolute;
	display: none;
	z-index: 100;
}
.configurator .buy {
	background-color:rgba(0,0,0, 0.7);
}
.configurator .buy .inner {
	position: relative;
	width:50%;
	height: 50%;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color:#FFF;
	border-radius: 5px;
	display: flex;
	padding: 1%;
	box-sizing: border-box;
}
.configurator .buy .inner .preview {
	flex: 1;
	height: 100%;
}
.configurator .buy .inner .preview .preview-image {
	display: grid;
	width: 100%;
	height: 100%;
}
.configurator .buy .inner .preview .preview-image img {
	object-fit: contain;
	max-height: 100%;
	max-width: 100%;
	grid-column: 1;
	grid-row: 1;
}
.configurator .buy .inner .info {
	flex: 1;
	display: flex;
	justify-content: center;
	flex-direction: column;
	font-family: sans-serif;
}
.configurator .buy .inner .info .price {
	display: flex;
}
.configurator .buy .inner .info .price div {
	padding: 0 10px;
}
.configurator .buy .inner .info a {
	color:rgba(255,199,6,1.00);
	text-decoration: none;
}
.configurator .buy .inner .info a:hover {
	text-decoration: underline;	
}
.configurator .buy .inner .info .buy-check {
	display: flex;
	height: 80px;
	width:100%;
}
.configurator .buy .inner .info .buy-check div {
	flex: 1;
	height: 100%;
	background-color: rgb(233,233,233);
	margin: 1% 0;
	color: #444;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: .3s ease;
	box-sizing: border-box;
}
.configurator .buy .inner .info .buy-check div:hover {
	background-color: rgb(210,210,210);
}
.configurator .preview {
	height: 100%;
	flex: 2;
	position: relative;
}
.configurator > .preview .preview-image {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: grid;
	max-width: 100%;
	max-height: 100%;
	transition: .4s ease;
}
.configurator > .preview .preview-image.scaled-1 {
	transform: translate(-50%, -50%) scale(0.6);
}
.configurator > .preview .preview-image.scaled-2 {
	transform: translate(-50%, -50%) scale(0.8);
}
.configurator > .preview .preview-image.scaled-3 {
	transform: translate(-50%, -50%) scale(1);
}
.configurator > .preview .preview-image.scaled-4 {
	transform: translate(-50%, -50%) scale(1.2);
}
.configurator > .preview .preview-image.scaled-5 {
	transform: translate(-50%, -50%) scale(1.4);
}
.configurator > .preview .preview-image img {
	grid-column: 1;
	grid-row: 1;
	top:0;
	left:0;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}
.configurator .settings {
	position: relative;
	height: 100%;
	flex: 1;
	background-color: #FBFBFB;
	-webkit-box-shadow: -3px 0px 29px 6px rgba(0,0,0,0.35);
	-moz-box-shadow: -3px 0px 29px 6px rgba(0,0,0,0.35);
	box-shadow: -3px 0px 29px 6px rgba(0,0,0,0.35);
	font-family: sans-serif;
	z-index: 5;
}



.configurator .settings > .name {
	padding: 2% 0 0 0;
	color: #333;
	font-size: 3em;
	font-family: sans-serif;
	text-align: center;
	position: relative;
}
.configurator .settings > .name > .back {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background-color: rgb(233,233,233);
	color: #444;
	cursor: auto;
	transition: .3s ease;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	opacity: 0;
}
.configurator .settings > .name > .back:hover {
	background-color: rgb(210,210,210);
}
.configurator .settings .categories {
	position: relative;
	height: 70%;
	overflow-x: hidden;
	overflow-y: auto;
}
.configurator .settings .categories ul {
	height: 100%;
	width: 100%;
	list-style-type: none;
	margin: 0;
	padding: 0;
	position: absolute;
	top: 0;
	left:0;
}
.configurator .settings .categories .main-category li .enter {
	flex: 1;
	text-align: right;
}
.configurator .settings .categories .sub-category {
	left: 100%;
}
.configurator .settings .categories .sub-category li.active {
	/*background-color: #e9bb52!important;*/
}
.configurator .settings .categories ul li {
	width: 100%;
	min-height: 100px;
	height: 100px;
	background-color: rgb(233,233,233);
	margin: 1% 0;
	color: #444;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: .3s ease;
	padding: 0 10%;
	box-sizing: border-box;
}
.configurator .settings .categories ul li:first-child {
	margin-top:0!important;
}
.configurator .settings .categories ul li:hover {
	background-color: rgb(210,210,210);
}
.configurator .settings .categories ul li .thumbnail {
	flex: 1;
	height: 100%;
	display: flex;
}
.configurator .settings .categories ul li .thumbnail img {
	max-height: 100%;
	max-width: 100%;
	object-fit: contain;
}
.configurator .settings .categories ul li .name {
	flex: 4;
}
.configurator .settings .categories ul li .price {
	flex: 1;
	font-weight: bold;
}
.configurator .settings .summary {
	position: absolute;
	bottom: 0;
	width: 100%;
	background-color: #FBFBFB;
}
.configurator .settings .summary .price {
	width: 100%;
	display: flex;
}
.configurator .settings .summary .price div {
	flex: 1;
	padding: 1%;
	font-size:1.35em;
}
.configurator .settings .summary .price div:first-child {
	text-align: right;
	align-self: center;
}
.configurator .settings .summary .price div:last-child {
	text-align: left;
}
.configurator .settings .summary .buy-button {
	width: 100%;
	min-height: 80px;
	height: 80px;
	background-color: rgb(233,233,233);
	margin: 1% 0;
	color: #444;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: .3s ease;
	box-sizing: border-box;
}
.configurator .settings .summary .buy-button:hover {
	background-color: rgb(210,210,210);
}
.price-anim {
	animation: grow 0.4s;
}
@keyframes grow {
	0% {
		font-size: 1.35em;
	}
	50% {
		font-size: 1.65em;
	}
	100% {
		font-size: 1.35em;
	}
}


@media(max-width: 920px){
	.configurator .mobile-config-button {
		display: block;
	}
	.configurator .settings {
		transform: translateX(100%);
		transition: .3s ease;
		position: absolute;
		right: 0;
		width: 100%;
	}
	.configurator .settings.open {
		transform: translateX(0%);
	}
	.configurator .buy .inner {
		width: 100%;
		height: 75%;
	}
}

#barn-builder .main-category li .name {
	border-bottom: solid 2px transparent;
}

#barn-builder .main-category li.ohb-active .name {
	border-bottom: solid 2px #E9BB52;
}