/*
Theme Name: Once In A White Moon
Theme URI: http://www.onceinawhitemoon.net
Author: Glenn Thomas Hvidsten
Author URI: http://www.onceinawhitemoon.net
Description: Custom theme for Once In A White Moon
Version: 0.1
License: Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International
License URI: http://creativecommons.org/licenses/by-nc-nd/4.0/
Tags: custom
Text Domain: onceinawhitemoon
*/

/*** GENERICS ***/

body {
    background-color: #d3d3d3;
    background-image: url("images/bodyBackground.png"), url("images/bodyBackgroundText.jpg");
    background-position: left top, left 190px;
    background-repeat: repeat-x;
    font-family: Verdana, Arial, Helvetica, Sans-Serif;
    padding: 0;
    margin: 0;
}

a {
	color: #406489;
	text-decoration: none;
	font-weight: bold;
}

a:hover {
	text-decoration: underline;
}

a > img {
    border: none;
}

h1
{
	margin: 0 0 10px 0;
	font-size: 1.8em;
	text-align: center;
}

ul {
	padding-left: 20px;
	margin: 0;
}


/*** DESIGN FOR HEADER ***/
header
{
    width: 730px;
    height: 168px;
    margin: 0 auto;
    background-image: url("images/moon/moon.php"), url("images/headerBump.png");
    background-position: 40px 10px, 60px 150px;
    background-repeat: no-repeat;
    padding-left: 350px;
    padding-top: 42px;
}

header div.Social
{
	text-align: right;
	margin-top: 8px;
  	margin-right: 40px;
}

header div.Social a
{
  	opacity: 0.3;
}

header div.Social a:hover
{
  	opacity: 0.8;
}

header > nav
{
    width: 640px;
    text-align: center;
    position: relative;
    top: 49px;
}

header > nav > span > a
{
    background-color: #3b4c66;
    color: #d3dbe6;
    padding: 10px 17px 11px 17px;
    text-decoration: none;
    text-shadow: 2px 2px 2px #313f55;
    border-right: solid 1px #d3dbe6;
    font-weight: normal;
}

header > nav > span:first-child > a
{
    border-left: solid 1px #d3dbe6;
}

header > nav > span > a:hover
{
    text-decoration: underline;
}

/*** DESIGN FOR FOOTER ***/
footer
{
    width: 100%;
    height: 40px;
    position: fixed;
    bottom: 0px;
    background-image: url("images/footerBackground.png");
    color: #97a6ba;
    text-shadow: 1px 1px 1px #314766;
    font-family: Tahoma, Arial, Helvetica, Sans-Serif;
    font-size: 14px;
    -webkit-mask-image: url("images/footermask.svg");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center 0px;
    mask-image: url("images/footermask.svg");
    mask-repeat: no-repeat;
    mask-position: center 0px;
	z-index: 99;
}

footer > div
{
    width: 950px;
    height: 40px;
    margin: 0 auto;
    position: relative;
}

footer div.FooterMenu
{
	text-align: right;
    padding-top: 9px;
}

footer div.FooterMenu nav
{
	display: inline-block;
}
footer div.FooterMenu nav a
{
	color: #97a6ba;
    text-shadow: 1px 1px 1px #314766;
	font-family: Tahoma, Arial, Helvetica, Sans-Serif;
	font-weight: normal;
  	font-size: 14px;
}
footer div.FooterMenu nav span:before
{
	content: ' - ';
}
footer div.FooterMenu nav span:first-child:before
{
	content: none;
}

/*** DESIGN FOR CONTENT ***/

body > main
{
    width: 1100px;
    margin: 0 auto;
    margin-top: 15px;
    padding-bottom: 60px;
}

main article
{
    background-color: rgba(255,255,255,0.7);
    border-radius: 10px;
    padding: 10px;
    margin-top: 20px;
}

main article:first-child
{
    margin-top: 0px;
}

main article.FullWidth {
	width: 100%;
}

main div.Articles {
	display: inline-block;
	width: 100%;
	max-width: 832px;
}

main aside + div.Articles {
	margin-top: 20px;
}
main aside + div.Articles[class~=Top] {
	margin-top: 0px;
}


/*** BLOG POST CONTENT ***/

main article div.PostContent {
	border: solid 2px #dde0e1;
	border-width: 2px 0 0 0;
	margin: 10px 0 10px 0;
	padding: 0 0 0 0;
	word-wrap:break-word;
}

main article.Excerpt div.PostContent {
	border-bottom: none;
	margin: 10px 0 10px 0;
	padding: 0 0 0 0;
}
main article div.PostContent:after {
	content: '';
	display: block;
	clear: both;
}

/*** COMMENTS ***/

main article div.Comments {
	padding-top: 40px;
	margin-top: 20px;
	border-top: solid 2px #dde0e1;
}

/*** BLOG POST FEATURED IMAGE ***/
main article.Excerpt div.FeaturedImage {
	float: right;
	padding: 5px 5px 2px 5px;
	margin-bottom: 10px;
}
main article.Excerpt div.FeaturedImage img {
	border: solid 1px #808080;
}

main article div.FeaturedImage {
	float: right;
	padding: 5px 5px 2px 5px;
	margin: 20px 0 10px 10px;
}
main article div.FeaturedImage img {
	border: solid 1px #808080;
}


/*** BLOG POST TAGS ***/

main article .ArticleTags {
	clear: both;
	text-align: center;
	font-size: 0.7em;
	margin: 40px 0 0 0;
}
main article.Excerpt .ArticleTags {
	margin: 10px 0 0 0;
	text-align: center;
}
main article .ArticleTags a {
	color: #fff;
	display: inline-block;
	background-color: #43628b;
	font-weight: normal;
	padding: 4px 10px;
	border-radius: 10px 0 0 10px;
	margin-right: 10px;
	transition: background-color 0.5s;
	opacity: 0.8;
}
main article .ArticleTags a:before {
	content: '# ';
}
main article .ArticleTags a:hover {
	text-decoration: none;
	background-color: #000;
}
main article .ArticleTags a:last-child {
	margin-right: 0;
}

/*** BLOG POST DATE ***/
main article .PostDate {
	font-style: italic;
	font-size: 0.75em;
	text-align: center;
	margin: 10px 0 0 0;
}

/* DESIGN FOR SIDEBARS */
aside {
    width: 260px;
    padding-right: 10px;
    display: inline-block;
    vertical-align: top;
   	box-sizing: border-box;
}
aside > section
{
    margin-bottom: 45px;
    background-color: rgba(255,255,255,0.7);
    border-radius: 10px;
    padding: 10px;
}

aside > section:first-child {
	margin-top: 20px;
}

aside > section > h2
{
    position: relative;
    height: 0px;
    color: #43638c;
    text-shadow: 1px 1px #fff;
    text-align: center;
    margin: 0 0 0 0;
    font-size: 16px;
    top: -32px;
}

aside > section > div.shortBioWidget {
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 10px;
/*	padding: 5px 5px 2px 5px;
	background-color: #ddd;
	border-radius: 10px;
	border: solid 1px #aaa;*/
	box-sizing: border-box;
	max-width: 230px;
}

aside > section > div.shortBioWidget > img {
	max-width: 100%;
	border-radius: 200px; /* Bigger than the containing area to make it spherical */
	border: solid 1px #aaa;
}


aside > section > div.socialMediaWidget > div {
	height: 24px;
	box-sizing: border-box;
	margin-bottom: 5px;
	font-size: 14px;
}

aside > section > div.socialMediaWidget > div > img {
	margin-right: 10px;
}
aside > section > div.socialMediaWidget > div > a {
	position: relative;
	top: -6px;
}


div.PhotoAlbums
{
    width: 100%;
}

div.PhotoAlbums > div.PhotoAlbum
{
    display: inline-block;
    width: 50%;
}

/*** PAGINATION ***/

div.Pagination
{
	margin-top: 10px;
	text-align: center;
}
div.Pagination ul {
	padding-left: 0;
}

div.Pagination ul li
{
	display: inline;
	list-style: none;
}

div.Pagination ul li.disabled
{
	visibility: hidden;
}

div.Pagination ul li a,
div.Pagination ul li span
{
	text-align: center;
	font-weight: bold;
	display: inline-block;
	color: #d3dbe6;
	background-color: #406489;
	text-decoration: none;
	padding-top: 5px;
	border-radius: 20px;
	width: 30px;
	height: 25px;
}
div.Pagination ul li span.current
{
	border: solid 1px #406489;
	background-color: #f1f1f1; /*#d3dbe6;*/
	color: #406489;
}



/*** BLOCKQUOTES ***/

main article blockquote
{
	margin: 0 0 0 20px;
	padding: 0 0 0 45px;
    background-image: url("images/blockquote.png");
    background-repeat: no-repeat;
    background-position: 0px 2px;
    font-style: italic;
}

main article blockquote p
{
	padding: 0;
	margin: 0;
}

/*** MENU FOR SMALL SCREENS ***/
div.ClickMenu {
	display: none;
	cursor: pointer;
	width: 32px;
	height: 32px;
	border-radius: 5px;
	border: solid 2px #c9dbe6;
	position: absolute;
	top: 2px;
	left: 2px;
	color: #c9dbe6;
	overflow: hidden;
	background-image: url("images/menuButton.png");
	background-repeat: no-repeat;
	background-position: 4px 6px;
	z-index: 99;
}

div.ClickSidebar {
	display: none;
	cursor: pointer;
	width: 32px;
	height: 32px;
	border-radius: 5px;
	border: solid 2px #c9dbe6;
	position: absolute;
	top: 2px;
	right: 2px;
	background-image: url("images/sidebarButton.png");
	background-repeat: no-repeat;
	background-position: -14px 6px;
	z-index: 99;
}

div.ClickMenuNav {
	display: none;
	position: absolute;
	top: 40px;
	text-align: left;
	background-color: #405d84;
	padding: 5px;
	box-shadow: 2px 2px 5px #777;
	border-radius: 0 0 10px 0;
	color: #ccc;
	font-size: 0.7em;
}
div.ClickMenuNav  nav {
	border-bottom: solid 1px #bbb;
}
div.ClickMenuNav  span {
	display: block;
	padding: 10px;
}
div.ClickMenuNav a {
	font-size: 1.3em;
	color: white;
}
div.ClickMenuNav a:hover {
	text-decoration: none;
}
div.ClickMenuPageTitle {
	display: none;
	color: #4b6b99;
	font-weight: bold;
	text-align: center;
	font-size: 18px;
	font-family: Arial, Helvetica, Sans-Serif;
	text-transform: Uppercase;
	padding-top: 10px;
	margin-left: 37px;
	text-shadow:
    -1px -1px 0 #eee,
    1px -1px 0 #eee,
    -1px 1px 0 #eee,
    1px 1px 0 #eee;
	letter-spacing: 2px;
}

/*** GENERAL WHITESTONE MOVIES OVERRIDES ***/
div.MovieDetails div.Media > table span.BonusExpand {
	background-color: #405d84;
}

/*** DOWNSCALING FOR SMALLER SCREENS ***/
@media screen and (max-width: 1150px) {
	header {
		width: 635px;
		padding-left: 280px;
	}
	
	body > main {
		width: 936px;
	}
	main div.Articles {
		max-width: 670px;
	}
}

@media screen and (max-width: 1006px) {
	body {
		background-position: left -32px, left 158px;
	}
	header {
		background-image: none;
		padding-left: 0;
		padding-top: 10px;
		text-align: center;
		height: 148px;
	}
	footer {
		-webkit-mask-image: none;
		mask-image: none;
	}
	footer > div {
		width: auto;
	}
	footer div.FooterMenu {
    padding-right: 5px;
	}
	body > main {
		width: auto;
		padding: 0 15px 60px 15px;
	}
	main article {
	}
	main div.Articles {
		width: calc(100% - 270px);
		max-width: none;
	}
	main div.Articles article.FullWidth {
		width: auto;
	}
	
	/* Override Movie plugin */
	div.MovieOverview > div.MovieList > div.Movie > div
	{
	}
}

@media screen and (max-width: 800px) {
	body {
		background-position: left -150px, left 40px;
	}
	header {
		padding-top: 0;
		height: 40px;
		width: auto;
	}
	header > img {
		display: none;
	}
	header > nav {
		display: none;
	}
	body > main {
		padding: 0;
	}
	main > aside {
		display: none;
		width: 100%;
	}
	main > aside > section {
		margin-left: auto;
		margin-right: auto;
		width: 230px;
	}
	
	main div.Articles {
		width: 100%;
	}


	main article div.FeaturedImage {
		float: none;
		width: auto;
		text-align: center;
		margin: 20px 0 10px 0;
		border: none!important;
		background-color: transparent;
	}
	div.ClickMenu {
		display: block;
	}
	
	div.ClickSidebar {
		display: block;
	}

	
	div.ClickMenuPageTitle {
		display: block;
	}
	
	footer {
		display: none;
	}
	
	div.Pagination ul li.disabled {
		display: none;
	}
	
	/* Override Movie plugin */
	div.MovieOverview > div.Search > input[type=text] {
		width: 80px;
	}
	
	div.MovieDetails {
		text-align: center;
	}
	div.MovieDetails > aside {
		float: none!important;
		text-align: center;
		margin: 10px auto!important;
		box-sizing: border-box;
	}
	
	div.MovieDetails div.Details {
		text-align: left;
	}
}

.alignleft {
	float: left;
}
.alignright {
	float: right;
	margin-left: 10px;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.Articles article img {
	background-color: #ccc;
	padding: 7px;
	border-radius: 10px;
	border: solid 1px #aaa!important;
}

div.wp-caption {
	border: solid 1px #aaa!important;
	border-radius: 10px;
	background-color: #ccc;
	padding: 9px 0 0 9px;
	margin-bottom: 10px;
}

div.wp-caption img{
	padding: 0!important;
}

div.wp-caption p {
	font-style: italic;
	font-size: 0.8em;
	margin: 2px 5px 5px 0;
}

.SearchBlogForm input[type=text] {
	width: 230px;
	padding: 4px 0 7px 30px;
	font-size: 14px;
	box-sizing: border-box;
	background-image: url("images/searchIcon.png");
	background-repeat: no-repeat;
	background-size: 24px 24px;
	background-position: 2px 2px;
	border-radius: 5px;
}
