/* GENERAL ========================================= */

/* Zero default margin & padding around common elements */
article, blockquote, body, dd, dl, dt, fieldset, figure, form, h1, h2, h3, h4, h5, h6, header, li, menu, nav, ol, p, section, ul {
	margin: 0;
	border: 0 none #FFFFFF;
	padding: 0;
}

html {
	height: 100%;
}

body {
	width: 100%;
	height: 100%;
	overflow: hidden;
	background-color: #ffffff;
	color: rgba(0,0,0,0.8);
	line-height: 1.5;
	font-family: sans-serif;
	font-size: 100%;
	text-align: left;
	transition: all 0.3s linear;
}

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

a:visited {
	color: #ffffff;
}

a:hover {
	text-decoration: none;
	opacity: 0.5;
}

img {
	border: 0 none transparent;
}

input, select, table, textarea, a.button {
	color: #464749;
	font-size: 100%;
	font-family: sans-serif;
	-webkit-appearance: none;
}




/* CONTENT ========================================= */

header {
	position: fixed;
	display: flex;
	flex-direction: row;
	width: 100%;
}

h1 {
	width: 100%;
	font-size: 170%;
	padding-left: 0.5em;
	line-height: 70px;
}

.submitted h1 {
	width: auto;
}

h1 a,
h1 a:visited {
	padding-left: 2em;
	background-image: url(../images/logo_screenshot_tweet.svg);
	background-repeat: no-repeat;
	background-position: 0 50%;
	background-size: contain;
	color: rgba(0,0,0,0.8);
	text-decoration: none;
}

h1 a:hover {
	text-decoration: underline;
}

#headerAboutLink {
	display: block;
	position: relative;
	margin-right: 3.2em;
	color: rgba(0,0,0,0.8);
	text-decoration: none;
	text-align: right;
	line-height: 70px;
	white-space: nowrap;
}

.submitted #headerAboutLink {
	display: none;
}

#headerAboutLink:after {
	content: '?';
	position: absolute;
	right: -2.2em;
	top: 50%;
	width: 1.6em;
	height: 1.6em;
	overflow: hidden;
	border-radius: 50%;
	background-color: rgba(0,0,0,0.1);
	color: rgba(0,0,0,0.8);
	text-align: center;
	line-height: 1.5;
	transform: translateY(-50%);
}

header form {
	display: none;
	flex-grow: 1;
	padding-right: 1em;
	padding-top: 0.9em;
	text-align: right;
	opacity: 0;
	transition: opacity 0.6s linear;
}

.submitted header form {
	display: block;
	opacity: 1;
}

header input[type=text] {
	height: 2.55em;
	border-bottom-width: 1px;
	border-bottom-color: rgba(0,0,0,0.4);
	border-radius: 0;
	color: rgba(0,0,0,0.8);
	font-size: 100%;
}

header input[type=text]:hover,
header input[type=text]:focus {
	border-color: rgba(0,0,0,0.8);
}

header input[type=text]::-webkit-input-placeholder {
	color: rgba(0,0,0,0.4);
}

header input[type=text]::-moz-placeholder {
	color: rgba(0,0,0,0.4);
}

header input[type=text]:-ms-input-placeholder {
	color: rgba(0,0,0,0.4);
}

header input[type=text]::placeholder {
	color: rgba(0,0,0,0.4);
}

header input[type=submit],
#saveImage {
	height: 2.67em;
	margin-left: 0.7em;
	border: 1px solid rgba(0,0,0,0.8);
	border-radius: 3px;
	background-color: transparent;
	color: rgba(0,0,0,0.8);
	font-size: 100%;
}

header input[type=submit].shorter {
	display: none;
}

#saveImage {
	border: 0 none transparent;
	padding-left: 2.8em;
	background-color: rgba(0,0,0,0.8);
	background-image: url(../images/icon_download.svg);
	background-repeat: no-repeat;
	background-position: 0.85em 45%;
	background-size: auto 1.4em;
	color: #ffffff;
	font-size: 100%;
}

#intro {
	position: fixed;
	left: 0;
	right: 0;
	top: 70px;
	bottom: 0;
	background-color: #C33764;
	background-image: linear-gradient(to bottom right, #C33764, #1D2671);
}

#intro form {
	display: flex;
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -80%);
}

input[type=text] {
	width: 15em;
	height: 2em;
	box-sizing: border-box;
	border: 0 none transparent;
	border-bottom: 3px solid rgba(255,255,255,0.5);
	border-radius: 0;
	padding: 0;
	outline: none;
	background-color: transparent;
	color: rgba(255,255,255,1);
	font-size: 200%;
	transition: all 0.1s linear;
}

input[type=text]:hover,
input[type=text]:focus {
	border-color: rgba(255,255,255,1);
}

input[type=text]::-webkit-input-placeholder {
	color: rgba(255,255,255,0.5);
}

input[type=text]::-moz-placeholder {
	color: rgba(255,255,255,0.5);
}

input[type=text]:-ms-input-placeholder {
	color: rgba(255,255,255,0.5);
}

input[type=text]::placeholder {
	color: rgba(255,255,255,0.5);
}

input[type=submit],
button {
	height: 2.67em;
	box-sizing: border-box;
	margin-left: 1em;
	border: 0 none transparent;
	border-radius: 5px;
	outline: none;
	padding: 0 1em;
	background-color: #ffffff;
	color: rgba(0,0,0,0.8);
	font-size: 150%;
	cursor: pointer;
}

.submitting input[type=submit] {
	color: rgba(0,0,0,0);
	background-image: url(../images/loading.gif);
	background-size: 32px;
	background-position: 50% 50%;
	background-repeat: no-repeat;
}

header .submitting input[type=submit] {
	background-size: 24px;
}

#examples {
	position: fixed;
	bottom: 20px;
	left: 50%;
	width: 80%;
	max-width: 500px;
	color: #ffffff;
	text-align: center;
	transform: translateX(-50%);
}

#examples ul {
	display: flex;
	margin-top: 0.7em;
	list-style: none;
}

#examples li {
	display: inline-block;
	margin: 0 1em 0 0;
}

#examples li:nth-child(2) {
	margin: 0 0.5em;
}

#examples li:nth-child(3) {
	margin: 0 0 0 1em;
}

#examples a {
	display: block;
	transition: transform 0.15s ease-in-out;
}

#examples img {
	display: block;
	width: 100%;
	border: 1px solid #ffffff;
	border-radius: 3px;
}

.page {
	position: fixed;
	left: 0;
	right: 0;
	top: 70px;
	bottom: 0;
	background-color: #C33764;
	background-image: linear-gradient(to bottom right, #C33764, #1D2671);
	color: #000000;
	animation: fadeIn 0.3s linear;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

#limbo .page {
	position: absolute;
}

#pageTemplate {
	opacity: 0;
	pointer-events: none;
	animation: none;
}

.pageImage {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: 50%;
	opacity: 0.1;
	/*filter: grayscale(1);*/
}

.tweet {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 40em;
	min-height: 5em;
	box-sizing: border-box;
	border-radius: 0.6em;
	padding: 1.8em 2.5em 2.5em 2.5em;
	background-color: #ffffff;
	font-size: 120%;
	line-height: 1.4;
	transform: translate(-50%, -50%);
}

blockquote {
	font-size: 180%;
	font-weight: normal;
}

blockquote cite {
	display: block;
	margin-top: 1em;
	font-size: 60%;
	font-weight: bold;
	font-style: normal;
}

cite .handle {
	font-weight: normal;
	opacity: 0.5;
}

cite img {
	float: left;
	margin: 0 1em 0 0;
	height: 3em;
	border-radius: 0.2em;
}

.tweet a,
.tweet a:visited {
	color: #1EA8E3;
	text-decoration: none;
}

.tweet .date a,
.tweet .date a:visited {
	color: #000000;
}

.tweet .media img {
	display: block;
	width: 100%;
	margin-top: 0.5em;
	border-radius: 0.3em;
	border-radius: 0.3em;
}

#testImage {
	position: absolute;
	left: -9999px;
	top: -9999px;
}

#aboutLink {
	display: none;
	position: fixed;
	right: 3.2em;
	bottom: 1.2em;
	z-index: 101;
	color: #ffffff;
	text-decoration: none;
	-webkit-perspective: 500px;
	-moz-perspective: 500px;
	-ms-perspective: 500px;
	perspective: 500px;
}

.submitted #aboutLink {
	display: block;
}

#aboutLink:hover {
	text-decoration: underline;
	opacity: 1;
}

#aboutLink:after {
	content: '?';
	position: absolute;
	right: -2.2em;
	top: 50%;
	width: 1.6em;
	height: 1.6em;
	overflow: hidden;
	border-radius: 50%;
	background-color: #ffffff;
	color: rgba(0,0,0,0.8);
	text-align: center;
	transform: translateY(-50%);
}

.showAbout #aboutLink:after,
.showAbout #headerAboutLink:after {
	content: '×';
}

#aboutLink .off,
#headerAboutLink .off {
	display: none;
}

.showAbout #aboutLink .off,
.showAbout #headerAboutLink .off {
	display: block;
}

.showAbout #aboutLink .on,
.showAbout #headerAboutLink .on {
	display: none;
}

#touchInstructions {
	display: none;
	position: fixed;
	left: 10%;
	right: 10%;
	bottom: 1em;
	z-index: 10;
	border-radius: 3px;
	padding: 1em;
	background-color: rgba(0,0,0,0.15);
	color: #ffffff;
	font-size: 16px;
	line-height: 1.2;
	text-align: center;
	pointer-events: none;
}

#about {
	position: fixed;
	left: 0;
	right: 0;
	top: 70px;
	bottom: 0;
	z-index: 10;
	background-color: #C33764;
	background-image: linear-gradient(to bottom right, #C33764, #1D2671);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.5s linear;
}

.showAbout #about {
	opacity: 1;
	pointer-events: auto;
}

#about p {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 50%;
	color: #ffffff;
	font-size: 24px;
	transform: translate(-50%, -50%);
}

#limbo {
	position: absolute;
	left: 0;
	top: 0;
	width: 1920px;
	height: 1080px;
	font-size: 200%;
	opacity: 0;
	pointer-events: none;
}

#limbo .page {
	top: 0;
}

#limbo .tweet {
	font-size: 28px;
}

#touchImage {
	position: fixed;
	left: 0;
	top: 70px;
	z-index: 100;
	opacity: 0;
	pointer-events: none;
}

.isSafari #touchImage {
	pointer-events: auto;
}
