html, body {
    height: 100%;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
}

a,
a:visited,
a:focus,
a:active,
a:link {
    text-decoration: none;
    outline: 0;
}

a {
    color: currentColor;
    transition: .2s ease-in-out;
}

h1, h2, h3, h4 {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    color: #354553;
    line-height: 1.4em;
}

p{
    color: #354553;
}

h1{
    font-size:2em;
}

h2{
    font-size:1.5em;
    font-weight:600;
    padding: 15px 0px 10px 0px;
}

img {
    vertical-align: middle;
    height: auto;
    width: 100%;
}


hr {
    margin-top: 1rem;
    margin-bottom: 1rem;
    border: 0;
    border-top: 1px solid #29a3b0;
}

header a:visited, header a:focus, header a:active, header a:link {
    color: white;
    text-decoration:none;
}

nav ul{
    list-style:none;
    padding:0;
    background-color:#354553;
    margin:0;
}

ul.main{
    width:100%;
    background-color: #FFFFFF;
    list-style-type: circle;
}

.nav-link{
    text-decoration:none;
    color:white;
    padding:20px 15px;
    display:block;
}

a.nav-link.active{
    background-color:#5a7288;
}

a.other-link{
    color:#89a2ba;
    display:block;
    padding: 2px 15px;
}

a.other-link.active{
    background-color:#5a7288;
    color: #fff;
}

a:hover{
    color: #29a3b0;
}


.content {
    position:relative;
    padding: 30px;
}

.content a {
    color: #5a7288;
    text-decoration: underline;
}

.content a:hover {
    text-decoration: none;
}
/* Mobile Nav */

* {
    outline: none;
}

header {
    display: flex;
    position: fixed;
    width: 100%;
    height: 60px;
    background: #29a3b0;
    color: #fff;
    justify-content: left;
    padding-left:20px;
    font-size: 20px;
    align-items: center;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    -webkit-box-shadow: 0px 3px 3px 0px rgba(0,0,0,0.19);
    -moz-box-shadow: 0px 3px 3px 0px rgba(0,0,0,0.19);
    box-shadow: 0px 3px 3px 0px rgba(0,0,0,0.19);
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    z-index: 1;
}

.mobile-nav {
    position:relative;
    z-index:1;
}
#nav-container {
    position: fixed;
    height: 100vh;
    width: 100%;
    pointer-events: none;
}
#nav-container .bg {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100% - 60px);
    visibility: hidden;
    opacity: 0;
    transition: .3s;
    background: #000;
}
#nav-container:focus-within .bg {
    visibility: visible;
    opacity: .6;
}
#nav-container * {
    visibility: visible;
}

.button {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 1;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    border-radius: 0;
    height: 60px;
    width: 30px;
    cursor: pointer;
    pointer-events: auto;
    margin-left: 25px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}
.icon-bar {
    display: block;
    width: 100%;
    height: 3px;
    background: #ffffff;
    transition: .3s;
}
.icon-bar + .icon-bar {
    margin-top: 5px;
}

#nav-container:focus-within .button {
    pointer-events: none;
}
#nav-container:focus-within .icon-bar:nth-of-type(1) {
    transform: translate3d(0,8px,0) rotate(45deg);
}
#nav-container:focus-within .icon-bar:nth-of-type(2) {
    opacity: 0;
}
#nav-container:focus-within .icon-bar:nth-of-type(3) {
    transform: translate3d(0,-8px,0) rotate(-45deg);
}

#nav-content {
    margin-top: 60px;
    padding: 0px;
    width: 90%;
    max-width: 300px;
    position: absolute;
    top: 0;
    left: 0;
    height: calc(100% - 60px);
    background: #354553;
    pointer-events: auto;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    transform: translateX(-100%);
    transition: transform .3s;
    will-change: transform;
    contain: paint;
}

#nav-content ul {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: scroll;
    background-color: #354553;
    padding: 20px 0;
    z-index: 1;
}

.nav ul {
    list-style-type: none;
    padding: 10px 0 30px 0;
    background-color: #354553;
}

#nav-content li a {
    padding: 20px;
    display: block;
    text-transform: none;
    transition: color .1s;
    color: #FFFFFF;
}

#nav-content li a:hover {
    color: #29a3b0;
}

#nav-content li:not(.small) + .small {
    margin-top: auto;
}


#nav-container:focus-within #nav-content {
    transform: none;
}


@media (min-width: 577px){
    .mobile-header{
        text-align:left;
        font-size: 20px;
    }
    #nav-container  {
        display: none;
    }
    .container-fluid {
       padding-top: 60px;
    }
    .container-fluid .nav {
        height: calc(100vh - 40px);
        overflow-y: auto;
        padding-right:0;
        position:fixed;
    }
    .button {
        display: none;
    }
}


@media (max-width: 576px) {
    header {
        padding-left: 80px;
        font-size: 22px;
    }
    #nav-content ul {
        padding: 20px 0 90px 0;
    }
    .container-fluid {
        padding: 60px 20px 0;
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    body {
        width: 100%;
        height: 100vh;
    }
    .content {
        padding: 30px 20px;
    }
    .content h1 {
        font-size: 1.6em;
    }
    .content h2 {
        font-size: 1.3em;
    }
}









