body {
    font-family: 'Libre Franklin', sans-serif;
    /* font-family: -apple-system; font-weight: 200 */
    font-size: 13pt;
    color: #323e48;
    margin: 0;
    background-color: rgb(166, 202, 210);
}

header {
    padding: 20px 0 40px 0;
}

header a, header a:visited {
    text-decoration: none;
    color: #323e48;
}

footer {
    margin-bottom: 20px;
}

h1, h2 {
    font-family: 'Quicksand', sans-serif;
    font-weight: 300;
}

h1 {
    font-size: 3em;
    margin: 0.5em 0 0 0;
}

h2 {
    font-size: 1.2em;
    margin: 1em 0;
    font-weight: bold;
}

header h1, header h2, footer {
    text-align: center;
    color: #354771;
}

header h2 {
    margin: 0.3em 0;
}

a, a:visited {
    color: #2b89d8;
}

.section-text {
    width: 710px;
    margin: 0 auto;
    margin-bottom: 50px;
    background-color: #e1dede;
}

.section-text .inner-text {
    margin: 0 auto;
    /* max-width: 700px; */
    line-height: 1.5em;
    padding: 20px;
}

.section-text .inner-text p:first-of-type {
    margin-top: 0;
}

.section-text h2 {
    margin: 0;
    background-color: #354771;
    line-height: 1.5em;
    padding: 15px;
    color: white;
}

.reference {
    margin-top: 20px;
    margin-bottom: 20px;
    white-space: nowrap;
}

.reference-logo-container {
    width: 100px;
    height: 100px;
    background-color: white;
    border-radius: 50%;
    text-align: center;
    overflow: hidden;
    margin-bottom: 10px;
    margin-left: 4px;
    margin-right: 4px;
    display: inline-block;
    vertical-align: top;
    box-shadow: 0 0 20px 5px rgba(0, 0, 0, .1);
    -o-box-shadow: 0 0 20px 5px rgba(0, 0, 0, .1);
    -ms-box-shadow: 0 0 20px 5px rgba(0, 0, 0, .1);
    -moz-box-shadow: 0 0 20px 5px rgba(0, 0, 0, .1);
    -webkit-box-shadow: 0 0 20px 5px rgba(0, 0, 0, .1);
}

.reference-logo {
    height: 70px;
    width: 70px;
    top: 50%;
    position: relative;
    transform: translateY(-50%);
}

.references-container .reference-logo-container {
    cursor: pointer;
}

.reference-text {
    display: inline-block;
    vertical-align: middle;
    margin-left: 20px;
    width: 530px;
    white-space: normal;
}

.references-arrows {
    height: 29px;
    overflow: hidden;
    display: none;
}

.references-arrows .arrow {
    background-color: white;
    width: 96px;
    height: 96px;
    transform: rotate(315deg);
    margin-top: 25px;
    margin-left: 11px;
    display: inline-block;
    visibility: hidden;
}

.references-showcase {
    background-color: white;
    padding: 20px;
    display: none;
}

.reference-title {
    font-weight: bold;
    margin: 0;
}

.missions {
    font-weight: bold;
}

.keywords {
    font-style: italic;
}

.player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.player {
    position: relative;
    height: 377px;
    max-width: 670px;
    margin-top: 10px;
}

.photo {
    margin-bottom: 10px;
    margin-top: 10px;
    width: calc(50% - 5px);
    /* substract a half right margin */
    vertical-align: middle;
}

.photo:not(:last-of-type) {
    margin-right: 10px;
}

.photo-full {
    margin-bottom: 10px;
    margin-top: 10px;
    width: 100%;
    margin-right: 0;
}

@media screen and (max-width: 500px) {
    .section-text, .player {
        width: 95%;
    }

    .player {
        height: 300px;
    }

    img {
        max-width: 95%;
    }

    h1 {
        font-size: 5em;
        margin: 0;
    }

    #references .reference-logo-container {
        display: block;
    }

    .reference-text {
        width: 95%;
    }

    .references-arrows {
        display: none !important;
    }

    .photo {
        width: 100%;
    }

    #summary .inner-text {
        padding: 10px;
    }
}
