/* Fix the header if the display is high enough */

@media only screen and (min-height: 400px) {

    header {
        position: fixed;
        z-index: 9999;
        width: 100%;
        top: 0px;
    }

    body {
        padding-top: calc(106px + 2em);
    }

    header.zoomed div a {
        height: 0px;
    }

    header.zoomed nav {
        margin-top: -32px;
    }

    header.zoomed #home {
        display: inline-block;
        width: 194px;
        height: 35px;
        margin: 5px 0;
        background-image: url("/static/img/header_inline.png");
        background-repeat: no-repeat;
        background-position: center bottom;
        transition: width 0.3s;
    }

    header.zoomed nav ul li a, header.zoomed nav ul li span {
        vertical-align: bottom;
    }

    :target {
        padding-top: 70px;
    }

}

header input,
#menu_button {
    display: none;
}

header div a {
    margin: 0px;
    padding: 0px;
    display: inline-block;
    color: transparent;
    background-image: url("/static/img/header.png");
    background-repeat: no-repeat;
    background-position: center;
    height: 100px;
    width: 444px;
    transition: height 0.3s;
}

#home {
    display: none;
}

header nav ul {
    list-style: none;
    margin: 0px;
    padding: 0px;
    text-align: center;
}

header nav li {
    display: inline;
}

header nav a {
    color: white;
    display: inline-block;
    padding: 0.5em;
}

header nav span {
    display: inline-block;
    padding: 0.5em;
    color: white;
    background-color: #309ac4;
    border-radius: 0.3em 0.3em 0em 0em;
}

main {
    max-width: 800px;
    margin: 0em auto;
    padding: 0em 1em 1em;
    text-align: justify;
}

img.right {
    display: block;
    float: right;
    margin-left: 1.5em;
    margin-top: 0;
    margin-bottom: 1em;
}

#latest_news dt {
    float: left;
    clear: left;
}

#latest_news dd {
    margin: 0.4em 6em;
}
