:root {
    --main-color: #307e30;
    --secondary-color: #2e513b;
    --text-color: #212121;
}

body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    color: var(--text-color);
}

img, iframe {
    display: inline-block;
}

h1, h2, h3 {
    font-weight: 500;
}

a {
    color: var(--text-color);
    text-decoration: underline;
}

a:hover {
    color: var(--main-color);
}

nav {
    background-color: #f8f9fa;
    padding: 0 15px;
}

nav .brand-logo img {
    height: 48px;
    display: block;
}

nav ul {
    line-height: normal;
    max-width: calc(100% - 218px);
    position: absolute;
    right: 0;
    display: flex;
}

nav ul a {
    color: var(--text-color);
    text-decoration: none !important;
    font-size: inherit;
    padding: 8px 15px;
}

nav ul a.active {
    color: var(--main-color);
    font-weight: bold;
    border-bottom: 2px solid var(--main-color);
}

nav ul a:hover {
    background-color: unset;
}

nav ul i {
    height: auto !important;
    line-height: normal !important;
    font-size: 20px !important;
}

#nav-mobile {
    color: var(--text-color);
    text-decoration: none;
    position: absolute;
    right: 0;
}

#dropdown-menu a.active {
    color: var(--main-color);
    font-weight: bold;
}

main {
    flex: 1 0 auto;
}

footer {
    background-color: var(--secondary-color);
    color: white;
    height: 50px;
    line-height: 50px;
}

footer > div {
    height: 100%;
}

.footer-copyright {
    padding: 0 12px;
    width: 100%;
    position: relative;
}

.footer-copyright a {
    color: white;
}

.footer-copyright .version {
    color: white;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-left: 15px;
}

footer .wcag2aa {
    display: inline-block;
    vertical-align: middle;
}

footer .wcag2aa img {
    display: block;
}

.dropdown-content li > a, .dropdown-content li > span {
    color: var(--text-color);
    text-decoration: none;
}

body.sm, .font-size.sm {
    font-size: 14px;
}

body.md, .font-size.md {
    font-size: 16px;
}

body.lg, .font-size.lg {
    font-size: 18px;
}

.font-size.active {
    font-weight: bold;
    color: var(--main-color);
}

.modal {
    border-radius: 12px;
}

.modal .modal-header {
    padding: 12px;
}

.modal .modal-header a {
    color: rgb(134,134,134);
    display: inline-block;
    height: 24px;
}

.modal .modal-content {
    padding: 0 24px;
}

#modal-news .card-title {
    font-size: 20px;
    font-weight: 500;
    line-height: 24px;
    margin-bottom: 8px;
}

#modal-news .card-title img {
    width: 48px;
    margin-right: 0.75rem;
    float: left;
}

#modal-news .news-date {
    color: rgb(134,134,134);
    margin-left: calc(48px + 0.75rem);
    display: block;
    font-size: 1rem;
}

#notice-bar {
    padding: 1rem;
    background-color: #ffffb9;
    display: flex;
    align-items: center;
    position: sticky;
    top: 64px; /* Height of navbar */
    z-index: 997; /* Below navbar (998) but above content */
}

#notice-bar i {
    margin-right: 1rem;
    color: var(--main-color);
    flex: 0 0 auto;
}

#notice-bar span {
    flex: 1 1 auto;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#notice-bar .modal-trigger {
    color: var(--main-color);
    font-weight: bold;
    flex: 0 0 auto;
}

#modal-notice, #modal-maintain {
    width: 40%;
}

#modal-notice h6, #modal-maintain h6 {
    font-weight: 500;
    color: var(--main-color);
    clear: both;
}

#modal-notice .modal-content, #modal-maintain .modal-content{
    padding: 0 24px 36px 24px;
}

#modal-notice .modal-footer, #modal-maintain .modal-footer{
    text-align: center;
}

#modal-notice .btn, #modal-maintain .btn{
    text-transform: none;
    border-radius: 18px;
    background-color: var(--main-color);
    color: white;
    text-decoration: none;
    padding: 0 36px;
    font-weight: bold;
}

@media only screen and (max-width: 1080px) {
    nav ul a {
        padding: 0 8px;
    }
}

@media only screen and (max-width: 992px) {
    nav .brand-logo {
        left: 0;
        transform: none;
    }

    footer {
        height: 64px;
        line-height: normal;
    }

    #dropdown-menu {
        width: 100% !important;
    }

    #dropdown-menu a, #dropdown-menu span {
        background-color: #f8f9fa;
    }

    #dropdown-menu span > a {
        padding: 0 8px;
        color: var(--text-color);
        text-decoration: none;
    }

    #dropdown-menu span > a.active {
        color: var(--main-color);
        font-weight: bold;
    }
}

@media only screen and (max-width: 600px) {
    nav .brand-logo img {
        height: 40px;
    }

    footer .wcag2aa img {
        width: 66px;
        height: 24px;
    }

    .modal {
        width: 90%;
    }

    .modal .modal-content {
        padding: 0 12px;
    }

    #modal-notice {
        width: 90%;
    }
}