body {
  overflow: auto;
  font-family: "DejaVu Serif", Georgia, serif;
  font-size: 1.4em;
}

p {
  text-align: justify;
}

em, strong
{
  font-weight: bolder;
}

div#body-container {
  display:    -moz-flex;
  display:     -ms-flex;
  display: -webkit-flex;
  display:         flex;

     -moz-flex-direction: column;
      -ms-flex-direction: column;
  -webkit-flex-direction: column;
          flex-direction: column;

     -moz-flex-wrap: nowrap;
      -ms-flex-wrap: nowrap;
  -webkit-flex-wrap: nowrap;
          flex-wrap: nowrap;

     -moz-justify-content: flex-start;
      -ms-justify-content: flex-start;
  -webkit-justify-content: flex-start;
          justify-content: flex-start;

  box-sizing: border-box;
  min-width: 20em;
  min-height: 100%;
}

div#toolbar-container,
div#intro-container,
div#main-menu-container,
div#content-main-container,
div#content-extra-container,
div#footer-container
{
     -moz-flex: 0 0 auto;
      -ms-flex: 0 0 auto;
  -webkit-flex: 0 0 auto;
          flex: 0 0 auto;

  box-sizing: border-box;
  margin: 0;
  width: 100%;
  overflow: visible;
}

div#toolbar,
div#intro-title,
div#main-menu,
div#content-main,
div#content-extra,
div#footer
{
  box-sizing: border-box;
  margin: 0 auto;
  padding: 0.5em;
  overflow: visible;
}

/***************************************************************
 * toolbar
 **************************************************************/

div#toolbar-container
{
  border-bottom: thin solid black;
}

div#toolbar
{
  text-align: right;
  padding-top:    0.6em;
  padding-bottom: 0.6em;
}

/***************************************************************
 * intro
 **************************************************************/

div#intro-title {
  padding-top: 1.2em;
  padding-bottom: 1em;
  overflow: hidden;
}

div#intro-title h1,
div#intro-title h2,
div#intro-title h3
{
  margin-left: 0;
  margin-right: auto;
}

div#intro-title h1
{
  margin-top: 0;
}

div#intro-title h1 a,
div#intro-title h1 a:hover,
div#intro-title h1 a:visited
{
  background-color: inherit;
  color: inherit;
  text-decoration: inherit;
}

div#intro-cover {
  background-origin: padding-box;
  background-clip: padding-box;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: center bottom;

  height: 25vh;
  /* 1224px is the background image raw height */
  max-height: calc(max(50vh, 1224px));

  width: 100%;
  overflow: hidden;
}

/***************************************************************
 * content-main
 **************************************************************/

div#content-main-container {
     -moz-flex-grow: 1 !important;
      -ms-flex-grow: 1 !important;
  -webkit-flex-grow: 1 !important;
          flex-grow: 1 !important;
}

div#content-main {
  vertical-align: top;
  border: none;
}

div#content-main-body {
  vertical-align: top;
  padding-bottom: 2em;
}

a.wide-img
{
  display: none;
}

.hostname,
.listname,
.mejlowy
{
  font-family: monospace;
}
.mejlowy::after {
  content: ' edu pl\003E';
}
.mejlowy::before {
  content: '\003C';
}

/***************************************************************
 * content extra and tag cloud
 **************************************************************/

div#tag-cloud
{
  font-size: smaller;
}

/***************************************************************
 * menu
 **************************************************************/

div#main-menu {
  padding: 0;
}

div#main-menu > nav {
  font-size: 1.2em;
  font-weight: bolder;
  overflow: hidden;
}

div#main-menu nav a
{
  display: block;
  transition: 0.1s;
  text-decoration: none;

  color: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  padding: 1em;
  margin: 0;
}

div#main-menu nav a:last-child {
  border-bottom-width: thin;
  border-bottom-style: dashed;
}

/***************************************************************
 * skryba elements
 **************************************************************/

#post .skryba-post-date
{
    display: block;
    margin-left: auto;
    margin-right: 0;
    font-size: 1.2em;
    font-style: italic;
    text-align: right;
}

#post ul.skryba-tag-list {
    text-align: right;
}

ul.skryba-tag-list a.skryba-tag {
  padding: 0.25em 0.5em;
  text-decoration: none;
}

/***************************************************************
 * footer
 **************************************************************/

div#footer {
  overflow: hidden;
}

div#footer > p {
  font-size: 0.8em;
  margin: 0.5em auto 0.5em 0;
  text-align: left;
}

/***************************************************************
 * color palette
 * taken from here: https://www.w3schools.com/colors/colors_palettes.asp
 **************************************************************/

body {
  background-color: white;
  color: black;
}

div#main-menu-container {
  background-color: #c1946a;
  color: white;
}

div#main-menu nav a.active,
div#main-menu nav a:active,
div#main-menu nav a:hover,
div#main-menu nav a.active:visited,
div#main-menu nav a:active:visited,
div#main-menu nav a:hover:visited
{
  background-color: #82b74b;
  color: white;
}

div#main-menu nav a:last-child {
  border-bottom-color: #c1946a;
}

a.active,
a:active,
a:hover,
div#content-main-container a.active,
div#content-main-container a:active,
div#content-main-container a:hover
{
  background-color: #82b74b;
  color: white;
}

div#content-main-container a {
  color: blue;
}

div#content-extra-container {
  background-color: #c1946a;
  color: white;
}

ul.skryba-tag-list a.skryba-tag
{
  background-color: #405d27;
  color: white !important;
}

ul.skryba-tag-list a.skryba-tag:active,
ul.skryba-tag-list a.skryba-tag:hover
{
  background-color: #82b74b;
}

div#toolbar-container,
div#footer-container
{
  background-color: #3e4444;
  color: white;
}

div#footer-container a {
  color: white;
}
