/*===========================================================================*/
/* Gaudium Ludendi Theme                                                     */
/* Copyright: Carlos Schramer                                                */
/* https://www.gaudiumludendi.de                                             */
/*===========================================================================*/

/*---------------------------------------------------------------------------*/
/* Main styles                                                               */
/*---------------------------------------------------------------------------*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-weight: inherit;
  font-style: inherit;
  font-size: 100%;
  font-family: inherit;
  vertical-align: baseline;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

caption, th, td {
  text-align: left;
  font-weight: normal;
}

blockquote:before, blockquote:after,
q:before, q:after {
  content: "";
}

blockquote, q {
  quotes: "" "";
}

/* HTML5 tags */
header, section, footer,
aside, nav, article, figure {
  display: block;
}

/* hand cursor on clickable input elements */
label, input[type=button], input[type=submit], button {
  cursor: pointer;
}

/* make buttons play nice in IE:
   www.viget.com/inspire/styling-the-button-element-in-internet-explorer/ */
button {
  width: auto;
  overflow: visible;
}

/* Sharper Thumbnails */
img {
  -ms-interpolation-mode: bicubic;
}

div a img {
  width: 10em;
  float: right;
  border: 1px solid black;
  margin-top: 0.4em;
  margin-left: 1em;
}

input,
textarea,
select {
  padding: 5px;
  font: 400 1em Verdana, Sans-serif;
  color: #909090;
  background: white;
  border: 1px solid black;
  margin: 0 0 1em 0;
}

input:focus,
textarea:focus,
select:focus {
  color: black;
  background: white;
  border: 1px solid black;
}

a, a:visited {
  color: #909090;
  text-decoration: none;
  -webkit-transition: all 0.2s linear;
  -moz-transition: all 0.2s linear;
  -ms-transition: all 0.2s linear;
  -o-transition: all 0.2s linear;
  transition: all 0.2s linear;
}

a:hover, a:active {
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1.5em;
}

h1 {
  font-weight: bold;
  font-size: 2em;
  clear: both;
}

h2 {
  font-weight: bold;
  font-size: 2.3em;
  clear: both;
}

h3 {
  font-size: 1.8em;
  margin-top: 2em;
  clear: both;
}

h4 {
  font-size: 1.3em;
  margin-top: 2em;
}

p, table, ol, pre, blockquote, dl {
  margin-bottom: 1.5em;
}

ol {
  padding-left: 30px;
}

b, strong {
  font-weight: bold;
}

i, em {
  font-style: italic;
}

u {
  text-decoration: underline;
}

abbr, acronym {
  cursor: help;
  border-bottom: 0.1em dotted;
}

td, td img {
  vertical-align: top;
}

td, th {
  border: solid 1px black;
  padding: 0.25em 0.5em;
}

th {
  font-weight: bold;
  text-align: center;
  color: white;
  background: black;
}

sub {
  vertical-align: sub;
  font-size: smaller;
}

sup {
  vertical-align: super;
  font-size: smaller;
}

code {
  font-family: Courier, "Courier New", Monaco, Tahoma;
  background: #909090;
  color: black;
  padding: 0px 2px;
}

pre {
  background: #909090;
  padding: 20px;
  overflow: auto;
}

blockquote {
  font-style: italic;
  margin-left: 15px;
  padding-left: 10px;
  border-left: 5px solid black;
}

dd {
  margin-left: 2em;
}

li {
  margin-left: 1em;
}

ul {
  margin-bottom: 1.5em;
}

/*---------------------------------------------------------------------------*/
/* Page structure                                                            */
/*---------------------------------------------------------------------------*/
html {
  height: 100%;
  min-width: 256px;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  font: 16px/1.8em 'Open Sans', Helvetica, Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5em;
  color: black;
  background: black;
}

#header {
  flex: 0 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background: black;
  color: white;
  font-weight: bold;
  padding: 2em 5em;
}

#header h1 {
  flex: 0 1 auto;
  margin-bottom: 0;
}

#header img {
  display: inline-block;
  max-height: 5em;
  height: auto;
  width: auto;
  vertical-align: middle;
  float: none;
  border: none;
  margin-top: 0;
  margin-left: 0;
}

#header nav {
  flex: 0 1 auto;
  list-style: none;
}

#header ul {
  list-style: none;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: center;
  align-items: baseline;
  justify-content: flex-end;
}

#header li {
  display: inline-block;
  flex: 0 0 auto;
  font-size: 1.5em;
  margin-left: 1em;
}

#header h1 a,
#header a:hover,
#header .active a {
  color: white;
}

#content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

#content .left {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  width: 5em;
  background: black;
}

#content .topleft {
  flex: 0 0 auto;
  width: 100%;
}

#content .midleft {
  flex: 0 0 auto;
  width: 100%;
}

#content .bottomleft {
  flex: 0 0 auto;
  width: 100%;
}

#content .middle {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: white;
}

#content .topborder {
  flex: 0 0 auto;
  height: 4em;
}

#content .middleborder {
  flex: 1 1 auto;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

#content .leftborder {
  flex: 0 0 auto;
  width: 5%;
}

#content .center {
  flex: 1 1 auto;
  max-width: 850px;
  padding: 0 1em 2em 1em
}

#content .rightborder {
  flex: 0 0 auto;
  width: 5%;
}

#content .bottomborder {
  flex: 0 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  height: 8em;
}

#content .decoration1 {
  flex: 0 0 auto;
  width: 4em;
  margin-bottom: 2em;
  margin-left: 14%;
}

#content .decoration2 {
  flex: 0 0 auto;
  width: 25em;
  margin-left: 7%;
  margin-right: 0%;
}

#content .right {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  width: 5em;
  background: black;
}

#content .topright {
  flex: 0 0 auto;
  width: 100%;
}

#content .midright {
  flex: 0 0 auto;
  width: 100%;
}

#content .bottomright {
  flex: 0 0 auto;
  width: 100%;
}

#home {
  display: flex;
  justify-content: center;
  background: black;
  color: white;
  padding: 0 0;
  margin: 0 0;
  background: black;
}

#home p {
  margin: 0 0;
}

#home img {
  height: auto;
  width: auto;
  vertical-align: middle;
  float: none;
  border: none;
  margin: 0 0;
}

#footer {
  flex: 0 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background: black;
  color: #909090;
  padding: 2em 5em
}

#footer .info {
  flex: 0 1 auto;
}

#footer .social {
  flex: 0 1 auto;
  font-size: 2em;
}

#footer a {
  color: #D0D0D0;
}

#footer a:hover {
  color: white;
}

#cookiepane {
  position: absolute;
  top: 85%;
  left: 0%;
  width: 100%;
  height: 15%;
  background: rgba(0, 0, 0, 0.75);
}

#cookiepane.accepted {
  display: none;
}

#cookienote {
  padding: 1em;
  background: black;
  color: white;
  text-align: center;
  border-style: solid;
  border-width: 0.5em;
  border-color: white;
}

/*---------------------------------------------------------------------------*/
/* Small devices, tablets                                                    */
/*---------------------------------------------------------------------------*/
@media only screen and (max-width : 768px) {
  #header {
    flex-direction: column;
    align-items: center;
  }

  #header ul {
    justify-content: space-evenly;
    padding-top: 2em;
  }

  #header li {
    display: inline-block;
    flex: 0 0 auto;
    font-size: 1.5em;
    margin-left: 0.5em;
    margin-right: 0.5em;
  }

  #header img {
    display: inline-block;
    height: auto;
    width: 100%;
    vertical-align: middle;
    float: none;
    border: none;
    margin-top: 0;
    margin-left: 0;
  }

  #home img {
    height: auto;
    width: 100%;
    vertical-align: middle;
    float: none;
    border: none;
    margin: 0 0;
  }

  #footer {
    flex-direction: column;
    justify-content: space-evenly;
    text-align: center;
  }

  #cookienote {
    position: absolute;
    top: 25%;
    left: 5%;
    margin-left: -2em;
    padding: 2em;
    width: 90%;
    height: auto;
    background: black;
    color: white;
    text-align: center;
    border-style: solid;
    border-width: 0.5em;
    border-color: white;
  }
}

@media only screen and (max-width : 640px) {
  #header {
    flex-direction: column;
    align-items: center;
    padding: 2em
  }

  #content .left {
    display: none;
  }

  #content .right {
    display: none;
  }

  #content .decoration1 {
    flex: 0 0 auto;
    width: 3em;
    margin-top: 1em;
    margin-bottom: 3em;
    margin-left: 10%;
  }

  #content .decoration2 {
    flex: 0 0 auto;
    width: 18em;
    margin-top: 2em;
    margin-left: 7%;
    margin-right: 0%;
  }

  #footer {
    padding: 2em
  }
}
