/*--------------------------------------------------------------
  Container
--------------------------------------------------------------*/

.main-header {
	display: flex;
	flex-wrap: wrap;
	height: 80px;
	width: 100%;
	position: fixed;
	z-index: 9;
	/*transition: all .2s;*/
	
}

.main-header.sticky {
	height: 80px;
	transition: all .2s; z-index:99;
	box-shadow: 0 4px 40px rgba(0, 0, 0, .1);
}

/*  Transparent header  */

.home .main-header {
    background-color: transparent !important;
}





@media only screen and (min-width: 1024px) {
/* 	.main-header {
		height: 120px;
	}

	.main-header.sticky {
		height: 120px;
	} */
}

.main-header-container {
	height: 100%;
	width: 100%;
	margin: auto;
	padding: 0 20px;
	position: relative;
	display: flex;
	justify-content: space-between;

	/* ta bort denna om menyraden ska vara fullwidth */
	/*max-width: 1400px;*/ 
}

.main-header-container.top {display: none;}
.main-header-container.bottom {height: 80px;}
/* .main-header-container.bottom nav {justify-content: flex-end;} */

@media only screen and (min-width: 1024px) {
	.main-header-container {
		padding: 0 20px;
	}

	.main-header-container.top {
		display: flex;
	}
/* 
	.main-header-container.bottom nav {
		justify-content: center;
	} */
}




/*--------------------------------------------------------------
  Logo
--------------------------------------------------------------*/

.main-header .main-logo-container{
	height: 100%;
	/*display: inline-flex;*/
	/*justify-content: flex-start;*/
	position: absolute;
}

.main-header .logo {
	height: 100%;
	/*width: 30%;*/
	/*display: inline-flex;*/
	display: flex;
	/*justify-content: flex-start;*/
	top: 20%;
	max-height: 60%;
	position: relative;
}

.main-header .logo a {
	height: 100%;
}

.main-header .logo img {
	height: 100%;

	/* Denna hämtas med jquery pga bugg med svg-filer */
	width: auto;
}

.main-header.sticky .logo a {
	width: auto !important;
}

/* mobile home */
.home .logo-light {
	display: none;
}

.home .logo-dark {
	display: block;
}

.home .small-logo-light {
	display: none;
}

.home .small-logo-dark {
	display: none;
}

/* mobile */
.logo-light {
	display: none;
}

.logo-dark {
	display: block;
}

.small-logo-light {
	display: none;
}

.small-logo-dark {
	display: none;
}

/* mobile sticky */
.sticky .logo-light {
	display: none;
}

.sticky .logo-dark {
	display: none;
}

.sticky .small-logo-light {
	display: none;
}

.sticky .small-logo-dark {
	display: block;
}

/* mobile menu */
.pushed .logo-light {
	display: none;
}

.pushed .logo-dark {
	display: none;
}

.pushed .small-logo-light {
	display: none;
}

.pushed .small-logo-dark {
	display: none;
}

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

	/* desktop home */
	.home .logo-light {
		display: none;
	}

	.home .logo-dark {
		display: block;
	}

	.home .small-logo-light {
		display: none;
	}

	.home .small-logo-dark {
		display: none;
	}
	
	/* desktop */
	.logo-light {
		display: none;
	}

	.logo-dark {
		display: block;
	}

	.small-logo-light {
		display: none;
	}

	.small-logo-dark {
		display: none;
	}

	/* desktop sticky */
	.sticky .logo-light {
		display: none;
	}

	.sticky .logo-dark {
		display: none;
	}

	.sticky .small-logo-light {
		display: none;
	}	

	.sticky .small-logo-dark {
		display: block;
	}
}




/*--------------------------------------------------------------
  Desktop menu
--------------------------------------------------------------*/

.main-header nav {
	height: 100%;
	width: 100%;
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: flex-end;
}




.main-header nav.secondary-navigation a {
	font-size: 18px;
}

.desktop-menu,
.mobile-menu {
	display: none;
}

@media only screen and (min-width: 1024px) {
	.desktop-menu {
		height: 100%;
		display: flex;
		opacity: 1;	
	}

	.desktop-menu ul {
		display: flex;
	}

	.desktop-menu div {
		height: 100%;
	}

	.desktop-menu div > ul {
		height: 100%;
	}

	.desktop-menu div > ul li {
		position: relative;
		height: 100%;
		display: flex;
		align-items: center;
	}

	.main-navigation ul ul {
		float: left;
		position: absolute;
		z-index: 99999;
	}

	.desktop-menu div > ul > li > a {
		padding: 20px 10px;
	}

	.desktop-menu a,
	.desktop-menu a:visited,
	.desktop-menu li.menu-item-has-children > a::after {
		transition: color .2s;
	}

	.desktop-menu a:hover,
	.desktop-menu a:active,
	.desktop-menu a:focus,
	.pixel-dekstop-menu li.menu-item-has-children > a:hover::after {
		transition: color .2s;
	}

	.desktop-menu li.menu-item-has-children > a:after {
		content: '\f107';
		font-family: 'FontAwesome';
		display: inline-flex;
		transition: .2s color;
		margin-left: 5px;
	}

	.desktop-menu li.menu-item-has-children:hover > a:after {
	    transition: .2s color;
	}

	.desktop-menu .sub-menu {
		display: none;
		padding: 10px 0;
	}

	.desktop-menu li:hover .sub-menu {
		display: flex;
		flex-wrap: wrap;
		width: 200px;
		z-index: 10;
		top: 80%;
		left: 0;
	}

	.sticky .desktop-menu li:hover .sub-menu {
		margin-top: 0;
		top: 100%;
	}

	/* Avkommentera följande och kommentera det innan om du använder hoverintent.js */

	/*	
	.desktop-menu li.hovered .sub-menu {
		display: flex;
		flex-wrap: wrap;
		width: 200px;
		z-index: 10;
		top: 80%;
		left: 0;
	}

	.sticky .desktop-menu li.hovered .sub-menu {
		margin-top: 0;
		top: 100%;
	}
	*/

	.desktop-menu .sub-menu a {
		font-size: 18px;
		padding: 10px 20px;
	}
}




/*--------------------------------------------------------------
  Fullscreen mobile menu
--------------------------------------------------------------*/

.mobile-menu {
	z-index: 100;
    opacity: 1;
    overflow: hidden;
    position: fixed;
    top: 0;
    right: 0;
    transform: translate3d(0, -100%, 0);
    transition: transform 0.2s;
    display: block;

    /*background-color: #000;*/

	/* Hur mycket av skärmen som ska täckas av menyn */
    width: 20%; 
    min-height: 100%;
}

.mobile-menu.pushed {
	transform: translate3d(0, 0, 0);
    transition: transform .2s;
    height: 100%;
    overflow-x: auto;
}

.mobile-menu-container {
	display: flex;
	position: relative;
	flex-flow: row;
	flex-wrap: wrap;
	justify-content: flex-start;
	margin: 15px;
}

.mobile-menu-fullscreen {
	width: 100%;
	min-height: calc( 100vh - 30px );
}

.menu-mobile-container {
	width: 100%;
}

.menu-mobile-container ul.menu > li {
    padding: 5px;
}

.menu-mobile-container ul.menu ul.sub-menu li {
	display: inline-block;
}

.menu-mobile-container ul.menu ul.sub-menu li a {
	font-size: 14px;
}

.mobile-menu .mobile-menu-part {
	display: flex;
    width: 100%;
    margin-bottom: 20px;
}

.mobile-menu .menu-mobile-container a {
	display: inline-flex;
	padding: 5px 5px 5px 0;
	font-size: 20px;
}

.mobile-menu .logo {
	height: 40px;
}

.mobile-menu .logo img {
	height: 100%;
	width: auto;
}

#body-overlay {
	display: none;
	height: 100%;
	width: 100%;
	position: fixed;
	z-index: 99;
}

body {
	overflow-x: hidden;
}

/* Brytpunkt för när menyn inte är fullscreen längre */

@media only screen and (min-width: 600px) {
	.mobile-menu {
		/*width: 50%;*/
	}
	
	header.main-header.pushed,
	main.main-content.pushed,
	footer.main-footer.pushed {
		/*transform: translate3d(50%, 0, 0);*/
		/*transition: transform .2s;*/
	}
}

@media only screen and (min-width: 1024px) {
	.mobile-menu {
		/*width: 50%;*/
	}
		
	header.main-header.pushed,
	main.main-content.pushed,
	footer.main-footer.pushed {
		/*transform: translate3d(33%, 0, 0);*/
		/*transition: transform .2s;*/
	}
}




/*--------------------------------------------------------------
  Mobile menu button
--------------------------------------------------------------*/

.mobile-menu-button-container {
	height: 100%;
	display: flex;
	align-items: center;
	cursor: pointer;
	padding: 0;
	position: relative;
	z-index: 999999;
}

.mobile-menu .mobile-menu-button-container {
	height: auto;
	position: absolute;
	top: 0;
	right: 0;
	padding: 0;
}

/* Här kan du inaktivera den mobila menyn från att synas på stor skärm om du 
avkommenterar nedanför */

/*@media only screen and (min-width: 1024px) {*/
/*	.main-header .mobile-menu-button-container {*/
/*		display: none;*/
/*	}*/

/*	.main-header .mobile-menu-button-container {*/
/*		margin-left: 20px;*/
/*	}*/
/*}*/

.mobile-menu-button {
	background: transparent;
	z-index: 999999;
	width: 30px;
	height: 25px;
	position: relative;
	transform: rotate(0deg);
	cursor: pointer;
}

.mobile-menu-button.open {
	z-index: 100;
}

.mobile-menu-button span {
	display: flex;
	position: absolute;
	height: 3px;
	width: 100%;
	opacity: 1;
	left: 0;
	transform: rotate(0deg);
	transition: all ease-in-out .3s;
}

.mobile-menu-button span:nth-child(1) {
    top: 0px;
}

.mobile-menu-button span:nth-child(2),
.mobile-menu-button span:nth-child(3) {
    top: 10px;
}

.mobile-menu-button span:nth-child(4) {
	top: 20px;
}

.mobile-menu-button.open span:nth-child(1) {
	top: 10px;
	width: 0%;
	left: 50%;
}

.mobile-menu-button.open span:nth-child(2) {
	transform: rotate(45deg);
}

.mobile-menu-button.open span:nth-child(3) {
	transform: rotate(-45deg);
}

.mobile-menu-button.open span:nth-child(4) {
	top: 10px;
	width: 0%;
	left: 50%;
}




/*--------------------------------------------------------------
  Menu extra
--------------------------------------------------------------*/

.mobile-menu .cta a,
.desktop-menu .cta a {
	padding: 10px 20px;
	margin: 20px 0;
}

@media only screen and (min-width: 1024px) {
	.desktop-menu .cta a {
		padding: 10px 20px;
		margin: 0 20px;
	}

	.sticky .desktop-menu .cta a {
		padding: 5px 10px;
	}
}