@import url('https://fonts.googleapis.com/css?family=Open+Sans');
body {
	background-color: #111;
	color: #fff;
	font-family: 'Open Sans';
}

div.entry {
  border: 1px solid #444;    /* border line */
  border-radius: 12px;       /* rounded corners */
  padding: 18px;             /* space inside the box */
  margin-bottom: 24px;       /* space between posts */
  background: #1a1a1a;       /* dark background */
  box-shadow: 0 2px 8px rgba(0,0,0,0.5); /* optional shadow */
}


a {
	color: #0074D9;
	text-decoration: none;
  transition: color 0.5s;
}

#content {
	width: 90%;
	max-width: 860px;
	margin: auto;
	margin-top: 60px;
}

header {
	height: 50px;
	box-sizing: border-box;
	line-height: 50px;
	position: fixed;
	width: 100%;
	top: 0;
	left: 0;
	background-color: #111;
	z-index: 100;
	box-sizing: border-box;
	padding: 0 10px;
}
#site-title, #main-nav {display: inline-block;}
#site-title {font-size: 1.5em; font-weight: bold; color: #fff}

/* Navbar */
#main-nav {float: right}

#toggle-menu {
	width: 24px;
	height: 24px;
	display: none;
	text-align: center;
	box-sizing: border-box;
	line-height: 24px;
	z-index: 200;
	position: relative;
}

/* Footer */

footer {
	border-top: 1px solid;
  padding: 10px;
	text-align: center;
	font-size: 0.9em;
	margin-top: 20px;
}

#social_links {
	text-align: center;
}

#social_links > a {
	font-size: 1.5em;
}

img {max-width: 100%; height: auto}

/* Video iframe */

div.video {
	position: relative;
	width: 100%;
	padding-bottom:56.25%;
}

div.video > iframe {
	position: absolute;
	width: 100%;
  height: 100%;
	top: 0;
	left: 0;
}

table {width: 100%}
table th {text-align: left}

a:hover {color: #7FDBFF !important;}

pre {
	 white-space: pre-wrap;
}

.back-button {
    display: inline-block;
    padding: 0.5em 1em;
    background-color: #444; /* dark button for your theme */
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: 1em;
}

.back-button:hover {
    background-color: #666;
}

.sidebar-profile {
  text-align: center; /* center the image */
  margin-bottom: 1em;
}

.profile-pic {
  width: 100px;       /* adjust size */
  height: 100px;
  border-radius: 50%; /* makes it circular */
  object-fit: cover;  /* keeps it from stretching */
  border: 2px solid #ccc; /* optional border */
}


/* Entries list */

.entry {margin-bottom: 20px}
.entry .entry-title {
	font-size: 30px;
	display: block;
}
.entry .entry-date {
	color: #aaa;
	display: block;
	margin: 5px 0;
}

.entry-title {
    font-size: 2em;
    font-weight: bold;
    color: #fff; /* or any color that works for your dark theme */
    margin-bottom: 0.5em;
}

.entry-date {
    font-size: 0.9em;
    color: #888;
    display: block;
    margin-bottom: 1em;
}


/* Pagination */

#pagination {
	text-align: center;
	font-size: 1.2em;
}

#pagination a, #pagination span {
	width: 24px;
	display: inline-block;
	height: 24px;
	line-height: 24px;
}

#pagination .actual-page {font-weight: bold;}
#pagination .inactive {color: #aaa}


.sidebar-title {
  font-size: 20px;
  margin-bottom: 0.5em;
}

.sidebar-text {
  font-size: 20px
  line-height: 1.5;
}

#sidebar {
    position: fixed;
    left: 0px;
    top: 50px;
    height: 75%; 
    width: 15%;
	border: 1px solid #444;    /* border line */
	border-radius: 12px;       /* rounded corners */
	padding: 18px;             /* space inside the box */
	margin-bottom: 24px;       /* space between posts */
	background: #1a1a1a;       /* dark background */
	box-shadow: 0 2px 8px rgba(0,0,0,0.5); /* optional shadow */
	text-align: center;
}

@media (max-width: 768px){
	header {
		line-height: 1px;
		height: 44px;
		line-height: 34px;
	}
	
	#main-nav {
		position: fixed;
		float: none;
		display: block;
		left: -180px;
		top: 0;
		background-color: #111;
		line-height: initial;
		width: 180px;
		height: 100%;
		padding: 10px;
		padding-top: 40px;
		box-sizing: border-box;
		z-index: 100;
		transition: left 1s;
	}
	
	#main-nav > a {
		display: block;
		margin-bottom: 5px;
	}
	#toggle-menu {
		display: inline-block;
	}
	
	#toggle-menu::before {
		font-family: 'Fontello';
		content: '\F0C9';
		color: #fff;
		font-size: 18px;
	}
	
	#site-title {margin-left: 5px;}
	
	#main-nav.open {left: 0;}
	#toggle-menu.open {z-index: 200}
	#toggle-menu.open::before {content: '\E800'}
	
	/* tables */
	table tbody, table thead, table tr,
	table th, table td {display: block}
	table thead {
		position: absolute;
		top: -9999px;
	}
	
	table tr {
		border-bottom: 1px solid;
		padding: 10px 0
	}
	
	table td {
		position: relative;
		padding-left: 45%;
	}
	
	tbody td:before {
		content: attr(data-title);
		position: absolute;
		left: 0;
		display: block;
    font-weight: bold;
		width: 40%;
		white-space: nowrap;
	}
}
