body {
    margin: 0px;
    background-color: #1a212a;
    line-height: 1.4;
    overflow-x: hidden;
    color: white;
}

body, input, button, select {
    font-size: max(18px, 1.8vh);
    font-family: 'EB Garamond', Garamond, serif;
}

.ap {
    text-indent: 30px;
}

.bodydiv {
    padding: 5vh 5vw;
}

.titlesection {
    text-align: center;
    width: 100%;
    background-color: #085278;
    padding: 10vh 0px;
}

.header {
    height: 70px;
    background-color: #085278;
    position: fixed;
    display: flex;
    width: 100%;
    align-items: center;
    padding-left: 10px;
    transition: box-shadow 0.5s;
    z-index: 1;
}

.headerimage {
    width: 50px;
    height: 50px;
    transition: 0.3s;
    cursor: pointer;
    margin: 10px;
}

.headerbutton {
    text-decoration: none;
    margin: 15px;
    transition: 0.3s;
    font-size: max(21px, 2.1vh);
    box-shadow: #187e40 0px 0px 0px inset;
    font-family: 'EB Garamond', Garamond, serif;
}

    .headerbutton:hover {
        box-shadow: #187e40 0px -10px 0px inset;
    }

.selectedhb {
    box-shadow: #187e40 0px -10px 0px inset;
}

.headerimage:hover {
    transform: scale(1.1);
}

.headerimage:active {
    transform: scale(0.9);
}

p, li {
    line-height: 1.7;
}

h1 {
    font-size: 7vw;
    margin: 0px;
    font-weight: 300;
    font-family: 'EB Garamond', Garamond, serif;
}

h2 {
    font-size: max(20pt, 2.2vw);
    font-weight: 300;
    text-align: center;
    font-family: 'EB Garamond', Garamond, serif;
}

a {
    color: white;
    cursor: pointer;
}

.articlea {
    text-decoration: none;
    box-shadow: #187e40 0px -5px 0px inset;
    transition: 0.3s;
}

    .articlea:hover {
        box-shadow: #187e40 0px -10px 0px inset;
    }

.clickbox {
    padding: 1.5%;
    text-align: center;
    text-indent: 0px;
    width: 45%;
    margin: 1%;
    text-decoration: none;
    display: inline-block;
    background-size: 200%;
    background-color: #085278;
    background-image: linear-gradient(90deg, #187e40 50%, #085278 50%);
    transition: 0.5s;
    background-position: 100% 50%;
    border-radius: 1.5vh;
}

    .clickbox:hover {
        background-color: #187e40;
        background-image: linear-gradient(90deg, #187e40 50%, #085278 50%);
        background-position: 0% 50%;
    }

.articlebox {
    margin: 2%;
    width: 29.3333%;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
    transition: 0.5s;
}

    .articlebox:hover {
        transform: scale(1.1);
    }

    .articlebox:active {
        transform: scale(0.95);
    }

    .articlebox p {
        line-height: 1.2;
        margin: 5px;
    }

.articleimg {
    width: 100%;
}

input[type=text], input[type=number], select {
    background-color: white;
    border: none;
    border-radius: 1vh;
    padding: 1.5vh;
    transition: 0.3s;
    overflow: hidden;
}

input:focus[type=text], input:focus[type=number] {
    box-shadow: #187e40 0px -0.5vh 0px inset;
    outline: none;
}

.footer {
    background-color: #000000;
    padding: 2vh 3vh;
}

.logoimage {
    width: 70vw;
    height: 35vw
}

.threepart {
    width: 29.33%;
    padding: 0% 2%;
}

.button {
    background-color: #085278;
    padding: 1.5vh 4vh;
    margin: 0px 1vh 0px 1vh;
    border-radius: 1vh;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: 0.5s;
    border: 0px;
    color: white;
    cursor: pointer;
    background-size: 200%;
    background-image: linear-gradient(90deg, #187e40 50%, #085278 50%);
    transition: 0.5s;
    background-position: 100% 50%;
}

    .button:hover {
        background-color: #187e40;
        background-image: linear-gradient(90deg, #187e40 50%, #085278 50%);
        background-position: 0% 50%;
        transform: scale(1.1);
    }

    .button:active {
        transform: scale(0.9);
        transition: 0.3s;
    }

.selectedbutton {
    background-color: #187e40;
}

    .selectedbutton:hover {
        background-image: none;
        animation: none;
    }

@media (min-width: 125vh) {
    .logoimage {
        width: 55vw;
        height: 27.5vw;
    }
}

@media (min-width: 155vh) {
    .logoimage {
        width: 45vw;
        height: 22.5vw;
    }
}

.underflowarticle {
    display: none;
}

@media (max-width: 850px) {
    h1 {
        font-size: max(34pt, 12vw);
        margin: 0px;
    }

    .clickbox {
        width: 98vw;
    }

    .articlebox {
        width: 46%;
    }

        .articlebox:hover {
            transform: scale(1.05);
        }

        .articlebox:active {
            transform: scale(0.95);
        }

    .overflowarticle {
        display: none;
    }

    .underflowarticle {
        display: block;
    }

    .largeimg {
        width: 80%;
    }
}

@media (max-width: 600px) {
    .threepart {
        width: 96%;
    }
}

@media (max-width: 450px) {
    .articlebox {
        margin: 2vh 0px;
        width: 100%;
    }

        .articlebox:hover, articlebox:active {
            transform: scale(1);
        }

    .overflowarticle {
        display: block;
    }
}
