body {
    background-color: #ECEEEE;
    color: #333;
    font-weight: initial;
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,
                 "Helvetica Neue",Arial,sans-serif;

    font-size: 1rem;
    padding-bottom: 1em;

    overflow-wrap: break-word;
}

body, .card {
    background-color: white;
}

.container-fluid {
    max-width:1170px;
}

h1 {
    margin-top: 0;
    margin-bottom: 0.3em;
    font-size: 200%;
}
h2 {
    font-size: 140%;
}
h3 {
    font-size: 130%;
}
h4 {
    font-size: 120%;
}
h5 {
    font-size: 110%;
}
h6 {
    font-size: 100%;
}

.subtitle {
    margin-top: 0;
    font-size: 140%;
    font-weight: bold;
}

.byline {
    font-weight: bold;
}

img {
    max-width: calc(100vw - 2em);
    height: auto;
}

/* Used on lightchart portfolio page. */
video {
    max-width: 100%;

    display: block;
    margin-left: auto;
    margin-right: auto;
}

#tags {
    margin-top: 1em;
}

.inline-tag-list {
    display: inline;
    list-style-type: none;
    padding: 0;
    margin-left: 0;
}

.inline-tag-list li {
    display: inline;
}

.inline-tag-list li:after {
    content: ", ";
}

.inline-tag-list li:last-child:after {
    content: "";
}

.prev-next {
    margin-top: 1em;
    font-weight: bold;
}

.prev-next .next {
    float: right;
}

.clear {
    clear: both;
}

.twitter-ask {
    margin-top: 0;
}

.card-footer {
    position: absolute;
    bottom: 0;
}

blockquote {
    color: white;
    background: #f9f9f9;
    background-color: rgba(0, 0, 0, 0.5);

    border-left: 10px solid #ccc;
    margin: 1.5em 10px;
    padding: 0.5em 10px;
    quotes: "\201C""\201D""\2018""\2019";
}

blockquote:before {
    color: #ccc;
    content: open-quote;
    font-size: 4em;
    line-height: 0.1em;
    margin-right: 0.25em;
    vertical-align: -0.4em;
}
blockquote p:first-child:after {
    color: #ccc;
    content: close-quote;
    font-size: 4em;
    line-height: 0.1em;
    margin-left: 0.25em;
    vertical-align: -0.7em;
}

blockquote p {
    margin-left: 1em;
}

.quote {
    background-color: rgba(0, 0, 0, 0);
    border: none;
/*    border-radius: 150px; // todo: round corners of box? */
    font-size: 2em;
}

.media {
    font-weight: bold;
    color: #777;
}

.media::before {
    content: "< ";
}
.media::after {
    content: " >";
}

#header {
        width: 100vw;
        height: 66vh;
}

nav {
    display: block;
}

.navbar {
    display: block;

    z-index: 1000;
    text-align: center;
    padding: 0;
    margin-top: 0.4em;
}

.navbar ul {
    margin: 0;
}

.river-head {
    font-size: 1.5em;
    text-transform: uppercase;
}

.river-head a,
.river-head a:hover,
.river-head a:active,
.river-head a:visited {
    color: #333;
    font-weight: 700;
}

.on-image {
    z-index: 10000;
    text-shadow: 2px 2px 5px black;
    color: white;
}

.on-image a, .on-image a:visited, on-image a:active {
    color: white;
}

a {
    text-decoration: none;
}

.navbar a.current-page {
    text-decoration: underline;
}

.navbar ul {
    list-style: none;
    text-align: center;
    padding: 0;
}

.navbar ul li {
    display: inline;
    text-transform: uppercase;

    margin-left: 1em;
}

.navbar ul li:first-child {
    margin-left: 0;
}

@media (max-width: 300px) {
    .topnav ul li {
        margin-left: 0.5em;
    }
}

.page-footer ul {
    list-style: none;
}

.page-footer ul li {
    display: inline;
    margin-left: 1em;
}

.page-footer ul li:first-of-type {
    margin-left: 0em;
}

@media (max-width: 630px) {
    .page-footer ul li {
        margin-left: 0;
        display: block;
    }
}

.page-footer p, .page-footer div, .page-footer * {
    display: inline;
    margin: 0;
}

.screenshot {
    max-width: 100%;
}

/* If 210px or thiner, don't need space between items because they are on
own line */
@media (max-width: 210px) {
    .topnav ul li {
        margin-left: 0;
        display: block;
    }
}

.top-space {
    margin-top: 2em;
}

.jumbotron {
    background-color: #EEEEEE;
}

.highlight {
    background-color: #BADA55;

}

.title {
    font-size: 5vmin;
    color: white;

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.title hr {
    width: 10vw;
}

.title h1 {
    font-size: 3em;
}

.title h2 {
    font-size: 1em;
}

.cover-image {
    width: 100%;
    position: center;
}

.cover-container {
    position: absolute;
    height: 100vh;
    width: 100%;
    top: 0;
    overflow: hidden;

    background-position: center !important;
    background-size:cover !important;

    background:
    linear-gradient(
            rgba(0, 0, 0, 0.7),
            rgba(0, 0, 0, 0.7)
        ),
    url("/img/boat/elbe_640.jpg");
}

@media (min-width: 641px) {
    .cover-container {
        background:
        linear-gradient(
                rgba(0, 0, 0, 0.7),
                rgba(0, 0, 0, 0.7)
            ),
        url("/img/boat/elbe_1200.jpg");
    }
}
@media (min-width: 1201px) {
    .cover-container {
        background:
        linear-gradient(
                rgba(0, 0, 0, 0.7),
                rgba(0, 0, 0, 0.7)
            ),
        url("/img/boat/elbe_1600.jpg");
    }
}

.cover-container-bottom {
    min-height: 95vh;
    width: 100%;
    z-index: -10;
    padding-top: 2em;
    position: relative;

    overflow: hidden;

    background-position: center !important;
    background-size:cover !important;

    background:
    linear-gradient(
            rgba(0, 0, 0, 0.6),
            rgba(0, 0, 0, 0.6)
        ),
    url("/img/portfolio/cloud-computing.jpg");

    color: white;
}


.top-margin {
    margin-top: 100vh;
}

.card-block {
    padding: 1.25rem;
}

.card-title {
    font-size: 150%;
}

.card-img-top {
    /* TODO: Centre */
}

.card-img-smaller {
    width: 90%;
}

a {
    color: black;
}

.text-column {
    padding: 0.5em;
    max-width: 42em;
    float: none;
    margin: 0 auto;
}

img.inline {
    width: 100%;
    margin-bottom: 1em;
}

.width-100pc {
    width: 100%;
}
.width-90pc {
    width: 90%;
}
.width-80pc {
    width: 80%;
}
.width-50pc {
    width: 50%;
}

#map {
    position: absolute;
    top: 0;
    left: 0;

    width: 100vw;
    height: 66vh;

    mask-image: linear-gradient(rgba(0, 0, 0, 1.0), rgba(0, 0, 0, 1.0) 98%, transparent);
}

img {
    border: none;
    max-width: 100%;
}

.plain-list {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

#related {
    margin-top: 1em;
}

.article-title-list, .article-title-list * {
    border: none;
}

.article-title-list tr td:first-child {
    padding-right: 0.5em;
}

.article-title-list tr td:nth-child(2) {
    padding-right: 0.5em;
}

.login {
    margin-top: 1em;
}

/* To stop iframes, images, etc in sidebar being too big */
.col-sm-5 * {
    max-width: 100%;
}

.max-width-100 {
    max-width: 100%;
}

.max-height-100 {
    max-height: 100%;
}

.hidden {
    display: none;
}

iframe {
    max-width: 100%;
}
