/*
----------------------------------------------------------
GENERAL STYLES
----------------------------------------------------------
*/


body, html {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background-color: transparent;
	transition: background-color 0.2s ease;

	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	-webkit-touch-callout: none;
	-webkit-tap-highlight-color: transparent;
}

img {
	-webkit-user-drag: none;
}

::-webkit-scrollbar {
	width: 10px;
}

::-webkit-scrollbar-track {
	border-radius: 8px;
	background-color: #e7e7e7;
	border: 1px solid #cacaca;
}

::-webkit-scrollbar-thumb {
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.1);
}


/*
----------------------------------------------------------
LOADING SCREEN
----------------------------------------------------------
*/


#loading-background {
	display: flex;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	background-color: black;
	opacity: 1;
	transition: opacity 1s ease;
	z-index: 9999;
}

.loading-background-hidden {
	display: none !important;
	opacity: 0;
}

.loading-container {
	position: relative;
	width: 300px;
	height: 300px;
}

.loading-logo {
	display: flex;
	justify-content: center;
	width: 100%;
	height: auto;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	filter: invert(1);
	-webkit-user-drag: none;
}

.loading-text {
	position: absolute;
	width: 100%;
	text-align: center;
	white-space: nowrap;
	top: calc(50% + 90px);
	font-family: 'Roboto', sans-serif;
	font-size: 1rem;
	font-weight: bold;
	color: #f1f1f1;
	margin-top: 20px;
}

.loading-animation {
	position: absolute;
	top: calc(50% + 130px);
	left: 50%;
	transform: translateX(-50%);
	width: auto;
	height: 50px;
	-webkit-user-drag: none;
}

#configurator-screen {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	mask: url('/static/images/klb-custom.svg');
	mask-size: 300px;
	background-color: transparent;
	mask-repeat: no-repeat;
	mask-position: center;
	transition: mask-size 1.3s cubic-bezier(0.7, 0, 0.84, 0.1);
}

.loading-mask {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: black;
	opacity: 1;
	transition: opacity 1s ease;
}

.loading-mask-hidden {
	mask: none !important;
}

.loading-mask-upscale {
	mask-size: 5000vw !important;
}


/*
----------------------------------------------------------
TRANSITION SCREEN
----------------------------------------------------------
*/


.transition-mask {
	position: fixed;
	top: 0;
	left: 0;
	width: 110vw;
	height: 100vh;
	background-color: black;
	transition: left 0.7s ease;
	transform-origin: top right;
	z-index: 1000;
}

.transition-mask-active {
	width: 110%;
}


/*
----------------------------------------------------------
BACKGROUND
----------------------------------------------------------
*/


.background {
	display: grid;
	grid-template-columns: repeat(16, 1fr);
	grid-template-rows: repeat(10, 1fr);
	gap: 50px;
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background-color:#f1f1f1;
	z-index: -1;
}

.logo {
	width: 50px;
	height: 50px;
	background-image: url('/static/images/klb-custom.svg');
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	opacity: 0.03;
}

.background .logo:nth-child(odd) {
	transform: translateY(25px);
}

.background .logo:nth-child(16n + 1) {
	margin-left: 25px;
}


/*
----------------------------------------------------------
CANVAS
----------------------------------------------------------
*/


.canvas-container {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	box-shadow: inset 0 0 100px rgba(0, 0, 0, 1);
	background-color: transparent;
	perspective: 1000px;
	z-index: 0;
}

.canvas {
	width: 100%;
	height: 100%;
}

#firearm-canvas {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 1;
	transform: scale(0.7);
	visibility: visible;
}

#firearm-canvas.animate {
	opacity: 1;
	visibility: visible;
	animation: fadeInScale 1s ease-out forwards;
}

@keyframes fadeInScale {
	0% {
		opacity: 1;
		transform: scale(0.7);
	}
	100% {
		opacity: 1;
		transform: scale(1);
	}
}

#no-firearm-warning {
	display: none;
	position: absolute;
	align-items: center;
	justify-content: center;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	padding-left: 10px;
	padding-right: 10px;
	font-family: 'Roboto', sans-serif;
	font-size: 1rem;
	color: red;
	z-index: 1;

	border-radius: 10px;
	border: 1px solid rgba(255, 0, 0, 0.5);
}

.warning-img {
	width: 25px;
	height: 25px;
	margin-right: 5px;
}


/*
----------------------------------------------------------
LANGUAGES
----------------------------------------------------------
*/


.flag-container {
	position: absolute;
	display: flex;
	flex-direction: column;
	top: 0;
	right: 0;
	margin: 40px;
	z-index: 1000;
	opacity: 1;
}


#flag-button {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border: none;
	background: transparent;
	cursor: pointer;
	transition: all 0.3s ease;
}

.flag {
	height: 35px;
	width: auto;
	cursor: pointer;
	transition: all 0.3s ease;
	
	box-shadow: 0 4px 64px 0 rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	border-radius: 8px;
	border: 2px solid rgba(255, 255, 255, 0.18);
}

.flag:hover {
	transform: scale(1.1);
}

#flag-options {
	display: flex;
	flex-direction: column;
	opacity: 0;
	margin-top: 10px;
	transform: translateY(-10px);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

#flag-options.open {
	opacity: 1;
	transform: translateY(0);
}

.flag-option {
	border: none;
	background: transparent;
	transform: translateY(-10px);
	transition: opacity 0.3s ease, transform 0.3s ease;
	pointer-events: none;
}

#flag-options.open .flag-option {
	transform: translateY(0);
	pointer-events: auto;
}

.flag-option:hover {
	transform: scale(1.05);
	transition: transform 0.3s ease;
}


/*
----------------------------------------------------------
POPUP
----------------------------------------------------------
*/


.popup {
	position: fixed;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	top: 15%;
	left: 50%;
	width: 300px;
	height: 30px;
	font-family: 'Roboto', sans-serif;
	font-weight: bold;
	font-size: 0.9rem;
	transform: translateX(-50%);
	transition: opacity 0.5s ease;
	z-index: 1;

	background: rgba(255, 255, 255, 0.25);
	box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.18);
}

.popup.fade-out {
	animation: fadeOutUp 1s forwards;
}

@keyframes fadeOutUp {
	0% {
		opacity: 1;
		transform: translate(-50%, 0);
	}
	100% {
		opacity: 0;
		transform: translate(-50%, -100px);
	}
}

.popup.error {
	color: rgb(255, 69, 69);
}

.popup.success {
	color: rgb(50, 205, 50);
}


/*
----------------------------------------------------------
WEBSITE INFORMATIONS
----------------------------------------------------------
*/


.website-informations {
	position: absolute;
	display: flex;
	flex-direction: row;
	top: 40px;
	left: 40px;
	filter: invert(1) brightness(1.2);
	mix-blend-mode: difference;
	z-index: 1001;
}

.klb-custom-logo {
	width: 100px;
	height: auto;
}

.infos-container {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: left;
	margin-left: 20px;
}

.title {
	font-family: 'Roboto', sans-serif;
	font-weight: bold;
	font-size: 24px;
	color: black;
}

.author {
	font-family: 'Roboto', sans-serif;
	font-size: 14px;
	color: black;
}

.klb-link {
	text-decoration: none;
	color: black;
}

.klb-link {
	position: relative;
	text-decoration: none;
	color: black;
}

.klb-link::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 0;
	height: 2px;
	background-color: black;
	transition: width 0.3s ease;
}

.klb-link:hover::after {
	width: 100%;
}

@keyframes draw {
	from {
		width: 0;
		left: 0;
	}
	to {
		width: 100%;
		left: 0;
	}
}


/*
----------------------------------------------------------
CONFIGURATOR
----------------------------------------------------------
*/


.toggle-button {
	margin: 0;
	padding: 0;
	position: absolute;
	top: 50%;
	left: 20px;
	width: 40px;
	height: 40px;
	background: transparent;
	border: none;
	cursor: pointer;
	transition: all 0.3s ease;
	transform: translate(0, -50%);
	z-index: 1000;
	animation: bounce 3s infinite;
	mix-blend-mode: difference;
	background: transparent;
}

.toggle-button:hover {
	scale: 1.1;
}

.toggle-button:active {
	scale: 0.9;
}

.toggle-button.open {
	left: 460px;
	transform: translateY(-50%) rotate(180deg);
}

.toogle-button-icon {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	filter: invert(1) brightness(1.3) contrast(1.5);
}

@keyframes bounce {
	0%, 20%, 50%, 80%, 100% {
		transform: translate(0, -50%);
	}
	40% {
		transform: translate(15px, -50%);
	}
	60% {
		transform: translate(8px, -50%);
	}
}

.configurator-container {
	position: absolute;
	display: flex;
	flex-direction: column;
	left: -500px;
	top: 50%;
	width: 420px;
	height: 70%;
	margin-left: 20px;
	font-family: 'Roboto', sans-serif;
	transform: translateY(-50%);
	transition: all 0.3s ease;
	overflow: hidden;
	z-index: 1;

	background: rgba(255, 255, 255, 0.25);
	box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.18);
}

.configurator-container.open {
	left: 0;
}

.toggle-container {
	position: relative;
	display: flex;
	flex-direction: row;
	border-radius: 8px;
	margin-bottom: 20px;
	padding: 20px;
	padding-bottom: 0;
}

.toggle-container input[type="radio"] {
	display: none;
}

.toggle-container label {
	display: inline-block;
	width: 50%;
	text-align: center;
	padding: 10px 0;
	cursor: pointer;
	font-family: 'Roboto', sans-serif;
	font-weight: bold;
	color: grey;
	background-color: transparent;
	transition: background-color 0.3s ease;
}

.toggle-container input[type="radio"]:checked + label {
	color: black;
}

.toggle-slider {
	position: absolute;
	top: 0;
	left: 0;
	width: calc(50% - 20px);
	height: 100%;
	border-bottom: 2px solid rgba(0, 0, 0, 1);
	transition: left 0.3s ease-in-out, margin 0.3s ease-in-out, width 0.3s ease-in-out;
}

#toggle-firearm:checked ~ .toggle-slider {
	left: 0;
	margin-left: 20px;
	margin-right: 0;
	width: calc(50% - 20px);
}

#toggle-accessory:checked ~ .toggle-slider {
	left: 50%;
	margin-left: 0;
	margin-right: 20px;
	width: calc(50% - 20px);
}


/*
----------------------------------------------------------
FIREARMS / ACCESSORIES PANEL COMMON STYLES
----------------------------------------------------------
*/


.section {
	transition: opacity 0.3s ease, transform 0.3s ease;
	opacity: 0;
	display: none;
	height: 0;
}

.section.active {
	opacity: 1;
	display: flex;
	height: auto;
}

.section.slide-left {
	transform: translateX(-100%);
}

.section.slide-right {
	transform: translateX(100%);
}

.section.active.slide-left {
	transform: translateX(0);
}

.section.active.slide-right {
	transform: translateX(0);
}

#firearm-section, #accessory-section {
	display: flex;
	flex-direction: column;
	width: 100%;
	overflow: auto;
}

.product-input {
	height: 20px;
	padding: 10px;
	margin: 20px;
	margin-top: 0;
	font-size: 1rem;

	border-radius: 8px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	background-color: rgba(255, 255, 255, 0.5);
}

.product-select {
	margin: 0;
	margin-left: 20px;
	margin-bottom: 10px;
}

.product-container {
	position: relative;
	display: flex;
	flex-direction: row;
	align-items: center;
	margin-bottom: 10px;
	cursor: pointer;
	padding: 10px;
	max-height: 70px;
	opacity: 1;
	transform: scale(1);
	border-radius: 8px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	background-color: rgba(255, 255, 255, 0.5);
	transition: all 0.3s ease;
}

.product-container.filtered {
	max-height: 0;
	margin-top: 0;
	margin-bottom: 0;
	padding-top: 0;
	padding-bottom: 0;
	opacity: 0;
	visibility: hidden;
	transform: scale(0.8);
	pointer-events: none;
}

#firearms-container .product-container,
#accessories-container .product-container {
	transition: all 0.3s ease;
}

.product-container:hover {
	scale: 1.05;
}

.product-container::after {
	content: '';
	position: absolute;
	top: 50%;
	right: 20px;
	width: 30px;
	height: 30px;
	background-image: url('/static/images/add.png');
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	opacity: 0;
	transform: translateY(-50%);
	transition: opacity 0.3s ease;
}

.product-container.firearms::after {
	background-image: url('/static/images/select.png');
}

.product-container:hover::after {
	opacity: 1;
}

.product-container:last-child {
	margin-bottom: 0;
}

.product-image-container {
	display: flex;
	justify-content: center;
	width: 50px;
	height: 50px;
	border-radius: 4px;
}

.product-image {
	width: 100%;
	height: auto;
	object-fit: contain;
}

.product-infos {
	display: flex;
	flex-direction: column;
	justify-content: center;
	margin-left: 10px;
	overflow-x: hidden;
	text-overflow: ellipsis;
}

.product-name {
	font-family: 'Roboto', sans-serif;
	font-size: 1rem;
	font-weight: bold;
	color: black;
}

.product-manufacturer {
	font-family: 'Roboto', sans-serif;
	font-size: 0.8rem;
	color: grey;
}

.no-product-text {
	display: flex;
	justify-content: center;
	align-items: center;
	font-family: 'Roboto', sans-serif;
	font-size: 1rem;
	color: grey;
	transition: all 0.3s ease;
	animation: fadeIn 0.3s ease-in-out;
}

#firearms-container, #accessories-container {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
	padding: 20px;
	padding-top: 10px;
	overflow-y: auto;
	overflow-x: visible;
	-ms-overflow-style: none;
}


/*
----------------------------------------------------------
FIREARMS PANEL
----------------------------------------------------------
*/



/*
----------------------------------------------------------
ACCESSORIES PANEL
----------------------------------------------------------
*/


.search-container {
	display: flex;
	align-items: center;
	margin: 20px;
	margin-top: 0;
	gap: 10px;
}

.search-container .product-input {
	flex: 1;
	margin: 0;
}

.filter-toggle-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 8px;
	background: transparent;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.filter-toggle-button:hover {
	background: rgba(0, 0, 0, 0.05);
}

.filter-toggle-button.active {
	background: rgba(0, 0, 0, 0.1);
	border: 1px solid rgba(0, 0, 0, 0.25);
}

.filter-toggle-button img {
	width: 100%;
	height: 100%;
	opacity: 0.5;
}

.filters-container {
	margin-left: 20px;
	margin-right: 20px;
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	transition: all 0.3s ease;
}

.filters-container.visible {
	max-height: 100%;
	opacity: 1;
	margin-bottom: 20px;
}

#accessories-container,
.product-select {
    opacity: 1;
    transition: opacity 0.3s ease;
}

#accessories-container.hidden,
.product-select.hidden {
    opacity: 0;
    pointer-events: none;
}

.filter-group-title {
	font-family: 'Roboto', sans-serif;
	font-size: 0.9rem;
	color: black;
	font-weight: bold;
	margin-top: 20px;
	margin-bottom: 10px;
}

.filter-group-title:first-child {
	margin-top: 0;
}

.filter-group {
	display: flex;
	flex-wrap: wrap;
	justify-content: left;
	align-items: center;
	gap: 5px;
	margin-bottom: 10px;
}

.filter-button {
	display: flex;
	flex-direction: row;
	padding: 5px 10px;
	font-family: 'Roboto', sans-serif;
	font-size: 0.8rem;
	color: rgb(65, 65, 65);
	background: rgba(255, 255, 255, 0.3);
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.filter-button:hover {
	background: rgba(0, 0, 0, 0.05);
}

.filter-button.active {
	color: black;
	border: 1px solid rgba(0, 0, 0, 0.5);
	box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.2);
	background: rgba(255, 255, 255, 0.8);
}


/*
----------------------------------------------------------
CANVAS VIEW CONTROLS
----------------------------------------------------------
*/


.canvas-views {
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	margin-bottom: 20px;
	z-index: 1000;
	mix-blend-mode: difference;
	filter: invert(1) brightness(1.2);
}

.view-button {
	display: inline-block;
	width: 45px;
	height: 45px;
	padding: 0;
	margin: 0 5px;
	cursor: pointer;
	transition: all 0.3s ease;
	transform: translateY(100px);
	border: none;
	background: none;
	opacity: 0;
}

@keyframes popUp {
	0% {
		transform: translateY(100px);
		opacity: 0;
	}
	80% {
		transform: translateY(-10px);
		opacity: 1;
	}
	100% {
		transform: translateY(0);
		opacity: 1;
	}
}

.view-button.pop-up {
	animation: popUp 0.6s ease-out forwards;
}

.view-button.visible {
	opacity: 1;
	transform: translateY(0);
}

.view-button:hover {
	scale: 1.1;
}

.view-button:active {
	scale: 0.8;
}

.view-button img {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
}


/*
----------------------------------------------------------
INFO BOX FOR ACCESSORIES
----------------------------------------------------------
*/


#info-box {
	position: absolute;
	padding: 10px;
	margin: 10px;
	max-width: 300px;
	min-width: 150px;
	font-family: 'Roboto', sans-serif;
	transform: translateY(-50%);
	overflow-y: auto;
	
	background: rgba(255, 255, 255, 0.5);
	box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	transition: all 0.3s ease;
	opacity: 0;
	pointer-events: none;
	z-index: 1;
}

#info-box.visible {
	opacity: 1;
	pointer-events: auto;
	animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.hidden {
	display: none;
}

.info-box-title, .info-box-subtitle, .info-box-text {
	margin: 0;
}

.info-box-title {
	font-size: 1rem;
	font-weight: bold;
	margin-bottom: 5px !important;
}

.info-box-subtitle {
	font-size: 0.9rem;
	color: grey;
	margin-bottom: 15px !important;
}

.info-box-text {
	color: black;
	font-size: 0.9rem;
	margin-bottom: 20px !important;
}

.info-box-link {
	color: black;
	font-size: 0.9rem;
	text-decoration: none;
}


/*
----------------------------------------------------------
ACCESSORY ACTIONS
----------------------------------------------------------
*/


#accessory-actions-container {
	position: absolute;
	display: flex;
	flex-direction: column;
	top: 50%;
	right: -50px;
	transform: translateY(-50%);
	transition: all 0.3s ease;
	z-index: 1000;
}

#accessory-actions-container.visible {
	right: 20px;
}

.accessory-action {
	position: relative;
	display: flex;
	flex-direction: row;
	align-items: center;
	margin-top: 5px;
	margin-bottom: 5px;
	padding: 0;
	width: 45px;
	height: 45px;
	background: none;
	border: none;
	cursor: pointer;
	transition: all 0.3s ease;
}

.accessory-action:hover {
	scale: 1.1;
}

.accessory-action-img {
	width: 100%;
	height: 100%;
}

.accessory-action-text {
	display: inline-block;
	position: absolute;
	width: 0;
	max-width: 0;
	padding: 5px;
	margin-right: 10px;
	right: 100%;
	transform-origin: right;
	color: white;
	background: rgba(0, 0, 0, 0.5);
	font-family: 'Roboto', sans-serif;
	font-weight: bold;
	font-size: 0.8rem;
	border-radius: 8px;
	overflow: hidden;
	white-space: nowrap;
	visibility: hidden;
	transition: width 0.5s ease, max-width 0.5s ease;
}

.accessory-action:hover .accessory-action-text {
	width: auto;
	max-width: 200px;
	visibility: visible;
	transition: width 0.5s ease, max-width 0.5s ease;
}

/*
----------------------------------------------------------
CONTEXT MENU
----------------------------------------------------------
*/


.context-menu {
	display: none;
	position: fixed;
	background: rgba(255, 255, 255, 0.25);
	box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	z-index: 1000;
	overflow: hidden;
	animation: fadeIn 0.3s ease-in-out;
	transition: all 0.3s ease;
}

.context-menu.visible {
	display: block;
}

.context-menu button {
	display: flex;
	align-items: center;
	width: 100%;
	padding: 10px;
	border: none;
	background: none;
	cursor: pointer;
	transition: background 0.3s ease;
}

.context-menu button.disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.context-menu button:hover {
	background: rgba(0, 0, 0, 0.1);
}

.context-menu img {
	width: 20px;
	height: 20px;
	margin-right: 10px;
}

.context-menu span {
	font-family: 'Roboto', sans-serif;
	font-size: 0.9rem;
	color: black;
}


/*
----------------------------------------------------------
HELP CONTAINER
----------------------------------------------------------
*/


.help-container {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	transition: all 0.3s ease;
	opacity: 0;
	z-index: 2000;
}

.help-container.visible {
	display: flex;
	opacity: 1;
}

.help-content {
	position: relative;
	width: 600px;
	max-height: 80vh;
	margin: auto;
	padding: 30px;
	overflow-y: auto;
	background: rgba(255, 255, 255, 0.7);
	box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.18);
}

.help-section {
	margin-bottom: 30px;
}

.help-section:last-child {
	margin-bottom: 0;
}

.help-section h2 {
	font-family: 'Roboto', sans-serif;
	font-size: 1.2rem;
	font-weight: bold;
	color: black;
	margin-bottom: 10px;
}

.help-section p {
	font-family: 'Roboto', sans-serif;
	font-size: 1rem;
	color: black;
	margin: 5px 0;
	line-height: 1.5;
}

.help-section .klb-link {
	color: black;
	text-decoration: none;
	position: relative;
}

.help-section .klb-link::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 0;
	height: 2px;
	background-color: black;
	transition: width 0.3s ease;
}

.help-section .klb-link:hover::after {
	width: 100%;
}


/*
----------------------------------------------------------
DEBUG
----------------------------------------------------------
*/


.debug {
	position: absolute;
	bottom: 0;
	left: 0;
	margin: 20px;
	width: fit-content;
	font-family: 'Roboto', sans-serif;
}

.debug span {
	font-size: 0.8rem;
	color: black;
}

.debug button {
	background: none;
	border: 1px solid rgba(0, 0, 0, 0.1);
	cursor: pointer;
}

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


/*
----------------------------------------------------------
MOBILE WARNING
----------------------------------------------------------
*/


#mobile-warning {
	display: none;
	position: fixed;
	flex-direction: column;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	justify-content: center;
	background-color: transparent;
	align-items: center;
	overflow: hidden;
	z-index: 1;
}

#mobile-warning::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: url('/static/images/klb-custom.svg');
	background-size: 100px;
	animation: scrollPattern 10s linear infinite;
	opacity: 0.03;
}

@keyframes scrollPattern {
	0% {
		background-position: 0 0;
	}
	100% {
		background-position: 100px 100px;
	}
}

.mobile-warning-informations {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.mobile-warning-informations img {
	width: 200px;
	height: auto;
	margin-bottom: 10px;
}

.mobile-warning-disclaimer {
	width: calc(100% - 100px);
	text-align: center;
	font-family: 'Roboto', sans-serif;
	font-size: 1rem;
	color: black;
	font-weight: bold;
	margin-bottom: 0;
}

.mobile-warning-credits {
	padding-top: 10px;
	width: calc(100% - 100px);
	text-align: right;
	font-family: 'Roboto', sans-serif;
	font-size: 1rem;
	color: black;
	font-weight: bold;
}

.mobile-warning-play {
	position: absolute;
	bottom: 30px;
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	margin-top: 20px;
	text-decoration: none;
	text-align: right;
	font-family: 'Roboto', sans-serif;
	font-size: 1rem;
	color: grey;
	opacity: 0.5;
}

@media (max-width: 1024px), (hover: none) {
	#configurator-screen,
	.canvas-container,
	.website-informations,
	#accessory-actions-container,
	.canvas-views,
	.debug {
		display: none !important;
	}

	.flag-container {
		display: flex;
		margin: 20px;
		box-shadow: none;
	}

	#mobile-warning {
		display: flex;
	}
}
