/* Header */
header {
	margin: 0;
	padding: 0;
}

.header-wrapper {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
}

/* Classic header */
#logo {
	margin-left: 0;
	font-family: 'Major Mono Display', monospace;
	font-weight: bold;
	font-size: 3em;
}

#menu-wrapper p span {
	font-family: 'Major Mono Display', monospace;
	font-weight: bold;
}

#header-classic {
	z-index: 10;
	position: fixed;
	top: 0;
    left: 0;
    right: 0;
	transition: all 0.2s ease-in-out;
	background-color: transparent;
	border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

#header-classic ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.header-classic-item {
	color: white;
	font-size: 1.25em;
    float: left;
	display: flex;
	align-items: center;
	text-decoration: none;
	vertical-align: middle;
	height: 100px;
	margin-left: 40px;
	transition: height 0.4s ease;
}

.header-classic-item-active {
	border-bottom: 2px solid white;
}

#header-classic li:first-child {
	padding-left: 0;
}

/* Documentation header */
#header-documentation {
    height: 100px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 60px;
    overflow: visible;
    visibility: visible;
}

#header-documentation ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.header-documentation-item {
    color: black;
	font-size: 1.25em;
    float: left;
	display: flex;
	align-items: center;
	text-decoration: none;
	vertical-align: middle;
	height: 100px;
	margin-left: 40px;
}

.header-documentation-item-active {
    box-sizing: border-box;
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-color);
}

#doc-logo {
	margin-left: 0;
	font-family: 'Major Mono Display', monospace;
	font-weight: bold;
	font-size: 3em;
}

/* Responsive mobile menu */
#header-responsive {
	visibility: hidden;
	overflow: hidden;
	height: 0;
}

/* Tablets */
@media screen and (max-width:1200px) and (min-width:767px) {
    #logo {
		margin-left: 0;
	}

	.header-wrapper {
		padding-left: 30px;
		padding-right: 30px;
		width: auto;
		max-width: auto;
		margin: auto;
	}
}

/* Mobile-phones */
@media screen and (max-width:767px) {
    /* Responsive header */
    #header-responsive {
        z-index: 10;
        visibility: visible;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        box-shadow: 0px -35px 50px 20px rgba(0, 0, 0, 0.3);
        height: 55px;
        background-color: white;
		overflow: hidden;
    }

    #header-responsive p {
        margin: 0;
        padding: 0;
        line-height: 55px;
        color: var(--primary-color);
        text-align: center;
    }

    #header-responsive nav {
        margin-top: 55px;
    }

    #header-responsive ul {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
        float: left;
        clear: left;
    }

	#header-responsive ul a {
		text-decoration: none;
	}

    .header-responsive-item {
        font-size: 1.1em;
        width: 100%;
        margin: 0;
        padding: 0;
        text-align: left;
        color: #4C4C4C;
        opacity: 0;
        padding: 15px 21px;

    }

    .header-responsive-item-divider {
        color: #BEBEBE !important;
    }

    .header-responsive-item-active {
        color: var(--primary-color);
        border-left: 3px solid var(--primary-color);
    }

	/* Classic header */
	#header-classic {
		visibility: hidden;
		overflow: hidden;
		height: 0;
	}

	/* Documentation header */
	#header-documentation {
		overflow: hidden;
		height: 0;
		visibility: hidden;
		margin: 0;
	}

    /* Hamburger menu */
    #menu-wrapper {
        z-index: 10;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 55px;
        padding-left: 21px;
        padding-right: 21px;
        background-color: white;
        transition: box-shadow 0.2s ease-in-out;
    }

    #menu {
        float: left;
        width: 24px;
        height: 16px;
        position: absolute;
        top: 50%;
        transform: translate(0, -50%);
    }

    .line {
        transition: transform .3s ease, top .3s ease;
        position: absolute;
        height: 2px;
        width: 100%;
        background: var(--primary-color);
    }

    .line1 {
        top: 0;
    }

    .line2 {
        top: 8px;
    }

    .line3 {
        top: 16px;
    }

    .menu-animation .line1 {
        transform: rotate(45deg);
        top: 8px;
    }

    .menu-animation .line2, .menu-animation .line3 {
        transform: rotate(-45deg);
        top: 8px;
    }

    .open {
        height: 100vh !important;
    }

    /* Menu icons */
    .i-home:before {
        padding-right: 15px;
        font-family: 'Ionicons';
        content: '\f2d4';
    }

    .i-about:before {
        padding-right: 15px;
        font-family: 'Ionicons';
        content: '\f28e';
    }

    .i-documentation:before {
        padding-right: 15px;
        font-family: 'Ionicons';
        content: '\f2e1';
    }

    .i-github:before {
        padding-right: 15px;
        font-family: 'Ionicons';
        content: '\f239';
    }

    .i-youtube:before {
        padding-right: 15px;
        font-family: 'Ionicons';
        content: '\f34f';
    }
}
