nav {
    --select-blue: #018D8E;
    --select-white: #fff;
}
ul li p {
    margin-bottom: 0 !important;
}
.single-not-drop {
    list-style: none;
    display: inline-block;
    padding: 0;
}
.single-not-drop > li {
    display: inline-block;
    z-index: 100;
    position: relative;
    z-index: 102;
    /* width: calc(100% + 2rem); */
    height: 50px;
    line-height: 50px;
    margin: 0;
    padding: 0;
    text-align: center;
    font-size: 1.15rem;
    color: #fff;
    cursor: pointer;
}
.single-not-drop  li  a {
    text-decoration: none;
}
.single-not-drop li a:hover {
    color: rgb(255, 255, 255, .5);
    transition: color .3s;
}

nav ul.nav-items {
    list-style: none;
    display: inline-block;
    padding: 0;
}

nav ul.nav-items li {
    display: inline-block;
    z-index: 100;
    position: relative;
    /* width: calc(100% + 2rem); */
    width: 7.8rem;
    height: 50px;
    line-height: 50px;
    margin: 0;
    padding: 0;
    text-align: center;
    font-size: 1.15rem;
    color: #fff;
    cursor: pointer;
}
nav ul.nav-items li a {
    text-decoration: none;
}
.dropdown-1:hover > ul > li:hover > a {
    color: var(--select-blue);
}

nav ul.nav-items li:hover {
    background: var(--select-white);
    color: var(--select-blue);
    border-radius: 3px;
}
nav ul.dropdown-items {
    position: absolute;
    top: 49px;
    padding: 0;
}
nav ul.dropdown-items li {
    color: var(--select-white);
    background: var(--select-blue);
}
nav ul.dropdown-items li:hover {
    border-radius: 0;
}
nav ul.dropdown-items li:last-child {
    border-radius: 0 0 3px 3px;
}
nav ul.dropdown-items li {
    display: none;
}
nav li:hover ul.dropdown-items {
    perspective: 450px;
}
nav li:hover ul.dropdown-items li {
    display: block;
}
nav li.dropdown-1:hover ul.dropdown-items li {
    opacity: 0;
}
nav li.dropdown-1:hover ul.dropdown-items li:nth-child(1) {
    animation-name: dropdown-1;
    animation-duration: 300ms;
    animation-delay: 0ms;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
}
nav li.dropdown-1:hover ul.dropdown-items li:nth-child(2) {
    animation-name: dropdown-1;
    animation-duration: 330ms;
    animation-delay: 30ms;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
}
nav li.dropdown-1:hover ul.dropdown-items li:nth-child(3) {
    animation-name: dropdown-1;
    animation-duration: 360ms;
    animation-delay: 60ms;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
}
nav li.dropdown-1:hover ul.dropdown-items li:nth-child(4) {
    animation-name: dropdown-1;
    animation-duration: 390ms;
    animation-delay: 90ms;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
}
nav li.dropdown-1:hover ul.dropdown-items li:nth-child(5) {
    animation-name: dropdown-1;
    animation-duration: 420ms;
    animation-delay: 120ms;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
}
nav li.dropdown-1:hover ul.dropdown-items li:nth-child(6) {
    animation-name: dropdown-1;
    animation-duration: 450ms;
    animation-delay: 150ms;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
}
nav li.dropdown-1:hover ul.dropdown-items li:nth-child(7) {
    animation-name: dropdown-1;
    animation-duration: 480ms;
    animation-delay: 180ms;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
}
nav li.dropdown-1:hover ul.dropdown-items li:nth-child(8) {
    animation-name: dropdown-1;
    animation-duration: 510ms;
    animation-delay: 210ms;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
}
@keyframes dropdown-1 {
    0% {
        opacity: 0;
        transform: rotateY(-90deg) translateY(30px);
   }
    100% {
        opacity: 1;
        transform: rotateY(0deg) translateY(0);
   }
}













#menubar {
    --mobile-menu-green: #018D8E;
    background-color: var(--mobile-menu-green);
    position: relative; left: 0; top: 0;
    width: 100vw; height: 4.75rem; overflow: hidden;
    display: flex; align-items: center;
    z-index: 1000;
}

#menubar:hover {
    opacity: 1 !important;
}

#pages-wrapper {
    display: flex; gap: 2rem; align-items: center;
    position: fixed; height: 6rem; right: 2rem;
    font-size: 1.2rem;
}

.has-sub::after {
    content: "\25BC";
    font-size: 0.6rem;
    position: relative; bottom: 0.2rem;
}

.sub .submenu {
    display: none;

    position: absolute;
    flex-direction: column;
    gap: 0.2rem;
    background-color: var(--mobile-menu-green);
    padding: 2.3rem 1rem 1rem;
    border-radius: 0.2rem;
}


.menu-link, .submenu-link {
    color: white;
    text-decoration: none;
}

.menu-link:hover, .submenu-link:hover {
    color: #f4a460;
    text-decoration: none;
}




/* for on hover opening */
@media all and (min-width: 992px) {
    .sub:hover .submenu {
        display: flex;
    }

    .submenu-link {
        padding-left: 0;
        padding-right: 0.5rem;
        -webkit-transition: .25s ;
        -moz-transition: .25s;
        -o-transition: .25s;
        transition: .25s;
    }

    .submenu-link:hover {
        padding-left: 0.5rem;
        padding-right: 0;
        -webkit-transition: .25s ;
        -moz-transition: .25s;
        -o-transition: .25s;
        transition: .25s;
    }

    #submenuAwards {
        margin-left: -3.5rem;
        white-space: nowrap;
    }
}

#mobile-menu-icon { opacity: 0 }

/* for mobile */
@media all and (max-width: 991px) {
    #mobile-menu-icon {
        opacity: 1;
        position: absolute; right: 0; top: 0;
        margin: 2rem 1.8rem 2rem 0;
    }

    #pages-wrapper {
        width: 100vw; height: 0;
        position: fixed; left: 0; top: 0;
        display: none;
        justify-content: center; align-items: center; gap: 1.5rem; flex-direction: column;
        font-size: 1.6rem; font-weight: bold;
    }

    .has-sub::after {
        display: inline-block;
        transform: rotate(270deg);
        font-size: 0.8rem;
        position: relative; bottom: 0.25rem;
    }

    .sub .submenu {
        width: 100vw; height: 100vh;
        position: absolute; left: 100vw; top: 0;
        justify-content: center; align-items: center; gap: 0.8rem; flex-direction: column;
        font-size: 1.3rem; font-weight: bold;
    }

    .back {
        display: flex; align-items: center;
        position: absolute; height: 100vh;
        width: 20vw;
        left: 0; top: 0;
        justify-content: right;
    }

    .back::before {
        content: '\140A';
        font-size: 2rem;
        color: white;
    }
}

.logo { width: 8rem; position: absolute; left: 0; top: 0; margin: 0.9rem 0 0 0.9rem; }


/* SIDEBAR */
#sidebar {
    background-color: rgba(0,0,0,0) !important;
    width: 14rem;
    position: absolute;
    left: 2rem;
    margin-top: 10rem;
    padding: 0 !important;
    text-align: left;
}

#sidebar-spacer {
    min-width: 16rem;
    height: 100%;
}

#sidebar-content-wrapper {
    display: flex; gap: 3rem; justify-content: center;
    width: 100vw;

    background-color: white;
    overflow: hidden;

    padding-bottom: 6rem;
}

.topic-subpages-wrapper {
    max-width: 900px;
    text-align: justify;
    display: flex;
    flex-direction: column;
    padding-right: 3rem;
}

#sidebar .nav-link {
    background-color: rgba(0,0,0,0) !important;
    color: black;
    position:relative;
    font-size: 1.4rem;
}

#sidebar .nav-link.sup-link:hover, .chapter-wrapper.active .sup-link {
    color: #81B29A !important;
    font-weight: bold;
}

#sidebar .nav-link.sub-link:hover, #sidebar .nav-link.sub-link.active {
    color: #F2CC8F !important;
}


#sidebar .nav-link.active {
    font-weight: bold;
}

.nav-link.sub-link {
    font-size: 0.9rem !important;
    padding-top: 0 !important;
    color: gray !important;
}

.chapter-wrapper.active .sub-link {
    display: block;
}


.chapter-wrapper.inactive .sub-link {
    display: none
}


#sidebar-mobile-button {
    display: none;
}

.topic-subpages-wrapper.no-sidebary {
    padding: 0 1.5rem;
}

@media all and (max-width: 900px) {
    .big-screen {
        display: none;
    }
}

/* mobile */
@media all and (max-width: 680px) {
    
    #sidebar-wrapper-mobile a.sub-link {
        font-size: 1.2rem !important;
    }


    .imp-special {
        width: 98vw;
    }

    #sidebar-content-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    #sidebar-spacer {
        display: none;
        height: 0; width: 0;
    }

    #sidebar {
        position: static;
        display: block;
        width: 84vw;
        margin-top: 2.5rem;
    }

    .topic-subpages-wrapper {
        padding: 0 1.5rem;
    }


    #mobile-sidebar-background {
        width: 100vw; height: 100vh;
        display: none;
        position: fixed; top: 0; left: 0;
    }

    #mobile-sidebar-background.active {
        display: block;
    }


    #sidebar-mobile-wrapper {
        display: flex; align-items: center; height: 100vh; position: fixed; top:0; left: 0; width: 0; overflow: visible;
    }

    #sidebar-mobile {
        z-index: 2;
        display: flex; align-items: center; justify-content: right;
        height: 40vh; width: 85vw;
        position: absolute; left: -81.4vw;
        background-color: rgba(0, 0, 0, 0.25);
        color: #ffffff;
        border-radius: 1rem;
        cursor: pointer;

        opacity: 0; /* controlled by headerParallax.js */

        -webkit-transition:background-color 0.5s, opacity 0.5s;
        -moz-transition:background-color 0.5s, opacity 0.5s;
        -o-transition:background-color 0.5s, opacity 0.5s;
        transition:background-color 0.5s, opacity 0.5s;



        overflow: hidden;
        max-height: 80vh !important;
    }

    #sidebar-mobile.active {
        background-color: rgba(0, 0, 0, 0.9);
        -webkit-transition:background-color 0.5s, opacity 0.5s;
        -moz-transition:background-color 0.5s, opacity 0.5s;
        -o-transition:background-color 0.5s, opacity 0.5s;
        transition:background-color 0.5s, opacity 0.5s;

        overflow-y: scroll;
    }

    #sidebar-mobile .sup-link {
        color: #81B29A !important;
        font-weight: bold;
    }

    #sidebar-mobile .sub-link {
        color: #F2CC8F !important;
    }


    #sidebar-wrapper-mobile {
        padding-top: 1rem; padding-bottom: 1rem;
        width: 75vw;
    }

    #mobile-icon {
        display: flex;
        width: 5vw; height: 40vh;
        font-size: 2.5rem;
        position: fixed; margin-right: 0.6rem; padding-left: 0.2rem;
        align-items: center;
    }

    #sidebar-wrapper-mobile .chapter-wrapper {
        width: 90%;
    }
}

/* underlining animation only on desktop */
@media all and (min-width: 551px) {
    #sidebar .nav-link::after {
        position: absolute;
        bottom: 0;
        left: -25%;
        right: 0;
        margin: auto;
        width: 0;
        content: "";
        height: 4px;
        transition: all 0.5s;
    }

    #sidebar .sup-link:after {
        background-color: #81B29A;
    }

    #sidebar .sub-link:after {
        background-color: #F2CC8F;
    }

    #sidebar .nav-link:hover::after {
        width: 60%;
        transition: all 0.5s;
    }
}


/* get rid of headbutting when pressing on links, courtesy: https://css-tricks.com/hash-tag-links-padding/ */
#sidebar-content-wrapper h4::before, #sidebar-content-wrapper h5::before {
    display: block;
    content: " ";
    margin-top: -80px;
    height: 80px;
    visibility: hidden;
    pointer-events: none;
}

#sidebar-content-wrapper h4, .event-text h4 {
    text-align: center;
    font-size: 3rem;
    color: #67a286;
    padding-top: 4rem;
    font-weight: bolder;
}

#sidebar-content-wrapper h5, .event-text h5 {
    text-align: center;
    font-size: 1.8rem;
    color: #eaac4a;
    font-weight: normal;
    padding-top: 2rem;
}

.event-text h5 {
    margin-top: 0;
}


.text-wrapper {
    margin-top: 1rem;
}

.image-wrapper {
    display: flex;
    width: 100%;
    justify-content: center;
}

.pdf-wrapper {
    margin-top: 1rem;
    display: flex;
    width: 100%;
    height: 70vh;
    justify-content: center;
}

.topic-subpages-wrapper img, .image-wrapper img {
    max-width: 80%;
    align-self: center;
}

.caption {
    font-size: 0.9rem;
    line-height: 1rem;
    margin-bottom: 1.5rem;
}

.under-title-info  {
    font-size: 1rem;
    color: #AAA;
    align-self: center;
}

.name-link, .outside-link,.outgoing-link, .ingoing-link {
    text-decoration: none;
    color: #999;
    background-color: rgba(0, 0, 0, 0);
    box-shadow: inset 0 -0.5em 0 -1px rgba(153, 153, 153, 0.47);
    cursor: pointer;
}

.ingoing-link {
    color: black;
    box-shadow: inset 0 -0.5em 0 -1px #F2CC8F;
}

.document {
    font-weight: bold;
    width: fit-content !important;
}


.name-link:hover, .ingoing-link:hover {
    color: #666;
    box-shadow: inset 0 -0.5em 0 -1px #F2CC8F;
}

.outside-link, .outgoing-link {
    color: #000;
    box-shadow: inset 0 -0.5em 0 -1px rgba(51, 102, 204, 0.63);
}
.outside-link:hover, .outgoing-link:hover {
    color: #3366CC;
    box-shadow: inset 0 -0.5em 0 -1px rgba(51, 102, 204, 0.5);
}

h5 {
    margin-bottom: 0 !important;
}

.text-wrapper {
    margin-top: 1rem;
}


.content-hider {
    display: flex; flex-direction: column;
    text-decoration: none;
    width: 100%;
    height: 2rem;
    overflow: hidden;

    margin-top: 1rem;
}

.content-hider.open {
    height: auto;
    overflow: visible;
}



.content-opener {
    width: 100%;
    align-self: center;

    text-decoration: none;
    color: #888;
    cursor: pointer;
    box-shadow: inset 0 -0.5em 0 -1px rgba(180, 180, 180, 0.5);
}

.content-opener:hover {
    text-decoration: none;
    color: #333;
    cursor: pointer;
    box-shadow: inset 0 -0.5em 0 -1px rgb(242, 204, 143, 0.5);
}

.content-hider.open .content-opener {
    color: #333;
    box-shadow: inset 0 -0.5em 0 -1px rgb(242, 204, 143, 0.5);
}
.no-sidebar {
    margin-bottom: 3rem;
}

.no-sidebary {
    padding-bottom: 0 !important;
}



/* thanks to https://codepen.io/designcouch/pen/ExvwPY for being much smarter than I am */
#mobile-menu-icon {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    cursor: pointer;
    width: 2rem;
    height: 1.2rem;
}

#mobile-menu-icon span {
    display: block;
    position: absolute;
    height: 0.2rem;
    width: 90%;
    background: #ffffff;
    border-radius: 0.2rem;
    opacity: 1;
    left: 0;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .25s ease-in-out;
    -moz-transition: .25s ease-in-out;
    -o-transition: .25s ease-in-out;
    transition: .25s ease-in-out;
}



#mobile-menu-icon span:nth-child(1) {
    top: 0;
}

#mobile-menu-icon span:nth-child(2),#mobile-menu-icon span:nth-child(3) {
    top: .5rem;
}

#mobile-menu-icon span:nth-child(4) {
    top: 1rem;
}

#mobile-menu-icon.open span:nth-child(1) {
    top: .5rem;
    width: 0%;
    left: 50%;
}

#mobile-menu-icon.open span:nth-child(2) {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
}

#mobile-menu-icon.open span:nth-child(3) {
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

#mobile-menu-icon.open span:nth-child(4) {
    top: .5rem;
    width: 0%;
    left: 50%;
}


@media only screen and (max-width: 900px) {
    .small-menu {
        display: flex !important;
    }
}
.navbar-brand {
    padding: .5rem;
}