body {
    font-family: Helvetica Neue, Helvetica, Arial, Sans-serif;
    background-color: #DDD;
}

header, #headerframe {
    background-color: white;
    width: 70%;
    height: 330px;
    margin: 5px auto;
    border: none;
    text-align: center;
    background-image: url(paddington_station_2.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: block;
}

h1 {
    font-weight: bold;
    font-size: 4em;
    text-shadow: 0 0 10px black;
    color: white;
    margin: 20px 0 10px 0;
}

.navlink {
    display: inline-block;
    color: black;
    font-weight: 500;
    font-size: 0.8em;
    text-decoration: none;
    background-color: white;
    box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.5);
    padding: 5px 15px;
    margin: 5px;
}

#navlink0 {
    display: none;
}

.navlink:hover {
    background-color: yellow;
}

main {
    background-color: white;
    width: calc(70% - 20px);
    margin: 5px auto;
    padding: 10px;
    text-align: center;
    box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.2);
}

main h2 {
    font-size: 2em;
}

main p {
    font-size: 0.9em;
    line-height: 1.4em;
    margin: 20px 50px;
}

.biflex {
    width: 70%;
    margin: 5px auto;
    display: grid;
    grid: auto / calc(50% - 3px) calc(50% - 3px);
    column-gap: 6px;
    row-gap: 5px;
    color: #333;
    text-align: center;
}

.biflex section {
    background-color: white;
    padding: 0 25px 15px 25px;
    box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.2);
}

.biflex section p {
    font-size: 0.85em;
    line-height: 1.25em;
}

.biflex section p.additional {
    font-size: 0.7em;
    color: #444;
    font-style: italic;
}

/* NOT REALLY OVERQUALIFIED - THESE ARE OK */

nav.flexnav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

a.flexnav {
    width: 100px;
    margin: 10px;
    padding: 10px;
    background-color: #F5F5F5;
    display: block;
    color: #222;
    text-decoration: none;
    align-content: flex-end;
}

@keyframes flexnavhover {
    from {
        background-color: #F5F5F5;
        color: #222;
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
    to {
        background-color: #FBFBFB;
        color: #555;
        box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.2);
    }
}

a.flexnav:hover, a.flexnav:active {
    background-color: #FBFBFB;
    color: #555;
    box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.2);
    animation-name: flexnavhover;
    animation-duration: 0.3s;
}

a.flexnav img {
    max-height: 35px;
    max-width: 100%;
    margin: 10px auto;
    border: 1px solid #F5F5F5;
    border-radius: 5px;
}

a.flexnav p {
    margin: 10px auto;
    text-decoration: none;
    font-size: 0.8em;
}

.flexnav-logo-container {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.flexnav-logo-container2 {
    display: flex;
    width: 100%;
    height: calc(100% - 45px);
    align-items: center;
    justify-content: center;
}

footer {
    background-color: white;
    width: 70%;
    margin: 3px auto;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.2);
}

@media screen and (max-width: 1100px) {  /* LARGE TABLETS */
    .navlink {
        font-size: 0.7em;
    }
    main p {
        margin: 20px auto;
    }
}

@media screen and (max-width: 767px) {  /* TABLETS */
    header, footer {
        width: 100%;
    }
    .biflex {
        width: 100%;
    }
    main {
        width: calc(100% - 20px);
    }
    header h1 {
        font-size: 3em;
    }
}

@media screen and (max-width: 479px) {  /* PHONES */
    header h1 {
        font-size: 2em;
    }
    .biflex {
        grid: auto / 100%;
    }
    .navlink {
        display: none;
        width: 70%;
        margin: 7px auto;
    }
    #navlink0 {
        display: block;
    }
}