body {
	background-color: #333;
	font-family: 'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif;
}

/* Header */

.site-name>a {
	text-decoration: none;
	color: white;
}

.header-img {
	margin-top: 20px;
	margin-bottom: 10px;
}

#nav {
	background-color: #474747;
}

#nav .active>a {
	background-color: #4472B9;
}

.navbar-inverse .navbar-nav>li>a {
    color: #b3b3b3;
}

/* Modal */

.btn {
	color: white;
	background-color: #4472B9;
	border-color: #2e6da4;
}

.btn:hover {
	color: white;
}

/* Main page */

.center {
	text-align: center;
}

.content {
	min-height: calc(100vh - 149px); /* 149px is title + nav + 30px of the bottom*/
	margin-bottom: 30px;
}

.content .row:before {
	height: 40px;
}

.content h1, .content h3 {
	margin: 0px;
}

article {
	background-color: white;
	padding: 40px;
	margin: 0px 15px;
	box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

article a {
	text-decoration: none;
	color: black;
}

article a:hover {
	text-decoration: none;
    color: #4472B9;
}

article > h2 {
	margin: 10px 0px;
}

article > p {
	font-size: 16px;
}

.date {
	color: #999;
}

.tag, .tag:hover, .tag:focus {
	background-color: #4472B9;
	color: white;
	margin-left: 10px;
	width: 77px;
	padding: 0px;
}

/* Posts style */

.post-list {
	background-color: #eee;
}

.post-container {
	background-color: white;
  margin: 0px;
}

.post > h1 { /* post title */
	padding-bottom: 20px;
}

.post { /* post content */
	background-color: white;
	padding: 0px;
	font-size: 18px;
	line-height: 1.7;
	color: #333;
}

.post p, .post pre, .post li:last-child {
	margin-bottom: 20px;
}

.post h2, .post h3 {
	margin: 30px 0px 10px 0px;
	font-weight: bold;
}

pre {
	padding: 0px;
	font-size: 18px;
	word-wrap: normal;
}

code {
	background-color: #333;
	color: white;
}

pre code {
	white-space: pre;
}

iframe {
  border: 0px;
  width: 100%;
}

blockquote {
  margin-bottom: 10px;
  padding: 10px;
  background-color: #fff9e3;
  border-left: 2px solid #ffeb8e;
}

img {
	margin-left: auto;
  margin-right: auto;
  display: block;
  max-width: 100%;
  height: auto;
}

/* 404 page style */

.game-container {
	background-color: white;
}

.game-content {
	width: 60%;
	position: relative;
	display: block;
  margin: 0 auto;
}

#splash {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left:0;
	background-image: url('../images/fernetjs-invaders.png');
	background-size: 100% 100%;
	opacity: 0;
	display:none;
	z-index: 2;
	text-align: right;
	float: right;
}

#splash a {
	font-size: 3vw;
	text-decoration: none;
	color: #323330;
	margin-right: 5%;
}

#game-canvas {
	width: 100%;
	margin-top: 10px;
	border-radius: 10px;
	-moz-border-radius: 10px;
	-webkit-border-radius: 10px;
	border: 1px solid silver;
	background-color:#222;
}

/* Disqus */

#disqus_thread {
	margin: 0px 30px;
}

.disqus {
	background-color: white;
	padding-top: 10px;
}

/* media queries */

@media all and (max-width: 329px) {
  .header-img {
  	display: none;
  }
}

@media all and (max-width: 419px) {
  .tag {
  	font-size: 10px;
	width: 58px;
	margin-left: 2px;
  }
}

@media all and (max-width: 767px) {
  h1 {
  	font-size: 26px;
  }

  h2 {
  	font-size: 24px;
  }

  h2 {
  	font-size: 20px;
  }

  pre, .post > div, article > p {
		font-size: 13px;
  }

  article > p {
		font-size: 13px;
  }
}

@media all and (max-width: 991px) {
  .post-container {
  	padding: 0px 15px;
  }
}

@media print {
  header {
    display: none;
  }
}