/*
Theme Name: David Almond
Author: Roger Cornwell
Description: Developed from scratch for David Almond
Version: 0.0.1
Tags: bootstrap
*/

/*
 * Globals
 */

body {
  font-family: Calibri, "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #555;
  background-color: #cdddeb;
}
.row	{
	background-color: white;
}

h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4,
h5, .h5,
h6, .h6 {
  margin-top: 0;
  font-weight: normal;
  color: #1B223C;
}

p	{
	font-size: 120%;
	line-height: 14pt;
}

blockquote	{
	font-size: 120%;
	line-height: 14pt;
}

hr	{
	border-top-color:#354275;
	clear: both;
}

/*
 * Override Bootstrap's default container.
 */

@media (min-width: 1200px) {
  .container {
    width: 970px;
  }
}


/*
 * Masthead for nav
 */

.blog-masthead {
	position: relative;
	background-color: #354275;
	-webkit-box-shadow: inset 0 -2px 5px rgba(0,0,0,.1);
          box-shadow: inset 0 -2px 5px rgba(0,0,0,.1);
   padding-bottom:15px;
	border-bottom: 1px solid white;
}
ul#menu-header-menu {
	margin:0;
}
ul.menu li, ul.navbar-nav {
	Font-size: 120%;
}
/* Nav links */
.blog-nav-item, .nav-item {
  position: relative;
  display: inline-block;
  padding: 10px;
  font-weight: 500;
  color: #cdddeb;
}
.blog-nav-item:hover,
.blog-nav-item:focus,
.nav-link:hover,
.nav-link:focus {
  color: #1B223C;
  text-decoration: none;
}

/* Active state gets a caret at the bottom */
.blog-nav .active {
  color: #1B223C;
}
.blog-nav .active:after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 0;
  margin-left: -5px;
  vertical-align: middle;
  content: " ";
  border-right: 5px solid transparent;
  border-bottom: 5px solid;
  border-left: 5px solid transparent;
}

/* So titles can be hidden */
.hidetitle .blog-post-title {
	display:none;
}

/* Float picture to right */
.alignright	{
	float:right;
	margin: 0 0 1em 1em;
}
/*
/* Float picture to left */
.alignleft	{
	float:left;
	margin: 0 1em 1em 0;
}
/* Centre picture on mobiles (does not display if larger screen */
.mobile-centre	{
	margin: 1em auto;
	display: none;
}
/* For text alongside a picture floated left */
.alongside	{
	margin-left: 320px;
}
/* To centre a picture and its caption */
p.centre	{
	text-align:center;
}
/*
 * Blog name and description
 */

.blog-header {
	position: absolute;
	left:45%;	/* 45% of the way across */
	top:60px;	/* The menu bar at the top */
	padding: 0;
	margin-right: 30px;
}
h1.blog-title, h1.blog-title a {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 6vw;
  font-weight: normal;
  color: #354275 !important;
}
h1.blog-title a:hover, h1.blog-title a:focus {
	text-decoration: none;
}
.blog-description {
  font-size: 2vw;
  color: white;
  font-weight:bold;
  margin-bottom: 2vw;
}
div.chw-widget-area {
	position: relative;
	top: 2vw;
	height: 34vw;
}
div.chw-widget {
	float:right;
}
@media (max-width:842px){
	div.chw-widget img	{
		width: 22vw;
	}
}
@media (max-width:500px){
	div.chw-widget-area	{
		top:6vw;
	}
}
p.review	{
	margin-bottom:0em;
	margin-left: 2em;
	margin-right: 2em;
	font-style: italic;
}

p.reviewer	{
	margin-top:0em;
	text-align: right;
	margin-right: 6em;
	font-weight: bold;
}
/* Alternatives for overlaying the header picture */
div.skellig {
	left: 30%;
	top:0;
}
div.aboutme	{
	left:40%;
	top: 0;
}
div.onwriting	{
	left:55%;
	top: 0;
}

h1.skellig	{
	font-size: 4vw;
	margin-top: 10vw;
	color: white !important;
}

h1.aboutme	{
	font-size: 5vw;
	margin-top: 4vw;
}

h1.onwriting	{
	font-size: 8vw;
	margin-top: 29vw;
}

div.events {
	left: 75%;
	top:0;
}
h1.events	{
	font-size: 6vw;
	margin-top: 3vw;
	color: #050102 !important;
}
div.booksby	{
	left:65%;
	top: 0;
	margin-right: 3%;
}

h1.booksby	{
	font-size: 4vw;
	margin-top: 4vw;
	color: white !important;
}

@media (min-width:768px){
	h1.skellig	{
		font-size: 28px;
		margin-top: 95px;
	}
	h1.aboutme	{
		font-size: 36px;
		margin-top: 28px;		
	}
	h1.onwriting	{
		font-size: 67px;
		margin-top: 220px;
	}
	h1.events	{
		font-size: 40px;
		margin-top: 20px;	
	}
}
@media (min-width:992px){
	h1.skellig	{
		font-size: 37px;
		margin-top: 106px;
	}
	h1.aboutme	{
		font-size: 46px;
		margin-top: 37px;		
	}
	h1.onwriting	{
		font-size: 75px;
		margin-top: 300px;
	}
	h1.events	{
		font-size: 52px;
		margin-top: 26px;
	}
}


dl {
	margin-left: 2em;
}

dt    {
	font-size: 150%;
	font-weight: bold;
}

dd    {
	margin-left: 4em;
	font-size: 120%;
	margin-bottom: 2ex;
}

/*
 * Main column and sidebar layout
 */

.blog-main {
  font-size: 18px;
  line-height: 1.5;
}
.book {
	font-size:87%;
	line-height: 133%;
	border-bottom:thin solid #354275;
}
.book:after {
  content: "";
  display: table;
  clear: both;
}
.cover {
	float:left;
	margin-right:1em;
}
@media (min-width:768px) {
	.book {		
		margin-right: -10%;
	}
}
@media (max-width:500px) {
	.blog-post-title	{
		text-align: center;
	}
	.blog-main	{
		padding: 0;
	}
	.cover {		
		text-align:center;
		float:none;
	}
	.cover::after	{
		clear:both;
	}
}

/* Sidebar modules for boxing content */
.sidebar-module {
  padding: 15px;
  margin: 0 -15px;
}
.sidebar-module-inset {
  padding: 15px;
  background-color: #f0f0ff;
  border-radius: 4px;
}
.sidebar-module-inset p:last-child,
.sidebar-module-inset ul:last-child,
.sidebar-module-inset ol:last-child {
  margin-bottom: 0;
}
.sidebar-module-inset h4 {
	font-size: 120%;
	font-weight:bold;
}
.sidebar-module-inset ol.list-unstyled li	{
	text-indent: -1em;
	margin-left:1em;
}

/* Pagination */
.pager {
  margin-bottom: 60px;
  text-align: left;
}
.pager > li > a {
  width: 140px;
  padding: 10px 20px;
  text-align: center;
  border-radius: 30px;
}


/*
 * Blog posts
 */

.blog-post {
  margin: 0 1em 60px 1em;
}
.blog-post-title {
  margin-bottom: 5px;
  font-size: 40px;
}
.blog-post-meta {
  margin-bottom: 20px;
  color: #999;
}

/*
 * Tag pages
 */
h1.tagged	{
	margin:1ex -10% 1ex 1ex;
	padding:1ex;
	font-size: 30pt;
	color:white;
	background-color: #354275;
}
@media (max-width:991px){
	h1.tagged	{
		font-size: 22pt;
	}
}
@media (max-width:600px){
	h1.tagged	{
		font-size: 5vw;
	}
}
/*
 * Footer
 */

.blog-footer {
  padding: 20px 0;
  color: #BBB;
  text-align: center;
  background-color: #354275;
  border-top: 1px solid #e5e5e5;
}
.blog-footer a {
	color: #cdddeb;
}
.blog-footer a:hover {
	color: white;
	text-decoration: none;
}
.blog-footer p:last-child {
  margin-bottom: 0;
}
.blog-nav li {
    position: relative;
    display: inline-block;
    padding: 10px;
    font-weight: 500;	
}
.blog-nav li a {
    color: #d9dcf0;
}
.blog-nav li a:hover, .blog-nav li a:active {
    color: #fff;
    text-decoration: none;
}
/* Support fluid navigation
-------------------------------------------------------------- */
nav.blog-nav	{
	min-height: 44px;
}
h1.small-title, h1.small-title a	{
	display:none;
	color:white !important;
	margin-top: 3px;
	font-weight: normal;
}
h1.small-title a:hover, h1.small-title a:focus {
	text-decoration: none;
}
#menu-trigger {
	position: absolute;
	top: 5px;
	right: 15px;
	display: none;
	z-index:10;
	text-align: center; 
}
#menu-trigger span {
	display: inline-block;
	padding: 0 14px 5px 14px;
   background-color: transparent;
   color: white;
   cursor: pointer;
   font-size: 20pt;
}
nav#menu-mobile {
	position: relative;
	display: none;
   font-family: Lucida Sans Unicode, Arial, Helvetica, sans-serif;
	font-size: 90%;
	font-weight: bold;
	max-width:20em;
	margin:0 auto;
}
nav#menu-mobile ul {
	margin: 20px auto;
	text-align:left;
	list-style-type:none;
}
nav#menu-mobile a {
	display: block;
	color: white;
	padding: 10px;
	width:auto;
}
nav#menu-mobile a:hover {
	background-color: white;
	color: #374977;
	text-decoration: none;
}
/* =Media Queries
-------------------------------------------------------------- */
@media all and (max-width: 600px) {
	h1.small-title, h1.small-title a	{
		display: block;
	}
	h1.blog-title	{
		display: none;
	}
	.blog-header	{
		left:20%;
		top:40px;
	}
	.blog-description {
		font-size: 3vw;
	}
	#menu-trigger {
		display: block;
	}

	#menu-header-menu {
		display: none;
	}

	#menu-mobile {
		display: block;
		width:100%;
		z-index:10;
	}
	dl	{
		margin-left:0;
	}
	dd {
		margin-left: 2em;
	}
}
@media all and (max-width: 600px) {
	.alignright	{
		display: none;
	}
	.mobile-centre	{
		display:block;
		max-width:100%;
	}
}