/*
 * Teleonomix style sheet.
 * Copyright (c) Andras Zsoter 2021, 2022 All Rights Reserved.
 *
 */

 /*
 * {
	box-sizing:border-box;
 }
*/

:root
{
	--bgcolor:#f8f8ff;
	--post-width:80%;
	--aside-width:20%;
}
html
{
	font-size: 24px;
	/* background-color:#80ffff; */
	/* background-color:#c0ffff; */ /***/
	background-color:var(--bgcolor);
}

body {
	/* position:relative; */
	/* display: block; */
	margin:0;
	padding:0;
	height:100%;
	font: normal large/1.4 'Droid Sans', arial, sans-serif;
	vertical-align: baseline;

}

aside {
	float: right;
	width: 20%;
	font-size: smaller;
	/* border:2px outset #888; */
	background-color: #f4f4f8;
	/* background-color:#eee; */
	/* border-left: 1px solid darkgrey; */
	padding-left: 1vw;
	margin-top: 1vh;
	margin-left: 1%;
	margin-bottom: 1%;
	margin-right:0;
	height:auto;
}

aside ul {
	list-style-type: none;
	padding: 0;
	margin: 0;
	/* background-color:#eee; */
}

a {
	text-decoration: none;
	color:#2020E0;
}

a.tag
{
	color:#0040c0;
	font-size: small;
}

a:hover {
	text-decoration:underline;
	color:#090;
}

a:active {
	color:red;
}

li {
	margin: 0 0 0.25em 0;
}

blockquote {
	font-style:italic;
}

header {
	display:block;
	color:#4040FF;
	/* border-bottom:5px solid #000; */
}

header.post_header {
	position:relative;
	max-width: var(--post-width);
	margin-top: 0.5em;
	margin-bottom: 1em;
	vertical-align: baseline;
}

span.timestamp {
	font-size: 0.6em;
	color: darkblue;
	font-style: italic;
	overflow: hidden;
	vertical-align: baseline;
}

p {
	margin: 0 0 1em 0;
}

.CodeExample {
	/* background-color: #fff; */
}

pre {
	background-color: #000;
	color:#4f4;
}

pre p {
	margin: 0,0,0,0;
	display: inline;
	/* background-color: #fff; */
}

#page {
	position: relative;
	/* top: 12px; */
	min-height:100%;
	max-width: 1102px;
	height:auto;
	margin: 0px auto;
	/* background-color:#eee; */
	padding-bottom: 30px;
	padding-left: 50px;
	padding-right: 50px;
	padding-top: 0px;

	/* background-color:#80ffff; */
	z-index: 0;
	clear: both;
}


article.post_body {
	max-width: var(--post-width);
	/*
	float: right;
	text-align: left;
	margin-right:auto;
	*/
}

.post_body p {
	text-align: justify;
}

div.post_text {
	display:block;
	/* background-color: white; */
}

.centered {
	/*
	align-items: center;
	justify-content: center;
	*/
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}

.wingdings
{
	font-family:Wingdings;
}

.warning
{
	font-size:x-large;
	font-style: italic;
	color:red;
}

.note {
	font-style: italic;
}

p.moddate {
	text-align:right;
	color:#888;
	overflow: hidden;
	vertical-align: baseline;
}

div.clearfix {
	clear:both;
}

.tag_cloud {
}

footer {
	position:static;
	display:block;
	width:100%;
	bottom:0;
	left:0;
	height:2em;
	/* background-color:#bbb; */
	clear:both;
}

footer div {
	margin-top:5px;
}

h1 {
	font-size: 1.4em;
}

h1.teleonomix {
	margin: 0.5em 0 0 0.5em;
}

h1.post_title {
	margin-left: 0;
	margin-right: auto;
	margin-top: auto;
	margin-bottom: auto;
	display: block;
}

aside h1
{
	font-size: normal; 
	text-align: Left;
	margin: 0.1em;
}

h2 {
	font-size: 1.2em;
}

h2.tag-list {
	display:inline;
	font-size: small;
}

#search {
}

img.logoimage {
	display:block;
	width:100%;
	height:auto;
	margin-top: 0px;
  	margin-bottom: 0px;
  	margin-right: 0px;
  	margin-left: 0px;
	z-index:-1;
}

#site-home
{
	display: block;
	height:min-content;
}

#logotext {
	display:inline;
	position:absolute;
	right:0;
	bottom: 0;
	z-index:1;
}

img.headerimage {
	display:block;
	width:100%;
	height:auto;
    margin-top: 0;
	margin-bottom:0;
	padding-top:0;
	padding-bottom:0;
}

img.post_img {
	display: block;
	max-width:96%;
	margin-left: auto;
	margin-right: auto;
	height:auto;
}

img.thumbnail {
	width: 150px;
	height: 150px;
	margin-right: 12px;
}

div.piclink {
	width:150px;
	display:inline-block;
	vertical-align:top;
}

.piclink a {
	width: 100%;
	display: inline-block;
}

.piclink figure {
	width: 100%;
	display: inline-block;
	margin-top: 1vh;
	margin-bottom: 1vh;
	margin-right: 1vw;
	margin-left: 1vw;
}

.piclink figcaption
{
	font-size: small;
}

p.picture {
	font-size:small;
	color: #000080;

	display: block;
	max-width:80%;
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}

ul.references {
	display: block;
	list-style-type: none;
	font-size:smaller;
	margin: 0.2em;
	padding: 0;
}

h2.references {
	font-size: 1.1em;
	margin: 0.2em;
}

ul.post_list {
	display: block;
	list-style-type: none;
	margin: 0.2em;
	padding: 0;
}

nav
{
	margin:0;
	vertical-align: baseline;
	background-color:#eee;
}

nav ul 
{
	display: block;
	list-style-type:none;
	/* font-size: 22px; */

	/* vertical-align: baseline; */
	/* text-align:center; */
	padding-inline-start: 1vw;
	margin:0;
}

nav ul li
{
	display:inline;
	list-style:none;
	vertical-align: baseline;
	padding-left: 0;
	padding-right:0;
	margin-left: 0;
	margin-right: 26px;
	text-align: left;
	/* background-color:#ccc; */
}

.navbar {
  overflow: hidden;
  background-color: #333;
}
/*************************************************************************************/
.subnav {
  overflow: hidden;
  display: inline;
  position:relative;
  width:auto;
  /*
   float: left; 
  background-color:#e00;
   */
}

.subnav-content
{
	display: none;
	position:absolute;
	top:1em;
	left:0em;
  	width:auto;
  	background-color:#00f;
    border-bottom: 1px solid #888;
	/*
	height:auto;
       	width:auto;
  	background-color:#eee;
  	background-color:#00e;
	*/

}

.subnav-content a:hover
{
  /*
  color: yellow;
  */
}

.subnav-content  ul
{
  	overflow: hidden;
	display:block;
  	position:absolute;
	text-align:left;
  	width:auto;
	padding-left:0;
	padding-right:0;
  	border: 2px solid #888;
  	background-color:#00f;
	/*
  	background-color:#eee;
  	background-color:#0e0;
	*/
}

.subnav-content  ul li 
{
  	overflow: hidden;
	display:block;
	width:auto;
	white-space: nowrap;
	font-size:0.8em;
	padding-left: 0.5em;
	padding-right:0.5em;
    border-bottom: 1px solid #888;
  	background-color:#eee;
	margin:0 0 0 0;
  	/*
	background-color:#e0e;
  	background-color:#00f;
	*/
}

.subnav:hover .subnav-content
{
  display: block;
  position:absolute;
  z-index: 99999;
  /* background-color:#eee; */
  background-color:#00f;
  border: 1px solid #888;
  width:auto;
}

/*
.subnav:hover ul.sub-menu
{
        display:block;
}

ul.sub-menu {
        display:none;
        position:absolute;
        z-index: 99999;
        background-color:#eee;
        border: 1px solid #444;
        width:inherit;
}
*/

/*************************************************************************************/

sup
{ 
    vertical-align: super;
    font-size: 60%;
    /* font-size: smaller; */
}

.tm {
	font-style: italic;
	font-size: small;
}

#site-title {
	/*
	position:relative;
	position:absolute;
	top: 0;
	*/
	display: block;
	height: min-content;
    /* padding: 0px 0px 0px; */
}

#content
{
	position:relative;
	/* padding: 1em; */
	padding-bottom:2vh;
}

@media screen and (orientation: portrait) {
	aside {
		float:none;
		width: 100%;
		background-color:var(--bgcolor);
	}

	article.post_body {
		max-width:100%;
	}

	nav ul
	{
		padding-inline-start: 0;
	}

	nav ul li
	{
		display: block;
		border: 1px solid darkgrey;
		padding: 0;
		margin: 0;
		text-align: center;
	}
}
