/*
pgm css 2016
Based on: Create a Responsive Web Design Template, Harry Atkins, http://www.onextrapixel.com/
CSSReset.com - How To Keep Footer At Bottom of Page with CSS
*/


::-moz-selection 	{ background-color: #91D8f7; color: #fff; }
::selection 		{ background-color: #91D8f7; color: #fff; }

a					{ outline: 0; color: #222; text-decoration: none; }
a:hover 			{ text-decoration: underline; }
p a		 			{ color: #23a981; }
p a:hover 			{ color: #ffd16a; }
a:active 			{ outline: none; position: relative; top: 2px; }

/* use to reset after using an 'aside'
.clearfix 			{ clear: both; } */


/*------------------------------------
	MAIN
------------------------------------*/

html,
body	{
	margin:0;
	padding:0;
	height:100%;
	}

html	{
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	}

*, *:before, *:after {
	-webkit-box-sizing: inherit;
	-moz-box-sizing: inherit;
	box-sizing: inherit;
	}
  
body	{ 
	background: #F9F9F9; 
	color: #222; 
	font: normal 100% "Trebuchet MS", Arial, Helvetica, sans-serif; 
	-webkit-transition-property: font-size;
	-moz-transition-property: font-size;
	transition-property: font-size;
	-webkit-transition-duration: 0.5s, 0.5s;
	-moz-transition-duration: 0.5s, 0.5s;
	transition-duration: 0.5s, 0.5s; 
	-webkit-transition-timing function: linear, ease-in;
	-moz-transition-timing function: linear, ease-in; 
	transition-timing function: linear, ease-in; 
	}

img {
	max-width: 100%;
	height: auto;
	width: auto\9; /* ie8 */
	}

#wrapper	{ 
	margin: 0px auto; 
	max-width: 980px; 
	width: 100%; 
	background: #fff; 
	padding: 0; 
	min-height:100%;
	position:relative;
	border: none;
	}

header	{ 
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-align-items: center;
    align-items: center;
	background: #ffd16a; 
	padding: 20px 4%; 
	vertical-align: middle;
	}

#logo::after	{
	content: url("http://pgmurdoch.com.au/images/pgm-logo-p.png");
	width: 100px; /*or your image's width*/
	height: 96px; /*or your image's height*/
	}

header div.text	{
    display: inline-block;
	margin: 0 0 0 20px;
	padding: 0;
	}

h1	{ 
	font-size: 3em; 
	font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif; 
	padding: 0; 
	-webkit-transition-property: font-size;
	-moz-transition-property: font-size;
	transition-property: font-size;
	-webkit-transition-duration: 0.5s, 0.5s;
	-moz-transition-duration: 0.5s, 0.5s;
	transition-duration: 0.5s, 0.5s; 
	-webkit-transition-timing function: linear, ease-in;
	-moz-transition-timing function: linear, ease-in; 
	transition-timing function: linear, ease-in;  
	}

h1 a:hover	{ 
	text-decoration: none; 
	color: #27B3CF; 
	}

h2	{ 
	font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif; 
	font-size: 1.5em; 
	padding: 0; 
	-webkit-transition-property: font-size;
	-moz-transition-property: font-size;
	transition-property: font-size;
	-webkit-transition-duration: 0.5s, 0.5s;
	-moz-transition-duration: 0.5s, 0.5s;
	transition-duration: 0.5s, 0.5s; 
	-webkit-transition-timing function: linear, ease-in;
	-moz-transition-timing function: linear, ease-in; 
	transition-timing function: linear, ease-in;
	}

h3	{ 
	color: #5e408c;
	font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif; 
	font-size: 1.5em; 
	font-style: italic;
	font-weight: bold;
	padding: 3px 0; 
	}

h4	{ 
	color: #5e408c;
	font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif; 
	font-size: 1.4em; 
	font-style: oblique;
	padding: 2px 0; 
	margin: 0; 
	}

h4 a	{ 
	text-decoration: underline; 
	}

h4 a:hover	{  
	}

nav	{ 
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: center;
    justify-content: center;
	background: #23a981; 
	font-size: 1.2em; 
	padding: 0 4%; 
	margin: 0;
	}

nav a	{ 
	color: #F9F9F9; 
	display: block; 
	float: left; 
	padding: 10px; 
	min-width: 20%;
	max-width: 25%;
	text-align: center;
	}

nav a:visited	{ 
	color: #f9f9f9; 
	}

nav a:hover	{ 
	text-decoration: none;
	background: #999; 
	}

nav a:active	{ 
	position: relative; 
	top: 0; 
	}

/*
 * NB: Make sure the value for 'padding-bottom' on #content is equal to or greater than the height of #footer.
 */
section	{ 
	width: 93.75%;
	margin: 20px auto; 
	padding-bottom: 54px; /* Height of the footer element */
	}

p	{ 
	padding-bottom: 10px;
	line-height: 1.3em;
	}

button	{
	padding: 5px 15px; 
	background: #23a981;
	color: #fff;
	border: none; 	
	font-size: 0.9em; 
	}

button a	{ 
	color: #fff; 
	}

button a:visited	{ 
	color: #f9f9f9; 
	}

button:hover	{
	background: #ffd16a;
	}

button a:hover	{
	text-decoration: none;
	color: #5e408c;
	}

button a:active	{ 
	position: relative; 
	top: 0; 
	}

/* ul	{ 
	list-style: none; 
	}
ul li	{ 
	margin: 0 5px; 
	} */

#bio	{
    display: -webkit-flex;
    display: flex;	
    -webkit-flex-direction: row;
    flex-direction: row;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
	}

#bio article	{ 
	width: 70%;
	}

#bio aside	{ 
	width: 23%;
	margin-top: 15px;
	}

#bio aside p	{ 
	text-align: center;
	}

#contact	{
	max-width: 600px; 
	width: 100%;     
	}

#gallery	{
    display: -webkit-flex;
    display: flex;	
    -webkit-flex-direction: row;
    flex-direction: row;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-top: 40px;
	}

#collection	{
	display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: center;
    align-items: center;
    margin: 20px;
    padding: 0;
	}

#cbox	{
	width: 140px; 
	height: 140px;
	margin-bottom: 25px;
	background: #ccc;
	color: #5e408c;
	-webkit-border-radius: 25px;
	border-radius: 25px;
	text-align: center;
	}

#cbox i	{
	margin-top: 30px;
	}

#collection button	{
	min-width: 130px; 
	padding: 15px 20px; 
	font-size: 1.4em; 
	}

#gallery figure	{
	display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-align-items: center;
    align-items: center;
    margin: 30px;
    padding: 0;
	}

#gallery img	{
	padding-bottom: 15px;
	}

#slider	{
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: center;
    align-items: center;
 	margin: 15px auto;
	}

/* #slider figure	{
	
	} */

#slider figcaption	{
	text-align: center;
	padding: 5px 0 20px 0;
	font-size: 0.9em; 
	}
	
#slider figcaption a	{
	color: #23a981;
	}

#slider figcaption a:visited	{ 
	color: #f9f9f9; 
	}

#slider figcaption a:hover	{
	text-decoration: none;
	color: #5e408c;
	}

#booklist	{
	width: 80%;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-justify-content: center;
    justify-content: center;
	}

#book-item	{
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: space-around;
    justify-content: space-around;
    -webkit-align-items: flex-start;
    align-items: flex-start;
	padding-bottom: 20px;
	margin-bottom: 20px;
	border-bottom: solid #ccc 1px;
	}

#book-item img	{
    max-width: 25%;
	}

#details	{
    width: 60%;
    padding-right: 10px;
	}

footer	{ 
	-webkit-box-sizing: content-box;
	-moz-box-sizing: content-box;
	box-sizing: content-box;
	font-size: 0.9em; 
	margin: 0; 
	padding: 20px 0 0 0; 
	background: #ffd16a; 
	width: 100%;
	height: 32px;
	text-align: center;
	position:absolute;
	bottom:0;
	left:0;
	}

footer p	{ 
	padding-bottom: 0;
	}

pre	{ 
	overflow: scroll;
	font-size: 0.875em; 
	padding-bottom: 15px; 
	}


/*------------------------------------
	MEDIA QUERIES
------------------------------------*/

@media screen and (max-width: 800px)	{
	
header	{ 
	padding: 10px 3.125%; 
	}

#logo::after	{
	content: url("http://pgmurdoch.com.au/images/pgm-logo-p-mid.png");
	width: 65px; /*or your image's width*/
	height: 62px; /*or your image's height*/
	}

header div.text	{
	margin: 0 0 0 13px;
	}

h1	{
	font-size: 2em;
	padding: 1px;
	}

h2	{
	font-size: 1.1em;
	padding: 1px;
	}

nav	{ 
	padding: 0 3.125%; 
	}

section	{ 
	padding-bottom: 36px; /* Height of the footer element */
	}

footer	{ 
	padding: 10px 0 0 0;
	height: 24px;
	}

	}

/*------------------------------------*/

@media screen and (max-width: 768px)	{
	
header	{ 
	padding: 10px 3.125%; 
	}

#logo::after	{
	content: url("http://pgmurdoch.com.au/images/pgm-logo-p-sml.png");
	width: 56px; /*or your image's width*/
	height: 54px; /*or your image's height*/
	}

header div.text	{
	margin: 0 0 0 10px;
	}

#contact	{
	width: 87.5%;     
	}

#gallery	{
    margin-top: 20px;
	}

#collection	{
    margin: 15px;
    padding: 0;
	}

#cbox	{
	width: 120px; 
	height: 120px;
	margin-bottom: 10px;
	-webkit-border-radius: 20px;
	border-radius: 20px;
	}

#cbox i	{
	margin-top: 20px;
	}

#collection button	{
	min-width: 110px; 
	padding: 10px 15px; 
	font-size: 1.3em; 
	}

	}

/*------------------------------------*/

@media screen and (max-width: 480px) 	{

body	{
	font-size: 14px;
	}

#logo::after	{
	content: url("http://pgmurdoch.com.au/images/pgm-logo-p-sml.png");
	width: 56px; /*or your image's width*/
	height: 54px; /*or your image's height*/
	}

header div.text	{
	margin: 0 0 0 10px;
	}

nav	{ 
	padding: 0 6.25%; 
	}

section	{
	padding-bottom: 30px; /* Height of the footer element */
	margin: 15px auto; 
	width: 87.5%;
	}

#bio	{
    display: block ;
	}

#bio article	{ 
	width: 100%;
	}

#bio aside	{ 
	width: 100%;
	margin-top: 10px;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: center;
    align-items: center;
	}

#gallery figure	{
	margin: 20px;
	}

#gallery img	{
	padding-bottom: 10px;
	}

#slider	{ 
	width: 90%;
	}

#book-item	{
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: center;
    align-items: center;
	padding-bottom: 10px;
	margin-bottom: 10px;
	border-bottom: solid #ccc 1px;
	}

#book-item img	{
    max-width: 100%;
	}

#details	{
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: center;
    align-items: center;
    width: 100%;
    padding-right: 0;
	}

#details h3	{
    display: none;
	}

#details p	{
    display: none;
	}

button	{
    margin-top: 10px;
	}

footer	{ 
	padding: 10px 0 0 0; 
	height: 20px;
	}

	}

/*------------------------------------*/

@media screen and (max-width: 320px)	{

body	{
	font-size: 13px;
	}

#logo::after	{
	content: url("http://pgmurdoch.com.au/images/pgm-logo-p-sml.png");
	width: 56px; /*or your image's width*/
	height: 54px; /*or your image's height*/
	}

header div.text	{
	margin: 0 0 0 10px;
	}

section	{ 
	margin: 12px auto;
	}

#cbox	{
	width: 100px; 
	height: 100px;
	margin-bottom: 10px;
	-webkit-border-radius: 15px;
	border-radius: 15px;
	}

#cbox i	{
	margin-top: 10px;
	}

#collection button	{
	min-width: 100px; 
	padding: 5px 10px; 
	font-size: 1.2em; 
	}

#slider	{ 
	width: 86%;
	}

	}

/*------------------------------------*/




