/* general stuff  */

body {
  max-width: var(--width-main);
  margin: auto;
  padding: 0 1em 0 1em;
}



/* header area */

div.headercontainer {
  width: 100%;
  height: var(--height-header);
  display: flex;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 10px;
  align-items: baseline;
}

div.headercontainer div.logoitem {
  flex-grow: 1;
}

div.headercontainer div.logostringitem {
  text-align: left;
  flex-grow: 1;  
}

div.headercontainer div.navitem {
  text-align: right;
  display: table-cell;
  vertical-align: text-bottom;
  flex-grow: 100;
}

span.logostring a {
  font-size: 28px;
  font-weight: bold;
  text-decoration: none;
  color: var(--color-text);
}

nav ul.menu { 
  padding: 0; 
  margin: 0;
  text-align: right;
}

nav ul.menu li { display: inline-block; }

nav ul.menu li a {
  text-decoration: none;
  background: #eee;
  padding: 2px 5px;
  border-radius: var(--radius);
  font-size: smaller;
}

h1.title {
  background: var(--color-bg-title);
  padding: 5px;
  border-radius: var(--radius);
  text-align: center;
  margin-bottom: 20px;
}

footer { text-align: center; }

footer a { text-decoration: none; }

hr {
  border-style: solid;
  color: #eee;
}




/* code */
pre {
  border: 1px solid #ddd;
  box-shadow: 5px 5px 5px #eee;
  padding: 1em;
  overflow-x: auto;
}
code { background: #f9f9f9; }
pre code { background: none; }

/* misc elements */
img, iframe, video { max-width: 100%; }
main { hyphens: auto; }
blockquote {
  background: #f9f9f9;
  border-left: 5px solid #ccc;
  padding: 3px 1em 3px;
}

table {
  margin: auto;
  border-top: 1px solid #666;
  border-bottom: 1px solid #666;
}

table thead th { border-bottom: 1px solid #ddd; }
th, td { padding: 5px; }
thead, tfoot, tr:nth-child(even) { background: #eee; }

/* misc  */
div.copyright {
  text-align: center;
  font-size: small;
}

div.copyright a {
  color: #888;
}

div.madewith {
  color: var(--color-text);
  font-size: small;
  margin-top: 2em;
}



div.copyright a:link {
  color: #888;
}

/* visited link */
div.copyright a:visited {
  color: #888;
}

/* mouse over link */
div.copyright a:hover {
  color: #444;
}

/* selected link */
div.copyright a:active {
  color: 888;
}


a.mastodon_backlink:link {
    color: black;
}

a.mastodon_backlink:visited {
    color: black;
}




main.main {
  margin-top: 0;
  margin-right: calc( (var(--width-main) - var(--width-content)) / 2 );
  margin-bottom: 0;
  margin-left: calc( (var(--width-main) - var(--width-content)) / 2 );
}


p.pagediag {
  background-color: #fee;
  color: #000;
  font-size: small;
}

p.pageslist {
  margin-bottom: 0;
  font-weight: bold;
}



img.df4or_std_left {
    width: auto;
    float: left;
    margin-left: 0;
    margin-top: 0;    
    margin-right: 20px;
    margin-bottom: 20px;
}


p.postcreated {
  text-align: right;
  font-size: smaller;
}
