

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

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

#sticky-menu {
	height: 100%;
	width: 100%;
	padding: 0 20px;
	display: flex;
	flex-wrap: wrap;
	transition: all .2s;

	/* Döljer sticky menu hela tiden */
	display: none !important;
}


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

	#sticky-menu {
		height: 80px;
	}
}

.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;*/ 
}

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




/*--------------------------------------------------------------
  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: 200%;

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

/*#sticky-menu .logo a {
	width: auto !important;
}*/

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

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

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

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

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

.logo-dark {
	display: none;
}

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

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

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

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

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

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

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

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

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

.mobile-menu.pushed .small-logo-dark {
	display: block;
}

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

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

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

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

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

	.logo-dark {
		display: none;
	}

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

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

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

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

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

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




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

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

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

/*Waynes*/
.main-header nav a {
	font-size: 16px;
	font-weight: bold;
	text-transform: uppercase;
	font-family: 'Lato', sans-serif;
	letter-spacing: 0.67px;
}

.desktop-menu {
	display: none;
}

.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-menu .desktop-menu li:hover .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;
    left: 0;
    transform: translate3d(151%, 0, 0);
    transition: transform 0.2s;
    display: block;

    /*background-color: #000;*/

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

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

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

.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;
	font-weight: bold;
	text-transform: uppercase;
}

.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%;*/
		/*transform: translate3d(200%, 0, 0);*/
	}
	
	.mobile-menu.pushed {
		/*transform: translate3d(100%, 0, 0);*/
		/*transition: transform .2s;*/
	}
}

@media only screen and (min-width: 1024px) {
	.mobile-menu {
		width: 33.3333%;
		transform: translate3d(310%, 0, 0);
	}
		
	.mobile-menu.pushed {
		transform: translate3d(201%, 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: 70px;
	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;*/

	background: transparent;
	z-index: 999999;
	position: relative;
	transform: rotate(0deg);
	cursor: pointer;
	border: 1.5px solid #FFF;
	border-radius: 25px;
	padding: 10px 20px;
	text-transform: uppercase;
	color: #FFF;
}

.mobile-menu-button .mobile-menu-button-text > .open {
	display: none;
}

.mobile-menu-button.open .mobile-menu-button-text > .open {
	display: inline;
}

.mobile-menu-button.open .mobile-menu-button-text > .closed {
	display: none;
}

.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-menu .desktop-menu .cta a {
		padding: 5px 10px;
	}
}