/* ===================
          ROOT 
   =================== */

:root {
  --fg: rgb(225, 225, 225);
  --bg: rgb(0, 0,0);
  --mg: rgb(0,0,0);
  --bordercolor: #8fb4bf;
  --bordertype:3px groove;
  a:link { color: lightblue; }
}

/* ===================
        FONTS 
   =================== */

@font-face {
	font-family: "Tanzra";
  src: url("/fonts/Tanzra.woff") format('woff'); 
}

@font-face {
	font-family: "Rexover";
	src: url("/fonts/Rexover.otf") format('opentype'); 
}

/* ===================
          BODY 
   =================== */

body {
  font-size: 1.1em;
  font-family: Georgia, "Times New Roman", serif;
  margin: 0; padding: 0;
  color: var(--fg);
}

p {
  line-height: 1.5em;
}

html,
body,
div,
span,
object,
iframe,
h1, h2, h3, h4, h5, h6,
blockquote,
pre,
abbr,
address,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
samp,
small,
strong,
sub,
sup,
var,
b,
i,
dl,
dt,
dd,
ol, ul, li,
fieldset,
form,
label,
legend,
table,
caption,
tbody, tfoot, thead,
tr,
th,
td,
article,
aside,
canvas,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  vertical-align: baseline;
  background: transparent;
}

h1 {
  font-size: 1.7em;
}

h2 {
  font-size: 1.6em;
}

h4 {
  font-size:1.2em;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

nav ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

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

a {
  margin: 0;
  padding: 0;
  vertical-align: baseline;
  background: transparent;
}

ins {
  background-color: #ff9;
  color: #000;
  text-decoration: none;
}

mark {
  background-color: #ff9;
  color: #000;
  font-style: italic;
  font-weight: bold;
}

del {
  text-decoration: line-through;
}

abbr[title],
dfn[title] {
  border-bottom: 1px dotted;
  cursor: help;
}

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

input,
select {
  vertical-align: middle;
}

body,
html {
  background-color: var(--bg);
}

header {
  background: var(--mg);
  padding: 10px 30px;
  margin: auto;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 999;
  height: 40px;
  border-bottom: var(--bordertype);
  border-color: var(--bordercolor);
}

nav {
  display: inline-block;
}

nav ul li a {
  background: var(--bg);
  padding: 5px 10px;
  font-size: 14px;
  text-decoration: none;
  font-weight: bold;
  color: #344;
  border-radius: 5px;
  border: var(--bordertype);
  border-color: var(--bordercolor);
}

nav ul li a:hover {
  color:#456;
  text-decoration:underline;
}

nav ul li {
  display: inline-block;
  margin: 10px;
}

nav ul {
  list-style: none;
}

article {
  border-bottom: var(--bordertype);
  border-color: var(--bordercolor);
  padding:0 20px 20px;
  margin: 0 10px 20px;
}

article h2 {
  font-weight: normal;
  margin-bottom: 12px;
}

article:last-child {
  border-bottom:none;
  padding-bottom:0;
  margin-bottom:40px;
}

.tagbox > ul li {
  border: 2px solid rgb(96 139 168);
  border-radius: 5px;
  background-color: rgb(96 139 168 / 0.2);
  list-style-type: none;
  padding: 3px;
  margin: auto 0.25em;
}

.tagbox {
  display: flex;
  flex-wrap:wrap;
  justify-content: flex-start;
  
}

.tags {
  max-width: 960px;
  margin: auto;
  padding: 2rem 0 1rem;
}

.tag {
  display: flex;
  align-items: center;
  margin: 0.25rem 1rem;
}

/* ===================
        FOOTER 
   =================== */

footer {
  display:flex;
  background: var(--bg);
  border-top:var(--bordertype);
  border-color: var(--bordercolor);
  max-width: 900px;
  margin: 0 -7px 0 -20px;
  clear: both;
  text-align: center;
  padding: 7px 20px 7px 15px;
  color:var(--fg);
}

footer p {
  font-size: 0.8em;
  display:block;
  width:50%;
  margin:0;
  padding:0 0 0 15px;
}

footer > .lefty {
  text-align:right; !important
}

address {
  padding: 10px 20px 30px 10px;
}

aside > div {
  margin: 10px auto;
  background: var(--mg);
  min-height: 150px;
  padding: 0;
  color: #fff;
  border: var(--bordertype);
	border-radius: 5px;
  border-color: var(--bordercolor);
}

aside > div > h4 {
  box-size:border-box;
  border-bottom:var(--bordertype);
  border-color:var(--bordercolor);
  padding:3px 3px 3px 10px; 
  margin-bottom:10px;
  height:25px;
  width:100%;
}

/* ===================
        HEADER 
   =================== */

a#logo {
  vertical-align: middle;
  font-size: 3em;
  color: var(--bg);
  font-weight: bold;
  display: block;
  text-decoration: none;
  text-align: center;
  line-height: 40px;
  padding: 60px 5px;
  font-family: "Rexover";
  text-shadow: -1px -1px 0 lightblue, 1px -1px 0 lightblue, -1px 1px 0 lightblue, 1px 1px 0 lightblue;
}

body > section {
  max-width: 900px;
  margin: auto;
  padding: 30px 0px;
  border-bottom: 1px solid #999;
  color: #333;
}
#sidebarBackTop {
  background: var(--mg);
  color: #fff;
  opacity: 0.8;
  cursor: pointer;
  display: block;
  padding: 5px;
}
#sidebar a.back2Top {
  text-decoration: none;
  text-align: center;
  background: var(--mg);
  color: #fff;
  font-weight: bold;
  padding: 5px;
  display: block;
  border-radius:5px;
  border:var(--bordertype);
  border-color:var(--bordercolor);
}
#sidebar a.back2Top:hover {
  background: #456;
}
#sidebarContent {
  width: 300px;
  background: var(--mg);
  padding: 10px;
  border-right:var(--bordertype);
  border-left:var(--bordertype);
  border-color: var(--bordercolor);
}
footer a {
  color: #fff;
}
#main {
  margin-left: 320px;
}
#wrapall {
  padding-top: 60px;
  border-right:var(--bordertype);
  border-color:var(--bordercolor);
}
#header {
  max-width: 1000px;
  overflow: hidden;
  height: 40px;
}

#wrapall,
#header {
  max-width: 1000px;
  margin: 0 auto;
}

#headerLeft,
#headerRight {
  display: inline-block;
  vertical-align: middle;
}
#headerLeft {
  text-align: center;
  width: 100px;
}
#headerRight {
  height: 40px;
}
#sidebar {
  float: left;
  position: absolute;
}
#page {
  padding: 10px 7px 0;
}

.stick #sidebarContent {
  position: fixed;
  z-index: 900;
  bottom: 0px;
}
#stick-here {
  background: red;
}
.sidebarToggle #sidebar {
  display: none;
}
.sidebarToggle #main {
  margin-left: 0;
}

@media screen and (max-width: 1100px) {
  header {
    padding: 10px;
  }
  #headerLeft {
    width: auto;
  }
  #headerRight {
    width: 60%;
  }
}
@media screen and (max-width: 820px) {
  #sidebar {
    display: none;
  }
  #main {
    margin-left: 0;
  }
  .sidebarToggle #sidebar {
    background: red;
    display: block;
  }
  .stick #sidebarContent {
    bottom: auto;
  }
  a#logo {
    font-size: 20px;
    line-height: 20px;
    padding: 10px 5px;
  }
  aside > div {
    min-height: 20px;
    padding: 10px;
  }
  .sidebarToggle #menuToggle {
    background: #344;
    color: #fff;
  }
}


@media screen and (max-width: 600px) {
  #headerLeft {
    float: right;
  }
  #headerRight {
    height: auto;
    position: absolute;
    width: auto;
    top: 46px;
    background: #6f9898;
    left: 0;
    display: none;
  }
  .showMobileMenu #headerRight {
    display: block;
  }
  nav ul li a {
    display: block;
    background: transparent;
    color: #fff;
    text-align: center;
    font-size: 16px;
    padding: 3px 29px;
    line-height: 25px;
  }
  .showMobileMenu #mobileMenuToggle {
    background: #344;
    color: #fff;
  }
  nav ul li {
    display: block;
    margin: 0;
  }
  .socialButtons {
    display: none;
  }
  header {
    padding: 3px 10px;
  }
  
  #page {
    padding: 20px 10px;
  }
  
  #wrapall {
    padding-top: 46px;
  }
  #sidebarContent {
    right: 0;
    background: #6f9898;
  }
  #mobileLogo {
    display: inline-block;
    font-size: 17px;
    padding: 0 3px 0 10px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
  }
  #mobileMenuToggle {
    display: inline-block;
  }
}

/* ===================
        POSTS 
   =================== */

/*POST LIST STYLE*/
#postlistdiv ul {
  font-size: 1.2em;
  padding: 0;
  list-style-type: none;
}

#recentpostlistdiv ul {
  font-size: 1.2em;
  padding: 0;
  list-style-type: none;
}

.moreposts {
  font-size: 0.8em;
  margin-top: 0.2em;
}

/*NEXT AND PREVIOUS LINKS STYLE*/
#nextprev {
  text-align: center;
  margin-top: 1.4em;
}

/*DISQUS STYLE*/
#disqus_thread {
  margin-top: 1.6em;
}

/* ===================
        IMAGES 
   =================== */

img {
  max-width: 100%;
  height: auto;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.right {
  float: right;
  margin-left: 1em;
}

.left {
  float: left;
  margin-right: 1em;
}

.center {
  display: block;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.caption {
  margin-top: 0;
  font-size: 0.9em;
  font-style: italic;
}

#big {
  text-orientation: mixed;
  writing-mode: vertical-lr;
  position: fixed;
  left: 82%;
  margin: 80px 0 0 0;
  font-size: 7em;
  text-shadow: -1px -1px 0 lightblue, 1px -1px 0 lightblue, -1px 1px 0 lightblue, 1px 1px 0 lightblue;
  font-family: "Rexover";
  color: var(--bg);
  display: block;
  height: 100%;
  max-width: 200px;
}