html {
	height: 100%;
	box-sizing: border-box;
	overflow-x: hidden;
}

body {
	font-family: 'Open Sans', sans-serif;
	margin: 0;
	padding: 0;
	overflow-x: hidden;
	/*
	background-color: #cccccc;
	background-image: url("../Wolf-of-Wall-Street1.jpg");
	background-position: 0px 150px;
	background-size: 800px 400px;
	background-repeat: no-repeat;
	*/
	text-align: center;
	min-height: 100%;
	position: relative;
}

@media only screen and (max-height:500px) {
	body {
		padding-bottom: 6rem;
	}
}

h1 {
	font-size: 65px;
}

nav {
	padding: 1em;
	height: 3em;
	margin: 0px auto;
}

#navMain {
	text-align: left;
	float: left;
	padding: 5px;
}

a.tir {
	padding: 10px;
	display: inline;
	text-decoration: none;
	color: black;
}

a.nav {
	padding: 10px;
	display: inline;
	text-decoration: none;
	color: grey;
	transition: color 1s, background-color 1s, border-radius 1s;
	background-color: white;
	border-radius: 10px;
}

#error {
	color: red;
}

a.nav:hover {
	background-color: #555;
	color: white;
	border-radius: 10px;
}

#results a:hover {
	color: red;
}

#results a {
	padding: 10px;
	display: inline;
	text-decoration: none;
	color: grey;
	transition: color 1s;
	display: block;
	border-radius: 10px;
}

a.footer {
	padding: 10px;
	display: inline;
	text-decoration: none;
	color: grey;
	transition: color 1s, background-color 1s, border-radius 1s;
	background-color: white;
	border-radius: 10px;
}

a.footer:hover {
	background-color: #555;
	color: white;
	border-radius: 10px;
}

input[type=submit] {
	margin-top: 0em;
	border: 1px solid #dddddd;
	background-color: #f3f3f3;
	color: #777777;
	font-size: 12px;
	padding: 3px;
	width: 8vw;
	outline: none;
	border-radius: 50px;
	transition: border 0.5s, color .5s;
}

input[type=submit]:hover {
	border: 1px solid black;
	color: black;
}

.active {
	background-color: #555;
	color: white;
	border-radius: 10px;
}

.compare {
	font-size: 10px;
	padding: 5px;
	border: 2px solid #ccc;
	-webkit-border-radius: 10px;
	border-radius: 50px;
	outline: none;
	text-align: center;
	margin: auto;
	transition: box-shadow .5s;
}

.compare:focus {
	border-color: blue;
	outline: none;
	box-shadow: 10px 10px 10px #888888;
}

#CompareBar {
	padding-left: 10px;
	float: right;
}

nav > img {
	width: 25px;
	height: 25px;
	float: right;
	border: 1px solid #dddddd;
	border-radius: 50%;
}

main {
	z-index: 0;
	width: 100%;
	margin-top: 5em;
	height: 100vh;
	overflow-y: auto;
	padding-bottom: 5em;
}

#loginform {
	display: none;
	position: absolute;
	top: 4em;
	right: 0;
	margin: 1em;
	padding-top: 1em;
	background-color: #dddddd;
	z-index: 1;
}

#login {
	display: table-cell;
	text-align: center;
	padding: 1em;
	border: 1px solid #dddddd;
}

#loginform:before {
	content: ' ';
	position: absolute;
	width: 0;
	height: 0;
	right: 0px;
	top: -30px;
	border: 15px solid;
	border-color: transparent transparent #dddddd transparent;
}

#user,
#pass {
	display: block;
	margin: 0 auto;
	color: #777777;
	width: 70vw;
	font-size: 1.5em;
	text-align: center;
}

#login > input[type="submit"] {
	position: relative;
	border: 1px solid #dddddd;
	border-radius: 0.2em;
	background-color: #f3f3f3;
	color: #777777;
	width: 70vw;
	font-size: 1.5em;
	transition: border 0.5s, color .5s;
}

#login > input[type="submit"]:hover {
	border: 1px solid black;
	color: black;
}

#SearchDiv {
	display: table;
	width: 100%;
	height: 50vh;
}

#SearchBar {
	display: table-cell;
	text-align: center;
	vertical-align: middle;
}

form > label {
	font-size: 3em;
	font-family: 'Merriweather', serif;
}

#SearchBar > input[type=text] {
	display: block;
	margin: 0 auto;
	width: 70vw;
	height: 2em;
	line-height: 1em;
}

#SearchBar > input[type=submit] {
	display: block;
	margin: 0 auto;
	margin-top: 0.5em;
	border: 1px solid #dddddd;
	border-radius: 0.2em;
	background-color: #f3f3f3;
	color: #777777;
	width: 20vw;
	font-size: 1.5em;
	outline: none;
	border-radius: 50px;
	transition: border .5s, color .5s;
}

#SearchBar > input[type=submit]:hover {
	border: 1px solid black;
	color: black;
}

ul {
	list-style-type: none;
}

#name {
	font-size: 22px;
	padding: 15px;
	border: 2px solid #ccc;
	-webkit-border-radius: 10px;
	border-radius: 50px;
	outline: none;
	text-align: center;
	margin: auto;
	box-shadow: 5px 5px 5px #888888;
	transition: box-shadow .5s;
}

#name:focus {
	border-color: blue;
	outline: none;
	box-shadow: 10px 10px 10px #888888;
}

.queries {
	margin-top: 2em;
}

.queries > a {
	margin: 1em;
	padding: 10px;
	display: inline;
	text-decoration: none;
	color: grey;
	transition: border 0.5s;
	background-color: #f3f3f3;
	border: 1px solid #dddddd;
	border-radius: 10px;
}

.queries > a:hover {
	border: 1px solid black;
}

::-webkit-input-placeholder {
	text-align: center;
}

:-moz-placeholder {
	/* Firefox 18- */
	text-align: center;
}

::-moz-placeholder {
	/* Firefox 19+ */
	text-align: center;
}

:-ms-input-placeholder {
	text-align: center;
}

footer {
	position: relative;
	width: 100%;
	margin-top: -5em;
	padding: 1em;
	background-color: #efefef;
	text-align: center;
	z-index: 999;
}
