/* vim:ts=4:sw=4:sts=0:noet

 */

/* force a vertical scrollbar on firefox to avoid page-shifting */

html {
	overflow: -moz-scrollbars-vertical !important;
	font-size: 100%;
	-webkit-text-size-adjust: 100%;
	-ms-text-size-adjust: 100%;
}

html, body, h1, h2, h3, h4, h5, input, textarea, header select {
	font-family: sans-serif;
	font-size: 10.5pt;
}
h1, h2 {
	font-size: 13pt;
	font-weight: bold;
}
div.quote, div.quotefx, div.codeblock, div.codeblockout, pre, code {
	font-family: monospace;
	font-size: 10pt;
}

body {
	background-color: #fdfdfd;
	line-height: 1.45em;
	margin: 0;
	padding: 10px;
	padding-top: 0;
}

a {
	color: #3a89c9;
}

a:visited {
	color: #6782a3;
}

span.na {
	color: gray;
}

span.highlight {
	background-color: #ffff67;
}

span.flickrblue {
	color: #0063dc;
}
span.flickrpink {
	color: #ff0084;
}

hr {
	border: 0px;
	height: 1px;
	border-top: solid 1px #ccc;
	margin-top: 1.75em;
	margin-bottom: 1.75em;
	display: block;
	width: 85%;
}

div.quote, div.quotefx, div.codeblock, div.codeblockout, pre {
	background-color: #f5f5f5;
	border: 1px solid #eee;
	padding: 1em;
	text-align: left;
	overflow: auto;
}
blockquote {
	border-left: 4px solid #ccc;
	padding-left: 1em;
}
code,
div.quote code,
div.quotefx code,
div.codeblock code,
div.codeblockout code,
pre code {
	background-color: #f5f5f5;
	padding: 1px 3px;
}


header {
	height: 3em;
	margin-bottom: 10px;
	margin-top: 10px;
	padding: 14px 0 0 0;
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}

header .bar {
	color: #ccc;
	font-size: 12pt;
	vertical-align: bottom;
	padding-left: 1px;
	padding-right: 1px;
}

header h2 {
	font-weight: bold;
	display: inline;
	-moz-osx-font-smoothing: auto;
	-webkit-font-smoothing: auto;
}
header a {
	font-weight: bold;
	text-decoration: none;
}
header a,
header a:visited {
	color: #aaa;
}
header h2 a,
header h2 a:visited {
	color: #3a89c9;
}
header select {
	-moz-appearance: none;
	-webkit-appearance: none;
	appearance: none;
	background-color: transparent;
	border: 0;
	color: #888;
	cursor: pointer;
	display: inline-block; /*none; */
	margin-top: -3px;
	margin-left: 2px;
	width: 13em;
}
header select:hover {
	background: transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAA50lEQVR4Xt2MQWqEQBBFK4oLcaEbEQWNuNKFtuABJjeYHCVHyxHmBp0cIWsX3XvFTn0oQoOEYbbz4dHVVf9/ehIty3Jl0gf8KTIETdN0UUo5fvU4jndL4IFXMhcahsEwTtB93/9bghs8nt8E+75/bNtGwszcuq47lWCHm3gIIEtQ27bXpmkM4wRd1/VfCWbsvLtBhnxVVaXKsjSME0xRFIo57eEl0Qt5yvNcHcdx4zGTlcXj/4MgeFvX9ftcIGRZ9solnzzOjK8vDr9ba3/onpIkSeM41owTNHb0iKIoSsMw1AAzPa9+Ab+Vat2gkD80AAAAAElFTkSuQmCC) no-repeat;
	background-position: 11em 1px;
}
@media (pointer:coarse) {
	header select {
		background: transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAA50lEQVR4Xt2MQWqEQBBFK4oLcaEbEQWNuNKFtuABJjeYHCVHyxHmBp0cIWsX3XvFTn0oQoOEYbbz4dHVVf9/ehIty3Jl0gf8KTIETdN0UUo5fvU4jndL4IFXMhcahsEwTtB93/9bghs8nt8E+75/bNtGwszcuq47lWCHm3gIIEtQ27bXpmkM4wRd1/VfCWbsvLtBhnxVVaXKsjSME0xRFIo57eEl0Qt5yvNcHcdx4zGTlcXj/4MgeFvX9ftcIGRZ9solnzzOjK8vDr9ba3/onpIkSeM41owTNHb0iKIoSsMw1AAzPa9+Ab+Vat2gkD80AAAAAElFTkSuQmCC) no-repeat;
		background-position: 11em 1px;
	}
}


footer {
	color: #aaa;
	margin-bottom: 2em;
	padding-right: 10px;
	text-align: center;
}
footer a,
footer a:visited {
	color: gray;
}


/* actual item text */
div.itemcontent {
	color: #555;
	margin-top: 0.75em;
	padding-right: 10px;
}
div.itemcontent img {
	-ms-interpolation-mode: bicubic;
	/* max-width: 100%; */
}
div.iframeholder {
	text-align: center;
}
div.itemcontent p img:first-child {
	display: block;
	margin-left: auto;
	margin-right: auto;
}
div.itemcontent blockquote p img:first-child {
	display: inline;
}
div.itemcontent.bigitem img {
	display: block;
}

/* map wrappers */

div.bikemap {
	height: 400px;
	border-bottom: 1px solid gray;
}
div.bikemapwrapper {
	border: 1px solid #aaa;
	color: #666;
	background-color: #f8f8f8;
	border-collapse: collapse;
}
div.bikemapwrapper strong {
	font-weight: normal;
	color: #333;
}
div.bikemapwrapper p {
	padding-left: 8px;
	padding-right: 8px;
}


/* square layout */

div#sitewrapper {
	margin: 0px auto;
	padding-left: 10px;
	overflow: hidden;
	position: relative;
}

/* squares */

div.squarewrapper {
	float: left;
	height: 200px;
	margin: 0px 10px 10px 0px;
	overflow: hidden;
	width: 200px;
	font-weight: 400;
	background-size: 200px;
}
div.squarewrapper.big {
	border-width: 20px;
	height: 410px;
	width: 410px;
	background-size: 410px;
}

div.squareclipper {
	position: absolute;
	overflow: hidden;
	height: 200px;
	width: 200px;
}
div.squarewrapper.big div.squareclipper {
	height: 410px;
	font-size: 2em;
	font-weight: bold;
	line-height: 1.4em;
	width: 410px;
}

div.squarecomments {
	background-color: black;
	background-color: rgba(0, 0, 0, 0.5);
	bottom: -2px;
	color: white;
	display: none;
	height: 1.75em;
	line-height: 1.75em;
	left: 0px;
	padding-left: 0.5em;
	overflow: hidden;
	position: absolute;
	width: 195px;
}
div.squarewrapper.big div.squarecomments {
	bottom: -3px;
	font-size: 0.8em;
	width: 405px;
}
div.squarecomments a {
	color: white;
	text-decoration: none;
}
div.squarewrapper_photo div.squarecomments {
	width: 200px;
}

div.squarewrapper:hover div.squaretitle,
div.squarewrapper:hover div.squarecomments {
	display: block;
}


/* actual square contents */
div.liner {
	border: 10px solid transparent;
	color: white;
	display: table-cell;
	height: 180px;
	overflow: hidden;
	padding: 0px;
	vertical-align: middle;
	width: 180px;
}
div.squarewrapper.big div.liner {
	border-width: 20px;
	height: 370px;
	width: 390px;
}
div.squarewrapper.big div.liner div.breaker {
	width: 370px;
}
div.squarewrapper_photo.big div.liner div.breaker {
	width: 450px;
}

div.liner div.breaker {
	width: 180px;
	word-wrap: break-word;
}

div.squarewrapper_photo div.liner {
	border: 0;
	width: 200px;
}

div.liner a {
	color: white;
	text-decoration: none;
}

div.liner .smaller {
	margin-top: 1em;
}

div.liner p:first-child {
	margin-top: 0em;
}
div.liner p:last-child {
	margin-bottom: 0em;
}

a.photo_filler {
	display: block;
	height: 200px;
	width: 200px;
}
div.squarewrapper.big a.photo_filler {
	height: 410px;
	width: 410px;
}


/* feed headers */
div.squarewrapper.feedheader {
	width: 620px;
}
div.squarewrapper.feedheader div.squarecomments {
	display: block;
	width: 620px;
}
div.squarewrapper.feedheader div.feedheaderimagelink {
	float: right;
	margin-right: 1em;
}


/* video play button overlay */
div.squarewrapper_photo img.video {
	min-width: 80px;
	min-height: 80px;
	border: 0px;
	opacity: 0.8;
	margin-left: 50px;
	margin-top: 50px;
}
div.squarewrapper.big img.video {
	margin-left: 147px;
	margin-top: 147px;
}


div#spinner {
	clear: both;
	margin-top: 1.5em;
	padding-top: 1em;
	margin-bottom: 25px;
	text-align: center;
}
div#spinner a {
	color: gray;
	text-decoration: none;
}


/* per-feed square colors */

.squarewrapper_book {
	background-color: #C6B198;
	border-color: #C6B198;
}
.squarewrapper_book div.liner .book_title {
	background-color: #C6B198;
	padding: 0.25em 0;
}

.squarewrapper_clipping {
	background-color: #213d87;
	border-color: #213d87;
}

.squarewrapper_ride {
	background-color: #00698c;
	border: 0px;
	background-repeat: no-repeat;
	background-position: center;
}
.squarewrapper_ride div.liner .ride_title {
	background-color: #00698c;
	padding: 0.25em 0;
}

.squarewrapper_photo,
.squarewrapper_photoset {
	background-color: black;
	border: 0px;
	background-repeat: no-repeat;
	background-position: center;
}

.squarewrapper_event {
	background-color: #e53b51;
	border-color: #e53b51;
}

.squarewrapper_event.upcoming {
	background-color: #ed102e;
	border-color: #ed102e;
}

.squarewrapper_exige,
.exige_video_title {
	background-color: #fafafa;
	border-color: #fafafa;
}

.squarewrapper_exigeold,
.exigeold_video_title { /* brg what what */
	background-color: #004225;
	border-color: #004225;
}

.r32_video_title,
.exige_video_title,
.exigeold_video_title {
	padding: 0.25em 0;
}

.squarewrapper_link {
	background-color: #9ab4cb;
	border-color: #9ab4cb;
}

.squarewrapper_notaweblog {
	background-color: #396a92;
	border-color: #396a92;
}

.squarewrapper_talk {
	background-color: #c6b198;
	border-color: #c6b198;
}

.squarewrapper_movie {
	background-color: #86c543;
	border: 0px;
	background-repeat: no-repeat;
	background-position: center;
}
.squarewrapper_movie div.liner .movie_title {
	background-color: #86c543;
	padding: 0.25em 0;
}
span.half-star {
	position: absolute;
}
span.half-star:before {
	content: '\2605';
	position: absolute;
	left: 0;
	width: 50%;
	overflow: hidden;
}

.squarewrapper_movie div.liner .smaller a {
	text-decoration: underline;
}

.squarewrapper_photo div.liner .photo_title,
.squarewrapper_photo div.liner .smaller em,
.squarewrapper_photoset div.liner .photoset_title,
.squarewrapper_photoset div.liner .smaller em {
	background-color: black;
	padding: 0.25em 0;
}
.squarewrapper_photo div.liner .smaller em,
.squarewrapper_photoset div.liner .smaller em {
	padding-right: 0.25em;
}

.squarewrapper_quote {
	background-color: green;
	border-color: green;
}

.squarewrapper_r32,
.squarewrapper_a4 {
	background-color: black;
	border-color: black;
}

.squarewrapper_m3 {
	background-color: #f9f9f9;
	border-color: #f9f9f9;
}

.squarewrapper_status { /* twitters */
	background-color: #3cb5b5;
	border-color: #3cb5b5;
}

.squarewrapper_datesep {
	background-color: #949494;
	border-color: #949494;
}

div.squarewrapper_m3 div.liner a,
div.squarewrapper_exige div.liner a {
	color: black;
}

.squarewrapper_garbage {
	background-color: #ede5e2;
	border-color: #ede5e2;
}
div.squarewrapper_garbage div.liner a {
	color: black;
}


/* item pages */

body.item header,
body.item div#contentwrapper {
	margin-left: auto;
	margin-right: auto;
	width: 665px;
}

body.item.editor div#sitewrapper {
	margin-right: 650px;
	margin-left: 0;
	width: 660px;
}
body.item.editor div#contentwrapper {
	margin-left: 0;
	margin-right: 0;
}
div#editor {
	background-color: #f2f2f2;
	border-left: 3px solid #ddd;
	bottom: 0px;
	padding: 10px 20px 10px 15px;
	position: fixed;
	right: 0px;
	top: 0px;
	width: 600px;
}
body.editor div#editor {
	display: block;
}
body.editor div#editor h1 {
	margin: 0;
	padding: 0;
	display: inline;
}
div#editor label {
	display: inline-block;
	position: relative;
	margin-bottom: 5px;
	height: 1.6em;
}
div#editor input[type=text],
div#editor input[type=checkbox] {
	padding: 2px;
	position: absolute;
	left: 90px;
	width: calc(100% - 95px);
}
div#editor textarea,
div#editor .CodeMirror {
	font-size: 0.8em;
	border: 1px solid #ddd;
	position: absolute;
	height: auto;
	line-height: 1.2em;
	right: 15px;
	width: 90ch;
	bottom: 10px;
	top: 100px;
}


div.itemwrapper h1,
div.itemwrapper h2,
div.itemwrapper h3,
div#editor h1 input {
	color: #333;
	font-weight: bold;
	padding: 0;
	margin: 0;
}

div.itemwrapper h1,
div.itemwrapper h1 a,
div#editor h1 input {
	color: #333;
	text-decoration: none;
}

div.itemdetails {
	font-size: 10pt;
}
div.itemdetails,
span.relateddetails {
	color: #bbb;
	margin: 0;
	margin-top: 2px;
	padding: 0;
}
div.itemdetails a,
span.relateddetails a {
	color: #999;
	text-decoration: none;
}

div#related,
div#commentcontainer {
	margin-top: 3em;
}
div#commenthead {
	margin-bottom: 1em;
}

div.itemedit {
	position: fixed;
	right: 0;
	bottom: 0;
	background-color: white;
	outline: 1px solid gray;
	padding: 5px 10px;
}


/* per-comment */

div.comment {
	margin: 1em;
	overflow-x: auto;
}
div.commentgravatar {
	float: left;
}

div.commentfrom,
div.commentcontent {
	margin-left: 47px;
}

div.commentcontent p {
	margin-top: 0.5em;
}
div.commentcontent p:first-child {
	margin-top: 0px;
}

div.commentcontent li {
	margin-left: 15px;
}
div.commentcontent ul li,
div.commentcontent ol li {
	margin-left: 5px;
}

div.commentpreviewform {
	margin-top: 1em;
}

div.commentfrom {
	color: #aaa;
}
div.commentfrom a {
	color: #bbb;
}
div.commentfrom span.commentfromname,
div.commentfrom span.commentfromname a,
div.commentfrom span.commentfromitem a {
	color: #195ecf;
}
div.commentfrom a.twitterlink {
	color: #33ccff;
	text-decoration: none;
}
div.commentreply {
	float: right;
	padding: 0px 10px 2px 10px;
}
div.commentreply a {
	color: #999;
	text-decoration: none;
}
div.commentfrom strong {
	font-weight: 300;
	color: gray;
}


/* data tables */

div.datatable label {
	display: block;
	float: left;
	margin-bottom: 4px;
}
div.datatable img {
	vertical-align: middle;
}
div.datatable label, div.datatable span, div.datatable select,
div.datatable br {
	line-height: 2em;
}
div.datatable br {
	clear: left;
}
div.datatable textarea {
	margin-bottom: 4px;
}

div.datatable label.norm {
	display: inline;
	float: none;
}

div.datatable label {
	width: 90px;
}
div.hintblock {
	color: gray;
	font-style: italic;
}

div.datatablewide label {
	width: 140px;
}
div.datatablewide div.hintblock {
	color: gray;
	font-style: italic;
	margin-left: 130px;
}

iframe.vimeo {
	height: 420px;
	margin-left: -15px;
	width: 654px;
}

iframe.slides_preview {
	-moz-transform: scale(0.5);
	-moz-transform-origin: 0 0;
	-webkit-transform: scale(0.5);
	-webkit-transform-origin: 0 0;

	/* 1366/768 */
	width: 1245px;
	height: 700px;
}

div.itemcontent table {
	border-spacing: 0;
	border-collapse: collapse;
	display: block;
	overflow: auto;
	width: 100%;
	word-break: normal;
	word-break: keep-all;
}
div.itemcontent table th {
	font-weight: bold;
}
div.itemcontent table th,
div.itemcontent table td {
	border: 1px solid #ddd;
	padding: 6px 13px;
}
div.itemcontent table tr {
	background-color: #fff;
	border-top: 1px solid #ccc;
}
div.itemcontent table tr:nth-child(2n) {
	background-color: #f8f8f8;
}


/* responsive adjustments */

@media only screen and (max-width: 700px) {
	body.squares header,
	body.item header {
		margin-top: 0;
	}

	body.squares div#sitewrapper {
		min-width: auto;
		width: auto;
	}
	body.item div#contentwrapper {
		width: auto;
		min-width: auto;
	}
	body.item header {
		margin-right: 0;
	}
	body.item div.itemwrapper img {
		height: auto;
		max-width: 100%;
	}
	body.item div.itemphotos div.bigitem img {
		margin-left: 0 !important;
	}
	body.item div.itemphotosets {
		padding-left: 1em;
		padding-right: 1em;
	}
	body.item div.itemphotosets div.photosetphotos {
		margin-left: -1em;
		margin-right: -2em;
		padding: 0;
	}

	body.item iframe {
		max-width: 100%;
	}

	body.item video {
		max-width: 100%;
		height: auto;
	}

	iframe.vimeo {
		margin-left: 0;
		width: 100%;
	}
}

	@media only screen and (max-width: 2110px) {
		div#sitewrapper {
			width: 1890px;
		}
	}
	@media only screen and (max-width: 1900px) {
		div#sitewrapper {
			width: 1680px;
		}
	}
	@media only screen and (max-width: 1690px) {
		div#sitewrapper {
			width: 1470px;
		}
	}
	@media only screen and (max-width: 1480px) {
		div#sitewrapper {
			width: 1260px;
		}
	}
	@media only screen and (max-width: 1270px) {
		div#sitewrapper {
			width: 1050px;
		}
	}
	@media only screen and (max-width: 1060px) {
		div#sitewrapper {
			width: 840px;
		}
	}
	@media only screen and (max-width: 850px) {
		div#sitewrapper {
			width: 630px;
		}
	}
	@media only screen and (max-width: 640px) {
		div#sitewrapper {
			width: 420px;
		}
	}


/* feed header image movements */

body.squares div.squarewrapper.feedheader div.squareclipper {
	width: 620px;
}
body.squares div.squarewrapper.feedheader div.squareclipper img {
	margin-left: -80px;
}
body.squares div.squarewrapper.feedheader.feed_exige div.squareclipper img {
	margin-left: 0px;
}

/* when shrinking down, move image over to center */
	@media only screen and (max-width: 850px) {
		body.squares div.squarewrapper.feedheader,
		body.squares div.squarewrapper.feedheader div.squareclipper {
			width: 620px;
		}
		body.squares div.squarewrapper.feedheader div.squareclipper img {
			margin-left: -50px;
		}
		body.squares div.squarewrapper.feedheader.feed_exige div.squareclipper img {
			
				margin-left: 0px;
			
		}
	}
	@media only screen and (max-width: 640px) {
		body.squares div.squarewrapper.feedheader,
		body.squares div.squarewrapper.feedheader div.squareclipper {
			width: 410px;
		}
		body.squares div.squarewrapper.feedheader div.squareclipper img {
			margin-left: -66px;
		}
		body.squares div.squarewrapper.feedheader.feed_exige div.squareclipper img {
			
				margin-left: -200px;
			
		}
	}


/* helpers */

div.flash-notice, div.flash-error, div.flash-info {
	border: 2px solid;
	margin: 5px 5px 10px 5px;
	padding: 5px 10px;
}

div.flash-notice li, div.flash-error li, div.flash-info li {
	margin-left: 15px;
}

div.flash-notice {
	background-color: #e8ffe7;
	border-color: green;
}

div.flash-error {
	background-color: #ffe7e7;
	border-color: red;
}

div.flash-info {
	background-color: #fffee4;
	border-color: #fffa77;
}

div.fieldWithErrors {
	display: inline;
}
div.fieldWithErrors input,
div.fieldWithErrors select,
div.fieldWithErrors textarea {
	padding: 2px;
	border: 2px solid red;
}
