/*
Theme Name: Gen&Oslash;k RWD
Theme URI: http://www.genok.no/
Author: Gnist Design AS 
Author URI: http://www.gnistdesign.no/
Description: The new and responsive 2013 theme for Gen&Oslash;k.
Version: 1.0
*/


	@import url('fonts/websymbols.css');
	@import url('reset.css');
	
	body {
	background: #fff;
	font: 62.5% 'Open Sans', sans-serif;
	}
	
	.websymbols {
	font-family: WebSymbolsRegular;	
	}
	
	h1, h2, h3, h5, h6 {
	font-family: 'Scada', sans-serif;
	}
	
	strong, b {
	font-weight: bold;
	}
	
	em, i {
	font-style: italic;
	}
	
	#page a {
	color: #587308;
	text-decoration: none;
	}
	
	#page p a, #page ul a, #page ol a, #footer a {
	border-bottom: 1px solid #cdcdcd;
	}
	
	#page a:hover, #footer a:hover {
	border-bottom: none;
	}
	
	.wrap {
	width: 90%;
	max-width: 800px;
	margin: 0 auto;
	}
	
	#top {
	padding: 1px 0 0;
	background: url('images/top_bg.png') repeat-x;
	}
	
	#top .wrap {
	position: relative;
	}
	
	#top .wrap #lang {
	position: absolute;
	top: 5px;
	right: 0;
	color: #fff;
	}
	
	#flags_language_selector, #search-icon, #social {
	float: right;
	}

	#flags_language_selector {
	width: 60px;
	text-align: right;
	}
	
	#flags_language_selector img {
	margin: 1px;
	border: 1px solid #333;
	}
	
	#flags_language_selector .inactive {
	opacity: .7;
	-moz-opacity: .7;
	filter:alpha(opacity=70);
	}
	
	#flags_language_selector .inactive:hover {
	opacity: 1;
	-moz-opacity: 1;
	filter:alpha(opacity=100);
	}

	#flags_language_selector .inactive:hover img {
	border: 1px solid #fff;
	}
	
	#search-icon {
	padding-left: 5px;
	margin-left: 5px;
	border-left: 1px solid #aba7a8;
	}
	
	#social ul li {
	float: left; 
	font-size: 1.2em;
	margin-left: 7px;
	}
	
	#social ul li a {
	color: #fefefe;
	text-decoration: none;
	}
	
	#search-toggle {
	clear: both;
	display: none;
	}
	
	#nav-toggle {
	float: right;
	padding-top: 50px;
	}
	
	h1#masthead {
	position: relative;
	z-index: 99;
	width: 20.8333333333%; /* 200px / 960px */
	padding-top: 26px;
	}

	h1#masthead img {
	min-width: 150px;
	}
	
	#nav {
	display: none;
	clear: both;
	background: #beabdd url('images/nav_bg.png') repeat-x top;
	padding: 50px 20px 30px;
	margin-top: -31px;
	margin: -31px -20px 20px;
	}
	
	#nav ul li {
	font-family: 'Scada', sans-serif;
	font-size: 1.7em;
	border-bottom: 1px solid #ae9cc0;
	}
	
	#nav ul li a, #nav ul li.sub-menu li a, #nav ul li.current-menu-item ul.sub-menu a, #nav ul li.current-menu-ancestor ul.sub-menu a {
	display: inline-block;
	padding: 5px 15px;
	color: #403d52;
//	text-shadow: 1px 1px 0 #fff;
	text-decoration: none;
	}
	
	#nav ul li ul.sub-menu {
	display: none;
	}

	#nav ul li:hover ul.sub-menu, #nav ul li.current-menu-ancestor ul.sub-menu {
	display: block;
	}
		
	#nav ul li ul.sub-menu li {
	font-size: .75em;
	border: none;
	}
	
	#nav ul li.current-menu-item a, #nav ul li.current-menu-ancestor a, #nav ul li.current-menu-ancestor ul.sub-menu li.current-menu-item a {
	color: #fff;
	}
	
	#subnav {
	display: none;
	}
	
	#main {
	max-width: 760px;
	padding: 20px;
	color: #555;
	margin: 0 auto;
	}
	
	body.home #main {
	max-width: 800px;
	padding: 20px 0;
	}
	
	#homefront {
	padding: 0 20px;
	}
	
	#homefront .post {
	padding: 2em 0;
	clear: both;
	border-bottom: 1px solid #f2f2f1;
	}
	
	#homefront .post h6 {
	line-height: 1.4em;
	font-weight: 400;
	font-family: 'Open Sans', sans-serif;
	}

	#homefront .post a {
	border: none;
	}
	
	#homefront .post a:hover {
	border: none;
	border-bottom: 1px solid #cdcdcd;
	}
	
	#homefront .newssmall {
	width: 40%;
	max-width: 200px;
	float: right;
	margin-left: 1%;
	}

	#page h1 {
	font-size: 4em;
	line-height: 1em;
	color: #817f7a;
	margin: .22em 0;
	}
	
	#page h1.employee-name {
	font-size: 3.4em;
	}
	
	#page h2 {
	font-size: 2.6em;
	line-height: 1em;
	color: #817f7a;
	margin: .33em 0;
	}
	
	#page h3 {
	font-size: 2.2em;
	line-height: 1em;
	color: #817f7a;
	margin: 0;
	}

	#page h4 {
	font-size: 1.8em;
	line-height: 1em;
	font-weight: 600;
	color: #524f49;
	margin: 0;
	}

	#page h4 a {
	color: #524f49;
	border: none;
	}
		
	#page h5 {
	font-size: 1.4em;
	line-height: 1em;
	color: #524f49;
	margin: 0;
	font-weight: bold;
	}

	#page h6 {
	color: #524f49;
	font-size: 1.3em;
	line-height: 1em;
	}
	
	#page p, #page ol, #page ul {
	font-size: 1.4em;
	line-height: 1.5em;
	margin: 1em 0;
	font-weight: 400;
	}
	
	#page ul {
	list-style: disc;
	}
	
	#page ol {
	list-style: decimal;
	}
	
	#page ul, #page ol {
	margin-left: 1em;
	padding-left: .5em;
	}

	#page blockquote {
	font-family: 'Scada', sans-serif;
	margin: 0 3em;
	color: #9f9f9f;
	}
		
	#page blockquote p {
	font-size: 1.6em;
	}
	
	#footer {
	padding: 20px 0;
	background: #b2b2af;
	min-height: 185px;
	}
	
	#footer .float {
	margin-bottom: 30px;
	}
	
	#footer p, #footer ul, #footer table td {
	color: #524f49;
	font-size: 1.3em;
	line-height: 1.4em;
	font-weight: 400;
	}
	
	#footer table td {
	padding: 1em 0 0;
	min-width: 25px;
	}
	
	#footer table tr td {
	vertical-align: top;
	}
	
	#footer .box {
	background: #f3f2ea;
	border: 1px solid #fff;
	padding: 20px;
//	height: 210px;
	overflow: hidden;
	}

	#footer ul#widget-footer-1 {
	list-style: none;
	margin-left: 0;
	padding-left: 0;
	}
	
	#footer ul#widget-footer-1 * {
	font-size: 1em;
	}

	#footer ul#widget-footer-1 li {
	margin-bottom: .5em;
	}
	
	#footer ul#widget-footer-1 li.widget_rss h4 {
	display: none;
	}	
	
	#byline {
	text-align: right;
	color: #817f7a;
	font-size: 1.2em;
	padding: 10px 0 20px;
	}
	
	#byline a {
	color: #817f7a;
	}
	
	#byline address {
	display: block;
	}
	
	#byline img {
	vertical-align: middle;
	}
	
	img {
	max-width: 100%;
	}
	
	div.divider, div.devicedivider {
	clear: both;
	}
	
	.archive-post {
	border-bottom: 1px solid #cdcdcd;
	margin-bottom: 2em;
	}
	
	#page .ansatt a {
	font-weight: 700;
	}
	
	/* SLIDESHOW */
	
	#slideshow {
	height: 330px;
	}
	
	#slideshow .slide {
	background: #efe9f9 url('images/slide.png') repeat-x bottom;
	}
	
	#slideshow .wrap {
	max-width: 760px;
	margin: 0 auto;
	height: 300px;
	padding: 10px 0;
	}
	
	#slideshow h2 {
	font-size: 6em !important;
	margin: .75em 0 0;
	}
	
	#slideshow .slidetext {
	max-width: 50%;
	}
	
	#slideshow p {
	font-size: 1.4em;
	line-height: 1.5em;
	font-weight: 300;
	color: #393939;
	}
	
	#slideshow p.page-link {
	padding-top: 1em;
	}
	
	#slideshow p.page-link a {
	display: inline-block;
	border: 1px solid #403d52;
	background: #403d52;
	color: #fff;
	padding: 5px 15px;
	border-radius: 3px;
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
	}

	#slideshow p.page-link a:hover {
	background: #fff;
	color: #403d52;
	}

	.carousel-nav {
	display: none;
	}

	/* TYPOGRAPHY & COLORS */
	
	#page .post-category {
	font-size: 1.1em;
	margin: .5em 0 .2em;
	text-transform: uppercase;
	}
	
	#page .post-category a {
	color: #817f7a;
	}

	/* Alignment */

	.alignleft {
	display: inline;
	float: left;
	margin-right: 1.625em;
	}

	.alignright {
	display: inline;
	float: right;
	margin-left: 1.625em;
	}

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

@media only screen and (max-width: 730px) {
	#s {
		width: 200px;
	}

	#lang {
		z-index: 200;
	}
}


@media only screen and (min-width: 730px) {

	.nodesktop {
	display: none;
	}

	#nav-toggle {
	display: none;
	}

	h1#masthead {
	float: left;
	clear: none;
	}
	
	#nav {
	display: block !important;
	clear: none;
	background: none;
	width: 79.1666666667%; /* 760px / 960px */
	float: left;
	padding: 0;
	margin: 0;
	padding-top: 50px;
	}

	#nav ul li {
	float: left;
	border: none;
	}

	#nav ul li a {
	display: block;
	padding: 15px;
	color: #beabdd;
	text-shadow: 1px 1px 0 #000;
	text-decoration: none;
	}
	
	#nav ul li a:hover {
	color: #efe9f9;	
	}
	
	#nav ul li.current-menu-item a, #nav ul li.current-menu-ancestor a {	
	color: #efe9f9;	
	background: url('images/nav_arrow.png') no-repeat 0% 52%;
	}
	
	#nav ul li ul.sub-menu, #nav ul li:hover ul.sub-menu, #nav ul li.current-menu-ancestor ul.sub-menu {
	display: none;
	}
		
	#subnav {
	display: block;
	width: 79.1666666667%; /* 760px / 960px */
	float: left;
	}
	
	#subnav ul {
	padding-left: 15px;
	padding-top: 10px;
	}
	
	#subnav ul li {
	float: left;
	font-family: 'Scada', sans-serif;
	font-size: 1.6em;
	padding-right: 10px;
	}
	
	#subnav ul li:before {
	content: '|';
	color: #ccc;
	float: left;
	margin-right: 10px;
	}

	#subnav ul li:first-child:before {
	content: ' ';
	margin-right: 0px;
	}
		
	#subnav ul li a {
	color: #817f7a;
	text-decoration: none;
	}
	
	#subnav ul li a:hover, #subnav ul li.current-menu-item a, #subnav ul li.current-menu-ancestor a {
	color: #800080;
	text-decoration: underline;
	}
	
	#homefront {
	padding: 0;
	}

	#homefront .newssmall {
	width: 100%;
	max-width: 200px;
	float: none;
	margin: 0;
	}
	
	#homefront .post {
	border: none;
	}

	
	#page h1 {
	font-size: 6em;
	}
	
	#page h1.employee-name {
	font-size: 4em;
	}
	
	#page h2 {
	font-size: 3em;
	}
	
	#page h3 {
	font-size: 2.4em;
	}

	#footer {
	padding: 0;
	background: url('images/footer_bg.png') repeat-x bottom;
	}
	
	#byline address {
	float: left;
	}
	
	div.devicedivider {
	clear: none;
	}

	/* COLS */
	
	#footer .float {
	width: 31.25%; /* 260px / 960px */
	margin-right: 3.125%; /* 30px / 960px */
	float: left;
	}
	
	#footer .last {
	margin-right: 0;
	}
	
	.one_in_four {
	width: 20.8333333333%; /* 200px / 960px */
	padding: 2.0%; /* 20px / 960px */
	float: left;
	}
	
	.one_in_three {
	width: 30%; /* 240px / 800px */
	margin-left: 5%; /* 20px / 800px */
	float: left;
	}
	
	#content .one_in_three:first-child {
	margin-left: 0;
	}
	
	.one_in_half {
	width: 45%; /* 240px / 800px */
	margin-left: 5%; /* 20px / 800px */
	float: left;
	}
	
	#content .one_in_half:first-child {
	margin-left: 0;
	}
	
}

.fb_iframe_widget {
	margin-bottom: 15px;
}

.page-template-page-nyhetsarkiv-php #page {
	padding-top: 30px;
}

#searchform {
	z-index:200;
}

