:root {
    --navbar-bg-color: rgba(255,255,255, 0.5);
    --navbar-text-color: rgba(38,56,118,1);
    --navbar-text-color-focus: rgba(57,86,185,1);
    --bg-lightblue: rgb(157, 201, 229,0);
}

.container {
    max-width: 1000px;
    padding-left: 1.4rem;
    padding-right: 1.4rem;
    margin-left: auto;
    margin-right: auto;
}

#navbar {
    --navbar-height: 90px;
    position: fixed;
    height: var(--navbar-height);
    background-color:var(--bg-lightblue);
    left: 0;
    right: 0;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15); */
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    height: 100%;
    align-items: center;
}

.home-link,
.navbar-link {
    color: var(--navbar-text-color);
    transition: color 0.2s ease-in-out;
    text-decoration: none;
    display: flex;
    font-weight: 400;
    text-transform: uppercase;
    align-items: center;
    transition: background-color 0.2s ease-in-out,
                color 0.2s ease-in-out;
    padding-top:2em;
}

.home-link:focus,
.home-link:hover {
    color: var(--navbar-text-color-focus);
}

.navbar-link {
    justify-content: right;
    width: 100%;
    padding: 0.4em 1.2em;
    border-radius: 20px;
    transition: all ease-in-out 0.3s;    
}

.navbar-link:focus,
.navbar-link:hover {
    color: white;
    background-color: var(--navbar-text-color);
}

.navbar-logo {
    /* border-radius: 50%; */
    margin-right: 0.5em;
    background: url(../images/campaign-logo.svg) no-repeat;
    background-size: contain;
    width: 220px;
    height: 90px;
    transition: width ease-in-out 0.3s;
}

.navbar-toggle {
    cursor: pointer;
    border: none;
    background-color: transparent;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
    z-index:5000;
}

.icon-bar {
    display: block;
    width: 25px;
    height: 4px;
    margin: 2px;
    border-radius: 3px;
    transition: background-color 0.2s ease-in-out,
                transform 0.2s ease-in-out,
                opacity 0.2s ease-in-out;
    background-color: var(--navbar-text-color);
}

.navbar-toggle:focus .icon-bar,
.navbar-toggle:hover .icon-bar {
    background-color: var(--navbar-text-color-focus);
}


.initiative h6 {
    text-transform: uppercase;
    font-size:0.7em;
    margin-right:10px;
    width:70%;
}

.initiative {
    display:none;
}

#navbar.opened .initiative {
    display:flex;
    flex-direction:row;
    align-items:flex-end;
    position:absolute;
    bottom:20px;
    right:20%;
}

#navbar.opened .smlogosvg {
    min-width:100%;
    width:20%;
}

#navbar.opened .navbar-toggle .icon-bar:first-child,
#navbar.opened .navbar-toggle .icon-bar:last-child {
    position: absolute;
    margin: 0;
    width: 30px;
}

#navbar.opened .navbar-toggle .icon-bar:first-child {
    transform: rotate(45deg);
}

#navbar.opened .navbar-toggle .icon-bar:nth-child(2) {
    opacity: 0;
}

#navbar.opened .navbar-toggle .icon-bar:last-child {
    transform: rotate(-45deg);
}

#navbar-menu {
    position: fixed;
    top: var(--navbar-height);
    bottom: 0;
    transition: opacity 0.2s ease-in-out,
                visibility 0.2s ease-in-out,
                left 0.2s ease-in-out,
                right 0.2s ease-in-out;
    opacity: 0;
    visibility: hidden;
}

#navbar-menu.sidebar,
#navbar-menu.sidebar.left {
    left: -1000px;
    right: 0;
}

#navbar-menu.sidebar.right {
    right: -1000px;
    left: 0;
}

#navbar-menu.detached,
#navbar-menu.attached {
    left: 0;
    right: 0;
}

#navbar.opened #navbar-menu {
    /* background-color:var(--bg-lightblue); */
    background-color: rgba(255, 255, 255, 0.9);
    opacity: 1;
    visibility: visible;
    padding-top:120px;
    top:-50px;
}

#navbar.opened #navbar-menu.sidebar.left {
    left: 0;
}

#navbar.opened #navbar-menu.sidebar.right {
    right: 0;
}

.navbar-links {
    list-style-type: none;
    max-height: 0;
    overflow: hidden;
    position: absolute;
    /* background-color:rgb(157, 201, 229,1); */
    display: flex;
    flex-direction: column;
    /* align-items: center; */
}

#navbar.opened .navbar-links {
    padding: 1em;
    max-height: none;
    /* background-color:rgb(157, 201, 229,0.8); */
    display: flex;
    align-items: flex-end;
    -webkit-align-items:flex-end;
}

.attached .navbar-links {
    left: 0;
    right: 0;
}

.navbar-item {
    margin: 0.4em;
    /* width: 100%; */
}

@media screen and (min-width: 900px) {
    .navbar-toggle {
        display: none;
    }
    
    #navbar #navbar-menu,
    #navbar.opened #navbar-menu {
        visibility: visible;
        opacity: 1;
        position: static;
        display: block;
        height: 100%;
    }

    #navbar .navbar-links,
    #navbar.opened .navbar-links {
        margin: 0;
        padding: 0;
        box-shadow: none;
        position: static;
        flex-direction: row;
        list-style-type: none;
        max-height: max-content;
        width: 100%;
        height: 100%;
    }

    #navbar .navbar-link:last-child {
        margin-right: 0;
    }
    .navbar-logo {
        /* width: 160px; */
        padding-bottom: 0;
    }
    
}

#options {
    display: flex;
    flex-direction: column;
}