@import 'coopgo-web-ui-kit/styles';
// @import 'colors' <- we use the library's default values for colors, we don't need this

nav{
     
    &#navbar {
        height: 52px;

        .left {
            flex:0;
            text-align: left;
            background-color: $backgroundcolor;

            img {
                margin: 1em;
                height: 1.3em;
            }
        }

        .center {
            flex:1;
            color: $primarycolor;
            font-size: 1em;
            background-color: $backgroundcolor;
        }
        .right {
            font-family: $brandfont;
            color: $white;
        }

        #menutoggle {
            display: none;
        }

        @media(max-width: $breakpoint-phone) {
            #menutoggle {
                display: block;
            }
            .center {
                display: none;
            }
        }

        @media(max-width: $breakpoint-tablet) {
            .right {
                display: none;
            }
        }
    }

    &#sidebar {
        position: fixed;
        top: 0;
        left: -300px;
        width: 300px;
        height: 100%;
        z-index: 200;
        box-shadow: 0 6px 12px rgba(107, 82, 82, 0.3);
        background-color: $white;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        transition: ease 0.2s all;
    }

    &#TableOfContents {
        a {
            color: $white;
            font-size: 0.8em;
        }
    }
}

@media(max-width: $breakpoint-phone) {
    nav#navbar {
        background-color: $white;
    }
}

#body-overlay {
    width: 100vw;
    height: 100vh;
    display: none;
    position: fixed;
    z-index: 150;
    top: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
}

body {
    &.menu-open{
        #body-overlay {
            display: block;
        }
    }

    &.menu-open {
        nav#sidebar {
            left: 0;
        }
    }
}

.content {

    h1 {
        padding-top: 50px;
        text-align: center;
        color: $primarycolor;
    }

    h2 {
        text-align: justify;
        color: $secondarycolor;
    }

    p {
        text-align: justify;
    }

    img {
        max-width: 100%;
    }
}

.scroll {
    .right {
        background-color: $primarycolor;
    }
}

#footer {

    #realFooter {
        border-top: 1px solid $primarycolor;
    }
    
    ul {
        li {
            list-style: none;
        }
    }
}

@media(max-width: $breakpoint-tablet) {
    .featuredimage {
        display: none;
    }
}