/*
Theme Name: Sæterstad gård
Theme URI: www.dogu.no
Author: Sondre Lucas Follesoe
Author URI: www.dogu.no
Description: Wordpress theme for Sæterstad gård with sticky side nav.
Version: 1.0
*/


/*
Reset
*/



*{
	margin: 0;
	padding: 0;
	text-decoration:none;
	font-family: "MS Serif", "New York", serif; 
}
a img {
	border: none;
}

.alignleft{
	float: left;
}
.aligncenter{
	width:100%;
	margin:auto;
}
.alignright{
	float:right;
}
	

/*
	Body
*/


html, body{
	background: url(images/body-bg.png);
	height:100%;
}

body {
	position:relative;
	font-family: "MS Serif", "New York", serif; 
	overflow:auto;
}
#banner {
	position:absolute;
	top:0;
	background: url(images/header.png);
	background-size:cover;
	width:100%;
	height: 233px;
	<!--[if !IE]> z-index: -100; <![endif]-->
	
}
#sidelinks{
	position:fixed;
	top:233px;
	right:1px;
	display:block;
	width:134px;
}

#facebook{
	width:100%;
}
#facebook a{
	width: 100%;
}
#facebook a img{
	margin-left: 25%;
}
/*
	Structure of page
*/

#page-wrap{
	position:relative;
	margin:auto;
	min-width:1024px;
	width:80%;
}


/*
	Navigation sidebar
*/


#nav {
	position: relative; 
	height:100%;
	width:20%;
	min-width:250px;
	float: left; 
	text-align: left;
	background: url(images/navbackground.png) repeat;
  	-moz-box-shadow:    0px 0px 7px 2px #000;
  	-webkit-box-shadow: 0px 0px 7px 2px #000;
  	box-shadow:         0px 0px 7px 2px #000;
	display:block;
}
@media all and (min-width: 2375px){
	
		#nav {
			position: relative; 
			height:100%;
			width:380px;
			min-width:250px;
			float: left; 
			text-align: left;
			background: url(images/navbackground.png) repeat;
			-moz-box-shadow:    0px 0px 7px 2px #000;
			-webkit-box-shadow: 0px 0px 7px 2px #000;
			box-shadow:         0px 0px 7px 2px #000;
			display:block;
		}
	}
#nav .logo{
	position:relative;
	background: url(images/navbackground.png) repeat;
	border-bottom:1px solid #fff;
}
.logo p{
	color:#EEEEEE;
	font-style:italic;
	text-align: center;
	text-shadow: 1px 1px 0px #000;
	font-weight:bold;
}
#nav h1 a {
	position:relative;
	display: block;
	width: 100%; 
	height: 193px; 

	background: url(images/logo.png) no-repeat;
	background-position:center;

	text-indent: -9999px;

}
		
#nav ul {
	position:relative;
	list-style: none;
}

#nav .main-nav ul li a {
	display:block;
	width:100%;
	color: #FF6600;
	text-decoration: none;
	font-weight:bold;
	text-indent:30px;
	font-size: 18px; 
	line-height: 36px;
	text-shadow: 1px 1px 0px #000;
	border-bottom:1px solid #fff;
}

#nav .main-nav ul li.current_page_item ul li{
	display: block;	
}
#nav .main-nav ul li.current_page_parent ul li{
	display: block;
	border-bottom: thin solid #333333;
}
#nav .main-nav ul li.current_page_item a{
	background: url(images/clover.png) right repeat-y;
	height:100%;
	width:107%;
	-moz-border-radius: 0 18px 18px 0;
    -webkit-border-radius: 0 18px 18px 0;
    -khtml-border-radius: 0 18px 18px 0;
    border-radius: 0 18px 18px 0;v
	border-bottom:1px solid #fff;
}
#nav .main-nav ul li.current_page_parent a{
	background: url(images/clover.png) right repeat-y;
	heigth:100%;
	width:107%;
	border-bottom:none;
	-moz-border-radius: 0 18px 18px 0;
    -webkit-border-radius: 0 18px 18px 0;
    -khtml-border-radius: 0 18px 18px 0;
    border-radius: 0 18px 18px 0;
}
#nav ul.children li{
	display: none;
}

#nav ul.children li:fist-child{
	border-top:thin solid white;
}

#nav ul.children li:last-child{
	border-bottom:thin solid white;
}
#nav .main-nav ul li.current_page_parent ul.children li a {
	background: url(images/button-bg.png) repeat;
	color:#000000;
	font-size: 14px; 
	line-height: 28px;
	text-shadow: none;
	border:none;
	-moz-box-shadow:    inset 0px 0px 7px #000;
  	-webkit-box-shadow: inset 0px 0px 7px #000;
  	box-shadow:         inset 0px 0px 7px #000;
	width:100%;
	-moz-border-radius: 0;
	-webkit-border-radius: 0;
	-khtml-border-radius: 0;
	border-radius: 0;
}
#nav .main-nav ul li.current_page_item ul.children li a {
	background: url(images/button-bg.png) repeat;
	color:#000000;
	font-size: 14px; 
	line-height: 28px;
	text-shadow: none;
	border-bottom: thin solid #333333;
	-moz-box-shadow:    inset 0px 0px 7px #000;
  	-webkit-box-shadow: inset 0px 0px 7px #000;
  	box-shadow:         inset 0px 0px 7px #000;
	width:100%;
	-moz-border-radius: 0;
	-webkit-border-radius: 0;
	-khtml-border-radius: 0;
	border-radius: 0;
}
#nav .main-nav ul li.current_page_parent ul.children li:first-child a {
	border-top: thin solid white;
}
#nav .main-nav ul li.current_page_parent ul.children li:last-child a {
	border-bottom: thin solid white;
}



/********/

#nav ul.sub-menu li{
	display: none;
}

#nav ul.sub-menu li:fist-child{
	border-top:thin solid white;
}

#nav ul.sub-menu li:last-child{
	border-bottom:thin solid white;
}
#nav .main-nav ul li.current_page_parent ul.sub-menu li a {
	background: url(images/button-bg.png) repeat;
	color:#000000;
	font-size: 14px; 
	line-height: 28px;
	text-shadow: none;
	border:none;
	-moz-box-shadow:    inset 0px 0px 7px #000;
  	-webkit-box-shadow: inset 0px 0px 7px #000;
  	box-shadow:         inset 0px 0px 7px #000;
	width:100%;
	-moz-border-radius: 0;
	-webkit-border-radius: 0;
	-khtml-border-radius: 0;
	border-radius: 0;
}
#nav .main-nav ul li.current_page_item ul.sub-menu li a {
	background: url(images/button-bg.png) repeat;
	color:#000000;
	font-size: 14px; 
	line-height: 28px;
	text-shadow: none;
	border-bottom: thin solid #333333;
	-moz-box-shadow:    inset 0px 0px 7px #000;
  	-webkit-box-shadow: inset 0px 0px 7px #000;
  	box-shadow:         inset 0px 0px 7px #000;
	width:100%;
	-moz-border-radius: 0;
	-webkit-border-radius: 0;
	-khtml-border-radius: 0;
	border-radius: 0;
}
#nav .main-nav ul li.current_page_parent ul.sub-menu li:first-child a {
	border-top: thin solid white;
}
#nav .main-nav ul li.current_page_parent ul.sub-menu li:last-child a {
	border-bottom: thin solid white;
}

/*******/



/*
	Credz area
*/
#nav .credits{
	float:left;
	margin-top:20px;
	display:none;
}


#nav .credits p{
	padding-bottom:20px;
	height: 80px;
	width: 232px; 
	text-align:left;
	margin-left:10px;
	font-size: 12px;
	color:#CCCCCC;
	line-height: 13px;
}
#nav .credits p a {
	color:#CCCCCC;
	text-decoration:none;
}
#nav .credits p a:hover {
	color:#FF9900;
	text-decoration:underline;
}
#nav .dogu{
	position:absolute;
	bottom:0;
	float:left;
	padding-bottom:5px;
	width: 100%;
	text-align:center;
	margin: auto;
	font-size: 12px;
	color:#CCCCCC;
	line-height: 10px;
}
#nav .dogu a {
	color:#CCCCCC;
	text-decoration:none;
}
#nav .dogu a:hover {
	color:#FF9900;
	text-decoration:underline;
}




/*
	Content area
*/

.content{
	position:relative;
	width:70%;
	margin: 250px 20px 100px 50px; 
	float:right;
}
@media all and (max-width:1340px){
	.content{
		width:65%;
	}
}

.page-content{
	position:relative;
	padding:5px;
	float:left;
	width:100%;
	min-height:1px;
	display:inline-block;
}

.news-feed{
	border-top: 2px ridge #990000;
	margin-top: 50px;
	padding: 5px 5px 35px 5px;
	position:relative;
	width:100%;
	min-height:250px;
	float:left;
}
.news-feed h1{
	text-align: center;	
	
}
.news-feed #front-post{
	display: inline-block;
	width:90%;
	min-height: 100px;
	margin-top: 20px;
	margin-left: 30px;
	border: thin dashed #990033;
	border-radius: 10px;
	background: rgba(185, 177, 177, 0.25);
	padding: 10px;
	
}
.news-feed #front-post:last-child{
	border-bottom: none;
}


.news-feed div#post-text{
	width: 66%;
	margin-right:5px;
	float:left;
}
.news-feed div#post-text h2 a{
	color: black;
	width: 100%;
	border-bottom:thin solid rgb(102,102,102);
	display:block;
	text-indent:10px;
}
.news-feed div#post-text a:hover{
	color: #990000;
	
}
.news-feed div#post-img{
	margin-top: 25px;
	max-width: 30%;
	float:right;
	max-height:200px;
	
	
}

.news-feed img{
	height: auto;
	width: 100%;
	border: thin solid gray;
	border-radius:10px;
}
.news-feed #seperator {
	width:30px;
	margin: auto;
	margin-top:10px;
	height:50px;
}
.news-feed .clover{
	-moz-border-radius: 15px 15px 15px 15px;
    -webkit-border-radius: 15px 15px 15px 15px;
    -khtml-border-radius: 15px 15px 15px 15px;
    border-radius: 15px 15px 15px 15px;
}


/* Archive */
	
	#archive-col{
		width: 90%;
		margin:10px auto ;
		height:300px;
		list-style:none;
	}
	#archive-col h2{
		font-size:18px;
		width:100%;
		color: black;
		border-bottom:thin solid #666666;
		text-decoration:none;
	}
	#archive-col h2 a{
		text-decoration:none;
		font
	}
	
	#archive-col ul{
		list-style:none;
	}
	#archive-col ul li{
		font-size:14px;
		line-height:16px;
		text-indent:10px;
	}
	#archive-col ul li a{
		font-size:12px;
	}
	#archive-col ul li a:hover{
		color:	white;
	}
	
	.monthly-sort{
		float:left;
		width:50%;
		max-height:280px;
		height:90%;
		font-size:16px;
	}
	
	.post-front{
		float:left;
		width: 48%;
		padding: 5px;
		height: 110px;
		background: transparent;
		margin-bottom: 20px;
	}
	
	
	.post-meta {
			padding:5px;
			display:block;
			font-size: 12px;
			
	}
	.post-meta a{
		color: black;
		font-size: 12px;
	}
	.post-meta a:hover{
		color: rgba(255,102,0);
	}
	.post-meta ul{
			list-style:none;
			float:left;
			max-height: 13px;
			overflow:hidden;
	}
			
	.post-excerpt p{
			max-height: 180px;
			overflow: hidden;
			font-size: 14px;
			padding: 0;
			background: transparent;
	}
	
	
	
	.search{
		width:100%;
		border-top:thin solid #666666;
		border-bottom:thin solid #666666;
		float:left;
		margin:10px 0px;
		font-size: 16px;
		padding:2px;
	}
	
	
	/* Archive results*/
	#archive-results{
		width: 90%;
		margin:10px auto;
		
	}
	#archive-results h1{
		font-size:28px;
		width:100%;
		border-bottom:thin solid #666666;
	}

	/* Comments*/
	
	h3#comments-title{
		margin-top:15px;
	}
	li.comment{
		border-bottom:thin solid rgb(102,102,102);
	}
	.comment-author{
		font-weight:bold;
		
	}
	.comment-meta {
		font-size:0.8em;
		margin-bottom:5px;
		border-bottom:thin solid rgb(102,102,102);
	}
	
	.comment-body{
		text-indent:10px;
		margin-bottom:10px;
	}
	
	#respond{
		
		height: 300px;
		margin-top:20px;
	}
	

	#comment{
		display:block;
		margin-bottom:5px;
	}
	
	/* Productlists*/
	
	#product-list{
		margin-top:10px;
		width:50%;
		border-collapse:collapse;
	}
	#product-list tr{
		width:100%;
		border-bottom:thin dashed gray;
	}
	#product-list th:first-child{
		text-align:left;
	}
	#product-list th:last-child{
		width:30%;
	}
	#product-list th{
		width:auto;
		font-size:1.1em;
		border-bottom: thin solid black;
	}

	#product-list td{
		font-size:1.1em;
		width:auto;
		color:black;
	}
	#product-list td a{
		color: black;
	}
	#product-list td a:hover{
		color: rgb(255,102,0);
		text-decoration:underline;
	}
	#product-list td:first-{
		text-align:left;
		border-right: medium solid black;
		text-indent:10px;
	}
	
	/****ORDERFORM****/
	#overnattingbestilling{
		width: 100%;
		min-height: 300px;
		border-top:thin solid black;
		display:inline-block;
	}
	#overnattingbestilling h2{
		margin-top: 10px;
		text-align:center;	
	}
	fieldset legend{
		display:inline-block;
		font-size:1.3em;
	}
	#bestilling{
		width: 90%;
	}
	input{
		min-width:200px;
		display:block;
		border: 1px solid #999;
		min-height: 25px;
		-webkit-box-shadow: 0px 0px 8px rgb(0, 0, 0);
		-webkit-box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);
		-moz-box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);
		box-shadow: 0px 0px 8px rgb(0, 0, 0, 1);
		box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);
	}
	input[type=submit]{
		width: 200px;
		display:block;
	}
	textarea{
		min-width:200px;
	}
	label{
		margin-top:10px;
	}
	
	
	fieldset#handlekurv table {
		width:100%;
		display:inline-table;
	}
	fieldset#handlekurv table th{
		font-size:1.2em;
	}
	fieldset#handlekurv table td{
		text-indent:20px;
	}
	fieldset#handlekurv table td input{
		margin: auto;
		min-width:100px;
	}
	fieldset#handlekurv table tr#sumrow td{
		text-align: right;
		font-weight:bold;
	}
	fieldset#handlekurv table tr#sumrow td#sum{
		text-align:center;
	}
	fieldset#personalia div{
		margin:0px 0px 10px 10px ;
	}
	