/* ==========================================================================
   HTML5 Boilerplate styles - h5bp.com (generated via initializr.com)
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

html { height: 100%; }

body {
    font-size: 1em;
    line-height: 1.4;
    min-height: 100%;
    padding-bottom: 45px; /* To account for footer height */
}

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

img {
    vertical-align: middle;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

textarea {
    resize: vertical;
}

.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

.header-container {
    border-bottom: 3px solid #ffc900;
    padding-top: 1em;
}

.main-container {
    height: 100%;
}

.main {
    height: 100%;
}

.footer-container,
.main aside {
    border-top: 3px solid #ffc900;
}

.header-container,
.footer-container,
.main aside {
/*    background: #804000; */ /* brown */
/*    background: rgb(75, 98, 48);*/ /* green */
    background: rgb(39, 63, 59);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-right: 1.5ex;
    padding-left: 1.5ex;
    min-height: 3em;
}


.title {
    color: #ffc900;
    align: left;
    margin-top: 0;
/*    min-height: 1.5em;*/
}

.footer-container {
    position: fixed;
    bottom: 0;
    width: 100%;
/*    box-shadow: 0 5px 10px 10px #aaa;*/
}

.footer-container footer {
    color: white;
    padding: 20px 0;
}

nav {
    font-family: "Helvetica", sans-serif;
    font-size: 3em;
    align-self: flex-end;
    padding-bottom: 5pt;
    text-align: right;
}
nav ul {
    margin: 0;
    padding: 0;
    /* disable hyphenation */
    -webkit-hyphens: none;
       -moz-hyphens: none;
            hyphens: none;
    
}

nav a {
    display: inline;
    float: none;
    /* display: block;
    margin-bottom: 5px;
    padding: 5px 0;

    text-align: center; */
    text-decoration: none;
    /* font-weight: bold; */

    color: white;
/*    font-size: 0.9em;*/
}

nav a:hover,
nav a:visited {
    color: white;
}

nav a:hover {
    text-decoration: underline;
}

nav ul {
    display: block;
    /* FIXME
    visibility: hidden;
    display: none; */
}

nav li {
    display: inline;
}

nav li:first-child a {
    margin-left: 0;
}

/*nav li:after {*/
/*    color: white;*/
/*    content: "•";*/
/*    padding-right: 0;*/
/*}*/

nav li:last-child:after {
    content: "";
}

nav li:last-child a {
    margin-right: 0;
}

/***/

@media screen and (min-width: 800px) {
/*    nav a:hover:after {
        content: attr(title);
        position: absolute;
        right: 0;
        top: 3em;
          padding-right: 12px;
          color: #000000;
          font-size: 0.5em;
          z-index: 1;
    }
*/

    /**
     * Tooltip Styles
     * Source : https://chrisbracco.com/a-simple-css-tooltip/
     */

    /* Add this attribute to the element that needs a tooltip */
    nav a[title] {
      position: relative;
      z-index: 2;
      cursor: pointer;
    }

    /* Hide the tooltip content by default */
    nav a[title]:before,
    nav a[title]:after {
      visibility: hidden;
      opacity: 0;
      pointer-events: none;
    }

    /* Position tooltip below the element */
    nav a[title]:before {
      position: absolute;
      top: 100%;
      left: 50%;
      margin-bottom: 5px;
      margin-left: -80px;
      padding: 7px;
      width: 160px;
      border-radius: 3px;
/*      background-color: #000;*/
/*      background-color: hsla(0, 0%, 20%, 0.9);*/
      color: black;
      content: attr(title);
      text-align: center;
      font-size: 0.5em;
      line-height: 1.2;
    }

    /* Triangle hack to make tooltip look like a speech bubble */
    nav a[title]:after {
      position: absolute;
      top: 100%;
      left: 50%;
      margin-left: -5px;
      width: 0;
      border-top: 5px solid hsla(0, 0%, 20%, 0.9);
      border-top: 5px solid #000;
      border-right: 5px solid transparent;
      border-left: 5px solid transparent;
      content: " ";
      font-size: 0;
      line-height: 0;
    }

    /* Show tooltip content on hover */
    nav a[title]:hover:before,
    nav a[title]:hover:after {
      visibility: visible;
      opacity: 1;
    }
}

/***/

/* #nav-toggle from http://elijahmanor.com/css-animated-hamburger-icon/ */
/*#nav-toggle { position: absolute; left: 50%; top: 50%; }*/

@media screen and (max-width: 800px) {
    #nav-toggle { justify-self: flex-end; }

    #nav-toggle { cursor: pointer; padding: 10px 35px 16px 0px; }
    #nav-toggle.active { 
        padding-right: 0px; 
        z-index: 999;
    }
    #nav-toggle .toggle-button {
        position: absolute;
        top: 0.66em;
        right: 0.25ex;
        z-index: 999;
    }
    #nav-toggle span, #nav-toggle span:before, #nav-toggle span:after {
      cursor: pointer;
      border-radius: 1px;
      height: 5px;
      width: 35px;
      background: #ffc900;
      position: absolute;
      display: block;
      content: '';
    }
    #nav-toggle span:before {
      top: -10px; 
    }
    #nav-toggle span:after {
      bottom: -10px;
    }

    #nav-toggle span, #nav-toggle span:before, #nav-toggle span:after {
      transition: all 200ms ease-in-out;
    }
    #nav-toggle.active span {
      background-color: transparent;
    }
    #nav-toggle.active span:before, #nav-toggle.active span:after {
      top: 0;
    }
    #nav-toggle.active span:before {
      transform: rotate(45deg);
    }
    #nav-toggle.active span:after {
      transform: rotate(-45deg);
    }
    
    #nav-toggle ul {
        display: none;
        visibility: hidden;
        opacity: 0;
    }
    #nav-toggle.active ul {
        visibility: visible;
        opacity: 1;
        display: block;
        position: absolute;
        top: 1.1em;
        right: 0.25ex;
/*        width: 2ex;*/
/*        background-color: rgba(255, 255, 255, 0.75);*/
/*        background-color: rgba(90, 100, 90, 0.75);*/
        background-color: rgba(39, 63, 59, 0.75);
        border-radius: 4px;
        padding: 0.25ex;
        transition: opacity 200ms ease-in-out;
    }
    #nav-toggle.active li {
        line-height: 1.1em;
        display: block;
    }
    #nav-toggle.active a:before {
        content: attr(title);
        font-size: 0.6em;
        padding-right: 0.5ex;
/*        color: rgb(120, 120, 120);*/
        color: #ffc900;
        vertical-align: 15%;
    }
}

body {
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
/*    font-family: Georgia, serif;*/
/*    font-size: 12pt;*/ /* Use the browser defaults */
    line-height: 1.625em;
}

h1,h2,h3,h4,h5,h6 {
    font-family: "Futura-Medium", Helvetica, "Helvetica Neue", sans-serif;
    margin-top: 1.2em;
    margin-bottom: 0.2em;
    line-height: 1.2em;

    /* Turn on ligatures */
    -moz-font-feature-settings: "liga=1, dlig=1";
    -ms-font-feature-settings: "liga", "dlig";
    -webkit-font-feature-settings: "liga", "dlig";
    -o-font-feature-settings: "liga", "dlig";
    font-feature-settings: "liga", "dlig";
}

code, pre {
  font-family: "Source Code Pro", Monaco, Menlo, Consolas, monospace;
  font-size: 0.9em;
  line-height: 1.3em;
}

/* Enable hyphenation in articles, but not necessarily everywhere */
article p {
    /* enable hyphenation */
    -webkit-hyphens: auto;
       -moz-hyphens: auto;
            hyphens: auto;
          
    /* Cross-browser hyphenation support.
       Source: http://www.newnet-soft.com/blog/csstypography
    */
    /*
            -ms-word-break: break-all;
                word-break: break-all;

                // Non standard for webkit
                word-break: break-word;

           -webkit-hyphens: auto;
              -moz-hyphens: auto;
                   hyphens: auto;
                 
  -webkit-hyphenate-before: 2;
   -webkit-hyphenate-after: 3;
           hyphenate-lines: 3;
    */
}

article img {
    max-width: 100%;
    height: auto;
}

.micropub {
    height: calc(100% - 87pt);
    width: 100%;
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-items: center;
    
}

.micropub article {
    max-width: 68ex;
    width: 100%;
    margin: auto;
    padding-bottom: 6em;
    padding-left: 2ex;
    padding-right: 2ex;
}

.micropub.list article {
    padding-bottom: 1em;
    border: 1px solid rgb(240, 240, 240);
    border-radius: 10pt;
    margin-top: 2em;
    background-color: rgb(253, 253, 255);
}

.micropub article img {
    display: block;
    max-width: 100%;
    height: auto;
    align: center;
    padding-top: .5em;
}

.micropub .metadata {
    font-size: 0.83em;
    padding-top: 2.5em;
    color: hsl(0, 0%, 45%);
}

.micropub .metadata a {
    color: hsl(0, 0%, 65%);
    text-decoration: none;
}

.micropub .metadata a:visited {
    color: hsl(0, 0%, 65%);}

.micropub .metadata a:hover {
    text-decoration: underline;
}

.micropub .author:before {
    content: "by ";
}

.micropub .author {
    display: inline;
}

.micropub .author .microblog:before {
    content: "<";
}

.micropub .author .microblog:after {
    content: ">";
}

/*.micropub .publishedDate:before {
    content: " on ";
}
*/
.micropub .publishedDate {
    display: inline;
}

.micropub .publishedDate .time:before {
    content: " at ";
}

.invisible {
    visibility: hidden;
}




.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}


/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
