header {
    width: 100%;
    margin: 0 auto;
    padding: 2em 1em 0 1em;
    background-color: $color-1;
    z-index: 100;
    height: 80px;
    display: flex;
    align-items: flex-end;
    h1 {
        color: $white;
        font-size: 2.5rem;
        font-family: 'Montserrat', sans-serif;
        font-weight: 100;
        @media (max-width: 1080px) {
            font-size: 1.5rem;
        }
    }
}

nav {
    width: 100%;
    height: 50px;
    background-color: $color-3;
    position: sticky;
    top: 0;
    z-index: 99;
    box-shadow: 0 0.5rem 1.5rem 0.125rem rgba(0,0,0,0.25);

    ul {
        li {
            display: inline-block;
            padding: $padding-div 0;
            transition: background-color 0.25s linear;
            &:hover {
                transition: background-color 0.25s linear;
                background-color: darken($color-3, 5%);
            }   
            a {
                padding: $padding-div;
                height: 50px;
                text-decoration: none;
                font-family: 'Montserrat', sans-serif;  
                color: #ffffff;
                font-size: 90%;
                &:active,:focus {
                    font-weight: 500;
                }                
            }
        }
    }
    label,input {
        display: none;
    }
    @media (max-width:1080px) {
        overflow-y: visible;
        min-height: 50px;
        height: auto;
        max-height: 100%;
        width: auto;
        min-width: 50px;
        label {
            cursor: pointer;
        }

        label, #content {
            height: 45px;
            width: 50px;
            margin-bottom: 0;
            display: flex;
        }
        #menu-toggle {
            display: none;
        }
        #menu {
            //background-color: #ffa500;
            width: 100%;
            overflow: hidden;
            max-height: 0;
            -webkit-transition: height,max-height 0.75s ease-in-out 0.01s;
            transition: height,max-height 0.75s ease-in-out 0.01s;
        }
        #menu-toggle:checked + #menu {
            max-height: 150px;
        }
        .nav-icon {
            margin: 10px;
            width: 40px;
            &:after,&:before, div {
                background-color: #fff;
                border-radius: 3px;
                content: '';
                display: block;
                height: 3px;
                margin: 6px 0;
                transition: all .25s ease-in-out;
            }
            &.active {
                &:after{
                    transform: translateY(-12px) rotate(135deg);
                }
                &:before {
                    transform: translateY(6px) rotate(-135deg);
                }
                div {
                    transform: scale(0);
                }
                transition: all .25s ease-in-out;
            }
        }
    }
}



section {
    float: left;
    width: 80%;
    margin: 0;
    //display: inline-block;
    background-color: $white;
    padding: $padding-div;

    article {
        padding: $padding-div;
    }
}

aside {
    float: right;
    width: 20%;
    padding: $padding-div;
    background-color: $color-5;
    img {
        width: 45%;
        margin: 2rem auto;
        display: block;
    }
}

footer {
    clear: both;
    width: 100%;
    height: 50px;
    background-color: $color-7;
    color: $white;
    padding: $padding-div;
    position: fixed;
    bottom: 0;
    box-shadow: 0 -0.5rem 1.5rem 0.125rem rgba(0,0,0,0.25);
    p {
        width: auto;
        margin: 0 auto;
        text-align: center;
        font-size: .875em;
        @media (max-width:1080px) {
            font-size: .75em;
        }
    }
    a {
        text-decoration: none;
        color: #fff;
    }
    &.nofixed {
        position: static;
    }
}

.gridbody, .sizes, .flexbody {
    min-height: calc(100vh - 180px);
}

.font-italic {
    @include italic;
}

.w100 {
    @include width(100%);
}