:root {
    --main-background-color: #003459;
    --main-font-color: white;
}

body {
    margin: 0;
    font-family: 'Arial','Calibri','Georgia','Modern',sans-serif;
    background-color: white;
    font-size: 16px;
}



.wrapper {
    display: flex;
    flex-flow: row wrap;
    font-weight: bold;
    text-align: center;
}

.wrapper > * {
    flex: 1 100%;
}

#logo {
    margin-left: 8px;
    margin-right: 8px;
    padding: 2px;
    border-radius: 25px;
    max-width: 85px;
    max-height: 95px;
}


header {
    color: var(--main-font-color);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background-color: var(--main-background-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 10;
}

ul.push {
    list-style-type: none;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
}

.wrapper li a {
    color: var(--main-font-color);
    text-decoration: none;
    padding: 12px;

}

.wrapper a {
    flex: 1;
    background-color: var(--main-background-color);
    color: var(--main-font-color);
    margin-right: 5px;
    text-align: center;
    text-decoration: none;
    transition: all 0.7s ease-out;
}

.wrapper a:hover,
.wrapper a:focus {
    background-color: #fff;
    color: #333;
}


#current {
    color: darkseagreen;
}

/* image floats  */

img.img-float-right {
    float: right;
}

img.img-float-left {
    float: left;
}


.main {
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    padding: 15px;
}

aside {
    margin-top: 100px;
    padding: 5px;
}

.future {
    column-count: 2;
    column-gap: 75px;
    column-rule: 2px dotted rgb(79, 185, 227);
}

.col-span {
    color: var(--main-font-color);
    text-align: center;
    column-span: all;
    padding: .5em;
    background-color: var(--main-background-color);
}


.section {
    break-inside: avoid;
    page-break-inside: avoid;
    margin: 0 0 1em 0;
}

.container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-content: space-between;
}

.grid-item {
    padding: 10px;
}

/*myForm form*/

#myForm input[type="text"],
#myForm input[type="email"],
#myForm input[type="tel"],
#myForm textarea {
    width: 100%;
    border: 1px solid #ccc;
    background: #FFF;
    margin: 0 0 5px;
    padding: 10px;
}

#myForm {
    background: #F9F9F9;
    padding: 25px;
    margin: 50px 0;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2), 0 5px 5px 0 rgba(0, 0, 0, 0.24);
}

#myForm h3 {
    display: block;
    font-size: 30px;
    font-weight: 300;
    margin-bottom: 10px;
}

#myForm h4 {
    margin: 5px 0 15px;
    display: block;
    font-size: 13px;
    font-weight: 400;
}

fieldset {
    border: medium none;
    margin: 0 0 0.3em;
    min-width: 100%;
    padding: 0;
}


#myForm button[type="submit"] {
    cursor: pointer;
    width: 100%;
    border: none;
    background-color: var(--main-background-color);
    color: var(--main-font-color);
    margin: 0 0 5px;
    padding: 10px;
    font-size: 15px;
}

#myForm button[type="submit"]:active {
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.future h2 {
    margin-top: 75px;
}

.contact {
    margin: auto;
    max-width: 800px;
}
.contact h2 {
    margin-top: 175px;
    text-align: center;
}


@media (min-width: 801px) {

    .main  {
        flex: 3 0;
    }

    .main  {
        order: 1;
    }
    .footer {
        order: 2;
    }
}

@media (max-width: 800px) {
    #logo {
        display: none;
    }

    header {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }

    body {
        font-size: 12px;
    }

    .main {
        margin-top: 100px;
    }

    .future {
        column-count: 1;
    }


}


/* footer */
#footer {
    background-color: var(--main-background-color);
    color: var(--main-font-color);
    font-size: 14px;
    line-height: 1.8;
    position: fixed;
    width: 100%;
    bottom: 0;
}

.policies {
    border-style: solid;
    border-width: 1px;
    border-image-slice: 1;
    padding: 40px 14px;
    display: flex;
}

.policies ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.policies li {
    padding: 0 0 5px 0;
}

.policies a {
    color: var(--main-font-color);
    text-decoration: none;
}

.policies a:hover {
    color: #34627c;
    transition: 0.7s;

}

.policies > div {
    width: 50%;
}

.credits {
    padding-right: 20px;
}

.copyright {
    opacity: .8;
}


#footer .addresses {
    padding: 40px 14px;
    color: var(--main-font-color);}

#footer .address {
    margin-bottom: 20px;
}

#footer .address strong {
    display: block;
    font-size: 18px;
    padding-bottom: 10px;
}

#footer .address a {
    color: inherit;
    text-decoration: underline;
}

#footer .address a:hover {
    color: var(--main-font-color);
    transition: 0.7s;
}

@media (min-width: 800px) {
    #footer {
        display: flex;
        border-style: solid;
        border-width: 1px 0 0 0;
        border-image-slice: 1;
        justify-content: center;
    }

    .policies {
        display: block;
        border: none;
        flex-basis: 400px;
        padding: 60px 20px;
    }

    .policies > div {
        width: auto;
    }


    #footer .copyright {
        display: inline;
    }

    #footer .credits {
        margin-bottom: 20px;
    }

    #footer .addresses {
        flex-basis: 900px;
        display: flex;
        padding: 60px 20px;
    }

    #footer .address {
        padding-right: 20px;
        flex-basis: 300px;
    }
}


/* page top content */
.page-title {
    margin: 0 auto;
    max-width: 800px;
    text-align: center;
    padding: 50px 0;
}

@media (min-width: 800px) {
    .page-title {
        padding: 140px 0;
    }
}

.subtitle {
    font-family: Avantgarde, TeX Gyre Adventor, URW Gothic L, sans-serif;
    background-color: var(--main-background-color);
    font-size: 1.5em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.page-intro {
    font-size: 18px;
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
}

@media (min-width: 800px) {
    .page-intro {
        font-size: 20px;
        line-height: 34px;
    }

    .page-top {
        padding: 20px 20px 100px;
    }
}


.page-top h1 {
    position: relative;
    margin-bottom: 0.5em;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    line-height: 38px;
}

@media (min-width: 800px) {
    .page-top h1 {
        max-width: none;
        line-height: 20px;
    }
}


/* features */

.features-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}


.feature {
    background: white;
    box-shadow: 0 12px 24px 0 rgba(0, 0, 0, 0.05);
    margin: 10px;
    padding: 50px 10px 40px 10px;
    font-size: 16px;
    text-align: center;
}

.feature .icon {
    left: calc(50% - 30px);
}

.feature strong {
    display: block;
}

@media (min-width: 800px) {
    .feature {
        width: 320px;
    }

    .feature .icon {
        width: 72px;
        height: 72px;
        left: calc(50% - 36px);
    }
}


@media (max-width: 800px) {
    .feature {
        width: 320px;
    }

    .feature .icon {
        width: 72px;
        height: 72px;
        left: calc(50% - 36px);
    }

    .policies {
        display: none;
    }

    .london {
        display:none;
    }

    .sao-paulo {
        display:none;
    }

    .tokyo {
        text-align: center;
    }

}


.page-bottom {
    padding-top: 15px;
    margin-bottom: 300px;
}


/* team members */

.team-members {
    max-width: 1000px;
    margin: 0 auto;
    cursor: pointer;
}

.team-members .team-members-container {
    display: flex;
    flex-wrap: wrap;
}

.team-members .team-member {
    width: 286px;
    padding-top: 286px;
    background: white;
    box-shadow: 0 12px 24px 0 rgba(0, 0, 0, 0.11);
    position: relative;
    margin: 10px;
}


.portrait {
    width: 286px;
    height: 286px;
    top: 0;
    position: absolute;
    object-fit: cover;
    z-index: 0;
}

.bio {
    opacity: 0;
    transform: scale(.9);
    position: absolute;
    width: 286px;
    height: 286px;
    top: 0;
    left: 0;
    padding: 20px;
    background: black;
    color: var(--main-font-color);
    overflow: hidden;
    transition: 1.25s;
    z-index: 0;
    font-size: 16px;
}

.team-members .team-member:hover .bio,
.team-members .team-member.show-details .bio {
    opacity: 90%;
    transform: scale(0.9);
}

.caption {
    padding: 15px 10px;
    text-align: center;
    background: white;
}

.caption .name {
    font-size: 16px;
    font-weight: bold;
    padding-bottom: 5px;
}

.caption .position {
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #828282;
}


@media (min-width: 800px) {
    .team-members .team-members-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .team-members .team-member {
        width: 285px;
        padding-top: 285px;
    }

    .team-members .team-member:before {
        height: 285px;
    }

    .team-members .team-member:after {
        top: 97px;
    }

    .portrait,
    .biography {
        width: 285px;
        height: 285px;
    }
}


@media (max-width: 800px) {
    .team-members .team-members-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .team-members .team-member {
        width: 285px;
        padding-top: 285px;
    }

    .team-members .team-member:before {
        height: 285px;
    }

    .team-members .team-member:after {
        top: 97px;
    }

    .portrait,
    .biography {
        width: 285px;
        height: 285px;
    }
}



.team-members .team-member {
    width: 286px;
    padding-top: 286px;
    background: white;
    box-shadow: 0 12px 24px 0 rgba(0, 0, 0, 0.11);
    position: relative;
    margin: 10px;
}



/* Info Page Videos */


.video-container {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;

}


.video {
    width: 450px;
    padding-top: 15px;
    background: white;
    position: relative;
    margin: 25px;
}



.video-caption .video-name {
    font-size: 16px;
    font-weight: bold;
    padding: 15px 10px 5px 5px;
    text-align: center;
    background: white;
}


@media (min-width: 800px) {
    .video-container {
        display: flex;
    }

    .video {
        width: 500px;
        padding-top: 15px;
    }


}


.info-videos {
    text-align: center;
    max-width: 1100px;
    padding: 14px 14px 0;
    margin: 0 auto;
}



@media (max-width: 810px) {
    .video-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .video {
        width: 500px;
        padding-top: 15px;
    }

    .video:before {
        /*height: 285px;*/
    }

    .video:after {
        top: 97px;
    }
}
