/* Font */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;700&display=swap');

body {
	font-family: 'IBM Plex Mono', monospace;
	font-weight: 400;
	font-size: 14px;
	line-height: 1.5em;
	background-color: #000;
	color: #fff;
	margin: 0;
	padding: 1px 4px;
}

h1, h2, h3 {
	margin: 48px 0 0 0;
}

a {
	color: #fff;
	text-decoration: underline;
}

a:visited {
	color: #fff;
}

/* Labels */
header {
	margin: 48px 0 0 0;
}

header.top {
	margin-top: 0;
	margin-bottom: 16px;
}

header a,
header a:visited,
.label a,
.label a:visited,
a.label,
a.label:visited
 {
	text-decoration: none;
	color: #202124;
}

.title,
.label {
	color: #202124;
	background-color: #fff;
	margin: 1px 0;
	line-height: 1.25em;
	display: table;
	font-weight: 700;
	border-radius: 4px;
}

.title {
	font-size: 16px;
	padding: 4px 8px;
}

.label {
	font-size: 10px;
	padding: 2px 8px;
}

.labels a {
	text-decoration: none;
}

.brand {
	background-color: #ffee00;
}

ul.labels {
	margin: 0;
	padding: 0;
}

/* Flash alert thing */
.flash {
	background-color: #fff;
	color: #202124;
	padding: 16px 8px;
	margin: 32px 0 16px 0;
}

/* Share thing */
.share {
	background-color: #ffee00;
	color: #202124;
	padding: 0 8px;
	margin: 0 8px;
	position: fixed;
	bottom: 8px;
	left: 0px;
	width: calc(100% - 32px);
	text-align: center;
	z-index: 1;
}

.share a {
	color: #000;
	text-decoration: underline;
}

.share a :visited {
	color: #fff;
}

/* Photos */

.container {
	display: flex;
	flex-wrap: wrap;
}

.photo img {
	width: 100%;
	display: block;
	border-radius: 4px;
}

.teaser {
	color: #202124;
	padding: 0 32px;
	padding-top: 66.66%;
	background-color: #fff;
	position: relative;
	display: block;
	border-radius: 4px;
	font-size: 18px;
	line-height: 1.5em;
}

.teaser.teaser-cta {
	background-color: #ffee00;
}

.teaser p {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.teaser-cta {
	text-align: center;
	font-size: 16px;
}

/* Upload */

button.primary {
	display: block;
	position: relative;
	width: 172px;
	height: 52px;
	text-align: center;
	border: 2px solid #000;
	border-radius: 6px;
	background-color: #ffee00;
	padding: 8px 24px;
	font-weight: 700;
	line-height: 32px;
	cursor: pointer;
	margin: auto;
	color: #000;
}

button.primary span {
	font-size: 32px;
	margin: 0 8px 0 0;
	float: left;
	color: #000;
}

button.primary::after {
	content: "";
	display: block;
	position: absolute;
	top: 2px;
	left: 2px;
	z-index: -1;
	width: 168px;
	height: 48px;
	border: 2px solid #000;
	border-radius: 6px;
	background-color: #ffee00;
}

.upload-cta {
	position: relative;
	margin: 16px 0 48px 0;
	text-align: center;
}

.upload-arrow {
	position: absolute;
	top: -32px;
	left: calc(50% + 108px);
}

.explainer {
	text-align: center;
	margin: 32px 0;
}

ol {
	margin: 0;
	padding: 0 0 0 32px;
}

.bottom-button {
	position: fixed !important;
	bottom: -100px;
	left: calc(50% - 86px);
	transition: all 0.25s ease-out;
}

.show-bottom-button .bottom-button {
	bottom: 32px;
}

/* Loading message */

.loading {
	display: none;
}

.body-loading {
	overflow: hidden;
	width: 100vw;
	height: 100vh;
	margin: 0;
	padding: 0;
}

.body-loading .loading {
	position: absolute;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	width: 100vw;
	height: 100vh;
	z-index: 1;
	background-color: #000;
}

.loading div {
	margin: 16px;
}

.spinner {
	font-size: 32px;
}

.spinner:before {
	content: "\\";
	animation: asciSpinner 0.33s infinite 0s;
}

@keyframes asciSpinner {
	0% {
		content: "\\";
	}
	25% {
		content: "|";
	  }
	50% {
		content: "⁄";
	}
	75% {
		content: "–";
	}
}

/* Responsive */

p {
	margin: 16px 0 16px 0;
	max-width: 640px;
}

.photo {
	width: 100%;
	margin: 16px 0 16px 0;
	position: relative;
}

footer {
	background-color: #000;
	margin: 64px 0 0 0;
	padding: 0 0 96px 0;
	border-radius: 4px 4px 0 0;
}

/* Horizontal iPhone SE first edition */
@media (min-width: 568px) {

	body {
		padding: 1px 16px;
	}

	header {
		margin-left: 16px;
	}

	.col-flex {
		flex-direction: row;
	}

	.flash {
		margin: 32px 16px 16px 16px;
	}

	.photo,
	p {
		margin: 16px;
	}

	h1, h2, h3 {
		margin: 48px 16px 0px 16px;
	}

	.photo-responsive {
		width: calc(50% - 32px);
	}

	footer {
		margin: 64px -16px 0 -16px;
		padding: 0 16px 96px 16px;
	}

}

@media (min-width: 1200px) {

	.photo-responsive {
		width: calc(33% - 32px);
	}
}