/* css inspiration from: normalize.css v7.0.0 github.com/necolas/normalize.css */

/* Website wide settings and main structure */
html {
  line-height: 1.15; /* Correct the line height in all browsers */
  -ms-text-size-adjust: 100%; /* Prevent adjustment of font size after orientation changes */
  -webkit-text-size-adjust: 100%; 
  background: #abcdef;
}

body {
  margin: auto;
  background: white;
  font-family: Georgia;
  font-size: 1em;
}

section#body {
  padding-left: 1em;
  padding-right: 1em;
}

@media only screen and (min-width: 768px) {
    body {
        width: 70%;
        min-width: 768px;
    }
}


a {
   cursor: pointer;
   text-decoration: underline;
/*   color: #4fc7ef; */
}

a:visited {
    text-decoration: none; /* visited link should not be decorated */
}

a:hover {
   text-decoration: underline;
}

nav {
   margin: auto;
   display: flex;
   flex-direction: row;
   flex-wrap: wrap;
   align-items: center;
   justify-content: center;
   text-align: center;
}

nav a {
   text-decoration: none;
   font-weight: bold;
   font-size: 125%;
   margin: 1em auto 0;
   display: block;
}

footer {
    display: block; /* Add the correct display in IE 9- */
    text-align: center;
    padding: 10px;
    height: 20px;
}

.logo {
    height: 2em;
}

iframe.video {
    margin: 0 auto;
    display: block;
    max-width: 100%;
    max-height: 100%;
}

h1, h2, h3, h4, h5, h6 {
  display: block;
  text-align: center;
  font-family: Trebuchet MS;
}

h2, h3 {
    padding-top: 1em;
}

h6 {
    margin: 1em auto 1em;
    font-size: 1.25em;
    max-width: 40em;
}

.install {
   display: flex;
   flex-direction: row;
   flex-wrap: wrap;
}

.install div {
   min-width: 25em;
   max-width: 30%;
   margin: auto;
   background: #eeeeee;
   margin-bottom: 1em;
   text-align: center;
   border-radius: 4px;
}

/* --- Code block ---- */
pre {
    background: #ffedcb;
}

pre, code {
    font-family: Inconsolata, monospace; /* Correct the inheritance and scaling of font size in all browsers */
    font-size: 1em; /* Correct the odd `em` font sizing in all browsers */
    padding: 0.1em 0.25em 0.1em 0.25em;
    white-space: pre-wrap;
    word-wrap: break-word;
}

code {
    font-weight: bold;
}

pre, pre code {
    white-space: pre-wrap;
    word-wrap: normal;
    overflow: auto;
    border: none;
}

pre {
    display: block;
    padding: 0.5em;
    border: none;
    width: 90%;
    max-width: 45em;
    margin: auto;
    margin-top: 1em;
    margin-bottom: 1em;
    line-height: 1.5;
}

/* --- */

p {
  margin: 1em auto 1em;
  display: block;
  padding-bottom: 5px;
  line-height: 1.5;
  max-width: 50em;
}

hr {
    box-sizing: content-box;
    height: 0; /* Add the correct box sizing in Firefox */
    overflow: visible; /* Show the overflow in Edge and IE */
}

/* --- Bullets and Lists --- */
ul {
  list-style-type: disc;
  margin: 0px auto;
}

ul li, ol li {
  display: list-item;
  text-align: -webkit-match-parent;
}

ul,
ol {
    display: block;
    max-width: 50em;
    line-height: 1.5;
}

ol {
    margin: .5em auto;
}

ol li {
    list-style-type: decimal;
}

li li {
    list-style-type: circle;
}


#TOC {
    text-align: left;
    margin-left: 5em;
}

/* --- Spreadsheet tables --- */

.table {
    display: table;
}

.row {
    display: table-row;
}

.cell {
    display: table-cell;
}

.hdr {
    display: table-cell;
}

table, .table {
    border-spacing: .25em .25em;
    padding: .25em;
    margin: auto;
    border: 1px solid black;
}

table th, .table .hdr {
    text-decoration: underline;
    text-align: center;
}

table tr, .table .row {
    background-color: #eeeeee;
}

table tr:nth-child(even), .table .row:nth-child(even) {
    background: #CCC;
}

table tr:nth-child(odd), .table .row:nth-child(odd) {
    background: #FFF;
}

table td, .table .cell {
    background: #eeeeee;
    border-radius: 3px;
    padding: 5px;
    text-align: center;
}

/* Test cmdlog table specifics */

.workflow {
    text-align: center;
}

.screenshot {
    margin: auto;
    width: 80%;
    max-width: 500px;
    padding-right: 3px;
    padding-left: 3px;
    padding-top: 3px;
    padding-bottom: 0px;
    background: #000000;
    border-radius: 3px;
}

.screenshot img {
    width: 100%;
    max-width: 500px;
}

.input, .command, .code {
    font-family: Inconsolata;
    font-weight: bold;
    font-size: 16px;
    margin: 20%;
}

table div.cell.timestamp, table td.timestamp {
    width: 2em;
}

table div.cell.command, table td.command {
    width: 10%;
}

table div.cell.step, table td.step {
    text-align: middle;
}

table div.cell.input, table td.input {
    text-align: left;
    width: 30%;
}

table div.cell.step, table td.step {
    text-align: left;
}

#index_container {
    list-style: none;
    margin-bottom: 20px;
    width: auto;
}

#index_container li, #index_container ul, #index_container ul li{
   padding-bottom: 2px;
   overflow: hidden;
   display: inline-block;
   background: #fff;
   position: relative;
   float: left;
}

/* --- specific pages --- */

pre#manpage {
   font-size: 75%;
   /*width: 100%;*/
   max-width: 71em;
}

.asciicast {
    max-width: 100%;
}

table#front td {
    height: 300px;
    width: 400px;
}
