/* GENERAL CSS APPLIES TO MORE THAN ONE PAGE WITH THIS DESIGN */

:root {
    --text-color: #0D0D0D;
    --light-text-color: #705289;
    --second-color: #fff;
    --links-color: #4BA98E;
    --main-bg-color: #fff;
    --second-bg-color: #3FBF83;
    --links-hover: #cb5937;
    --hover-color: rgb(255, 240, 10);
    --light-background: #f1f1f1;
    --headers-font: 'Lato', sans-serif;
    --regular-font: 'Lato', sans-serif;
    --light-font-weight: 100;
    --bold-font-weight: 900;
    --body-font-size: 1.1rem;
    --text-line-height: 1.7rem;
}

html,
body {
    margin: 0;
    padding: 0;
    color: var(--text-color)
}

.selected {
    font-weight: var(--bold-font-weight);
}
.submenu {
    font-weight: normal;
}

.d-none {
    display: none;
}

figure {
    margin-block-start: 0;
    margin-inline-start: 0;
    margin-block-end: 0;
    margin-inline-end: 0;
}

figure img {
    max-width: 100%;
    height: auto;
}

figcaption {
    padding-top: 0;
    color: var(--light-text-color);
    font-weight: var(--light-font-weight);
    font-size: .75rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
  }

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

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

.footnote-link {
    cursor: pointer;
    font-weight: bold;
    color:#0074b9;
}

/* TYPOGRAPHY */

body {
    font-family: var(--regular-font);
    font-size: var(--body-font-size);
    line-height: var(--text-line-height);
}

h1,
h2,
h3,
h4 {
    font-family: var(--headers-font);
    font-weight: var(--bold-font-weight);
}

h1 {
    font-size: 8vw;
    margin-top: 0;
    line-height: 9vw;
    text-align: center;
    text-transform: uppercase;
}

h2 {
    line-height: 2rem;
    font-size: 1.5rem;
    margin-top: 3rem;
    text-align: center;
}

@media screen and (min-width: 520px) {
    body {
        font-size: 1.2rem;
        line-height: 1.9rem;
    }
}

@media screen and (min-width: 880px) {
    h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
}

@media screen and (min-width: 1200px) {
    h1 {
        
    }
    h2 {
        font-size: 1.9rem;
    }
}

@media screen and (min-width: 1365px) {
    h1 {
        
    }
}

/* MENU BAR */

.topmenu ul {
    margin: 0;
    padding: 0;
}

.topmenu {
    background: var(--second-bg-color);
    padding: 0 15px;
}

.topmenu a {
    color: var(--second-color);
    text-decoration: none;
}

.menu,
.submenu {
    list-style-type: none;
}

.submenu {
    position: absolute;
    background-color: var(--second-bg-color);
    left: 40%
}

.logo {
    font-size: 1.5rem;
    padding: 5px 10px 5px 0;
}

.item {
    padding: 10px;
}

.item a:hover,
.item a:hover::after {
    color: var(--hover-color);
}

/* Mobile */

.menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.menu li a {
    display: block;
    padding: 10px 5px;
}

.menu li.subitem a {
    padding: 15px;
}

.toggle {
    order: 1;
    font-size: 1.5rem;
}

.item {
    order: 3;
    width: 100%;
    text-align: center;
    display: none;
}

.active .item {
    display: block;
}

.has-submenu>a::after {
    font-family: "Font Awesome 5 Free";
    font-size: .8rem;
    line-height: .8rem;
    font-weight: 900;
    content: "\f078";
    color: white;
    padding-left: .7rem;
}

.subitem a {
    padding: 10px 15px;
}

/* Tablet */

@media all and (min-width: 700px) {
    .menu {
        justify-content: center;
    }

    .logo {
        flex: 1;
    }

    .toggle {
        flex: 1;
        text-align: right;
        order: 2;
    }

}

/* Desktop */

@media all and (min-width: 960px) {
    .menu {
        align-items: flex-start;
        flex-wrap: nowrap;
        background: none;
    }

    .logo {
        order: 0;
    }

    .item {
        order: 1;
        position: relative;
        display: block;
        width: auto;
    }

    .toggle {
        display: none;
    }
}

/* BLOCKS */

.maintext {
    margin-left: 2vw;
    margin-right: 2vw;
}

/* GENERIC BUTTONS */

.colored-button {
    background-color: var(--second-bg-color);
    color: var(--second-color);
    font-family: var(--headers-font);
    font-size: 1.3rem;
    padding: 10px 25px 10px 25px;
    cursor: pointer;
    font-weight: var(--bold-font-weight);
    border: none;
    border-radius: 10px;
}

.colored-button:hover {
    color: var(--second-color);
}

/* END PAGE BUTTONS */

.endpagenav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
}

.endpagenav button {
    background-color: #0074b9;
    padding: 8px 20px 8px 20px;
    border: none;
    border-radius: 1.5rem;
    cursor: pointer;
    color: var(--second-color);
    font-family: var(--headers-font);
    font-size: 1.2rem;
    margin: 10px;
    align-self: normal;
}

@media screen and (min-width: 800px) {
    .endpagenav button {
        font-size: 1.5rem;
        padding: 11px 25px 11px 25px;
    }
}

/* DOWNLOAD POPUP */

.popup-download {
    display: none;
}

.popup-no {
    background: none;
    border: none;
    color: var(--second-bg-color);
    margin-left: 0.2rem;
}

.popup-yes {
    background-color: var(--second-bg-color);
    color: var(--second-color);
    border: none;
    border-radius: 1.5rem;
    margin-right: 0.2rem;
}

.popup-yes:hover {
    color: var(--hover-color);
}

.popup-no:hover {
    color: var(--text-color);
}

@media screen and (min-width: 800px) {

    .popup-download {
        display: block;
    }

    .popup-download {
        background-color: #fff00a;
        max-width: 350px;
        padding: 20px;
        position: fixed;
        right: 30px;
        bottom: 100px;
        border: 1px solid rgba(0, 0, 0, .1);
        border-radius: 0.25rem;
        box-shadow: 0 0.25rem 0.75rem rgb(0 0 0 / 10%);
        font-family: var(--headers-font);
    }

    .popup-title {
        text-align: center;
        font-weight: 700;
        font-size: 24px;
        line-height: 28px;
    }

    .popup-buttons {
        margin-top: 1em;
        text-align: center;
    }

    .popup-buttons button {
        font-family: var(--headers-font);
        font-size: 1.3em;
        padding: 5px 15px 5px 15px;
        cursor: pointer;
        font-weight: 700;
    }

}


/* FOOTER */

footer {
    margin-top: 2rem;
    background-color: var(--second-bg-color);
    color: var(--second-color);
    padding-bottom: 20px;
}

footer a {
    color: var(--second-color);
    text-decoration: none;
}

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

footer ul {
    padding-left: 0;
}

footer li {
    list-style-type: none;
}

.footer-logo {
    text-align: center;
}

.footer-logo a {
    display: block;
    padding: 10px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: column;
    text-align: center;
}

.footer-links a {
    padding: 8px 15px;
    display: block;
}

@media screen and (min-width: 700px) {
    .footer-links {
        flex-direction: row;
    }

    .footer-links a {
        padding: 10px 20px;
    }
}


/* COOKIE BANNER */

.modal {
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-visible-overflow {
    position: fixed;
    z-index: 10;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;

}

.modal-inside {
    background-color: rgba(255, 255, 255, 1);
    width: 80%;
    text-align: left;
    padding: 1rem 1.5rem 1rem 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .7);
    margin: auto;
    border-radius: .25rem;
    border: 1px solid #000;
}

.modal-inside a {
    color: var(--links-color);
    font-weight: 700;
    text-decoration: underline;
}

.modal-inside label {
    font-weight: var(--bold-font-weight);
}

.modal-bt-row {
    display: flex;
    justify-content: center;
    padding: 0.5rem 0 1.5rem 0;
}

.modal-bt-row button {
    padding: .75rem;
    border: none;
    border-radius: 4rem;
    color: var(--second-color);
    padding: 10px 20px 10px 20px;
    font-family: var(--headers-font);
    font-size: 1.1rem;
    cursor: pointer;
}

.modal-bt-row .popup-no {
    color: var(--light-text-color);
    background-color: var(--light-background);
}

.modal-bt-row .popup-no:hover {
    color: var(--text-color);
}

@media (min-width: 480px) {
    .modal-inside {
        max-width: 450px;
    }
}


/* ACESSIBILITY */

@media (prefers-contrast: more) {

    :root {
        --second-bg-color: #542314;
        --links-color: #542314;
        --light-text-color: #000;
        
    }

    a {
        text-decoration: underline;
    }

    .modal-bt-row .popup-no {
        background: none;
        border: 1px solid var(--text-color);
    }

    .endpagenav button {
        background-color: #003f65;
    }

}

@media (forced-colors: active) {
    footer, footer a {
        color: var(--text-color);
    }
}

/* PRINT */

@media print {
    nav, footer, .endpagenav {
        display: none;
    }
    main .visual-header {
        background-image: none;
    }
}


/* FONT-FACE */

@font-face {
    font-family: "Font Awesome 5 Free";
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url(../fonts/icons.woff2) format("woff2");
}

.fa,
.fas {
    font-weight: 900;
    font-family: "Font Awesome 5 Free";
}

.fa-bars::before {
    content: "\f0c9";
}

.fa-times::before {
    content: "\f00d";
}