/* Demo page chrome (not needed to use iView) */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	min-height: 100%;
	background: #0d1114 url('img/bckg.jpg') center / cover fixed no-repeat;
}

body {
	margin: 0;
	color: #fff;
	font: 14px/1.5 'Ubuntu', system-ui, -apple-system, 'Segoe UI', Roboto, Tahoma, sans-serif;
}

a {
	color: #d0d9de;
	text-decoration: none;
}

a:hover {
	color: #fff;
}

/* Top bar */
.demo-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: url('img/topbar.png') repeat-x;
	background-size: auto 100%;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
}

.demo-header .inner {
	display: flex;
	align-items: center;
	gap: 16px;
	max-width: 1004px;
	margin: 0 auto;
	padding: 0 12px;
}

.demo-header h1 {
	margin: 0;
	font-size: 16px;
	white-space: nowrap;
}

.demo-header h1 a {
	color: #eee;
}

.demo-header nav {
	flex: 1;
	overflow-x: auto;
	scrollbar-width: none;
}

.demo-header nav::-webkit-scrollbar {
	display: none;
}

.demo-header ul {
	display: flex;
	width: max-content;
	margin: 0;
	margin-inline-start: auto;
	padding: 0;
	list-style: none;
}

.demo-header li a {
	display: block;
	padding: 0 14px;
	line-height: 37px;
	white-space: nowrap;
	border-left: 1px solid #191919;
	border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.demo-header li a:hover {
	background: url('img/topbar-hover.png');
}

.demo-header li.active a {
	background: url('img/topbar-active.png');
	color: #fff;
}

/* Page body */
.page {
	max-width: 930px;
	margin: 0 auto;
	padding: 0 10px;
}

.demo-intro {
	max-width: 900px;
	margin: 28px auto 0;
	color: #d6dde1;
	text-shadow: 0 1px 0 #111;
}

.demo-intro h2 {
	margin: 0 0 4px;
	font-size: 20px;
	color: #fff;
}

.demo-intro p {
	margin: 0;
}

.demo-intro code,
.demo-api code {
	padding: 1px 5px;
	border-radius: 3px;
	background: rgba(0, 0, 0, 0.45);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 12px;
}

.demo-api {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 10px auto 30px;
}

.demo-api strong {
	margin-inline-end: 4px;
}

.demo-api button {
	padding: 7px 14px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font: inherit;
	cursor: pointer;
}

.demo-api button:hover {
	background: rgba(0, 0, 0, 0.8);
}

.demo-log {
	max-width: 900px;
	min-height: 1.5em;
	margin: 0 auto 30px;
	color: #b8c4ca;
	text-align: center;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 12px;
}

.copy {
	padding: 10px 0 30px;
	text-align: center;
	text-shadow: #111 1px 1px 0;
}

sup {
	font-size: 0.4em;
}

/* The skins were designed with a line-height of 100%. */
.iview-caption {
	line-height: 1;
}
