/*
Theme Name: Clan Farquharson
Author: Christian Reich
*/

/* Ok, this is where the fun starts.
-------------------------------------------------------------------------------*/

/* A Linux- and Windows-friendly sans-serif font stack: http://prospects.mhurrell.co.uk/post/updating-the-helvetica-font-stack */
body {font-size: 18px; font-family: 'Josefin Slab', serif;}

/* Using local fonts? Check out Font Squirrel's webfont generator: http://www.fontsquirrel.com/tools/webfont-generator */

/* We like off-black for text. */
body, select, input, textarea {color: #333;}


*{
	box-sizing:border-box;
}

a {color: #0D2089;}
a:hover {color: #0D2089;}

/* Custom text-selection colors (remove any text shadows: http://twitter.com/miketaylr/status/12228805301) */
::-moz-selection{background: #fcd700; color: #fff; text-shadow: none;}
::selection {background: #fcd700; color: #fff; text-shadow: none;}

/*	j.mp/webkit-tap-highlight-color */
a:link {-webkit-tap-highlight-color: #fcd700;}

ins {background-color: #fcd700; color: #000; text-decoration: none;}
mark {background-color: #fcd700; color: #000; font-style: italic; font-weight: bold;}

/* Mozilla dosen't style place holders by default */
input:-moz-placeholder { color:#a9a9a9; }
textarea:-moz-placeholder { color:#a9a9a9; }


/* And here begins the WordPress fun.
-------------------------------------------------------------------------------*/

h1{
	font-family: 'Oswald', sans-serif;
	color:#0D2089;
	font-size:26px;
	margin-bottom:20px;
	line-height: 115%;
}

h2, h3, h4, h5, h6{
	font-family: 'Oswald', sans-serif;
	font-size:18px;
	margin-bottom:10px;
	color:#167A16;
}

h2{
	font-size:24px;
	margin-bottom:20px;
}

h3{
	font-size:20px;
}

.post ul{
	margin-bottom:20px;
}

.post ul li{
	list-style:disc;
	padding-left:20px;
	margin-left:20px;
}

.post .alignleft{
	float:left;
	position:relative;
	padding:0 20px 20px 0;
}

.post hr{
	clear:both;
}


/*
	CONTAINERS
*/
#nav-container, #tagline-container, #wrapper, #footer-container{
	max-width:1280px;
	margin-left:auto;
	margin-right:auto;
	width:100%;
	width:calc(100% - 80px);
}


header{
	position:relative;
	min-height:50px;
}

#featured-image{
	height:auto;
	width:100%;
	margin:0 auto;
	max-width:1440px;
	text-align:center;
}

#featured-image img{
	height:auto;
	width:100%;
	margin:0 auto;
	max-width:1440px;
}

#nav-container{
	margin: 00px auto;
}

#nav-bar{
	width:100%;
	height:50px;
	background-color:#167A16;
	position:absolute;
	top:50px;	
	z-index:5;
}

nav{
	display:inline-block;
	position:relative;
	font-family: 'Oswald', sans-serif;
	float:left;
}


#nav-button{
	background-color:#146e14;
	height:50px;
	padding:0 20px 0 45px;
	line-height:50px;
	font-size:20px;
	color:#fff;
	text-transform:uppercase;
	cursor:pointer;
}

#nav-button:before {
  content: "";
  position: absolute;
  left: 20px;
  top: 16px;
  width: 20px;
  height: 3px;
  background: white;
  box-shadow: 
    0 7px 0 0 white,
    0 15px 0 0 white;
}


nav:hover .menu, nav .menu.open{
	max-height:450px;
	
}

nav .menu{
	background-color:#167A16;
	font-size:14px;
	max-height:0px;
	overflow:hidden;
	-webkit-transition: 0.8s;
    transition: 0.8s;
}


.home nav .menu{
	max-height:450px;
}


nav .menu li a{
	padding:5px 20px 5px 20px;
	color:#fff;
	display:block;
	text-decoration:none;
}

nav .menu li a:hover{
	background-color:#126312;
}

#name{
	font-size:24px;
	line-height:55px;
	color:#fff;
	text-transform:uppercase;
	position:relative;
	float:left;
	margin-left:20px;
	font-weight:bold;
	text-decoration:none;
}

#name span{
		font-weight:bold;
	}

#logo{
	width:90px;
	height:110px;
	background-image:url(img/logo.png);
	background-position:center;
	background-size:contain;
	position:relative;
	float:left;
	margin-left:20px;
	margin-top:-16px;
}

#tagline-container{
	margin:0 auto;
	position:absolute;
	top:0;
	height:calc(50% + 55px);
	
}

#tagline{
	background:rgba(0,0,0,0.8);
	color:#fff;
	font-size:18px;
	padding:10px 10px 10px 10px;
	display:none;
	right:0;
	bottom:-19px;
	position:absolute;
	text-transform:uppercase;
	font-weight:bold;
}

.home #tagline{
	display:inline-block;
}







#wrapper {margin-top: 40px; margin-bottom: 40px;}

#wrapper:after{
	content: "";
  display: table;
  clear: both;
}


.post{
	width:calc(75% - 60px);
	float:left;
	position:relative;
	line-height:125%;
}

p{
	margin-bottom:20px;
}



#sidebar{
	width:25%;
	position:relative;
	float:left;
	margin-left:60px;
}

#footer-container{
	position:relative;
	margin:0 auto;
	padding:20px 0 20px 0;
}


footer{
	background-color:#0D2089;
	font-family: 'Oswald', sans-serif;
	color:#ededed;
	font-size:14px;
}

footer .menu {
	margin-bottom:10px;
}

footer .menu li{
	display:inline-block;
	padding-left:20px;
	padding-right:20px;
	border-left:1px solid #ededed;
}

footer .menu li:first-child{
	border-left:none;
	padding-left:0;
}

footer .menu li a{
	color:#ededed;
	text-decoration:none;
}

#image-credits{
	color:#ededed;
	margin-bottom:5px;
	display:block;
}


#sidebar .button{
	width:100%;
	background-color:#ededed;
	font-family: 'Oswald', sans-serif;
	font-weight:lighter;
	font-weight:18px;
	padding:10px 20px 10px 60px;
	display:block;
	text-decoration:none;
	color:#fff;
	margin-bottom:20px;
	position:relative;
	cursor:pointer;
}

#sidebar #fb{
	background-image:url(img/FB_Logo.png);
	background-position:left center;
	background-size:contain;
	background-color:#3c599b;
	background-repeat:no-repeat;
}

#sidebar #twitter{
	background-image:url(img/twitter.jpg);
	background-position:left center;
	background-size:contain;
	background-color:#5aadec;
	background-repeat:no-repeat;
}

#sidebar #translate{
	background-color:#ededed;
	color:#000;
}

#sidebar #join{
	background-color:#167A16;
}

#sidebar #join:before{
	width:15px;
	height:15px;
	border:#fff 1px solid;
	border-left:0;
	border-bottom:0;
	content:' ';
	position:absolute;
	display:block;
	-ms-transform: rotate(45deg); /* IE 9 */
    -webkit-transform: rotate(45deg); /* Chrome, Safari, Opera */
    transform: rotate(45deg);
	top:15px;
	left:15px;
	-webkit-transition: 0.5s;
    transition: 0.5s;
}

#sidebar #join:hover:before{
	left:20px;
}


#sidebar #translate:before{
	width:15px;
	height:15px;
	border:#000 1px solid;
	border-left:0;
	border-bottom:0;
	content:' ';
	position:absolute;
	display:block;
	-ms-transform: rotate(45deg); /* IE 9 */
    -webkit-transform: rotate(45deg); /* Chrome, Safari, Opera */
    transform: rotate(45deg);
	top:15px;
	left:15px;
	-webkit-transition: 0.5s;
    transition: 0.5s;
}

#sidebar #translate.open:before{
	-ms-transform: rotate(135deg); /* IE 9 */
    -webkit-transform: rotate(135deg); /* Chrome, Safari, Opera */
    transform: rotate(135deg);
	top:10px;
}



#sidebar #translate:hover:before{
	left:20px;
}
#sidebar #translate.open:hover:before{
	left:15px;
}


#tartan{
	background-image:url(img/tartan.jpg);
	background-repeat:repeat;
	background-size:25px;
	height:25px;
	width:100%;
}



/* Media queries!
-------------------------------------------------------------------------------*/

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

	.home nav .menu{
		max-height:0px;
	}
	.home nav:hover .menu{
		max-height:450px;
	}
	
}


@media screen and (max-width: 767px) {
	#nav-container, #tagline-container, #wrapper, #footer-container{
		width:calc(100% - 40px);
		margin-left:20px;
		margin-right:20px;
	}
	
	body {font-size: 16px;}
	
	#nav-bar{
		top:20px;
	}
	
	#nav-button{
		font-size:16px;
		display: inline-block;
		padding: 0 20px 0 40px;
	}
	#nav-button span {
		display:none;
	}
	#nav-button:before{
	    box-shadow: 0 6.5px 0 0 white, 0 13px 0 0 white;
	}
	
	#logo {
		width: 67.5px;
		height: 82.5px;
		float: right;
		margin-top: -8px;
	}
	
	#name {
		font-size: 16px;
		position: absolute;
		float: none;
		margin-left: 0px;
		left: 90px;
	}
	
	#name span{
		display:none;
		font-weight:bold;
	}
	
	nav .menu{
		top: -5px;
    	position: relative;
	}
	.home nav .menu{
		max-height:0px;
	}
	.home nav:hover .menu{
		max-height:450px;
	}
	
	#featured-image{
		display:none;
	}
	.home #featured-image{
		display:block;
	}
	
	.home #tagline{
		display:none;
	}
	
	.post{
		float:none;
		width:100%;
	}
	
	#wrapper {
		margin-top: 20px;
		margin-bottom: 20px;
	}
	
	#sidebar {
		width: 100%;
		position: relative;
		float: none;
		margin-left: 0;
	}
	
	header{
		min-height:70px;
	}
	
	.post img{
		height:auto;
	}
} 

@media screen and (max-width: 360px) {
	#logo {
		display:none;
	}
	
	#nav-bar{
		top:0px;
	}
	
	header{
		min-height:50px;
		margin-bottom:70px;
	}
	
	#featured-image{
		top: 50px;
    	position: relative;
	}
}