:root {
    --color-primary: #00395E;
    --color-primary-alt: #00395E;
    --color-sec: #C39737;
    --color-bg: #f9f9f9;
    --color-text: #23242b;
    --color-text-sec: #C39737;
    --color-text-trd: #00395E;
    --color-text-fth: #00395E;
    --color-footer: #e0e0e0;
    --warning-red: #ff5e5e;
    --info-red: #ff8686;
    --hh-blue: #00395E;
    --hh-gold: #C39737;

    --button-primary: #00395E;
    --button-secundary: #C39737;
    --button-disabled: #888;
    --button-disabled-outline: #555;

    --lettertype: 'Noto Sans', Poppins, Inter, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.darkmode {
    --color-primary: #23242b;
    --color-primary-alt: #C39737;
    --color-sec: #C39737;
    --color-bg: #00395E;
    --color-text: #fff;
    --color-text-sec: #C39737;
    --color-text-trd: #fff;
    --color-text-fth: #C39737;
    --button-primary: #C39737;
    --button-secundary: #f9f9f9;
    --color-footer: #244a63;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow: auto;
    font-family: var(--lettertype);
    background-color: var(--color-bg);
}

li {
    list-style-position: inside;
}

ul>li::marker {
    content: "✦ ";
    color: var(--color-sec);
    font-size: 1.2em;
}

ol {
    li {
        padding: 3px 0;
    }

    li::marker {
        color: var(--color-sec);
        font-weight: 600;
    }
}

ol.sublist,
ul.sublist {
    margin-left: 40px;
}



/*    ---- HEADER ----    */

.header-bar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 50px;
    background-color: var(--color-primary);
    color: white;
    fill: white;
}

.header-group {
    display: flex;
    flex-direction: row;
    align-items: center;
}

#logo-header {
    height: 35px;
    margin-left: 3rem;
}

.header-page {
    display: flex;
    align-items: center;
    height: 50px;
    margin-left: 1rem;
    font-size: 18px;
    text-decoration: none;
    padding-top: 3px;
    border-bottom: 6px solid var(--color-primary);
    transition: 150ms ease;
    color: #f9f9f9;
}

.header-page:hover {
    border-bottom: 6px solid var(--hh-gold);
    transition: 150ms ease;
    color: var(--hh-gold);
    fill: var(--hh-gold);
}

#header-right {
    margin-right: 2rem;
}

.accessibility-button {
    height: 30px;
    width: 30px;
    border-radius: 25%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 5px;
    fill: #fff;
    border: 2px solid black;
    background-color: var(--button-primary);
}

.accessibility-button:hover,
.accessibility-button:focus {
    fill: var(--color-bg);
    background-color: var(--button-secundary);
    cursor: pointer;
}



/*    ---- PAGES ----    */

.pageBody {
    max-width: min(1400px, 90vw);
    display: flex;
    flex-direction: column;
    justify-self: center;
}

.pageBody a,
footer a {
    color: var(--color-text-trd);
    text-decoration: none;
}

.pageBody a:hover,
.pageBody a:focus,
footer a:hover,
footer a:focus {
    color: var(--color-sec);
    text-decoration: underline;
    cursor: pointer;
}

#logo-home {
    justify-self: center;
}

#home img:last-child {
    display: none;
}

.darkmode #home img:first-child {
    display: none;
}

.darkmode #home img:last-child {
    display: inline;
}

#home h1 {
    color: var(--color-sec);
    text-align: center;
    font-size: xxx-large;
}

#home .subtitle {
    color: var(--color-text-trd);
    font-style: italic;
    text-align: center;
    font-size: larger;
}

#home .spacer {
    margin-top: 3rem;
}

.home .homeClmChapter,
.home .homeRowChapter {
    margin-top: 2rem;

    h2 {
        color: var(--color-sec);
        margin-bottom: 0.7rem;
    }

    p,
    ul {
        color: var(--color-text);
        margin-bottom: 0.5rem;
    }

    .listTitle {
        margin-bottom: 0;
    }
}

.home .homeRowChapter {
    display: flex;
    flex-direction: row;
    justify-content: space-between;

    .leftClm {
        padding-right: 3rem;
    }

    img {
        height: 200px;
    }
}

.row {
    display: flex;
    flex-direction: row;
}

.groupRow {
    display: flex;
    flex-direction: row;
}

.groupClm {
    display: flex;
    flex-direction: column;
}

.contact.pageBody {
    max-width: 90vw;
    width: 1700px;
}

.contact {
    padding: 2rem 3rem;
    color: var(--color-text);

    h1 {
        color: var(--color-sec);
    }

    h2 {
        color: var(--color-sec);
    }

    h3 {
        color: var(--color-sec);
    }

    h4 {
        color: var(--color-text-fth);
        font-size: 1.4rem;
    }

    h6 {
        color: var(--color-text-fth);
        font-size: 1.05rem
    }

    img {
        width: 270px;
    }

    .chapterBox {
        margin-bottom: 10px;
    }

    .rowPicturebox {
        margin-right: 1rem;
    }

    .chapterTitle {
        margin: 10px 0;
    }

    .parTitle {
        margin-top: 10px;
    }

    >.row {
        display: flex;
        justify-content: space-between;
    }

    .sideBar>.groupClm {
        margin-top: 30px;

        >.groupClm {
            margin-top: 10px;
        }

        >.groupClm:first-child {
            margin-top: 0;
        }
    }
}

.pageBody.docs {
    color: var(--color-text);

    h1 {
        margin-top: 30px;
        margin-bottom: 20px;
        color: var(--color-text-sec);
        text-align: center;
        font-size: xxx-large;
    }

    h2 {
        margin-top: 30px;
        margin-bottom: 8px;
        color: var(--color-text-fth);
    }

    h3 {
        color: var(--color-text-fth);
        font-size: x-large;
    }

    .highlight {
        color: var(--color-text-fth);
    }

    .paragraph {
        padding: 10px 0
    }

    ul>li::marker {
        font-size: unset;
    }
}


/*    ---- FOOTER ----    */

footer {
    margin-top: 3rem;
    background-color: var(--color-footer);
    padding: 2.6rem 2rem;
    color: var(--color-text)
}

footer .footerRow {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 2rem;
}

footer #footerFirstBlock {
    max-width: 420px;
}

footer .footerClm {
    display: flex;
    flex-direction: column;
    justify-self: center;
}

footer .footerGroupClm {
    display: flex;
    flex-direction: column;
}

footer .footerGroupRow {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

footer .footerGroupClm>* {
    padding: 8px 0;
}

footer .footerGroupRow>* {
    padding: 0 3rem;
}

footer #footerLogo>img {
    width: 200px;
}

#footerLogo img:last-child {
    display: none;
}

.darkmode #footerLogo img:first-child {
    display: none;
}

.darkmode #footerLogo img:last-child {
    display: inline;
}

footer #footerIbva {
    width: 150px;
}

footer #footerBpsw {
    width: 150px;
}

footer .footnote {
    margin-top: 1rem;
    text-align: center;
    max-width: min(1300px, 93vw);
}


/*    ---- MOBILE DEVICES ----    */

@media screen and (max-width: 800px) {
    body {
        display: flex;
        flex-direction: column;
    }

    /* HEADER */
    #logo-header {
        margin-left: 1rem;
    }

    #header-right {
        margin-right: 1rem;
    }

    /* PAGES */
    .pageBody {
        max-width: unset;
        width: 90vw;
        align-self: center;
        align-items: center;
    }

    .pageBody.home {
        .homeRowChapter {
            flex-direction: column;
        }

        #logo-home {
            display: flex;
            justify-content: center;
        }

        #home {
            img {
                margin: 1rem;
                height: 70px;
            }

            h1 {
                font-size: xx-large;
            }

            .subtitle {
                font-size: medium;
            }

            .spacer {
                margin-top: 2rem;
            }
        }
    }

    .pageBody.contact {
        h1 {
            color: var(--color-sec);
            font-size: xx-large;
            margin-bottom: 2rem;
        }

        p {
            font-size: large;
        }

        >.row {
            flex-direction: column;
        }

        .chapterBox>.groupRow {
            flex-direction: column-reverse;

            img {
                padding-top: 10px;
                max-height: unset;
            }
        }
    }

    /* FOOTER */
    footer {
        font-size: small;

        .footerRow,
        .footerGroupRow {
            flex-direction: column;
        }

        .footerMobileRow {
            flex-direction: row;
            margin-bottom: 1rem;
        }

        .footerGroupClm>* {
            padding: 4px 0px;
        }

        .footerMobileRow.footerGroupRow>* {
            padding: 0 8px;
        }

        #footerLogo {
            align-self: center;
        }

    }



    .hideOnMobile {
        display: none;
    }
}