body {
	font-family: ChrisMcCormickTwentyEleven, Arial, Sans-Serif;
	font-size: 1.5em;
	color: #555;
	margin-left: auto;
	margin-right: auto;
	max-width: 900px;
	background: url(/gfx/bg.jpg);
}

pre, code {
	font-family: Courier, Courier New, Monospace;
	font-weight: bold;
	color: #999;
}

pre {
	margin-left: 3em;
}

code {
  overflow-x: auto;
  display: inline-block;
  max-width: 100%;
  vertical-align: bottom;
  margin-bottom: 0.15em;
}

table {
  table-layout: fixed;
  border-collapse: collapse;
}

th {
  text-align: left;
}

th,
td {
  padding: 0.25em;
}

thead {
  border-bottom: 1px solid silver;
}

img {
	border: 0px none;
}

input {
	border: 1px solid #555;
	background: white;
	-moz-border-radius: 2;
	-webkit-border-radius: 2;
	border-radius: 2;
	color: black;
	font-family: Courier, Courier New, Monospace;
	font-weight: bold;
}

input:hover {
	border: 1px solid black;
}

a {
	text-decoration: none;
	color: black;
	font-weight: bold;
}

ul {
	list-style-type: circle;
	margin-top: 0px;
	margin-bottom: 0px;
}

ul li {
	margin-top: 0.25em;
  margin-bottom: 0.25em;
}

h1 {
	margin: 0px;
}

h2 {
	margin: 0px;
	font-size: 1.25em;
}

hr {
	border: 0px;
	border-bottom: 2px dashed #333;
}

div#header {
	margin-left: 0.5em;
	margin-right: 0.5em;
	margin-top: 4em;
	margin-bottom: 2em;
}

div#content {
	margin-left: 0.5em;
	margin-right: 0.5em;
}

div.search {
	font-size: 0.75em;
	float: right;
	margin-top: -2.75em;
}

div.search {
	margin-right: 100px;
	padding-top: 3px;
}

div.search input {
	font-size: 0.75em;
}

div.more-link {
	position: absolute;
	left: 100%;
	margin-left: -100px;
	top: 0px;
}

/***** More *****/

body.more {
	*overflow-x: hidden;
}

body.more img.header-image {
	position: absolute;
	left: 100%;
	margin-left: -355px;
	top: 2em;
}

body.more h1 {
	clear: both;
}

body.more li {
	display: inline-block;
	width: 42%;
	height: 6em;
	margin: 1em;
	padding: 0.3em;
	border: 2px dashed #ddd;
	float: left;
}

body.more li img.icon {
	float: left;
	margin-right: 10px;
}

/***** Blog *****/

.blog img, .blog iframe, .blog svg {
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-top: 10px;
	margin-bottom: 10px;
	border: 0px;
	text-align: center;
	max-width: 98%;
	max-height: 100vh;
}

.blog img {
	border-radius: 3px;
	margin-top: 3em;
	margin-bottom: 3em;
}

.blog .video-container {
  position: relative;
  padding-bottom: 56.25%;
  padding-top: 30px;
  height: 0;
  overflow: hidden;
}

.blog .video-container iframe, .blog .video-container object, .blog .video-container embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

body.blog pre {
	margin-left: 5%;
	width: 94%;
	max-width: 94%;
	overflow: auto;
	*overflow: scroll;
	padding-top: 0.25em;
	padding-bottom: 0.25em;
	box-shadow: inset -6px 0px 10px -5px #ddd;
	border-right: 2px dashed #ddd;
}

body.blog canvas {
	margin-left: auto;
	margin-right: auto;
	display: block;
}

body.blog div.date {
	float: right;
	font-size: 1em;
	margin-top: -2em;
}

.clean {
  font-family: Arial, sans-serif;
  line-height: 1.75em;
}

.clean code {
  margin-bottom: unset;
  display: inline;
}

body.blog .post + .post, body.blog .tinysignup + .post {
  margin-top: 200px;
}

body.blog #header, body.homepage #header {
  margin-left: 0.5em;
  margin-right: 0.5em;
  margin-top: 0px;
  margin-bottom: 0px;
  float: left;
}

body.blog .stretch {
  letter-spacing: 0.05em;
  /*font-weight: bold;*/
}

body.blog div.title {
  font-size: 1.5em;
}

body.blog #header h1.title, body.homepage #header h1.title {
  font-size: 1em;
  font-weight: normal;
  color: #333;
}

body.blog #header h1.title a {
  font-weight: normal;
}

body.blog #about {
  color: #ccc;
  margin-top: 0px;
}

body.blog #hero, body.homepage #hero {
  width: 250px;
  margin-bottom: 2em;
  margin-right: 20px;
  margin-left: auto;
  display: block;
}

body.homepage #hero {
  width: 150px;
  border-radius: 150px;
}

body.blog #social {
  margin-top: 6em;
  text-align: center;
}

body.blog #social a {
  color: #BAB7B7;
}

body.blog #social a:hover {
  color: #6F6F6F;
}

body.blog #social > span {
  white-space: no-wrap;
}

body.blog #social > span {
  margin-left: 0.5em;
  margin-right: 0.5em;
  display: inline-block;
  margin-bottom: 1em;
}

body.blog #social svg {
  margin-bottom: -0.25em;
}

body.blog #social svg path {
  /*fill: none;
  stroke: #BAB7B7;
  stroke-width: 30px;*/
  fill: #BAB7B7;
}

body.blog div.links {
	text-align: right;
	margin-bottom: 20px;
}

body.blog div.pagination {
	text-align: right;
}

body.blog div.pagination a, body.blog div.pagination span {
	margin-left: 20px;
	margin-right: 20px;
	font-size: 0.75em;
}

body.blog div.pagination .newer {
  float: left;
}

body.blog form p label {
	display: inline-block;
	margin-right: 10px;
	text-align: right;
	vertical-align: top;
	width: 180px;
}

body.blog div.comment {
	border-top: 2px dashed #ddd;
}

body.blog div.commentname {
	font-weight: bold;
}

body.blog span.commentdate {
	float: right;
}

body.blog div.post-comment {
	border-top: 2px dashed #ddd;
}

body.blog .title > * {
  line-height: 2em;
}

body.blog .title > svg path {
  fill: none;
  margin-right: 4em;
  stroke: #000;
  stroke-width: 30px;
}

body.blog .title > svg {
  margin-right: 0.25em;
  height: 24px;
  width: 24px;
}

.blog a.market-link img {
	display: inline;
}

.blog a.market-link {
	display: block;
	text-align: center;
}

.blog .centered {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/***** Homepage *****/

body.homepage {
  padding: 3em 0.5em;
}

.homepage section {
  margin-top: 4em;
}

.homepage #hero {
  margin: 0px;
}

/*** Link cards ***/

.link-card {
  display: flex;
  border: 2px solid silver;
  width: 100%;
  min-height: 200px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  background-color: #FCFCFC;
  cursor: pointer;
}

.link-card > * {
  width: 100%;
}

.link-card img {
  object-fit: scale-down;
  width: 200px;
  height: 200px;
  float: left;
  margin: 0px;
  margin-right: 0.5em;
  border-right: 2px solid silver;
}

.link-card h4 {
  font-size: 0.75em;
  line-height: 1.25em;
  color: #555;
  margin: 0.25em 0.5em;
}

.link-card p {
  font-size: 0.75em;
  line-height: 1.25em;
  color: #999;
  margin: 0.25em 0.5em;
  font-weight: normal;
}

.link-card p.link {
  color: #bbb;
  font-size: 0.75em;
}

.openmrr h1, .openmrr h2 {
  margin: 1em 0px;
}

.openmrr .vega-embed {
  width: 100%;
  height: 400px;
}

/*** everything ***/

.everything .item {
  margin: 3em 0px;
  border: 2px solid silver;
  padding: 0em 1em;
  border-radius: 10px;
  background-color: #FAFAFA;
}

.everything .item > h3 {
  display: flex;
  align-items: center;
}

.everything .item > h3 > span {
  display: flex;
  flex-direction: column;
}

.everything .item > h3 .date {
  font-size: 0.5em;
  color: #888;
}

.everything .item .avatar {
  display: inline-block;
  width: 48px;
  height: 48px;
  border-radius: 64px;
  margin: 0.5em;
}

.everything .item.feed-kind-tumblr figure {
  margin: 0.25em auto;
}

.everything .item.feed-kind-tumblr img {
  max-height: 50vh;
  margin: 0.25em auto;
}

.everything .item.feed-kind-mastodon {
  display: flex;
}

.everything .item.feed-kind-mastodon img {
  margin-top: 1.5em;
  margin-right: 1em;
}

.everything .item.feed-kind-mastodon .date {
  margin-bottom: 1em;
  margin-top: 0px;
}

.everything .item.feed-kind-github li > * {
  display: inline-block;
}

.everything .item.feed-kind-github li code {
  margin-right: 0.25em;
}

.everything .item.feed-kind-github li blockquote {
  margin: 0px;
}

/*** tinysignup ***/

.blog .tinysignup {
  text-align: center;
  margin-top: 6em;
}

.blog .tinysignup input {
  border: 2px solid silver;
  padding: 0.25em;
  font-size: 1em;
  width: 20em;
  max-width: 75%;
  border-radius: 5px;
  margin-top: 0.25em;
}

.blog .tinysignup button {
  border: 2px solid #61ad4f;
  padding: 0.15em 1.5em;
  font-size: 1em;
  border-radius: 5px;
  background-color: #66c38b;
  color: white;
  margin-top: 0.25em;
  position: relative;
  top: 2px;
}

.blog .tinysignup .spinner {
  
}

.blog .tinysignup .message {
  border: 2px solid #61ad4f;
  padding: 0.15em 1.5em;
  font-size: 1em;
  border-radius: 5px;
  background-color: #66c38b;
  color: white;
}

.blog .spinner {
  width: 40px;
  height: 40px;
  background-color: #66c38b;
  border-radius: 5px;

  margin: 40px auto;
  -webkit-animation: sk-rotateplane 1.2s infinite ease-in-out;
  animation: sk-rotateplane 1.2s infinite ease-in-out;
}

@-webkit-keyframes sk-rotateplane {
  0% { -webkit-transform: perspective(120px) }
  50% { -webkit-transform: perspective(120px) rotateY(180deg) }
  100% { -webkit-transform: perspective(120px) rotateY(180deg)  rotateX(180deg) }
}

@keyframes sk-rotateplane {
  0% { 
    transform: perspective(120px) rotateX(0deg) rotateY(0deg);
    -webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg) 
  } 50% { 
    transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
    -webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg) 
  } 100% { 
    transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
    -webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
  }
}

/***** Error *****/

body.errorpage div#content {
	margin-top: 50px;
	text-align: center;
}

body.errorpage img {
	display: block;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

/***** File indicies *****/

body.index div#content {
	margin-left: 5%;
	margin-right: 5%;
}

body.index table {
	width: 100%;
}

body.index th {
	text-align: left;
}

/***** Mobile overrides *****/

@media (max-width: 800px) {
  body.homepage {
    font-size: 1.25em;
  }

  body.homepage #hero {
    margin: auto;
  }

  body.homepage #header {
    float: none;
    text-align: center;
    margin-top: 2em;
  }

  body.homepage header {
    display: flex;
    flex-direction: column-reverse;
  }

  .link-card {
    min-height: 140px;
  }

  .link-card img {
    width: 140px;
    height: 140px;
  }
}


