* {
    box-sizing: border-box;
}

:root {
    --primary-color: #0069B4;
    --primary-color-lighter: #66A3FF;

    --background-gradient-from: white;
    --background-gradient-to: #e7e7e7;

    --header-background-color: white;
    --header-image-width: 240px;
    --header-image-height: 80px;
    --header-image-spacing: 16px;
    --header-text-size: 28pt;
    --header-text-size-mobile: 21pt;

    --header-border-width: 4px;
    --header-padding: 1rem;
    --header-margin: 12px;

    --header-menu-border-color: #999;

    --footer-text-color: #eef;
    --footer-link-color: #ccf;
    --footer-link-color-hover: #ddf;
    --footer-link-spacer-color: #cce;
    --footer-link-spacing: 8px;
}

body {
    background: var(--background-gradient-to) linear-gradient(180deg, var(--background-gradient-from) 0%, var(--background-gradient-to) 100%);
    background-attachment: fixed;
}

header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

    background-color: var(--header-background-color);
    padding: var(--header-padding) 0;

    border-bottom: var(--header-border-width) solid var(--primary-color);
    margin-bottom: var(--header-margin);
}

header img {
    flex-shrink: 0;
    width: var(--header-image-width);
    height: var(--header-image-height);
}

header h1 {
    margin: 0;
    margin-left: var(--header-image-spacing);
    font-size: var(--header-text-size);
}

.maintenance {
    background: #fdd;
    border: 1px solid #600;
    color: #600;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    max-width: 600px;
    margin: auto;
}

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
}

#footer-ocean {
    position: absolute;
    left: calc(50% - 550px);
    bottom: calc(2*12px + 1rem - 3px);
    width: 280px;
    height: 100px;
    z-index: -10;

    overflow: hidden;
    background-image: url('footer-ocean.svg');
    background-position: -150px;
    background-repeat: no-repeat;
}

#footer-content {
    width: 100%;
    background-color: var(--primary-color);
    padding: 12px;
    color: var(--footer-text-color);
    font-weight: 500;
    text-align: center;
    margin-top: 8px;
}

#footer-content > a, #footer-content > a:active, #footer-content > a:visited  {
    color: var(--footer-link-color);
    margin-left: var(--footer-link-spacing);
    padding-left: var(--footer-link-spacing);
    border-left: 1px solid #cce;
    text-decoration: none;
}

#footer-content > a, #footer-content > a:hover  {
    color: var(--footer-link-color-hover);
}

section {
    max-width: 585px;
    margin: 0 auto;
}

h1, h2 {
    color: #666
}

h1 {
    font-size: 1.5em;
    margin-bottom: 16px;
    margin-top: 0;
}

h2 {
    font-size: 1.1em;
    margin-bottom: 8px;
}

#mobile-menu {
    display: none;
}

@media only screen and (max-width: 665px) {
    header {
        padding: calc(var(--header-padding) * 0.75);
        display: flex;
        justify-content: space-between;
        position: relative;
    }

    header img {
        display: none;
    }

    header h1 {
        font-size: var(--header-text-size-mobile);
        margin: 0;
    }

    #mobile-menu.has-elements {
        display: block;
        position: relative;
    }

    #mobile-menu-open, #mobile-menu-close {
        padding: 4px;
        display: flex;
        align-items: center;
        border: none;
        background: none;
        cursor: pointer;

        color: var(--primary-color);
    }

    #mobile-menu-open:hover, #mobile-menu-close:hover {
        color: var(--primary-color-lighter);
    }

    #mobile-menu-panel {
        display: none;

        position: absolute;
        right: -3px;
        top: -3px;

        flex-direction: column;
        align-items: flex-end;

        background: var(--header-background-color);
        border: 1px solid #eee;
        border-radius: 4px;
        padding: 2px;
        padding-bottom: 6px;

        z-index: 2002;
        box-shadow: 5px 5px 4px 0px rgba(227,227,227,1);
    }

    #mobile-menu.open #mobile-menu-panel {
        display: flex;
    }
    
    #mobile-menu-elements {
        display: none;

        display: flex;
        flex-direction: column;
        align-items: flex-stretch;
        padding: 0px 6px;

        font-size: 12pt;
    }

    footer {
        display: none;
    }
}
