/*
 * General header style.
 */
header {
    /*Color*/
    background-color: var(--HEADER-FOOTER-COLOR);

    /*Flexbox*/
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;

    /*Layer (Stick in front)*/
    z-index: 99;

    /*Border*/
    border-top-style: solid;
    border-color: var(--INFO-COLOR);
}

/*
 * Logo
 */
header h2 {
    /*Pos*/
    margin-left: 50px;

    /*Color/Style*/
    color: var(--HEADLINE-COLOR);
    transition: .5s;

    /*Flexbox*/
    display: flex;
    justify-content: center;
    align-items: center;
}

header h2:hover {
    transform: scale(101%);
}

header img {
    max-width: 125px;
    max-height: 75px;
    width: auto;
    height: auto;
}

/*
 * Navigation container
 */
.navigation {
    /*Pos*/
    position: relative;
    margin: 0;
    margin-right: 50px;

    /*Flexbox*/
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    /*Block selection*/
    user-select: none;

    transition: .5s;
}

/* 
 * Navigation items
 */
.navigation a {
    /*Pos*/
    position: relative;
    margin-right: 50px;

    /*Flexitem*/
    flex-grow: 1;

    /*Remove link display*/
    text-decoration: none;
    text-align: center;
    font-size: 1.5em;
    color: var(--HEADLINE-COLOR);
}

/*
 * Bar on item hover
 */
.navigation a::after {
    /*Pos*/
    position: absolute;
    width: 100%;
    height: 3px;
    left: 0;
    bottom: -4px;

    /*Color/Style*/
    content: '';
    background-color: var(--INFO-COLOR);
    border-radius: 5px;
    transform: scaleX(0);
    transition: .5s;
}

/* 
 * On item hover (show bar)
 */
.navigation a:hover::after {
    transform: scaleX(1);
}

/*
 * Color item on hover
 */
.navigation a:hover {
    color: var(--INFO-COLOR);
}

.navigation-fullscreen {
    transform: 0.5s;
}

/*
 * Create fancy animation on click.
 */
.navigation-button-container {
    /*Pos*/
    margin: auto;
    margin-right: 25px;
    height: 26px;
    width: 32px;

    /*Flexbox*/
    display: none;
    flex-direction: column;
    justify-content: space-between;

    /*Style*/
    cursor: pointer;
}

/* 
 * Create bars of 'burger' menu
 */
.navigation-button-container .nav-line {
    /*Pos*/
    height: 4px;
    width: 100%;

    /*Style*/
    border-radius: 10px;
    background: var(--HEADLINE-COLOR);
}

/*
 * Animations
 */
.nav-line#nav-line1 {
    transform-origin: 0% 0%;
    transition: transform 0.4s ease-in-out;
}

.nav-line#nav-line2 {
    transition: transform 0.3s ease-in-out;
}

.nav-line#nav-line3 {
    transform-origin: 0% 100%;
    transition: transform 0.4s ease-in-out;
}

/*
 * Create burger menu
 */
@media only screen and (max-width: 1400px) {

    /*
     * Chabge position of logo.
     */
    header h2 {
        margin-left: 20px;
    }

    /*
     * Chabge visibility of navigation button
     */
    .navigation-button-container {
        display: flex;
    }

    .navigation {
        /*Pos*/
        flex-direction: column;
        margin: auto;
        margin-top: 150px;
        left: 50%;
        transform: translate(-50%, 0);

        /*Flexbox*/
        display: none;
        /*Hide nav by default.*/
        position: absolute;

        z-index: 100;
        /*In front of everything.*/

        transition: .5s;
    }

    /*
     * Create space between each navigation child. 
     */
    .navigation a {
        /*Pos*/
        margin: 10px;
    }

    /*
     * With this class the -> nav visible.
     */
    .navigation-fullscreen {
        display: flex;
    }
}