nav.header {
    z-index: 100;
    position: relative;
    background: white;
    /* box-shadow: 0 3px 2px 0 rgb(193, 210, 232, 0.5); */
}

nav.header ul#small-screen-nav {
    padding: 0 0;
    margin: 0;
}

nav.header ul#small-screen-nav li {
    vertical-align: bottom;
}

nav.header ul#small-screen-nav #burger {
    font-size: 30px;
    text-align: center;
    line-height: 35px;
    float: right;
    color: white;
    margin: 0;
    padding: 13px 13px;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
}
nav.header ul#small-screen-nav #burger:hover { color: #99d2ed; background: white; }
nav.header ul#small-screen-nav #burger:active { color: #7abddc; }

nav.header ul {
    padding-bottom: 0;
}

nav.header ul li {
    display: inline-block;
    position: relative;
    margin: 0;
    padding: 13px 8px;
    cursor: pointer;
    z-index: 1000;
}
nav.header ul li:hover { background: #74e2c8; }

nav.header ul li a {
    text-decoration: none;
}

nav.header ul li .icon-wrapper {
    display: inline-block;
    position: relative;
    width: 55px;
    height: 55px;
    vertical-align: bottom;
}

nav.header ul li .icon-wrapper img {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    max-width: 100%;
    max-height: 100%;
    /* filter: brightness(100%) grayscale(0%); */
}

/* nav.header ul li:hover .icon-wrapper img {
    filter: brightness(80%) grayscale(20%);
} */

nav.header ul li .text {
    display: inline-block;
    line-height: 55px;
    vertical-align: bottom;
    padding-left: 8px;
    color: #5BBDA6;
    font-size: 18px;
}

nav.header ul li:hover .text {
    color: white;
}

nav.header ul#left {
    float: left;
}

nav.header ul#right {
    float: right;
    padding-left: 0;
}

nav.header ul#right li .text {
    width: auto;
    max-width: 0;
    transition: .1s ease-out;
    white-space: nowrap;
    overflow: hidden;
}

nav.header ul#right li:hover .text {
    max-width: 1000px;
    transition: 0s ease-out;
}


li .dropdown {
    display: none;
    position: absolute;
    z-index: 1000;

    list-style: none;

    top: 100%;
    right: 0;
    width: 100%;
    padding: 0;

    background-color: #e5fff9;
    border-radius: 5px;
    border: #97e4d2 solid 2px;
    border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    /* box-shadow: 0 0 3px 1px rgba(120, 158, 156, 0.52); */
}

li:hover > .dropdown {
    display: block;
}

.dropdown > a {
    display: block;
    cursor: pointer;
    color: #5BBDA6;
    padding: 10px;
    margin: 3px 0 !important;
    text-decoration: none;
    font-size: 15px;
}

.dropdown > a:hover {
    background: #80e2cb;
    color: white;
}

.dropdown > hr {
    margin: 0 5px;
    background: rgba(117, 180, 199, 0.15);
}

.clear {
    clear: both;
}

footer {
    background: #1AABA6;
    padding: 30px;
    text-align: center;
    color: #d5fffe;
}

footer section#outside-links {
    padding: 10px 0;
}

footer section#outside-links a.link {
    display: inline-block;
    font-size: 50px;
    color: #d5fffe;
    margin: 10px 0;
    line-height: 0;
    margin: 0 10px;
}

footer section#outside-links a.link:hover {
    color: #45f0ee;
}

footer section#outside-links a.link .text {
    font-size: 12px;
}

footer section#contact {
    padding: 10px 0;
}

footer section#copyright {
    padding: 10px 0;
}

footer.fixed {
    position: fixed;
    width: 100%;
    bottom: 0;
}

/* Responsize deisgn */

@media screen and (max-width: 1000px) {
    nav.header ul#left {
        padding-left: 8px;
    }

    nav.header ul#right {
        padding-right: 8px;
    }

    nav.header ul li .icon-wrapper {
        width: 45px;
        height: 45px;
    }

    nav.header ul li .text {
        font-size: 15px;
        padding-left: 6px;
    }
    
}

@media screen and (max-width: 900px) {
    nav.header ul li .icon-wrapper {
        width: 35px;
        height: 35px;
    }

    nav.header ul li .text {
        height: 40px;
        line-height: 40px;
        font-size: 14px;
        padding-left: 3px;
    }
}

@media screen and (max-width: 768px) {
    nav.header {
        /* padding: 16px 0; */
        background: #B8DCED;
    }

    nav.header #collapse-menu {
        height: auto;
        width: 100%;
        max-height: 0;
        transition: .3s;
        overflow: hidden;
        background: #e0f4ef;
        /* transform: translateY(16px); */
    }

    nav.header #collapse-menu.active {
        max-height: 2000px;
    }

    nav.header #collapse-menu ul li {
        display: block;
        margin: 0 !important;
        /* padding: 15px 20px; */
        padding: 0;
    }

    nav.header #collapse-menu ul li a {
        display: block;
        padding: 15px 20px;
    }

    nav.header #collapse-menu ul li:hover {
        background-color: #cbe9e2;
    }

    nav.header #collapse-menu ul li:hover .icon-wrapper img {
        filter: none;
    }



    li:hover > .dropdown {
        display: none;
    }

    li.active > .dropdown {
        display: block;
        position: relative;
        width: calc(100% - 40px);
        color: white;
        box-shadow: none;
        margin-left: 20px;

        background: white;
        border: none;
    }

    li.active > .dropdown > a {
        color: #5BBDA6;
    }
    
    li.active > .dropdown > a:hover {
        background: rgba(62, 155, 170, 0.31);
        color: white;
    }

    nav.header ul li .icon-wrapper {
        width: 50px;
        height: 50px;
    }
    nav.header ul.only-small-screen .icon-wrapper {
        width: 35px;
        height: 35px;
    }
    nav.header ul li .text {
        font-size: 20px;
        padding-left: 12px;
    }
    nav.header ul#small-screen-nav #slogan {
        display: inline-block;
        line-height: 60px;
        width: calc(100% - 130px);
        height: 60px;
        text-align: center;
        font-size: 26px;
        color: white;
        text-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
    }


    nav.header ul#left {
        float: none;
        margin-bottom: 10px;
        padding-left: 0;
    }
    nav.header ul#right {
        float: none;
        padding-right: 0;
        margin-top: 0;
        margin-bottom: 0;
        padding-bottom: 10px;
    }

    nav.header ul#right li .text {
        display: inline-block;
    }

    nav.header ul#right li .text {
        max-width: 1000px;
    }

    nav.header ul li:hover {
        color: #99d2ed;
        background: white;
    }
}

