@font-face {
	font-family: 'SofiaRegular';
	src: url('fonts/SofiaSans/SofiaSansCondensed-Regular.ttf')
		format('truetype');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'SofiaLight';
	src: url('fonts/SofiaSans/SofiaSansCondensed-Light.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'RobotoRegular';
	src: url('fonts/RobotoMono/RobotoMono-Light.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}

/* Change or remove the font above depending on your actual font filename. */

* {
	box-sizing: border-box;
}

html,
body {
	width: 100%;
	height: 100%;
	margin: 0;
	overflow: hidden;
	background: white;
	font-family: 'AppFont', Arial, sans-serif;
	user-select: none;
	touch-action: none;
}

#viewer {
	position: relative;
	width: 100vw;
	height: 100vh;
	background: white;
	overflow: hidden;
}

#slideStage {
	position: absolute;
	inset: 0;
	z-index: 1;
	will-change: transform;
}

#slideStage.is-animating {
	transition: transform 260ms ease-out;
}

.slide-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	pointer-events: none;
	will-change: transform;
}

#hotspotLayer {
	position: absolute;
	inset: 0;
	z-index: 10;
}

.hotspot {
	position: absolute;
	border: none;
	background: transparent;
	padding: 0;
	margin: 0;
	cursor: pointer;
}

body.edit-mode .hotspot {
	background: rgba(0, 120, 255, 0.25);
	border: 2px solid rgba(0, 90, 255, 0.75);
}

body.edit-mode .hotspot.selected {
	background: rgba(255, 170, 0, 0.3);
	border-color: rgba(255, 120, 0, 0.95);
}

.hotspot-label {
	display: none;
}

body.edit-mode .hotspot-label {
	display: block;
	position: absolute;
	left: 4px;
	top: 4px;
	padding: 2px 5px;
	font-size: 12px;
	line-height: 1;
	color: white;
	background: rgba(0, 0, 0, 0.65);
	border-radius: 4px;
	pointer-events: none;
}

#languageButton {
	position: absolute;
	top: 55px;
	right: 80px;
	z-index: 30;

	width: 58px;
	height: 58px;
	border-radius: 999px;

	border: 2px solid #222;
	background: white;
	color: #222;

	font-size: 20px;
	font-weight: 700;
	line-height: 1;

	cursor: pointer;
}

#languageButton:active {
	transform: scale(0.96);
}

#editBadge {
	display: none;
	position: absolute;
	left: 16px;
	bottom: 16px;
	z-index: 40;

	padding: 8px 12px;
	border-radius: 999px;

	background: rgba(0, 0, 0, 0.72);
	color: white;

	font-size: 14px;
}

body.edit-mode #editBadge {
	display: block;
}

#errorBox {
	display: none;
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 50;

	transform: translate(-50%, -50%);
	max-width: 80vw;
	padding: 18px 24px;

	background: rgba(255, 255, 255, 0.95);
	color: #b00020;
	border: 2px solid #b00020;
	border-radius: 12px;

	font-family: Arial, sans-serif;
	font-size: 18px;
	text-align: center;
}
