/*
    Created on : Oct 30, 2016, 1:52:51 PM
    Author     : Juraj Marcin
*/

/*  Header  */
.header {
    border-bottom: 1px #FFF solid;
    height: 50px;
    position: fixed;
    top: 0;left: 0;right: 0;
    color: #FFF;
    z-index: 10;
    transition: background-color 0.5s ease,
        color 0.5s ease;
}
.header.scrolled, .header.shown {
    background-color: #222;
    transition: background-color 0.5s ease,
        color 0.5s ease;
}
.header.scrolled .logo, .header.shown .logo {
    opacity: 1;
    transition: opacity 0.5s ease;
}
.header .logo {
    opacity: 0;
    transition: opacity 0.3s ease;
    line-height: 50px;
    padding-left: 2px;
    height: 46px;
    display: inline-block;
}
.header .logo img {
    vertical-align: middle;
    height: 100%;
}
.nav {
    float: right;
    margin-right: 20px;
    font-weight: 900;
}
.nav ul {
    margin: 0;
    padding: 0;
}
.nav ul li {
    position: relative;
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    line-height: 50px;
    vertical-align: middle;
    margin-right: 30px;
}
.nav ul li a {
    color: inherit;
    text-decoration: none;
    opacity: 1;
}
.nav ul li a:hover {
    opacity: 1;
}
.nav ul li .submenu {
    max-height: 0;
    min-width: 203px;
    padding-left: 15px;
    padding-right: 15px;
    left: -15px;
    position: absolute;
    color: inherit;
    overflow: hidden;
    transition: max-height 0.1s ease;
    border-bottom: 1px #FFF solid;
    background-color: #222;
}
.nav ul li:hover .submenu {
    max-height: 150px;
    transition: max-height 0.1s ease;
}
.nav ul li .submenu li {
    display: block;
    line-height: 28px;
}
.header.scrolled .nav ul li a.active {
    color: #FBB040;
}
.nav-button {
    float: right;
    margin: 16.5px;
    height: 17px;
    width: 17px;
    display: none;
}
.nav-button span {
    display: block;
    width: 17px;
    height: 3px;
    margin-bottom: 2px;
    background-color: #FFF;
    border-radius: 3px;
    overflow: hidden;
}
@media screen and (max-width: 768px),
screen and (orientation: portrait) {
    .nav {
        background-color: inherit;
        position: fixed;
        top: 50px;
        left: 0;
        right: 0;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        display: block;
        transition: max-height 0.5s ease;
    }
    .nav ul {
        margin: 10px;
    }
    .nav ul li {
        display: block;
        position: static;
    }
    .nav ul li a {
        display: block;
    }
    .nav ul li .submenu {
        background-color: inherit;
        display: block;
        padding-left: 10px;
        padding-right: 10px;
        color: inherit;
        max-height: none;
        min-width: 100vw;
        left: 0;
        position: static;
        color: inherit;
        overflow: hidden;
        border: none;
    }
    .nav ul li:hover .submenu {
        max-height: none;
    }
    .nav ul li .submenu li {
        display: block;
    }
    .nav-button {
        display: inline-block;
    }
    .shown .nav{
        transition: max-height 0.5s ease;
        max-height: 100vh;
        overflow-y: scroll;
    }
}
