/*
 * Based on 'css/style.css' from the XMin theme by Yihui Xie:
 * <https://github.com/yihui/hugo-xmin/blob/master/static/css/style.css>
 */

body {
  max-width: 800px;
  margin: auto;
  padding: 1em;
  line-height: 1.5em;
}

/* header and footer areas */
.menu { padding: 0; text-align: center; }
.menu li { display: inline-block; }
.menu a {
  text-decoration: none;
  background: #eee;
  padding: 5px;
  border-radius: 5px;
}

footer { text-align: center; }
footer a { text-decoration: none; }

hr {
  border-style: dashed;
  color: #ddd;
}

hr.header {
  border-style: solid;
  color: #ddd;
}

/* article-meta */
.article-meta { 
  text-align: center;
  background: #eee;
  padding: 15px;
  border-radius: 10px;
}
.date {
  min-width: 10ch;
  text-align: center;
  word-wrap: normal;
}
.title {
  word-wrap: break-word;
}
.author { 
  text-align: center;
  padding: 5px;
  font-style: italic; 
  font-size: 1.4em;
}
.meta-params { 
  margin: 10px;
}

/* code */
pre {
  border: 1px solid #ddd;
  box-shadow: 5px 5px 5px #eee;
  padding: 1em;
  overflow-x: auto;
}
code { background: #f9f9f9; }
pre code { background: none; }

/* misc elements */
img, iframe, video { 
  max-width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
main { hyphens: auto; }
blockquote {
  background: #f9f9f9;
  border-left: 5px solid #ccc;
  padding: 3px 1em 3px;
}

table {
  margin: auto;
  border-top: 1px solid #666;
  border-bottom: 1px solid #666;
}
table thead th { border-bottom: 1px solid #ddd; }
th, td { padding: 5px; }
td { hyphens: none; }
thead, tfoot { background: #ddd; }
tbody tr:nth-child(even) { background: #eee; }
tbody tr:nth-child(odd)  { background: #fff; }

/*
 * Added for frank-mitchell.com
 */

/* tags */
.taglist {
  text-align: center;
}
.tag {
  display: inline-block;
}
.tag a {
  text-decoration: none;
  background: #eee;
  padding: 5px;
  border-radius: 5px;
}

/* alternative blockquotes */

.summary {
  display: block;
  margin: 1em 40px;
  padding: 3px 1em 3px;

  border-left: 5px solid #ccc;
  border-right: 5px solid #ccc;
}

.sidebar {
  display: block;

  margin: 1em 0;
  padding: 0 1em;

  background: #eee;
  border-radius: 8px;
  border: 1px solid #000;
}

.note {
  display: block;
  margin: 1em 40px;
  padding: 1px 1em;
  background: lightyellow;
  border: 1px solid #ccc;
  /*box-shadow: 5px 5px 5px #eee;*/
}

/* stuff for YZE SRD OGL */

.license {
  font-family: sans-serif;
  font-size: 0.75em;
}

hr.dotted {
  border-style: dashed;
  color: black; 
}

.caption {
  text-align: center;
}

/* highlight inline quotes like blockquotes */
q {
  background: #f9f9f9;
}

/* set off iframes */
iframe {
  display: block;
  padding: 5px 1em;
  margin: auto;
}

/* Table of Contents */
.toc {
}

.toc-body {
}

