@charset "utf-8";
/* CSS Document */

/* HTML 5-fix för äldre webbläsare */

header, nav, article, aside, section, footer {
	display: block;
}


/* Globala block */
body {
	margin: 0;
	background: #fff;
	color: #333333;
	font-family: 'Open Sans', Helvetiva, Arial, Verdana, San-serif;
	font-size: 0.9em;
}


#header {
	width: 100%;
	position: fixed;
	left: 0;
	top: 0;
	background: #343434;
	color: #f5f5f5;
	z-index: 1000;
}
	
	#titles {
		float: left;
	}
	
	#menu {
		float: right;
	}

#main {
	margin-top: 60px;
}

.gray {
	background: #f1f3ef;
}

.fixed {
		position: fixed;
}

.full_fixed {
	width: 100%;
	height: 100vh;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center top;
	background-attachment: fixed;
}

#hero_trappa {
	background-image: url(bilder/hero_trappa.jpg);
}

#footer {
	background: #343434;
	color: #fff;
}


#header_wrap, .article_wrap, #footer_wrap, .webbsida {
	max-width: 960px;
	margin: 0 auto;
	padding: 10px 20px;
	min-height: 40px;
}

.article_wrap {
	min-height: 100vh;
	padding: 30px;
}


/* Header */
#header h2 {
	margin: 0;
	font-size: 1.7em;
}

#header h3 {
	margin: 0 0 10px 0;
	font-size: 1.2em;
}

#header a {
	color: #fff;
}

#header a:hover {
	text-decoration: none;
	color: #f3de6d;
}


/* Menu */
#menu_button {
		display: none;
}

#stor_meny {
	list-style: none;
	margin: 10px 0;
	padding: 0;
}

#stor_meny li {
	display: inline;
	margin: 0 10px 0 0;
	font-family: 'Bitter', Serif;
	font-weight: 700, bold;
	font-size: 1.2em;
}

#stor_meny li:last-child {
	margin: 0;
}

#stor_meny li a, #stor_meny li a:link, #stor_meny li a:visited, #stor_meny li a:active {
	color: #fff;
	text-decoration: none;
}

#stor_meny li a:hover, #aktiv {
	color: #f3de6d!important;
}


/* Footer */
.fot_vanster, .fot_hoger {
	max-width: 48%;
}

.fot_vanster {
	float: left;
}

.fot_hoger {
	float: right;
	text-align: right;
}

.fot_vanster ul, .fot_hoger ul {
	list-style: none;
	margin: 10px 0;
	padding: 0;
}

#footer a {
	color: #fff;
}


/* Big section */
.big {
	margin: 5px 0 30px 0;
}

.big h2 {
	font-size: 2.4em;
}

.big h3 {
	font-size: 1.8em;
}



/* Banner section */
#top_banner, #portfolio_banner, #cv_banner, #kontakt_banner, #error_404_banner {
	width: 100%;
	/*height: 100vh;*/
	min-height: 70vh;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center top;
	background-attachment: fixed;
	background-color: #f1f3ef;
}

.start_banner {
	background-image: url(bilder/hero_start.jpg);
}

.portfolio_banner {
	background-image: url(bilder/hero_portfolio.jpg);
}

.cv_banner {
	background-image: url(bilder/hero_cv.jpg);
}

.kontakt_banner {
	background-image: url(bilder/hero_kontakt.jpg);
}

.error_404_banner {
	background-image: url(bilder/hero_404.jpg);
}

#top_banner h1, #top_banner h2, #top_banner h3, .full_fixed h2, .full_fixed h3 {
	color: #fff;
	text-align: center;
	padding: 15% 15px 0 15px;
	font-size: 3em;
	text-shadow: 2px 2px 5px #333;
}

#top_banner h3, .full_fixed h3 {
	margin: 0;
	padding: 0.5% 15px 0 15px;
	font-size: 2em;
}


/* Start page */
#lagahemma_cover {
	clear: both;
	height: 200px;
}

#lagahemma_cover {
	background-image: url(bilder/lagahemma_cover.jpg);
	background-repeat: no-repeat;
	background-position:top center;
	background-color:#f4f1ec;
}

.webbsida {
	margin: 0 0 10px 0;
	padding: 0;
	float: right;
	width: 49%;
	position: relative;
}

.webbsida_info {
	position: absolute;
	top: 0;
	left: 0;
	opacity: 0;
	width: 100%;
	height: 100%;
	background: rgba(255, 255, 255, 1);
	border: 1px solid #f1f3ef;
	padding: 15px;
	text-align: center;
	box-sizing: border-box;
	-webkit-transition: opacity 0.5s;
    transition: opacity 0.5s;
}

.webbsida:hover .webbsida_info {
	opacity: 1;
}

.webbsida:nth-child(odd) {
	float: left;
}

.webbsida .klicka {
	background-size: contain;
	background-repeat: no-repeat;
}

.webbsida .klicka img {
	opacity:0;
}

.webbsida .klicka:hover img {
	opacity:1;
}

.bild_cover {
	width: 100%;
	height: auto;
	overflow: hidden;
}

.lagahemma {
	background-image: url(bilder/lagahemma_cover.jpg);
}

.hypeline {
	background-image: url(bilder/hypeline_cover.jpg);
}

.brightside {
	background-image: url(bilder/brightside_cover.jpg);
}

.efssodertalje {
	background-image: url(bilder/efssodertalje_cover.jpg);
}


/* Portfolio */
#portfolio_wrap .box_left, #portfolio_wrap .box_right {
	position: relative;
	margin: 0 0 30px 0;
	z-index: 10;
}

#portfolio_wrap .box_left img, #portfolio_wrap .box_right img {
	opacity: 1;
	-webkit-transition: opacity 0.3; /* For Safari 3.1 to 6.0 */
	transition: opacity 0.3s;
}

#portfolio_wrap .box_left:hover img, #portfolio_wrap .box_right:hover img {
	opacity: 0.6;
	-webkit-transition: opacity 0.3; /* For Safari 3.1 to 6.0 */
	transition: opacity 0.3s;
}

#portfolio_wrap .box_left p, #portfolio_wrap .box_right p {
	margin: 0;
}

.portfolio_typ {
	padding: 3px 6px;
	color: #fff;
	background: #333;
	font-size: 60%;
	text-transform: uppercase;
	vertical-align: middle;
}

.portfolio_knapp {
	width: fit-content;
	margin: 10px auto;
	background: #d93d8d;
	color: #fff;
}

.portfolio_knapp:hover {
	background: #e168a6;
}

.portfolio_knapp a {
	display: block;
	padding: 6px 10px;
	color: #fff!important;
	text-decoration: none;
}

.image_block {
	position: absolute;
	display: block;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	z-index: 100;
}

.image_overlay {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	z-index: 500;
	display: block;
	background: #f00;
	opacity: 0;
}

.image_overlay:hover {
	opacity: 1;
}

h4 a {
	color: #333!important;
}


/* CV */
.cv_box_left ul, .cv_box_right ul {
	margin: 0;
	padding: 0 0 0 15px;
}

dl {
	margin: 0;
}

dt {
	margin: 5px 0 0 0;
	font-family: 'Bitter', Serif;
	font-weight: bold;
	font-size: 1.2em;
}

dd {
	margin: 0 0 0 5px;
}

.hidden_list {
	list-style: none;
	padding: 0!important;
}


/* Rubriker, text och länkar */
h1, h2, h3, h4, h5, h6 {
	font-family: 'Bitter', Serif;
	font-weight: 700, bold;
}

h1 {
	font-size: 2em;
	margin: 0;
}

h2 {
	font-size: 1.8em;
	margin: 8px 0 0 0;
}

h3 {
	font-size: 1.6em;
	margin: 8px 0 0 0;
}

h4 {
	margin: 0;
	font-size: 1.4em;
}


p {
	margin: 4px 0 6px 0;
	font-size: 1em;
}

a, a:link, a:visited {
	color: #4c6fb6;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
	color: #fff;
}

.full_fixed a {
	color: #fff;
}

.center {
	text-align: center;
}

.center_text {
	text-align: center;
	font-size: 1.2em;
}

.bold {
	font-weight: bold;
}

.stand_out {
	color: #649842;
	font-weight: bold;
}


/* övrigt */
.box_left, .box_right, .cv_box_left, .cv_box_right {
	clear: both;
	float: left;
	width: 46%;
	margin: 0 0 10px 0;
	padding: 0 1%;
	text-align: center;
}

.box_right, .cv_box_right {
	clear: none;
	float: right;
}

.cv_box_left, .cv_box_right {
	text-align: left;
}

.clear {
	clear: both;
}

.left {
	float: left;
}

.right {
	float: right;
}

img {
	max-width: 100%;
	height: auto;
}



/* --- För skärmar med bredden max 960px --- */

@media screen and (max-width: 960px) {

	/*#lagahemma_cover {
		margin: 0 20px;
		background-size: cover;
	}*/

}


/* --- För skärmar med bredden max 640px --- */
@media screen and (max-width: 640px) {
	#header {
		height: 60px;
	}

	#menu_button {
		display: block;
		float: right;
	}
	
	#stor_meny {
		display: none;
		position: absolute;
		right: 0;
		top: 50px;
		width: 100%;
		box-sizing: border-box;
		padding: 0 15px 0 5px;
		background: #343434;
		text-align: right;
	}
	
	#stor_meny li {
		display: block;
		margin: 0;
		padding: 4px 6px;
		right: 0;
	}
	
	.showme {
		display: block!important;
	}
	
	/*#top_banner, #portfolio_banner, #cv_banner, #kontakt_banner, #error_404_banner {
		height: 140px;
		background-size: cover;
		background-attachment: scroll;
	}*/
	
	#top_banner h1, #top_banner h2, #top_banner h3, .full_fixed h2, .full_fixed h3 {
		font-size: 2.6em;
	}

	#top_banner h3, .full_fixed h3 {
		font-size: 1.8em;
	}
	
	.webbsida {
		clear: both;
		float: none;
		width: 100%;
	}
	
	.box_left, .box_right, .cv_box_left, .cv_box_right {
		clear: none;
		float: none;
		width: auto;
	}

}


/* Test, ignore me please */
.test {
    float: left;
	width: 23%;
	margin: 0 1% 10px 1%;
	position: relative;
	display: inline-block;
	opacity: 1;
}
.test:hover {
	opacity: 0.5;
}
#the_video {
	width: 100%;
}
.test_video {
    width: 100%;
	height: 100%; 
    z-index: -1;
}    
.test_text {
	position: absolute;
	left: 2px;
	right: 2px;
	bottom: 2px;
	overflow: hidden;
	z-index: 3;
	font-size: 1.3em;
	color: #fff;
	text-shadow: #333 2px 2px 3px;
}