/* Used a bunch of stuff from http://getbootstrap.com/docs/4.0/examples/narrow-jumbotron/narrow-jumbotron.css */

/* Space out content a bit */
body {
	padding-bottom: 1.5rem;
	font-family: arial, sans-serif;
}

/* Everything gets side spacing for mobile first views */
.header,
.footer {
	padding-right: 1rem;
	padding-left: 1rem;
	text-align: center;
}

.no-padding {
	padding: 0;
}

/* Customize container */
@media (min-width: 48em) {
	body.landing-page .container {
		max-width: 46rem;
	}
}
.container-narrow > hr {
	margin: 2rem 0;
}

/* Search form */
.searchform {
	text-align: center;
}

/* Footer styles */
footer a {
	color: #666;
	font-size: 13px;
	line-height: 13px;
	padding: 0 13px;
}
footer .container {
	padding: 0;
}
@media (max-width: 520px) {
	footer a {
		padding: 0 5px;
	}
}

/* Most specific styles start here */
section.searchform .input-group{
	margin-left: auto;
	margin-right: auto;
	max-width: 530px;
	width: 100%;
}

.logo img {
	max-width: 320px;
	margin-bottom: 20px;
}

body.landing-page {
	background-color: #f2f2f2;
}

.searchform input {
	height: 52px;
	border-radius: 0;
	border: 0;
	box-shadow: 0 2px 2px 0 rgba(0,0,0,0.16), 0 0 0 0 rgba(0,0,0,0.08);
	transition: box-shadow 200ms cubic-bezier(0.4, 0.0, 0.2, 1);
}
.searchform input[type="submit"] {
	background-color: #2684fe;
	background-image: url('/img/icons/base-matrix/magnifying-glass-white.png');
	background-repeat: no-repeat;
	background-position: center;
	height: 52px;
	width: 52px;
}

/* iPhone 6 is 750 pixels wide, so we'll take 575 as a max size for "mobile display" */
@media (max-width: 575px) {
	/* It was requested on 3 Nov 2017 that we don't show logos on mobile view */
	body.serp .logo {
		display: none;
	}
	body.landing-page .logo img {
		max-width: 130px;
	}
	body.serp #above-serp {
		margin-bottom: 20px;
	}
}
/* Desktop(ish) */
@media (min-width: 576px) {
	/* Remove the padding we set earlier */
	.header,
	.footer {
		padding-right: 0;
		padding-left: 0;
	}

	/* Space out the masthead */
	.header {
		margin-bottom: 2rem;
	}
}

@media (min-height: 360px) and (min-width: 576px) {
	body.landing-page .logo {
		padding-top: 50px;
	}
}
@media (min-height: 500px) and (min-width: 576px) {
	body.landing-page .logo {
		padding-top: 100px;
	}
}
@media (min-height: 650px) and (min-width: 576px) {
	body.landing-page .logo {
		padding-top: 150px;
	}
}
@media (min-height: 800px) and (min-width: 576px) {
	body.landing-page .logo {
		padding-top: 250px;
	}
}
@media (min-height: 1000px) {
	body.landing-page .logo {
		padding-top: 325px;
	}
}

/* SERP */
body.serp {
	background-color: #f2f2f2;
}

body.serp .container {
	margin-left: 0;

}

body.serp .container section.main {
	width: 100%;
}
body.serp.web .container section.main {
	max-width: 615px;
}
body.serp section.searchform .input-group {
	margin-left: 0;
	width: 100%;
	max-width: none;
}

@media (min-width: 576px) {
	body.serp .container {
		width: auto;
	}
	body.serp {
		background-color: #fff;
	}
}
@media (max-width: 839px) {
	body.serp .header {
		display: none;
	}
}
@media (min-width: 840px) {
	body.serp .results-container {
		margin-left: 120px;
	}
}
body.serp header,
body.serp section.searchform {
	display: inline-block;
}

body.serp header {
	vertical-align: top;
	width: 120px;
	margin-right: 10px;
}
body.serp section.searchform {
	width: 100%;
	max-width: 660px;
}

body.serp .logo img {
	max-width: 120px;
}

/** Non CSE results **/

/* --- Text Results --- */

/* Default padding for text result area */
.brick-text {
	padding: 2px 4px;
}

.brick-text,
.brick-images,
.brick-shopping,
.brick-video {
	font-family: Arial, sans-serif;
}

.top .brick-text.highlights {
	padding-left: 4px;
}

/* h2 elements like "Ads" and "Web Results" */
.brick-text h2 {
	display: none;
	/*font-weight: normal;
	text-align: right;
	position: absolute;
	right: 17px;
	margin: 13px 9px 0;
	color: #666;
	font-size: 10px;*/
}

/* Description of the result, e.g. "beautiful flower, x y, z" */
.result .description {
	clear: both;
}

/* We put bricks in an ordered list, which has a lot of padding by browser defaults */
.top .brick-text ol.block,
.bottom .brick-text ol.block {
	padding-left: 0px;
	margin-bottom: 0px;
}

.top .brick-text .result,
.bottom .brick-text .result {
	list-style-type: none;
	margin-bottom: 0.938em;
}

.top .brick-text .result:last-child,
.bottom .brick-text .result:last-child {
	margin-bottom: 0.313em;
}

.brick-text .result .title {
	display: block;
	font-size: 16px;
	text-decoration: underline;
}

.highlights .description a {
	text-decoration: none;
	cursor: default;
	color: #000;
}

/* --- End Text Results --- */
/* --- Organic Results --- */

.brick-text ol {
	padding-left: 0;
}

.brick-text ol.block > li {
	list-style-type: none;
}

.main .brick-text {
	margin-top: 0.833em;
}

.text .main br {
	display: none;
}

.text .main a.title {
	color: #0000FF;
	display: block;
	font-size: 16px;
	font-weight: 400;
	text-decoration: underline;
	word-wrap: break-word;
}

.result .description {
	color: black;
	font-size: 12px;
	line-height: 18px;
	text-decoration: none;
}

a.display-url {
	color: #009933;
	display: block;
	font-size: 13px;
	text-decoration: none;
}
.brick-text .result {
	margin-bottom: 9px;
}

/* --- End Organic Results --- */
/* --- Organic Images --- */

.images .main  h2 {
	font-size: 0.800em;
}

.images .main .brick-images ol {
	padding: 0;
}

.images .main .brick-images ol li {
	display: inline-block;
	list-style-type: none;
	margin-bottom: 0.313em;
	vertical-align: top;
}

.images .main .brick-images .img-container {
	overflow: hidden;
}

.images .main .brick-images ol li img {
	max-height: 150px;
}

/* --- End Organic Images --- */
/* --- Organic Videos --- */

.main .brick-video h2 {
	font-size: 0.800em;
}

.main .brick-video ol {
	padding-left: 0;
}

.main .brick-video ol li {
	display: inline-block;
	list-style-type: none;
	vertical-align: top;
}

.main .brick-video ol li .img-container {
	height: 7.500em;
	position: relative;
	width: 100%;
}

.main .brick-video ol li a img {
	bottom: 0;
	max-height: 7.500em;
	max-width: 100%;
	min-width: 8.750em;
	overflow: hidden;
}

.main .brick-video ol li a {
	display: block;
	overflow: hidden;
	text-decoration: none;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.main .brick-video ol li a.title {
	color: #2C5FB0;
	font-size: 0.688em;
	margin-top: 0.364em;
}

.main .brick-video ol li a.display {
	color: #33A752;
}

.main .brick-video .description {
	display: none;
}

/* --- End Organic Videos --- */

#above-serp .header {
	margin-bottom: 0;
}

/** **/
.powered-by-google {
	font-size: 10px;
	color: #868686;
	text-align: right;
	margin-left: auto;
	margin-right: auto;
	max-width: 530px;
	width: 100%;
	margin-top: 15px;
}

/**  **/
body.arbitrary .panel-body .alert {
	opacity: 1;
}

#above-serp {
	padding-top: 1.5rem;
	background-color: #fafafa;
	border-bottom: 1px solid #eee;
	width: 100%;
}
/* web video images navigation links */
.navigation-links ul {
	padding-left: 0;
	text-align: left;
	margin-bottom: 0;
}
.navigation-links ul li {
	display: inline-block;
	margin-top: 15px;
}
.navigation-links ul li a {
	color: #777;
	font-size: 13px;
	display: inline-block;
	padding-left: 11px;
	padding-right: 11px;
	padding-bottom: 8px;
}
.navigation-links ul li.current a {
	border-bottom: 3px solid #999;
	font-weight: bold;
}
.navigation-links ul li a:hover {
	text-decoration: none;
}


/* images */
body.serp.images .main {
	margin-top: 12px;
	margin-left: 7px;
}

body.serp.images .main .brick-images .result {
	margin: 0 5px 12px;
}

/* videos */
body.serp.video .main .brick-video .result .video-details {
	display: flex;
}
body.serp.video .main .brick-video .result img {
	max-height: 120px;
}
body.serp.video .main .brick-video .resultThumbnailPane,
body.serp.video .main .brick-video .resultThumbnailInfoWrapper {
}
body.serp.video .main .brick-video .resultThumbnailPane img {
	width: 120px;
}
body.serp.video .main .brick-video .resultThumbnailPane {
	width: 120px;
	margin-right: 15px;
}
body.serp.video .main .brick-video .resultThumbnailInfoWrapper {
	flex-grow: 1;
	max-width: 620px;
}
body.serp.video .main .brick-video .resultTitle a {
	color: #1a0dab;
}
body.serp.video .main .brick-video .display-url {
	color: #006621;
	font-size: 13px;
}

body.serp.video .main .brick-video .resultDescription {
	color: #545454;
	font-size: 13px;
}
body.serp.video .main .brick-video .videoResult {
	margin-bottom: 20px;
}
body.serp.video .main .brick-video {
	margin-top: 10px;
}
