@import url(//fonts.googleapis.com/css?family=Nunito:300);
@import url(//fonts.googleapis.com/css?family=Source+Sans+Pro:400,700,400italic,700italic);

@keyframes rotate
{
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@-webkit-keyframes rotate
{
    from { -webkit-transform: rotate(0deg); }
    to { -webkit-transform: rotate(360deg); }
}

@keyframes heartbeat
{
	0% { background-size: 32px }
	25% { background-size: 40px }
	50% { background-size: 36px }
	75% { background-size: 40px }
	100% { background-size: 32px }
}

@-webkit-keyframes heartbeat
{
	0% { background-size: 32px }
	25% { background-size: 40px }
	50% { background-size: 36px }
	75% { background-size: 40px }
	100% { background-size: 32px }
}

body
{
	font: 16px "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
	color: #3f3f3f;
	background: #b17c51 url('../img/bg.jpeg');
	margin: 0;
}

body > .container
{
	width: 80%;
	margin: 2% auto;
	position: relative;
}

a
{
	color: #127aee;
	text-decoration: none;
	font-weight: bold;
}

a:hover
{
	text-decoration: underline;
}

a.icon img
{
	opacity: 0.2;
}

h1, h2, h3
{
	font-family: "Nunito", "Helvetica Neue", Arial, sans-serif;
	font-weight: normal;
	line-height: 120%;
	color: black;
}

h1
{
	font-size: 24px;
}

h2
{
	font-size: 24px;
}

h3
{
	font-size: 18px;
}

h2 a, h3 a
{
	font-weight: normal;
}

img
{
	border: none;
}

section
{
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	float: left;
}

section p:first-child
{
	margin-top: 0;
}

.paper
{
	background: white;
	background: white linear-gradient(to bottom right, white, #f0f0f0);
	padding: 10px 20px 20px 20px;
	box-shadow: 0 5px 5px hsla(0, 0%, 0%, 0.3), inset 0 0 5px hsla(0, 0%, 0%, 0.3);
	border-radius: 2px;
}

.paper:before
{
	content: '';
	width: 16px;
	height: 16px;
	background: #e62e2e;
	background: #e62e2e radial-gradient(circle 32px at 8px 4px, #e62e2e, #330a0a);
	box-shadow: 0 2px 5px hsla(0, 0%, 0%, 0.25);
	display: block;
	position: relative;
	z-index: 2;
	margin: 0px auto 10px auto;
	border-radius: 8px;
}

.paper.highlight
{
	background: #ffffe6;
	background: #ffffe6 linear-gradient(to bottom right, #ffffe6, #f2f2b6);
}

.paper.bluepin:before
{
	background: #2e6be6;
	background: #2e6be6 radial-gradient(circle 32px at 8px 4px, #2e6be6, #0a1833);
}

.paper.greenpin:before
{
	background: #2ee62e;
	background: #2ee62e radial-gradient(circle 32px at 8px 4px, #2ee62e, #0a330a);
}

.smaller
{
	font-size: 14px;
}

#intro
{
	width: 60%;
	margin-bottom: 2%;
}

#intro img
{
	float: left;
}

#intro h1
{
	font-size: 24px;
	margin-top: 0;
	margin-left: 160px;
}

#intro p
{
	margin-left: 160px;
}

#intro h1 + p
{
	margin-top: 0;
}

#quickLinks
{
	margin-left: 2%;
	width: 38%;
}

#quickLinks div.paper
{
	margin-bottom: 6%;
	width: 60%;
}

#quickLinks div.paper:first-child
{
	margin-left: 29%;
}

#quickLinks div.paper img
{
	float: left;
}

#quickLinks div.paper > h3, #quickLinks div.paper > p
{
	margin-left: 46px;
}

#quickLinks h3
{
	margin: 0;
}

#quickLinks h3 + p
{
	margin-top: 0;
}

#quickLinks div.paper .love
{
	margin-left: 0;
	margin-top: 2em;
	margin-bottom: 0;
	background: top center url('../img/heart.svg') no-repeat;
	background-size: 32px;
	padding-top: 36px;
	text-align: center;
}

#quickLinks div.paper:hover .love
{
	-webkit-animation: heartbeat 0.5s ease-in-out;
	animation: heartbeat 0.5s ease-in-out;
}

#screenshots
{
	width: 100%;
	margin-bottom: 2%;
}

#screenshots section
{
	width: 23%;
	margin-left: 1%;
	margin-right: 1%;
	padding: 0;
}

#screenshots section:first-child
{
	margin-left: 0;
	margin-right: 2%;
	margin-top: -2%;
}

#screenshots section:nth-child(2)
{
	margin-top: -1%; 
}

#screenshots section:nth-child(3)
{
	margin-top: 2%;
}

#screenshots section:last-child
{
	margin-top: 0;
	margin-left: 2%;
	margin-right: 0;
}

#screenshots .paper:before
{
	top: -4px;
}

#screenshots section img
{
	width: 100%;
	height: auto;
	position: relative;
	margin-top: -26px;
}

#screenshots section a:after
{
	display: block;
	content: attr(data-title);
	background-color: white;
	font-size: 13px;
	font-style: italic;
	font-weight: normal;
	color: #3f3f3f;
	padding: 8px 12px;
}

#screenshots section a:hover:after
{
	color: #127aee;
}

#works
{
	width: 100%;
	margin-bottom: 2%;
}

#works ul
{
	list-style: none;
	margin-left: 0;
	padding-left: 0;
	overflow: auto;
}

#works ul li
{
	float: left;
	width: 20%;
	padding: 0;
	margin: 0 5% 0 0;
}

#works ul li .coverart
{
	position: relative;
	display: block;
	width: 100%;
	padding: 0 0 100% 0;
	margin-bottom: 4%;
	overflow: hidden;
}

#works ul li img
{
	position: absolute;
	bottom: 0;
	width: 100%;
}

#works .controls
{
	float: right;
	margin-top: 0;
}

#works input, #works label
{
	position: relative;
	top: -0.4em;
}

#works .controls .refresh
{
	margin-left: 1em;
}

#works .refresh.working img
{
	animation: rotate 1s linear infinite;
	-webkit-animation: rotate 1s linear infinite;
}

#quotes
{
	width: 41%;
	font-size: 18px;
	margin-left: 2%;
}

#quotes cite
{
	font-style: normal;
}

#quotes cite:before
{
	content: '\2014 ';
}

#twitter
{
	margin: 6% 0 2% 4%;
	width: 53%;
}

#hero
{
	position: relative;
	padding-bottom: 56.25%;
	padding-top: 30px;
	height: 0;
	overflow: hidden;
	margin-bottom: 2%;
	box-shadow: 0 5px 5px hsla(0, 0%, 0%, 0.3);
}

#hero iframe, #hero object, #hero embed
{
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}
