/* Generic Styles */

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 900;
    color: #01164b;
}

h1 {
    font-size: 2.25em;
    margin: .75em 0 0;
}

h2 {
    font-size: 1.75em;
    margin: .75em 0 0;
}

.bluebox {border:#06F 3px solid; font-weight:bold; text-align:center; padding:5px; margin-bottom:10px; background-color:#9CF; border-radius:10px;}

.board-grid{
    display:-ms-grid;
    display:grid;
    -ms-grid-columns:1fr 1fr;
    grid-template-columns:1fr 1fr;
    background-color:#142e51;
    color:#fff;
    padding:1% 4%;
    font-weight:bold;
    font-size:18px;
}

/* Flex Grid */
@media(min-width: 850px) {
    .row {
        display: flex;
    }
}

@media(max-width: 850px) {
    .row.small {
        display: flex;
    }
}

.row {
    margin: 1em auto 0;
}

.row.small {
    width: 15em;
}

.row.middle {
    align-items: center;
}

.row.sb {
    justify-content: space-between;
}

.column {
    display: block;
    flex-basis: 0;
    flex-grow: 1;
    flex-shrink: 1;
    padding: 1em;
}

.column img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* Header */
.header-left, .header-right {
    display: block;
}

.header-left img {
    display: block;
    max-width: 40em;
    height: auto;
    margin: 0 auto;
}

/* Navigation */
nav {
    padding: 0 1em;
    margin: 1em auto;
}

nav ul {
    display: flex;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    list-style-type: none;
}

nav ul li {
    line-height: 1;
}

nav ul li a {
    display: block;
    padding: .5em .75em;
    margin-right: .25em;
    font-weight: bold;
    text-decoration: none;
    color: #01164b;
    transition: background 700ms ease-in-out;
}

nav ul li a.active, nav ul li a:hover {
    background: #ebebeb;
}

/* Hero Image */
figure {
    position: relative;
    margin: 0;
}

figure img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

figure figcaption {
    font-weight: bold;
    position: absolute;
    left: 2em;
    bottom: 2em;
    width: 17em;
    padding: .75em;
    color: #01164b;
    background-color: rgba(255, 255, 255, 0.8);
}

/* Content Section */
.container {
    width: 90%;
    margin: 0 auto;
}

article p {
    font-size: 1.125em;
}

/* Footer */
footer {
    padding: 1em 5%;
    margin: 0 auto;
    background: #01164b;
    color: #fff;
	border-top:81px solid transparent;
	border-image:url(images/border.png) 100 round;
}

footer a {
    color: #fff;
    text-decoration: none;
}

.footer-left, .footer-right {
    display: block;
    text-align: center;
}


/* Media Queries */
@media(min-width: 970px) {
    header {
        display: flex;
        align-items: center;
        justify-content: space-around;
    }

    .header-left, .header-right, .footer-left, .footer-right {
        flex-basis: 45%;
    }

    .footer-left {
        text-align: left;
    }

    .footer-right {
        text-align: right;
    }

   nav ul {
       justify-content: flex-end;
   }

   
    .row.end {
        margin: 1em 0 0 auto;
    }
}

#toggleNavigation {
    display: none;
}

#toggleNavigation li a {
    background: #01164b;
    color: #fff;
    transition: all 700ms ease-in-out;
}

#toggleNavigation li a:hover {
    background: #ebebeb;
    color: #01164b;
}

@media(max-width: 750px) {
    nav ul {
        width: 100%;
    }   

    #toggleNavigation{
        display: block;
    }

    nav ul:last-child {
        display: block;
        height: 0;
        overflow: hidden;
        transition: height 700ms ease-in-out;
    }

    nav ul.active {
        height: calc(8*3.0625em);
    }

    nav ul li a {
        border-top: 1px solid #01164b;
        padding: 1em;
    }
    
    .board-grid{
        -ms-grid-columns:1fr;
        grid-template-columns:1fr;
    }
}
