body{
	background:#fefefe;
	color:#5e5e5e;
	font-family: "Lucida Grande","Helvetica Neue",Helvetica,Arial,sans-serif;
	font-size:16px;
	font-weight:300;
	line-height:22px;
	margin: 0;
	padding: 0;
}

.main-content {
	width: 100%;
	max-width: 800px;
	padding: 0 20px;
	box-sizing: border-box;
}

p{font-size:16px; margin: 4px 0 18px;}

h1, h2, h3, h4{ color:#5e5e5e;}
h1{font-size:38px; font-weight:300; line-height:38px; margin-left:-1px; margin-bottom:22px;}
h2{font-size:26px; font-weight:300; line-height:26px; margin-left:-1px; margin-bottom:18px;}
h3{font-size:16px; font-weight:bold; line-height:24px; margin: 4px 0 -4px;}
h4{font-size:16px; font-weight:normal; line-height:22px; margin: 3px 0 19px;}

li{
	margin: 0 0 5px 0;
}

#toc1 {
	background:#e8e8e8;
	border-radius: 6px;
	padding-left: 50px;
	padding-top: 20px;
	padding-bottom: 20px;
}

#toc2 {
	background:#e8e8e8;
	border-radius: 6px;
	padding-left: 50px;
	padding-top: 20px;
	padding-bottom: 20px;
}

a:link {
    color: #4e4ebe;
}

a:visited {
    color: #4e4ebe;
}

a:hover {
    color: #0000ff;
}

a:active {
    color: #be4e4e;
}

#platform-container {
	width: 100%;
	text-align: center;
}

#platform-container > span {
	display: block;
	font-weight: bold;
	padding-bottom: 10px;
}

#platform-container select {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 18px;
	padding: 12px 40px 12px 20px;
	border: 1px solid #c4c4c4;
	border-radius: 8px;
	background-color: #f5f5f5;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23555' d='M1.4 0L6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E"),
		linear-gradient(180deg, #ffffff 0%, #f0f0f0 100%);
	background-repeat: no-repeat, no-repeat;
	background-position: right 14px center, 0 0;
	background-size: auto, 100% 100%;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	color: #333;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
}

/* Screenshot container - Desktop layout (annotations left/right) */
.screenshot-container {
	position: relative;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 900px;
	margin: 20px auto;
}

.screenshot-container > div {
	display: none;
}

.screenshot-container > div.active {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	width: 100%;
}

/* Image wrapper */
.screenshot-container .image-wrapper {
	position: relative;
	flex-shrink: 0;
}

.screenshot-container .ios img, .screenshot-container .android img {
	border: 1px solid silver;
}

/* Image sizes are set via JavaScript from SCREENSHOT_SIZES */
.screenshot-container .ios img,
.screenshot-container .tvos img,
.screenshot-container .android img {
	object-fit: fill;
}

/* Annotation areas - Desktop (left/right of image) */
.screenshot-container .annotations-left,
.screenshot-container .annotations-right {
	position: relative;
	width: 200px;
	min-width: 200px;
	max-width: 200px;
	flex-shrink: 0;
	flex-grow: 0;
	align-self: stretch;
	box-sizing: border-box;
}

.screenshot-container .annotations-left {
	text-align: right;
	padding-right: 20px;
}

.screenshot-container .annotations-right {
	text-align: left;
	padding-left: 20px;
}

/* Annotation areas - Mobile (above/below image) */
.screenshot-container .annotations-top,
.screenshot-container .annotations-bottom {
	display: none;
	position: relative;
	width: 100%;
	padding: 10px 0;
	box-sizing: border-box;
}

/* Row elements created by JS should not have padding */
.screenshot-container .annotations-row {
	padding: 0;
}

/* Annotation text */
.annotation-text {
	font-size: 14px;
	line-height: 1.4;
	color: #5e5e5e;
	margin: 0;
	position: absolute;
	max-width: 170px;
	background: rgba(255, 255, 255, 0.8);
	border: 1px solid #ccc;
	border-radius: 4px;
	padding: 4px 6px;
	box-sizing: border-box;
	z-index: 6;
}

/* Annotation marker (dot on image) */
.annotation-marker {
	position: absolute;
	width: 9px;
	height: 9px;
	background: #4e4ebe;
	border: 1px solid white;
	border-radius: 50%;
	box-shadow: 0 1px 2px rgba(0,0,0,0.3);
	transform: translate(-50%, -50%);
	z-index: 10;
}

/* Annotation line (SVG) */
.annotation-line {
	position: absolute;
	pointer-events: none;
	z-index: 5;
}

.annotation-line line {
	stroke: #4e4ebe;
	stroke-width: 2;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
	.main-content {
		padding: 0 15px;
	}

	h1 {
		font-size: 28px;
		line-height: 32px;
	}

	h2 {
		font-size: 22px;
		line-height: 26px;
	}

	#toc1, #toc2 {
		padding-left: 25px;
	}

	/* Screenshot container - Mobile layout (annotations above/below) */
	.screenshot-container {
		flex-direction: column;
		max-width: 100%;
		padding: 0;
	}

	.screenshot-container > div.active {
		flex-direction: column;
		width: 100%;
	}

	/* Hide desktop annotation areas on mobile */
	.screenshot-container .annotations-left,
	.screenshot-container .annotations-right {
		display: none;
	}

	/* Show mobile annotation areas */
	.screenshot-container .annotations-top,
	.screenshot-container .annotations-bottom {
		display: block;
		width: 100%;
	}

	/* Mobile: images and wrapper use full width */
	.screenshot-container .image-wrapper {
		width: 100%;
		display: flex;
		justify-content: center;
	}

	.screenshot-container .ios img,
	.screenshot-container .android img,
	.screenshot-container .tvos img {
		width: 100% !important;
		max-width: 100%;
		height: auto !important;
	}
}