/* WillowWEB */
@font-face {
    font-family: 'willow';
    src: url('../fonts/willow.woff2') format('woff2'),
         url('../fonts/willow.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'body';
    src: url('../fonts/body.woff2') format('woff2'),
         url('../fonts/body.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

:root {
	--page-width: 900px;
	--page-background: hsl(57, 38%, 89%);
	--navbar-color: hsl(0, 10%, 24%);
	--font-color: hsl(60, 2%, 8%);
	--font-desc-color: hsl(60, 2%, 26%);
	--font-muted-color: hsl(60, 1%, 55%);
    --font-lighter-color: hsl(60, 11%, 89%);
	--font-darker-color: hsl(60, 4%, 9%);
	--hyperlink-color: #2f4975;
	--separator-color: hsl(0, 11%, 67%);
	--primary-color: #5e5c51;
}

html, body, #wrapper, #main-container {
	margin: 0; padding: 0;
	height: 100%;
	min-height: 100%;
	position: relative;
}
html {
	scroll-behavior: smooth;
}
body {
	/* Padding top for navbar */
	padding-top: 110px;
	background-color: var(--page-background);
    background-image: url(../img/bg.webp);
	/*Font stuff*/
	font-family: "body", Tahoma, Geneva, sans-serif;
	font-size: 1em;
	color: var(--font-color);
	position: relative;
}

section {
	padding: 150px 0;
}

img {
	max-width: 100%;
}

p code {
	color: hsl(303, 30%, 50%);
	background-color: hsl(305, 16%, 15%);
	padding: 0 3px;
}

pre code {
	display: inline-block;
	padding: 0 0.5em;
	line-height: 1.4em;
	border-radius: 3px;
}

table {
	empty-cells: show;
	border: 1px solid #cbcbcb;
	width: 100%;
	font-size: 0.9em;
	margin-bottom: 1rem;
}

thead {
	background-color: #e0e0e0;
	color: #000;
	text-align: left;
	vertical-align: bottom;
}

tr {
	display: table-row;
	vertical-align: inherit;
	border-color: inherit;
}

th,
td {
	padding: 0.5em 1em;
}

h1.title,
h2.title,
h3.title,
h4.title,
h5.title {
	margin: 0;
	padding: 0;
}
h1.title { font-size: 1.5em; }
h2.title { font-size: 1.4em; }
h3.title { font-size: 1.3em; }
h4.title { font-size: 1.2em; }
h5.title { font-size: 1.1em; }
h6.title, h6 { font-size: .9em; }
h6.dated { 
	font: normal 16px 'willow';
	color: var(--font-muted-color);
}

blockquote {
	padding: 10px 20px;
	margin: 0 0 20px 20px;
	border-left: 5px solid var(--font-muted-color);
	font-style: italic;
}

a {
	color: var(--hyperlink-color);
	text-decoration: none;
	font: normal .98em 'body';
}

a:hover {
	color: inherit;
}

/* Header - Navbar */

#site-header {
	max-width: var(--page-width);
	display: flex;
	flex-direction: row;
} 

.top-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  /* justify-content: space-between; */
  justify-content: flex-start;
  /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  color: var(--page-background);
  width: 100%;
  padding: 1em;
}

.navbar {
	background-color: var(--navbar-color);
}

.navbar-brand img.logo, .navbar-brand img {
	width: auto; height: 80px; max-width: 260px; max-height: 100px;
}

a.navbar-brand { 
	margin: 4px 8px;
}

.navbar-brand .slogan {
	width: 100%;
    justify-self: start; align-self: start; 
	justify-self: stretch;
}

.site-logo { max-width: 260px; align-self: start; }

.site-title, .site-title-only { font: bold 1.5em "willow", SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; color: #FDFDFD; }

h1.site-title, .slogan, .plugin-label, .menu > li a {
	font: bold 1.1em "willow", SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; color: #FDFDFD;
}

h2.plugin-label { font-size: 1.1em; color: #111111; }
.plugin-content { font-size: .93em; color: #433737; }


/* Main page - Content */
.vr {
	display: inline-block;
	align-self: center;
	width: 1px;
	min-height: 1em;
	background-color: #fff;
	opacity: .25;
}

#main-container {
	max-width: var(--page-width);
	margin: 0 auto;
	display: flex;
	flex-direction: row;
	align-items: top;
    justify-content: center;
    flex-wrap: wrap;
}
.main-content {
	margin: 0; padding: 0;
	width: 600px;
}

.main-content-posts {
margin: 1em 1% 3em 1%; padding: .2em 2%;
}
.sidebar {
	margin: 0; padding: 0;
	width: 300px;
}

#site-footer {
    position: fixed; bottom: .5em; right: .5em;
	color: hsl(0, 10%, 36%); text-align: right;
	z-index: 999999;
}
#side-footer {
    position: absolute; bottom: .5em; right: .5em;
    margin: 5px 5px 24px 5px;
	color: hsl(0, 10%, 36%); text-align: right;
	display: none;
}
#site-footer .powered, #side-footer .powered  {
	background-color: #5e5c51; color: #FDFDFD;
	border-radius: 4px;
	font-weight: bold;
	font-size: 12px;
	padding: 4px 8px;
}

.text-muted {
	color: var(--font-muted-color) !important;
}

.text-primary {
	color: var(--primary-color) !important;
}

.text-darker {
	color: var(--font-darker-color);
}

@media only screen and (max-width: 900px) {
.main-content {
	margin: 0; padding: 0;
	width: 90%
}
.sidebar {
	margin: 0; padding: 0 0 150px 0;
	position: relative;
	width: 90%
}
#site-footer { display: none; }
#side-footer { display: block; }
}

/* Plugins */

.sidebar .plugin {
	margin: 1em 0; padding: .2em 2%;
}

.plugin {
	margin-bottom: 1rem;
}

.plugin-label {
	font-size: 1em;
	margin: 0;
}

.plugin ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Cover image*/
.cover {
	width: 100%;
	height: auto;
	/* height: 200px; */
	/* object-fit: cover; */
}

/*Post*/
.post {
	margin: 0; padding: 0;
	margin-bottom: 16px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--separator-color);
	position: relative;
}

.post .head {
	color: var(--primary-color);
}

.post .date { min-width: 120px; text-align: right; }

.post .badge, .badge {
  appearance: none;
  background-color: #433737;
  border: 1px solid rgba(27, 31, 35, .15);
  border-radius: 6px;
  box-shadow: rgba(27, 31, 35, .1) 0 1px 0;
  box-sizing: border-box;
  color: var(--font-lighter-color);
  cursor: pointer;
  display: inline-block;
  font-family: -apple-system,system-ui,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
  margin: 2px 1px;
  padding: 2px 8px 3px 8px;
  position: relative;
  text-align: center;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: middle;
  white-space: nowrap;
}
.post .badge a, .badge a {
	text-decoration: none;
  	font-size: 12px;
  	font-weight: 600;
  	line-height: 20px;
  	margin: 2px 1px;
  	padding: 2px 8px 3px 8px;
	color: var(--font-lighter-color);
  	cursor: pointer;
  	font-family: -apple-system,system-ui,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";
}

.post .date {
	font-size: 0.8rem;
	margin: 0;
}

/*Post list*/
.pag .pag-link {
	margin-right: 8px;
}

.pag-link.disabled {
	pointer-events: none;
}

.post-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
p.post-desc {
	font: italic .9em 'body';
	color: var(--font-desc-color);
	padding: .2em 0 .6em 0;
}

.menu {
  display: flex;
  flex-direction: row;
  justify-content: end;
  align-items: right;
  display: inline-flex;
  list-style-type: none;
  margin: 0 32px;
  padding: 0;
}

.menu > li {
  margin: 0 1rem;
  overflow: hidden;
  display: inline-block;
}

div .menu-button { position: absolute; top: 1.1em; right: 1.1em; }

.menu-button-container {
  display: none;
  height: 100%;
  width: 30px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#menu-toggle {
  display: none;
}

.menu-button,
.menu-button::before,
.menu-button::after {
  display: block;
  background-color: var(--page-background);
  position: absolute;
  height: 4px;
  width: 30px;
  transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
  border-radius: 2px;
}

.menu-button::before {
  content: '';
  margin-top: -8px;
}

.menu-button::after {
  content: '';
  margin-top: 8px;
}

#menu-toggle:checked + .menu-button-container .menu-button::before {
  margin-top: 0px;
  transform: rotate(405deg);
}

#menu-toggle:checked + .menu-button-container .menu-button {
  background: rgba(255, 255, 255, 0);
}

#menu-toggle:checked + .menu-button-container .menu-button::after {
  margin-top: 0px;
  transform: rotate(-405deg);
}

@media (max-width: 700px) {
  .menu-button-container {
    display: flex;
    position: absolute;
    top: 0; right: 0;
  }
  .menu {
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: center;
  }
  #menu-toggle ~ .menu li {
    height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
  }
  #menu-toggle:checked ~ .menu li {
    height: 2.5em;
    padding: 0.5em;
    transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
  }
  #menu-toggle:checked ~ .menu li:not(:last-child) {
	 border-bottom: 2px solid #222;
  }
  .menu > li {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0.5em 0;
    width: 100%;
    color: rgb(208, 167, 247);
	font-size: 19px;
    background-color: var(--navbar-color);
  }
  .menu > li a { color: var(--font-muted-color); font-size: 19px; }

}

/* plugin */
p.readtime {
	display: flex;
    align-items: center;
    justify-content: left;
	font: normal 16px 'willow';
	color: var(--font-muted-color);
}
p.readtime img { width: 20px !important; height: auto; opacity: .6; }
span#showReadTime { margin-right: 3px; }