/* AR page: layout, banner, panel and type come from ../css/style.css (the
   viewer's stylesheet), so both pages look the same. Only AR-specific parts
   live here. */

/* Lucia's photo of the real entrance behind the model, so people who are not
   on site can still see the scan superimposed on the place. In AR the camera
   image replaces it. A lighter copy for phones. */
#stage.ar-stage {
	background: var(--stage) url("img/location-small.jpg") center / cover no-repeat;
}

@media (min-width: 761px) {
	#stage.ar-stage {
		background-image: url("img/location.jpg");
	}
}

model-viewer {
	display: block;
	width: 100%;
	height: 100%;
	background: transparent;
	--poster-color: transparent;
}

.progress {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 160px;
	height: 1px;
	background: var(--line);
	transform: translateX(-50%);
}

.progress span {
	display: block;
	width: 0;
	height: 100%;
	background: var(--text);
	transition: width 0.2s;
}

.ar-button {
	position: absolute;
	left: 50%;
	bottom: 24px;
	transform: translateX(-50%);
	padding: 10px 18px;
	background: var(--bg);
	font-size: 16px;
	white-space: nowrap;
}

/* ---------- panel ---------- */

.group > p {
	margin: 0;
}

.scan-title {
	color: var(--text);
}

/* The transparency slider, same row as in the viewer's toolbox. */
.tune__row--single {
	margin-top: 14px;
}

.tune__row--single input[type="range"] {
	width: 100%;
	height: 18px;
	margin: 0;
	accent-color: var(--name);
	cursor: ew-resize;
}

.place__name {
	color: var(--text);
}

.place__coords {
	margin: 2px 0 8px;
	font-size: 14px;
	font-variant-numeric: tabular-nums;
}

.group .hint {
	color: var(--name);
	font-size: 14px;
}

.hint--warn {
	margin-top: 8px;
	color: var(--text);
}

.ar-qr {
	margin-top: 0;
}

/* AR help, QR code and the way back, together at the foot of the panel. */
.foot {
	display: flex;
	flex-direction: column;
	gap: 36px;
}

@media (max-width: 760px) {
	.foot {
		gap: 32px;
	}
}

/* A class with display set must still hide with the hidden attribute. */
[hidden] {
	display: none !important;
}
