@import url('https://fonts.googleapis.com/css?family=Karla');

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

html, body, div,
main, section, article,
figure, figcaption, img,
nav, header, footer,
h1, h2, h3, h4, h5, h6,
p, a, input, button, ul, li {
	margin: 0;
	padding: 0;
	border: 0;
	font: inherit;
	color: inherit;
	letter-spacing: inherit;
	vertical-align: baseline;
	text-decoration: none;
	background: inherit;
}

input,
button {
	-webkit-appearance: none;
	appearance: none;
	outline: none;
}

ul, li {
	list-style: none;
}

.hidden {
	display: none!important;
}

.faded {
	opacity: 0;
}

.disabled {
	opacity: 0.5;
	pointer-events: none;
}

.noselect {
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;  
	user-select: none;
}

.divider {
	text-align: center;
	line-height: 0.5em;
}

.divider::before,
.divider::after {
	content: '';
	display: inline-block;
	width: 2%;
	height: 0.2em;
	border-top: solid #161616 1px;
	margin: 0 0.5em;
}

.fluid {
	width: 100%;
}

.input,
.button,
.message {
	display: block;
	position: relative;
	padding: 0.6em 0.8em 0.63em;
	box-sizing: border-box;
	background-color: #fff;
	border: solid #eaeaea 1px;
	border-radius: 5px;
	box-sizing: border-box;
}

.button {
	background-color: #eaeaea;
}

.button:active {
	background-color: #fff;
}

.message {
	display: flex;
	flex-direction: row;
	padding: 0.9em 1.1em 0.94em;
}

.message.warning {
	background-color: #fbeaea;
	border-color: #e6bcbc;
	color: #924040;
	font-weight: bolder;
}

.message .icon {
	width: 20%;
	margin-right: 12px;
}

.message h3 {
	font-size: 1.2em;
	font-weight: bolder;
	margin-bottom: 0.3em;
}

.button {
	text-align: center;
	cursor: pointer;
}

.action {
	display: flex;
	flex-direction: row;
}

.action input {
	width: 70%;
	border-right: none;
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
}

.action .button {
	width: 30%;
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
}

.icon {
	display: inline-block;
	width: 1em;
	height: 1em;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
}

.icon.load {
	background-image: url(/assets/icons/load.svg);
	animation: rotate 2s linear infinite;
}

.icon.play {
	background-image: url(/assets/icons/play.svg);
}

.icon.pause {
	background-image: url(/assets/icons/pause.svg);
}

.icon.twitter {
	background-image: url(/assets/icons/twitter.svg);
}

.icon.qosmo {
	background-image: url(/assets/icons/qosmo.ico);
}

.icon.arrow,
.icon.arrow.bottom {
	border-left: solid #161616 1px;
	border-bottom: solid #161616 1px;
	transform: rotate(-45deg);
	box-sizing: border-box;
}

.icon.arrow.left {
	transform: rotate(45deg);
}

.icon.arrow.right {
	transform: rotate(-135deg);
}

.icon.arrow.top {
	transform: rotate(135deg);
}

body {
	background-color: #fafafa;
	font-family: 'Karla', Arial, sans-serif;
	font-size: 14px;
	color: #161616;
}

#form {
	position: fixed;
	width: 500px;
	top: 50px;
	left: calc(50vw - 250px);
}

#form form {
	padding: 0 100px;
}

#form form > div {
	margin-bottom: 10px;
}

#form header {
	text-align: center;
	font-size: 1.5em;
	overflow-x: visible;
	margin-bottom: 70px;
}

#form header h1 {
	font-size: 1.5em;
	font-weight: bolder;
	margin-bottom: 60px;
}

#form header h1 .icon {
	width: 0.75em;
	height: 0.75em;
	margin-right: 0.5em;
	position: relative;
	top: 0.06em;
}

#form header h2 {
	margin-bottom: 0.2em;
}

#form header p {
	font-size: 0.7em;
}

#form header p a {
	margin: 0 0.2em;
	padding-bottom: 0.1em;
	border-bottom: solid #161616 1px;
}

#showcase {
	position: absolute;
	top: calc(100% - 150px);
	left: calc(50vw - 250px);
	width: 500px;
	padding-bottom: 100px;
	background-color: #fafafa;
}

#showcase::before {
	content: '';
	display: block;
	position: absolute;
	top: -15vh;
	height: 15vh;
	width: 100%;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #fafafa 100%);
}

#showcase header {
	text-align: center;
	margin-bottom: 100px;
	font-size: 1.5em;
	cursor: pointer;
}

#showcase header h2 {
	font-size: 1.5em;
}

#showcase header .icon {
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-top: 1em;
	transition: opacity 0.5s;
}

.sample {
	display: flex;
	flex-direction: row;
	align-items: center;
	width: 100%;
	height: 80px;
	margin-bottom: 20px;
	letter-spacing: 0.02em;
	border-top-right-radius: 5px;
	border-bottom-right-radius: 5px;
}

.sample:hover {
	background-color: #eaeaea;
}

.sample figure {
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	width: 25%;
	height: 100%;
}

.sample figcaption {
	width: 75%;
	padding: 0 15px 4px;
}

.sample h3 {
	font-size: 1.1em;
	margin-bottom: 2px;
	font-weight: bolder;
}

.sample p {
	font-style: italic;
}

#view header #back,
#view header #share {
	position: absolute;
	top: 2vh;
}

#view header #back {
	left: 2.5vh;
}

#view header #back .icon {
	width: 0.5em;
	height: 0.5em;
	margin-right: 0.5em;
	position: relative;
	bottom: 0.07em;
}

#view header #share {
	right: 2.5vh;
}

#view header #share .icon {
	width: 1.2em;
	height: 1.2em;
}

#image-frame {
	position: absolute;
	width: 70vw;
	height: 70vh;
	top: 10vh;
	left: 15vw;
	display: flex;
	align-items: center;
	justify-content: center;
}

#image {
	display: block;
	width: 0;
}

#sound-controls {
	position: fixed;
	width: 40px;
	height: 20px;
	bottom: 4vh;
	left: calc(50% - 20px);
	cursor: pointer;
}

@media (max-width: 425px) {
	#form {
		width: 90vw;
		left: 5vw;
		top: 30px;
	}

	#form header {
		font-size: 1.15em;
		margin-bottom: 60px;
	}

	#form header h1 {
		margin-bottom: 30px;
	}

	#form form {
		padding: 0;
	}

	#showcase {
		top: calc(100% - 110px);
	}

	#showcase::before {
		top: -10vh;
		height: 10vh;
	}
	
	#showcase header {
		font-size: 1.2em;
	}

	#image-frame {
		top: 7vh;
	}
}

@media (max-width: 540px) {
	#showcase {
		left: 5vw;
		width: 90vw;
	}
}

