/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
/* End of Meyer Reset CSS */

* {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

img {
	max-width: 100%; /*makes images scale with flexible grids*/
	display: block; /*removes tiny space added in some browsers below images */
}

body {
	background-color: #eee;
	font-size: 16px;
}

.wrapper {
	margin: 0 auto;
	width: 100%;
		max-width: 600px;
}

.account-info {
	background-color: #333;
	color: #eee;
	display: block;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 1.125em;
	padding: 1em;
	text-align: center;
	width: 100%;
}

.account-info a {
	border-bottom: 1px solid #42ade2;
	color: #fff;
	text-decoration: none;
}

header {
	display: block;
}

div.logo {
	display: block;
	margin: 1em auto;
	padding: 0 0.5em;
	text-align: center;
	width: 100%;
		max-width: 400px;
}

div.logo img {
	width: 100%;
		max-width: 400px;
}

div.logo a {
	display: inline-block;
}

header p {
	color: #333;
	cursor: default;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 1.5em;
	line-height: 1.25em;
	padding: 0 0.5em;
}

header p strong {
	font-weight: bold;
}

section#main-search {
	padding: 0 1em;
}

section#main-search form.search-bar {
	margin: 2em auto;
}

section#main-search form.search-bar input {
	background-color: transparent;
	border: 0;
	color: #333;
	font-family: "Libre Baskerville", Georgia, Times, serif;
	font-size: 2.5em;
	width: 100%;
}

section#main-search form.search-bar input:focus {
	outline: 0;
}

section#main-search form.search-bar input::-webkit-input-placeholder {
	color: #ddd;
}

section#main-search form.search-bar input:-moz-placeholder {
	color: #ddd;
}

section#main-search form.search-bar input::-moz-placeholder {
	color: #ddd;
}

section#main-search form.search-bar input:-ms-input-placeholder {
	color: #ddd;
}

div#search-options {
	margin: 1em auto;
	width: 100%;
}

div#search-options div.contain-option {
	display: inline-block;
	margin: 0 auto 1em auto;
	position: relative;
	width: 33%;
}

div#search-options div.contain-option p {
	color: #333;
	cursor: default;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 0.875em;
	text-align: center;
	text-transform: uppercase;
}

div#search-options a.slide-btn {
	background-color: transparent;
	border: 1px solid #42ade2;
	border-radius: 22px;
	cursor: pointer;
	display: block;
	height: 34px;
	margin: 0 auto 0.5em auto;
	padding: 2px;
	position: relative;
	width: 62px;
	-webkit-transition: all 0.2s;
	-moz-transition: all 0.2s;
	-o-transition: all 0.2s;
	-ms-transition: all 0.2s;
	transition: all 0.2s;
}

div#search-options a.slide-btn:hover .slider {
	background-color: #fff;
}

div#search-options .selected {
	background-color: #42ade2 !important;
	-webkit-transition: all 0.2s;
	-moz-transition: all 0.2s;
	-o-transition: all 0.2s;
	-ms-transition: all 0.2s;
	transition: all 0.2s;
}

div#search-options .slider {
	background-color: transparent;
	border: 1px solid #42ade2;
	border-radius: 22px;
	height: 28px;
	margin-left: 0;
	position: absolute;
	vertical-align: middle;
	width: 28px;
	-webkit-transition: all 0.2s;
	-moz-transition: all 0.2s;
	-o-transition: all 0.2s;
	-ms-transition: all 0.2s;
	transition: all 0.2s;
}

div#search-options .selected .slider {
	background-color: #fff !important;
	margin-left: 29px;
	-webkit-transition: all 0.2s;
	-moz-transition: all 0.2s;
	-o-transition: all 0.2s;
	-ms-transition: all 0.2s;
	transition: all 0.2s;
}

section#search-results {
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	margin: 0 1em;
}

section#search-results aside {
	color: #333;
	cursor: default;
	font-size: 1em;
	font-style: italic;
	margin-bottom: 1.5em;
}

section#search-results aside strong {
	font-weight: bold;
}

section#search-results #sort-by {
	cursor: default;
	margin-bottom: 2em;
	margin-left: 1em;
	text-align: right;
}

section#search-results #sort-by p {
	line-height: 1.5em;
}

section#search-results #sort-by p:first-of-type {
	margin-bottom: 0.5em;
}

section#search-results #sort-by a {
	border-bottom: 1px solid #42ade2;
	color: #333;
	display: inline-block;
	font-size: 1.25em;
	text-decoration: none;
}

section#search-results #sort-by a.selected {
	font-weight: bold;
}

section#search-results #sort-by p:first-of-type a:first-of-type,
section#search-results #sort-by p:nth-of-type(2) a:first-of-type {
	margin-left: 0.35em;
}

section#search-results article {
	background-color: #fff;
	border-radius: 12px;
	margin-bottom: 1.5em;
	padding: 1em;
	position: relative;
	text-align: center;
	width: 100%;
}

section#search-results article form {
	display: inline-block;
	margin-right: 1em;
	position: relative;
	vertical-align: middle;
}

section#search-results article form input[type='checkbox'] {
    background-color: #fff;
    border: 2px solid #42ade2;
    border-radius: 8px;
    height:30px;
    width:30px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

section#search-results article form input[type='checkbox']:checked {
    background: -webkit-linear-gradient(#9dd7f3, #42ade2);
    background: -moz-linear-gradient(#9dd7f3, #42ade2);
    background: -o-linear-gradient(#9dd7f3, #42ade2);
    background: -ms-linear-gradient(#9dd7f3, #42ade2);
    background: linear-gradient(#9dd7f3, #42ade2);
    border-color: #fff;
}

section#search-results .doc-image {
	display: inline-block;
	margin-bottom: 1em;
	position: relative;
	vertical-align: middle;
	width: 240px;
}

section#search-results .doc-image img {
	height: auto;
	max-width: 240px;
}

section#search-results .doc-info {
	display: block;
	position: relative;
	vertical-align: middle;
}

section#search-results p {
	line-height: 1.5em;
}

section#search-results .doc-type {
	color: #333;
	font-size: 1em;
	margin-bottom: 0.5em;
}

section#search-results .doc-title {
	font-size: 2.25em;
	font-style: italic;
	font-weight: bold;
	line-height: 1.25em;
	margin-bottom: 0.25em;
}

section#search-results .doc-title a {
	border-bottom: 2px solid #42ade2;
	color: #333;
	text-decoration: none;
}

section#search-results .doc-author {
	font-size: 1.25em;
	margin-bottom: 0.5em;
	margin-top: -0.25em;
}

section#search-results .doc-author strong {
	font-weight: bold;
}

div#checked-options {
	cursor: default;
	font-size: 1.25em;
	margin-bottom: 0 auto 2em auto;
	text-align: center;
	width: auto;
}

div#checked-options ul li {
	display: inline-block;
	margin-bottom: 0.5em;
	margin-top: 0.5em;
}

div#checked-options ul li:first-of-type {
	margin-left: 0;
	margin-right: 0.5em;
}

div#checked-options ul li:last-of-type {
	margin-left: 0.5em;
	margin-right: 0;
}

div#checked-options a {
	border-bottom: 1px solid #42ade2;
	color: #333;
	text-decoration: none;
}

footer {
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	padding: 4em 2em 6em 2em;
	width: 100%;
}

footer nav {
	display: block;
	font-size: 1em;
	margin-bottom: 0.5em;
	text-align: center;
	width: 100%;
}

footer nav li {
	display: inline-block;
	margin: 0 0.5em;
}

footer nav a {
	border-bottom: 1px solid #42ade2;
	color: #333;
	line-height: 2em;
	text-decoration: none;
}

footer p {
	color: #333;
	display: block;
	font-size: 1em;
	text-align: center;
	width: 100%;
}

@media screen and (min-width: 640px) {
	.wrapper {
		max-width: 1200px;
	}
	
	.account-info {
		text-align: right;
	}
	
	header {
		vertical-align: middle;
	}
	
	header div.logo {
		float: left;
		margin-top: 0;
		width: 212px;
	}
	
	header div.logo img {
		max-width: 212px;
	}
	
	header p {
		float: left;
		margin-top: 50px;
		width: 380px;
	}
	
	section#main-search form.search-bar input {
		font-size: 6em;
		margin-top: 0.25em;
	}
	
	div#search-options div.contain-option {
		margin: 2em auto;
		width: 16%;
	}
	
	section#search-results article {
		text-align: left;
	}
	
	section#search-results .doc-image {
		display: inline-block;
		margin-bottom: 0;
		margin-right: 1em;
		width: 80px;
	}
	
	section#search-results .doc-image img {
		max-width: 80px;
	}
	
	section#search-results .doc-info {
		display: inline-block;
	}
}
