﻿html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    min-width: 340px;
    scroll-behavior: smooth;
    background-image: url("../images/wavy-bg.jpg");
    background-repeat: repeat;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 100%;
}

main {
    flex-grow: 1;
    padding: 40px 0;
}

small, h1, h2, h3, h4, h5, h6 {
    margin: 0;
}

h3 {
    font-weight: 200;
}

small, a, p, h1, h2, h3, h4, h5, h6 {
    font-family: 'Open Sans', sans-serif;
}

    a:hover {
        cursor: pointer;
    }

.dos-seal {
    width: 120px;
    height: 120px;
    background-image: url("../images/dos-seal.png");
    background-size: cover;
    background-repeat: no-repeat;
    transition: 0.6s all ease;
}

.stars-above:before {
    display: block;
    position: relative;
    top: 0;
    left: 0;
    max-width: 53px;
    font-size: 12px;
    line-height: 1;
    color: #c1a783;
    content: "\2605\2605\2605";
}

.single-star:before {
    color: #c1a783;
    content: "\2605";
    display: block;
    font-size: 12px;
    left: 0;
    line-height: 1;
    max-width: 53px;
    position: relative;
    top: 0;
}

.main-title-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-content: center;
    font-size: 40px;
    font-weight: 700;
    font-family: 'Open Sans', sans-serif;
    margin-bottom: 10px;
    color: #003875;
}


/**************************
    HEADER 
**************************/

header {
    height: 60px;
    background: #0a314d;
    padding: 4px 0;
    z-index: 9999;
}

nav {
    display: flex;
    background: #0a314d !important;
    border-radius: 8px;
}

    nav ul {
        font-family: 'Open Sans', sans-serif;
        font-size: 1.0rem;
        text-transform: uppercase;
        text-decoration: none;
        color: white;
        cursor: pointer;
    }

.nav-container {
    width: 70%;
    margin: 0 auto;
}

    .nav-container a:first-child {
        float: left;
    }

.navbar-toggler-container {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}


/**************************
    FOOTER 
**************************/

footer {
    background-image: url("../images/wavy-navy.jpg");
    background-repeat: repeat !important;
    width: 100% !important;
    color: white !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 32px 0 !important;
}

.footer-outer-container {
    display: flex !important;
    flex-direction: column !important;
    width: auto !important;
}

    .footer-outer-container a {
        color: lightgray !important;
        text-decoration: none !important;
    }

.footer-inner-top-container {
    padding: 0px !important;
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
}

    .footer-inner-top-container a {
        text-decoration: none !important;
        color: white !important;
    }

.footer-links {
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
}

    .footer-links a {
        opacity: 0.7;
    }

        .footer-links a:hover {
            opacity: 1.0;
        }

    .footer-links *:not(:last-child) {
        margin-right: 32px;
    }


/**************************
    MEDIA QUERIES 
**************************/

/* Header queries */

@media(max-width: 1200px) {
    .nav-container {
        width: 95%;
    }
}

@media(max-width: 640px) {

    header {
        height: auto;
    }

    .dos-seal {
        height: 60px;
        width: 60px;
        margin-left: 8px;
    }
}

@media(max-width: 576px) {
    .nav-container {
        width: 98%;
    }
}

/* Main Queries */

@media(max-width: 640px) {
    main {
        padding: 16px 0;
    }
}

/* Footer queries */

@media(max-width: 640px) {

    .footer-outer-container {
        width: auto;
    }

    .footer-inner-top-container {
        flex-direction: column;
    }

    .footer-inner-top-container div {
        display: flex;
        margin: 0.67em 0; /* 0.67em is default margin of an h1 tag */
    }

    .footer-links {
        flex-direction: column;
    }

        .footer-links *:not(:last-child) {
            margin: 0; /*resets margins so children center in div correctly*/
            margin-bottom: 16px;
        }
}
