h2 {
	margin-bottom: 0.5em;
}

body :target {
	background-color: #ffa;
}

body #help:target {
	background-color: inherit;
	box-shadow: none;
}

#help-contents {
	display: inline-block;
	font-size: 22px;
	margin-bottom: 0;
	cursor: pointer;
}

#help details.help-contents {
	margin-left: 6.5vw;
}

#help details.help-contents h2 {
	margin-left: 0;
}

details[open] summary #help-contents {
	margin-bottom: 0.25em;
}

.help-contents ul {
	margin-top: 0;
}

.below-shadow-screenshot {
	margin-top: -20px;
}

ul.below-shadow-screenshot {
	margin-top: -35px;
}

div.screenshot img,
div.screenshot picture,
.app-icon img,
.app-store-badge img {
	display: block;
	margin: auto;
	clear: both;
}

div.screenshot.palettes img {
	display: block;
	margin: 1em 0;
}

div.caption {
	border-bottom: none;
	text-align: center;
}

#screenshot {
	--screenshot-dot: #bbb;
	--screenshot-active-dot: #555;
	--screenshot-arrow: #333;
	display: grid;
	grid-template-columns: 1fr repeat(4, 32px) 1fr;
	row-gap: 8px;
}

/* Native radio buttons provide both the dots and keyboard navigation */
.screenshot-choice {
	-webkit-appearance: none;
	appearance: none;
	grid-row: 2;
	box-sizing: border-box;
	width: 32px;
	height: 32px;
	margin: 0;
	border: 11px solid transparent;
	border-radius: 50%;
	background-color: var(--screenshot-dot);
	background-clip: padding-box;
	cursor: pointer;
}

.screenshot-choice:checked {
	background-color: var(--screenshot-active-dot);
}

.screenshot-choice:focus-visible {
	outline: 2px solid var(--screenshot-active-dot);
	outline-offset: -5px;
}

#screenshot-1 {
	grid-column: 2;
}

#screenshot-2 {
	grid-column: 3;
}

#screenshot-3 {
	grid-column: 4;
}

#screenshot-4 {
	grid-column: 5;
}

.screenshot-viewport {
	position: relative;
	grid-area: 1 / 1 / 2 / -1;
	min-width: 0;
}

.screenshot-slide {
	display: none;
}

#screenshot-1:checked ~ .screenshot-viewport #screenshot-slide-1,
#screenshot-2:checked ~ .screenshot-viewport #screenshot-slide-2,
#screenshot-3:checked ~ .screenshot-viewport #screenshot-slide-3,
#screenshot-4:checked ~ .screenshot-viewport #screenshot-slide-4 {
	display: block;
}

#screenshot img {
	width: 100%;
	height: auto;
}

.screenshot-frame {
	position: relative;
	overflow: hidden;
	scrollbar-width: none;
}

.screenshot-frame::-webkit-scrollbar {
	display: none;
}

.screenshot-zoom {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: inherit;
	font: inherit;
	cursor: zoom-in;
	touch-action: manipulation;
	user-select: none;
	-webkit-user-select: none;
}

.screenshot-zoom:disabled {
	cursor: default;
}

.screenshot-zoom:not(:disabled) {
	touch-action: pan-x pan-y;
}

.screenshot-zoom:focus {
	outline: none;
}

.screenshot-frame.is-zoomed {
	overflow: auto;
	overscroll-behavior: none;
	cursor: grab;
}

.screenshot-frame.is-zoomed .screenshot-zoom {
	position: absolute;
	top: 0;
	left: 0;
	width: var(--screenshot-zoom-width);
	cursor: grab;
}

.screenshot-frame.is-dragging,
.screenshot-frame.is-dragging .screenshot-zoom {
	cursor: grabbing;
}

.screenshot-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	visibility: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background-color: rgba(160, 160, 160, 0.55);
	color: var(--screenshot-arrow);
	cursor: pointer;
	user-select: none;
}

.screenshot-viewport:hover .screenshot-arrow {
	visibility: visible;
}

.screenshot-arrow svg {
	display: block;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.screenshot-arrow:hover {
	background-color: rgba(160, 160, 160, 0.8);
}

.screenshot-previous {
	left: 12px;
}

.screenshot-next {
	right: 12px;
}

div.image.screenshot.settings {
	margin-top: -30px;
	margin-bottom: -35px;
}

p + div.image.screenshot.settings,
div.image.screenshot.settings + p {
	z-index: 1
}

.app-icon-right {
	float: right;
	margin: 9px 0 0 10px;
}

.app-store-badge {
	margin-top: 25px;
	margin-bottom: 25px;
}

.top-download-button {
	text-align: center;
	margin: 25px 0 20px 0;
}

.middle-download-button {
	text-align: center;
	margin: 15px 0 10px 0;
}

.top-download-button small,
.middle-download-button small {
    font-weight: bold;
    display: block;
    margin-top: 5px;
    font-size: 14px;
}

.download-button:active {
    background-color: #0072eb;
	background-image: linear-gradient(to bottom, #127dea, #0478eb, #0072eb, #006ceb, #0066eb);
}

.download-button,
a.download-button,
a.download-button:visited {
    background-color: #3e85f6;
    background-image: linear-gradient(to bottom, #498ef7, #4389f7, #3d83f7, #377ef7, #3378f6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 19px;
    border-radius: 14px;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    border: none;
    outline: none;
    text-decoration: none;
    /* min-height: 44px; */
    white-space: nowrap;
    font-weight: 600;
    color: white;
}

#releases-separator {
	margin-top: 30px;
	margin-bottom: 24px;
}

#help-separator {
	margin: 24px 0;
}

.releases dd ul {
	padding-left: 0;
}

p.q {
	font-weight: bold;
}

h3.question, h3.information, h4 {
	padding: 0;
	font: bold 11pt Avenir, 'Segoe UI', 'Lucida Grande', Lucida, Verdana, sans-serif;
	line-height: 1.5;
}

/*
h3.question {
	margin-left: 1.5em;
	text-indent: -1.5em;
}
*/

#show-more-releases {
	display: none;
}

.file-content-hashes td {
	vertical-align: baseline;
}

.file-content-hashes td.label {
	font-weight: bold;
	text-align: right;
	color: #808080;
}

.file-content-hashes .hash {
	font: 9pt Monaco, Menlo, Consolas, monospace;
	overflow-wrap: anywhere;
}

hr.settings-divider {
    margin-top: 2em;
    margin-bottom: 2em;
    opacity: 0.75;
}

.releases dd,
.releases dd li,
#help .answer li ul,
#help .answer li {
	margin-right: 0;
}

@media only screen and (max-width: 670px) {
	.app-icon-right {
		float: right;
		margin: 0 15px 0 10px;
		margin: 0 6.5vw 0 10px;
	}

	#help .answer ul {
		margin-right: 15px;
		margin-right: 6.5vw;
	}

	#help .answer li ul {
		padding-left: 10px;
	}

	#help details.help-contents ul {
		padding-left: 15px;
	}
}

@media (prefers-color-scheme: dark) {
	#screenshot {
		--screenshot-dot: #666;
		--screenshot-active-dot: #ddd;
		--screenshot-arrow: #fff;
	}

	body :target {
		background-color: #606000;
		box-shadow: 0 0 0px 5px #5d5d04;
	}

	body .releases :target {
		box-shadow: none;
	}
}
