/**
 * EC mod based on Pico's Default Theme
 * @author  Eric
 *
 * Pico's Default Theme
 * @author  Gilbert Pellegrom
 * @author  Daniel Rudolf
 * @link    http://picocms.org
 * @license http://opensource.org/licenses/MIT The MIT License
 * @version 2.1
 */

* {
    box-sizing: border-box;
    border: 0 none;
    margin: 0;
    padding: 0;
}

.hidden { display: none !important; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0 none;
}

.slide {
    overflow-y: hidden !important;
    -webkit-transition: height .1s ease-in !important;
            transition: height .1s ease-in !important;
}

/*** BASIC LAYOUT ***/

html, body { 
  height: 100%; 
  margin:0;
  overflow-x: hidden;

}

body { 
    display: flex; 
    flex-direction: column; 
    background-size: 8px;
}


#main {  flex: 1 0 auto; }
#header, #footer { flex: 0 0 auto; }

#header{
    margin-bottom:1rem;
}
#footer{
    margin-top:2rem;
}

#main {
    /*padding: 2em 0 2em;*/
    padding: 0;
}

.container {
    max-width: 1280px;
    width: 90vw;
    padding: 0;
    margin: 0 auto;
    position: relative;

}
#main .container p{
    max-width: 70%;
    text-justify: distribute;
}
#main .container ul{
    max-width: 70%;
    text-justify: distribute;
}
#main .container figure p{
    max-width: 100%;
}
.post article{
    flex:auto;
}
.excerpt p{
    max-width: 100% !important;
}
.grid p{
    max-width: 100% !important;
}
/*
.widescreen .container { max-width: 72em; }
*/

/* very ugly overflow fix, avoid this whenever possible! */
/*
main .container { overflow-x: auto; }
*/
/*** BASIC LAYOUT: HEADER ***/

#header .container{ 
    display:flex;
    align-items: center;
    justify-content: space-between;
    gap:1rem;
}
.branding {
    display:flex;
    align-items: center;
    gap:1rem;
}
.branding img {
    width:3rem;
    height:3rem;
}

/* 
#header *{ 
    outline:1px solid red;
} */

/* ------------------ full width box */
.fullwidth .container{
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  /* text-shadow: 1px 1px 5px #111, 0 0 10px #000, 0 0 30px #384a4f; */
  /* mix-blend-mode: difference; */
}
.fullwidth h1{
    width:80%;
    max-width:1000px;
    font-size: 4em;
    line-height:1em;
    padding:0 0 1rem 0;
    margin:0;
}
.fullwidth .container, .fullwidth h1{
    color: #222;
    z-index:3;
}
.fullwidth p{
    text-align: start;
    font-size: 1.2em;
}
.fullwidth pre{
    background: transparent;
    border:0; 
    text-shadow: none;
}
.centerVH{
  display: flex;
  align-items: center;
}
.fullwidth {
  width: 100vw;
  min-height: 20em;
  /* max-height: 35em; */
  height:60vh;
  position: relative;
  left: calc(-50vw + 50%);

  /* background: #fff center; */
  background-repeat:no-repeat;
  background-size:100% auto ;
  
  overflow-wrap: break-word;
  word-wrap: break-word;
  /*to clip media overlays  */
  overflow:hidden;
}
.fullwidth button{
    background: #000;
    color: #fff;
}
.fullwidth button:hover{
    background: #fff;
    color: #000;
}
.fullwidth button:focus{
    background: #fff;
    color: #000;
}

.mediaoverlay,.gradient{
    position:absolute;
    top:50%;
    left:-2vw;
    transform: translate(0,-50%);
    -webkit-transform: translate(0,-50%);
    
}
.mediaoverlay{
    z-index:1;
}
.gradient{
    width:110vw;
    height:100%;
    background: linear-gradient(90deg, #fff 20%, transparent 60%);
    z-index:2;
}
.mediaoverlay video{
    /* width:104vw; */
    /* height:auto; */
    width:110vw;
}
/* ------------------ full width box end */


#logo {
    float: left;
    padding:1em 0;
}


#title * { font-size:1.2rem; margin: 0; }
#title p { font-size:0.8rem; font-style: italic; }

#logo { height: 100%; max-height:10em; }
#logo * { display: block; height: 100%; }
#logo img { min-height: 3em; }

#logo + #title h1 { margin: 0.8rem 0; }
#logo + #title.tagline h1 { margin: 0; }

#nav {
    flex-grow: 1;
}
#nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0;
    display:flex;
    gap:1rem;
    align-items: center;
    justify-content: flex-end;
}
#nav ul li{
    font-size: 1rem;
}

#nav a, #nav-toggle { color: #888; }
#nav .active a, #nav a:hover, #nav-toggle:hover { color: #000; }

#nav-toggle { display: none; }

/* IE8 + IE9 clearfix */

/* #header > .container:after {
    content: '';
    display: block;
    clear: both;
} */

.meta.title{
    display: none;
}

.excerpt{
    margin:0;
}
.excerpt p{
   font-size: 0.9rem;
}
/*** BASIC LAYOUT: FOOTER ***/

#footer {
    padding:1rem;
}
#footer a { color: #888; }

#footer .container {
    display:flex;
    align-items: center;
    justify-content: space-between;
}

#footer .social {
    
}
#footer .content {
  font-size: 0.8rem;
}

/*** TYPOGRAPHY ***/

html { font-size: 16px; }

body {
    font-family: 'Roboto', 'Droid Sans', 'Helvetica', 'Arial', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    font-variant-ligatures: common-ligatures;
    text-rendering: optimizeLegibility;
    font-kerning: normal;
    color: #444;
}

p, td, th, li, dd {
    text-align: left;

    text-justify: inter-word;
}

p, hr, table, .table-responsive, ol, ul, dl, dd, pre, blockquote, fieldset {
    margin-bottom: 1em;
}

a {
    color: #03C;
    text-decoration: none;
}

a:hover { color: #000; }

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.0em;
    font-weight: bold;
    color: #333;
}
h1 { font-size: 1.5rem; margin-bottom: 0.5em; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.1rem; }
h4 { font-size: 1.0rem; }
h5 { font-size: 1rem; }
h6 { font-size: 1rem; font-weight: normal; font-style: italic; }

img { max-width: 100%; }

hr {
    border: 0.15em solid #efefef;
    border-radius: 0.3em;
    background: #eee;
    clear:both;
}

abbr { text-decoration: underline dotted; }

/*** UTILITIES ***/

.align-left { text-align: left; }
.align-center { text-align: center; }
.align-right { text-align: right; }
.align-justify { text-align: justify; }


.image { 
    display: flex;
    flex-direction: column;
    margin:0;
    padding:0;
}
.image.xsmall { width: 20%; }
.image.small { width: 40%; }
.image.large { width: 60%; }
.image.xlarge { width: 80%; }
.image.float-left { float: left; margin: 1em 2em 1em 0; }
.image.float-right { float: right; margin: 1em 0 1em 2em; }
.image img { 
    display: block; width: 100%; 
}

@media (max-width: 767px) {
    #main .container p{
        max-width: 100%;
    }
    .right{
        float: none !important;
        margin:0 !important;
    }
    .left{
        float: none !important;
        margin:0 !important;
    }
    .image{
        width:100% !important;
        margin:2rem 0 !important;
    }

}

/*** TABLES ***/

table { border-spacing: 0; }

td, th {
    padding: 0.4em 1em;
    vertical-align: top;
}
th {
    font-weight: bold;
    text-align: center;
    background: #f5f5f5;
    color: #333;
}

td, th {                                         border: 1px solid #ccc; }
tr:not(:last-child) td, tr:not(:last-child) th { border-bottom: 0 none; }
thead tr:last-child th {                         border-bottom: 0 none; }
td:not(:last-child), th:not(:last-child) {       border-right: 0 none; }

tr:first-child td:first-child, tr:first-child th:first-child { border-top-left-radius: 0.3em; }
tr:first-child td:last-child, tr:first-child th:last-child {   border-top-right-radius: 0.3em; }
tbody tr:last-child td:first-child {                           border-bottom-left-radius: 0.3em; }
tbody tr:last-child td:last-child {                            border-bottom-right-radius: 0.3em; }
table thead + tbody tr:first-child td {                        border-radius: 0 !important; }

.table-responsive { overflow-x: auto; }
.table-responsive > table { margin-bottom: 0; }

/*** LISTS ***/

ol, ul {
    list-style-position: outside;
    padding-left: 1.5em;
}
ol { padding-left: 2.5em; }
li { padding-left: 0.5em; }

dt { font-weight: bold; }
dd { margin-left: 2em; }

/*** CODE ***/

code {
    margin: 0;
    padding: 1em 1em;
    border: 2px solid #ccc;
    border-radius: 0.3em;
    background: #f5f5f5;
    font-family: 'Droid Sans Mono', 'Courier New', 'Courier', monospace;
    font-size: 0.85rem;
    line-height: 1.9824;
}

pre {
    padding: 0;
    border-radius: 0.3em;
    /*background: #f5f5f5;*/
}
code.language-mermaid {
    background:transparent;
    border:0;
}
pre code {
    display: block;
    overflow-x: auto;
    line-height: 1.4;
}
/* Mermaid diagram */
.language-mermaid {
    text-align: center;
}
/* removes standard pre codeblock styling */
/* has issue with FF
pre:has(> .language-mermaid){
    background:transparent;
    border:0;
} 
*/



/*** BLOCKQUOTE ***/

blockquote {
    font-size: 1.4em;
    margin:1em auto;
    font-style:italic;
    color: #555555;
    padding:0.5em 30px 0.5em 30px;
    border-left:8px solid #888 ;
    line-height:1.6;
    position: relative;
    background:#fff;
}
blockquote p {
    display: inline;
}
blockquote em{
    display: block;
    font-size: 0.7em;
    text-align: right;
}

/*** FORMS ***/

label, fieldset legend { font-weight: bold; }

input:not([type="checkbox"]):not([type="radio"]), button, select, textarea, fieldset, fieldset legend {
    border: 1px solid #ccc;
    border-radius: 0.3em;
    background: #fff;
    -webkit-transition: none .2s ease-in;
            transition: none .2s ease-in;
    -webkit-transition-property: border-color, background, box-shadow;
            transition-property: border-color, background, box-shadow;
}

input:not([type="checkbox"]):not([type="radio"]), button, select, textarea {
    padding: 0.5em 1em;
    outline: 0 none;
    font-size: 1rem;
}
input:focus:not([type="checkbox"]):not([type="radio"]), button:focus, select:focus, textarea:focus {
    border-color: #A1BEd0;
    box-shadow: 0 0 8px #A1BEd0;
}
input[type="button"]:focus, input[type="submit"]:focus, input[type="reset"]:focus, button:focus,
input[type="button"]:hover, input[type="submit"]:hover, input[type="reset"]:hover, button:hover {
    background: #f5f5f5;
    cursor: pointer;
}

textarea, select[multiple] {
    vertical-align: bottom;
    overflow: auto;
}

fieldset {
    padding: 1em;
    background: #f5f5f5;
}
fieldset legend { padding: 0 0.5em; }

fieldset label, fieldset input, fieldset button,
fieldset select, fieldset textarea {
    margin: 0.2em 0.5em;
}
fieldset label:first-child, fieldset input:first-child, fieldset button:first-child,
fieldset select:first-child, fieldset textarea:first-child {
    margin-left: 0;
}
fieldset label:last-child, fieldset input:last-child, fieldset button:last-child,
fieldset select:last-child, fieldset textarea:last-child {
    margin-right: 0;
}

/* Firefox input size fix */
input::-moz-focus-inner, button::-moz-focus-inner {
    border: 0;
    padding: 0;
}


/* template */


.date { font-size: 0.8rem}
.bottom{

}
.pagination {
  padding: 2em;
  text-align: center;
  margin-top: auto;
  /*background: #eee;*/
  
}
.pagination-pages a {
    display:inline-block;
    width:2rem;
    height:2rem;
    background: #ccc;
    color: #fff;
    padding:0;
    line-height: 2rem;
    text-align: center;
    border-radius: 1em;
}
.pagination-pages .active{
    background: #444;
    color: #fff;
}
.pagination-prev,
.pagination-next{
    display:none
}



::selection {
    background: #A1BEd099; /* WebKit/Blink Browsers */
}
::-moz-selection {
    background: #A1BEd099; /* Gecko Browsers */
}

/* back to top */
#topBtn{
    display: none; /* Hidden by default */
    position: fixed; /* Fixed/sticky position */
    bottom: 0px; /* Place the button at the bottom of the page */
    left: 50%; /* Place the button 30px from the right */
    transform: translateX(-50%);
    z-index: 99; /* Make sure it does not overlap */
    border: none; /* Remove borders */
    outline: none; /* Remove outline */
    background-color: transparent; /* Set a background color */
    color: #fff; /* Text color */
    cursor: pointer; /* Add a mouse pointer on hover */
    padding: 5px; /* Some padding */
    font-size: 24px; /* Increase font size */
    text-shadow: 0 0 2px #555;
}
#topBtn:hover{
    color: black; /* Text color */
}

.footnotes{
    font-size: 0.9em;
}
.footnotes::before{
    content: "Footnotes";
}


/* image layout */
figure.wide img{
    width: 100vw;
    height: 30em;
    object-fit: cover;
    overflow: hidden;
    position: relative;
}
figure.wide figcaption{
    width:100%;
    text-align: center;
}
figure.wide{
    width: 100vw;
    position: relative;
    left: calc(-50vw + 50%);
}


.small{
    width:50%;
    /* padding:20px; */
    /* background: #eee; */
    /* border-radius: 1em; */
}
.center{
    text-align:center;
    margin:0 auto;
}
.right{
    float:right;
    margin-left:2rem;
}
.left{
    float:left;
    margin-right:2rem;
}
figure p{
    margin:0;
    padding:0;
}

figure{
    margin-bottom:1em !important; /*center margin override*/
}
figcaption {
    width:100%;
    text-align: center;
    font-size: medium;
    font-weight: 600;
}

/*
p:has(> .small){
    width: 50%;
}
p:has(> .left){
    float: left;
    padding-right: 2em;
}
p:has(> .right){
    float: right;
    padding-left: 2em;
}
p:has(> .center){
    text-align:center;
    margin: 0 auto;
}
*/

.grid { 
    display: grid;
    gap: 20px;
    grid-auto-rows: minmax(200px, auto);
    justify-content: space-evenly;
    margin-bottom: 1em;
}
.grid2{
    grid-template-columns: repeat(2, 1fr);
}
.grid3{
    grid-template-columns: repeat(3, 1fr);
}
.grid-item p {
    margin:0;
}
.grid img, .grid-ul img {
    object-fit: cover;
    width:100%;
    height:18em;
}


/* grid on an unordered list*/
.grid-ul ul{
    display: grid;
    gap: 20px;
    grid-auto-rows: minmax(100px, auto);
    justify-content: space-evenly;
    margin: 0 0 1em 0;
    
    list-style-type: none;
    -webkit-padding-start: 0;
    padding-inline-start:0;
}
.grid2 ul{
    grid-template-columns: repeat(2, 1fr);
}
.grid3 ul{
    grid-template-columns: repeat(3, 1fr);
}
.grid-ul li{
    padding: 0;
    margin:0;
    display: inline-block;
    position:relative;
}
.grid-ul li figcaption{
    position:absolute;
    width:100%;
    bottom:0.5em;
    background: #fffa;
    padding:0.5em 0.5em;
    text-align:center;
}


.map { height: 50em; }


form {
    margin:0;
    padding:0;
    display:inline-block;
}

.round img{
    border-radius: 0.5rem;
}

/* in blog articles */

.post{
    margin-top:1em;
    /* border-bottom:5px solid #ccc; */
    display:flex;
    flex-direction: row;
    gap:1rem;
    
}
.post figure{
    flex:auto;
    text-align: right;
    width: 50px;
}
.post figure img{
    max-height: 50px;
    width: 50px;
    object-fit: cover;
}


/* search results */


/* others */
::-moz-selection { /* Code for Firefox */
    color: #fff;
    background: #444;
}

::selection {
    color: #fff;
    background: #444;
}


.flex-center{
    display:flex;
    align-items: center;
    justify-content: center;
}


.author p{
    display:flex;
    align-items: center;
    gap:1rem;
}
.author img{
    width:50px;
    height:50px;
    border-radius: 50%;
}

.nodecor{
    
}