/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
	model-viewer {
		width: 320px;
		height: 320px;
	}
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
	model-viewer {
		width: 600px;
		height: 400px;
	}
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
	model-viewer {
		width: 450px;
		height: 450px;
	}
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
	model-viewer {
		width: 450px;
		height: 450px;
	}
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
	model-viewer {
		width: 450px;
		height: 450px;
	}
}

/* jQuery UI Dialog*/
.ui-dialog {
	z-index: 1000 !important ;
}

#atlas_ar_qr_code {
	position: fixed;
	right: 0;
	left: 90%;
	bottom: 3%;
	z-index: 9999;
	overflow: visible !important;

	padding: 2px;
	background-color: #f0f0f0;
	border: 1px solid #ccc;
	width: fit-content;
	border-radius: 8px;
}

#ar_close_btn {
	position: absolute;
	top: -28px;
	right: -30px;
	background: none;
	border: none;
	font-size: 18px;
	font-weight: normal;
	cursor: pointer;
	color: #888;
}

#ar_close_btn:hover {
	color: #000;
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
	#atlas_ar_qr_code {
		right: 0;
		left: 70%;
	}
}


/*************************
DIMENSIONS
 ************************/

#controls {
	position: absolute;
	bottom: 16px;
	left: 16px;
	max-width: unset;
	transform: unset;
	pointer-events: auto;
	z-index: 100;
}

.dot{
	display: none;
}

.glass {
	background: rgba(255, 255, 255, 0.37);
	backdrop-filter: blur(8px) contrast(0.89) saturate(1.27);
	-webkit-backdrop-filter: blur(8px) contrast(0.89) saturate(1.27);
	border: 1px solid rgba(255, 255, 255, 0.4);
	padding: 0.5rem;
	border-radius: 0.5rem;
}

.dim {
	border-radius: 4px;
	border: none;
	box-sizing: border-box;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
	color: rgba(0, 0, 0, 0.8);
	display: block;
	font-family: Futura, Helvetica Neue, sans-serif;
	font-size: 1em;
	font-weight: 700;
	max-width: 128px;
	overflow-wrap: break-word;
	padding: 0.5em 1em;
	position: absolute;
	width: max-content;
	height: max-content;
	transform: translate3d(-50%, -50%, 0);
	pointer-events: none;
	--min-hotspot-opacity: 0;
}

@media only screen and (max-width: 800px) {
	.dim {
		font-size: 3vw;
	}
}

.dimensionLineContainer {
	pointer-events: none;
	display: block;
}

.dimensionLine {
	stroke: #16a5e6;
	stroke-width: 2;
	stroke-dasharray: 2;
}

.hide {
	display: none;
}

:not(:defined) > * {
	display: none;
}

/**************************
hotspot
 */


.hotspot {
	display: block;
	width: 20px;
	height: 20px;
	border-radius: 10px;
	border: none;
	background-color: blue;
	box-sizing: border-box;
	pointer-events: none;
}

.hotspot[slot="hotspot-hand"] {
	--min-hotspot-opacity: 0;
	background-color: red;
}

.hotspot[slot="hotspot-foot"]:not([data-visible]) {
	background-color: transparent;
	border: 3px solid blue;
}

.annotation {
	background-color: #ffffff;
	position: absolute;
	transform: translate(10px, 10px);
	border-radius: 10px;
	padding: 10px;
}


/***********************************
slider css start
************************************/
/* This keeps child nodes hidden while the element loads */
:not(:defined) > * {
	display: none;
}

model-viewer {
	background-color: #eee;
	overflow-x: hidden;
}

#ar-button {
	background-image: url(https://modelviewer.dev/assets/ic_view_in_ar_new_googblue_48dp.png);
	background-repeat: no-repeat;
	background-size: 20px 20px;
	background-position: 12px 50%;
	background-color: #fff;
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	white-space: nowrap;
	bottom: 132px;
	padding: 0px 16px 0px 40px;
	font-family: Roboto Regular, Helvetica Neue, sans-serif;
	font-size: 14px;
	color:#4285f4;
	height: 36px;
	line-height: 36px;
	border-radius: 18px;
	border: 1px solid #DADCE0;
}

#ar-button:active {
	background-color: #E8EAED;
}

#ar-button:focus {
	outline: none;
}

#ar-button:focus-visible {
	outline: 1px solid #4285f4;
}

@keyframes circle {
	from { transform: translateX(-50%) rotate(0deg) translateX(50px) rotate(0deg); }
	to   { transform: translateX(-50%) rotate(360deg) translateX(50px) rotate(-360deg); }
}

@keyframes elongate {
	from { transform: translateX(100px); }
	to   { transform: translateX(-100px); }
}

model-viewer > #ar-prompt {
	position: absolute;
	left: 50%;
	bottom: 175px;
	animation: elongate 2s infinite ease-in-out alternate;
	display: none;
}

model-viewer[ar-status="session-started"] > #ar-prompt {
	display: block;
}

model-viewer > #ar-prompt > img {
	animation: circle 4s linear infinite;
}

model-viewer > #ar-failure {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	bottom: 175px;
	display: none;
}

model-viewer[ar-tracking="not-tracking"] > #ar-failure {
	display: block;
}

.slider {
	width: 100%;
	text-align: center;
	overflow: hidden;
	position: absolute;
	bottom: 16px;
}

.slides {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
}

.slide {
	scroll-snap-align: start;
	flex-shrink: 0;
	width: 100px;
	height: 100px;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	background-color: #fff;
	margin-right: 10px;
	border-radius: 10px;
	border: none;
	display: flex;
	cursor:pointer;
}

.slide.selected {
	border: 2px solid #4285f4;
}

.slide:focus {
	outline: none;
}

.slide:focus-visible {
	outline: 1px solid #4285f4;
}

/*****************************
custom css start
******************************/

.ar_vr_3d_model_try_on{
	cursor: pointer;
}


@keyframes art-spin {
	to {
		transform: rotate(360deg)
	}
}

.art-animate-spin {
	animation: art-spin 1s linear infinite
}
.art-h-5 {
	height: 1.25rem
}

.art-w-5 {
	width: 1.25rem
}
