/* CSS Document */
body {
    font-family: verdana, Arial, Helvetica, sans-serif;
    font-size: 13px;
}

/* ----------------------------------------------Container-------------------------------------*/

#container {
    display: grid;
    grid-template-columns: 5% 1fr 1fr 1fr 5%;
    grid-template-rows: auto;
    grid-template-areas: 
        ". header header header ." 
        ". nav nav nav ." 
        ". sidebar sidebar sidebar ." 
        ". main main main ." 
        ". footer footer footer .";
    min-width: 350px;
    color: #D8D7D3;
    background: url(images/nrwatermarkdarkredbg.png) repeat #353535;
}

.header {
    grid-area: header;
}

.nav {
    grid-area: nav;
}

.main {
    grid-area: main;
}

.sidebar {
    grid-area: sidebar;
}

.footer {
    grid-area: footer;
}

.site-branding {
    display: none;
    grid-area: title;
    position: relative;
    margin: 0 calc(10% + 60px);
    padding: 0 10px;
    font-family: "Times New Roman", Georgia, Times, serif;
    font-style: italic;
    background: #eee;
    max-height: calc(2vw + 70px);
}

    .site-branding h1 {
        font-size: 3.5vw;
    }

    .site-branding p {
        font-size: 2vw;
    }

.site-logo {
    margin-bottom: 0;
    position: absolute;
    right: calc(97% + (1.25 * 1rem));
    top: 4px;
    z-index: 999;
}

    .site-logo .custom-logo-link {
        position: relative;
        z-index: 999;
        margin-bottom: calc(.66 * 1rem);
    }

    .site-logo .custom-logo-link {
        border-radius: 100%;
        box-sizing: content-box;
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
        background-color: #fff;
        display: block;
        width: 10vw;
        height: 10vw;
        overflow: hidden;
        transition: box-shadow 200ms ease-in-out;
    }

        .site-logo .custom-logo-link .custom-logo {
            min-height: inherit;
        }

        .site-logo .custom-logo-link:hover, .site-logo .custom-logo-link:active, .site-logo .custom-logo-link:focus {
            box-shadow: 0 0 0 2px black;
        }

    .site-logo img {
        height: 10vw;
    }


.site-title {
    margin: auto;
    display: inline;
    color: #111;
    text-shadow: 2px 2px 6px #999;
}

    .site-title a {
        color: #111;
    }

        .site-title a:link, .site-title a:visited {
            color: #111;
        }

        .site-title a:hover {
            color: #4a4a4a;
        }

/*.site-description {
    float: left;
    font-size: 20px;
}*/

.site-description {
    display: inline;
    color: #555;
    font-weight: normal;
}

nav {
    color: #070707;
    background: #070707;
}


/* ----------------------------------------------Head-------------------------------------*/

header {
    height: 200px;
    font-size: 20px;
    font-family: "Times New Roman", Georgia, Times, serif;
    font-style: italic;
    color: #747473;
    background: #eee;
}

    header picture {
        display: grid;
    }

    .site-icon {
        justify-self: center;
        align-self: center;
        max-width: 50%;
    }

/* ----------------------------------------------Top Navi-------------------------------------*/

nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #333;
}

    nav ul li {
        float: left;
    }

        nav ul li a {
            display: block;
            color: white;
            text-align: center;
            padding: 14px 16px;
            text-decoration: none;
        }

            /* Change the link color to #111 (black) on hover */
            nav ul li a:hover {
                background-color: #111;
            }

/* ----------------------------------------------Content-------------------------------------*/

#content {
    min-height: 500px;
    padding-top: 20px;
    /*line-height: 1.4em;*/
    color: #000;
    background-color: #fff;
}

    #content h1 {
        position: relative; /* Clears IE6 Background Image Bug */
        padding: 5px 0 5px 25px;
        margin: 8px 0;
        font-size: 36px;
        font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        font-weight: bold;
        color: #000;
        background: none;
    }

    #content h2, #content h3 {
        position: relative; /* Clears IE6 Background Image Bug */
        padding: 5px 0 5px 25px;
        margin: 8px 0;
        font-size: 24px;
        font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        font-weight: normal;
        color: #000;
        background: none;
    }

    #content p {
        position: relative; /* Clears IE6 Background Image Bug */
        width: auto;
        padding: 10px;
        margin: 8px 2vw;
        font-size: 20px;
        font-family: calluna, Garamond, "Times New Roman", serif;
        font-weight: normal;
        color: #000;
        background: none;
    }


.clearfloat { /* this class should be placed on a div or break element and should be the final element before the close of a container that should fully contain a float */
    clear: both;
    height: 0;
    font-size: 1px;
    line-height: 0px;
}

/* ---------------------------------------------Contact-------------------------------------*/

#contact {
    margin-left: auto;
    margin-right: auto;
}

    #contact h1 {
        position: relative; /* Clears IE6 Background Image Bug */
        margin: 8px 0;
        font-size: 24px;
        font-family: "Times New Roman", Georgia, Times, serif;
        font-weight: normal;
        color: #000000;
        background: none;
    }

    #contact p {
        position: relative; /* Clears IE6 Background Image Bug */
        width: auto;
        padding: 5px;
        margin-left: 2em;
        font-size: 20px;
        font-family: "Times New Roman", Georgia, Times, serif;
        font-weight: normal;
        color: #000000;
        background: none;
    }

    #contact address {
        position: relative; /* Clears IE6 Background Image Bug */
        width: auto;
        padding: 5px;
        margin-left: 2em;
        font-size: 20px;
        font-family: "Times New Roman", Georgia, Times, serif;
        font-weight: normal;
        color: #000000;
        background: none;
    }
/* -----------------------------------------------SideBar-------------------------------------*/
aside {
    display: grid;
    align-content: start;
    justify-content: center;
    grid-row-gap: 10px;
    padding: 5px;
    background-color: #eee;
}

    aside span {
        justify-self: center;
    }

/* ----------------------------------------------Footer-------------------------------------*/

footer {
    display: flex;
    align-content: center;
    justify-content: space-between;
    padding: 5px 15px;
    height: 65px;
    background-color: #333;
    color: #fff;
}

footer a {
    color: #fff;    
    text-decoration: none;
}

footer .social {
    margin-top: 13px;
    font-size: 20px;
}

footer .socialftr{
    color: #ccc;
}

footer .socialftr:hover{
    color: #fff;
}

/* ----------------------------------------------Absolute Positioned Extras-------------------------------------*/

#logo {
    position: relative;
    float: none;
    top: -10px;
    margin-left: auto;
    margin-right: auto;
    width: 400px;
    height: 65px;
    background: url(images/nrlogo.png) top left no-repeat;
}

#logonofloat {
    position: relative;
    float: none;
    top: -20px;
    left: -15px;
    width: 250px;
    height: 224px;
    background: url(images/newrevivallogo.png) top left no-repeat;
}

/* ------------------- Media Queries ---------------------- */
@media only screen and (min-width: 600px) {
    #container {
        display: grid;
        grid-template-columns: 10% 1fr 1fr 1fr 1fr 10%;
        grid-template-rows: auto;
        grid-template-areas: 
            ". title title title title ." 
            ". header header header header ." 
            ". nav nav nav nav ." 
            ". main main main sidebar ." 
            ". footer footer footer footer .";
        color: #D8D7D3;
        background: url(images/nrwatermarkdarkredbg.png) repeat #353535;
    }


    header {
        height: 280px;
    }

    header picture {
        display: grid;
    }

    .site-icon {
        justify-self: center;
        align-self: center;
        max-width: 100%;
        max-height: 100%;
    }

    .site-branding {
        display: block;
    }

    nav ul {
        flex-wrap: nowrap;
    }

    .masthead {
        clear: left;
    }
}
