body {
    width: 100%;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(7 1fr);
    background-image: url("../images/TexturesCom_MetalRusted0122_2_seamless_S.jpg");
    background-attachment: fixed;
    background-color: black;
    overflow-x: hidden;
    font-family: sans-serif;
    color: aliceblue;
}
body a:link {
  color: floralwhite;
}
body a:visited {
    color: lightsteelblue;
}

/* Navigation/Site Header styling */
#header_logo_div_1080 {
    display: none;
}
#header_logo_div {
    grid-row: 1 / 2; grid-column: 1 / span 2;
    display: block;
    width: 100%;
    max-height: 50px;
    margin-left: auto;
    background-color: rgba(33, 40, 48, 0.5);
}
#header_logo {
    width: 100%;
    max-height: 50px;
    max-width: 182px;
    display: block;
}
#header_logo_large {
    width: 100%;
    display: block;
}

/* The styles for the operation of the 2-tier navigation menu */
nav {
    grid-row: 1 / 2; grid-column: 3 / span 10;
    z-index: 1;
}
#nav_menu ul {
	list-style: none;
	position: relative;    /* So the first submenu can be positioned within the main menu */
}
#nav_menu ul li {
    float: left;
    width: 16.666667%;
}
#nav_menu ul ul {
	display: none;         /* Don't display submenu until hover of the li element */
	position: absolute;
	top: 100%;             /* Position the submenu at the bottom of the main menu */
    width: 100%;
}
#nav_menu ul ul li {
	float: none;           /* Display the submenus vertically */
}
#nav_menu ul li:hover > ul {
	display: block;        /* Display the submenu on hover of the li element */
}
#nav_menu > ul::after {
	content: "";
	display: block;
	clear: both;
}
/* The styles for the formatting of the 2-tier navigation menu */
#nav_menu ul {
	margin: 0;
	padding: 0;
}
#nav_menu ul li a {
	text-align: center;
	display: block;
	padding: 1em 0;
    text-decoration: none;
	background-color: rgba(33, 40, 48, 0.5);
	color: aliceblue;
    font-weight: bold;
}
#nav_menu ul li a:hover, #nav_menu ul li a:focus {
	background-color: #21282F;
    color: #D8DEE3;
}

/* Styles for Body Sections */
/* Page Header styling */
header {
    grid-row: 2 / 3; grid-column: 1 / span 12;
    height: 200px;
}
header img {
    display: block;
    height: 100%;
    max-width: 200px;
    max-height: 173px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 1em;
}

/* Styles for Main */
main {
    grid-row: 2 / 3; grid-column: 1 / span 12;
    height: 525px;
}
main img{
    display: block;
    height: 100%;
    max-width: 580px;
    max-height: 500px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 1em;
}

/* General section styling */
section {
    margin: 0.5em;
    box-shadow: 0 5px 10px black;
    border: 1px solid grey;
}
#article_section {
    grid-row: 3 / 4; grid-column: 1 / span 8;
    height: auto;

    background-color: black;
    background-image: url("../images/TexturesCom_ConcreteDirty0282_1_seamless.jpg");
    padding: 1em;
}
#content_section_7 {
    grid-row: 3 / 6; grid-column: 9 / span 4;
    position: relative;  
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    background-color: black;
    background-image: url("../images/TexturesCom_Fossils0090.jpg");
    background-size: cover;
    padding: 1em;
}
#content_section_7 img{
    display: block;
    height: auto;
    width: 100%;
    max-height: 300px;
    max-width: 471px;
}

/* Home page extra styling*/
#content_section_1 {
    grid-row: 3 / 4; grid-column: 1 / span 4;
    background-image: url("../images/TexturesCom_ConcreteDirty0282_1_seamless.jpg");
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    background-color: black;
    padding: 1em;
}
#content_section_2 {
    grid-row: 3 / 4; grid-column: 5 / span 4;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    background-color: black;
    background-image: url("../images/TexturesCom_Fossils0090.jpg");
    background-size: cover;
    position: relative;  
    padding: 1em;
}
#content_section_2 img {
    display: block;
    height: auto;
    max-height: 300px;
    width: 100%;
    max-width: 471px;
}
#content_section_3 {
    grid-row: 3/ 4; grid-column: 9 / span 4;
    height: auto;
    background-color: black;
    background-image: url(../images/TexturesCom_Bones0031_1_seamless.jpg);
    padding: 1em;
}
#bone_box_header_div {
    display: block;
    width: 100%;
    height: 20%;
}
#bone_box_header {
    display: block;
    width: 100%;
    max-width: 520px;
    max-height: 75px;
    margin-left: auto;
    margin-right: auto;
}
#news_preview {
    display: block;
    width: 100%;
    height: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
}
#read_more_container {
    display: block;
    width: 100%;
    height: 20%;
}
#read_more {
    display: block;
    background-image: url(../images/read_more_clear.png);
    background-repeat: no-repeat;
    background-size: contain;
    display: block;
    width: 100%;
    max-width: 200px;
    max-height: 56px;
    float: left;
}
#read_more:hover {
    background-image: url(../images/read_more.png);
}
#read_more img {
    display: block;
    width: 100%;
    max-width: 200px;
    opacity: 0;
}

/* Music page extra styling */
.music_section {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    background-color: black;
    padding: 1em;
}
#music_section_1 {
    grid-row: 3 / 4; grid-column: 1 / span 4;
    background-image: url("../images/TexturesCom_ConcreteDirty0282_1_seamless.jpg");
}
#music_section_2 {
    grid-row: 3 / 4; grid-column: 5 / span 4;
    background-image: url("../images/TexturesCom_Fossils0088.jpg");
    background-size: cover;
}
#music_section_3 {
    grid-row: 4 / 5; grid-column: 1 / span 4;
    background-image: url("../images/TexturesCom_WoodPlanksOld0282_2_seamless.jpg");
}
#music_section_4 {
    grid-row: 4 / 5; grid-column: 5 / span 4;
    background-image: url("../images/TexturesCom_BunkerLeaking0122_1_seamless_S.png");
}
#music_section_5 {
    grid-row: 5 / 6; grid-column: 1 / span 4;
    background-image: url("../images/TexturesCom_BunkerLeaking0122_1_seamless_S.png");
}
#music_section_6 {
    grid-row: 5 / 6; grid-column: 5 / span 4;
    background-image: url("../images/TexturesCom_BunkerLeaking0122_1_seamless_S.png");
}
.audioplayer_div {
    display: block;
    height: auto;
    max-height: 300;
    width: 100%;
    max-width: 471px;
}
.audioplayer_div img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 580px;
    max-height: 268px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1em;
}
audio {
    display: block;
    width: 100%;
}

/* News Page extra styling */
#news_article_section {
    grid-row: 3 / 4; grid-column: 1 / span 8;
    height: auto;
    background-color: black;
    background-image: url("../images/TexturesCom_Bones0031_1_seamless.jpg");
    padding: 1em;
}

/* Album Page extra styling */
#album_article {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}
#album_description_header_div {
    display: block;
    width: 100%;
}
#album_banner {
    display: block;
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* About Page extra styling */
#about_description_header_div {
    display: block;
    width: 100%;
}
#about_banner {
    display: block;
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Proposal Page extra styling */
#proposal_description_header_div {
    display: block;
    width: 100%;
}
#proposal_banner {
    display: block;
    width: 100%;
    max-width: 150px;
    margin-left: auto;
    margin-right: auto;
}

/* Wireframes Page extra styling */
#wireframe_description_header_div {
    display: block;
    width: 100%;
}
#wireframe_banner {
    display: block;
    width: 100%;
    max-width: 188px;
    margin-left: auto;
    margin-right: auto;
}
#wireframes_container img {
    display: block;
    margin: 1em auto;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 5px 10px black;
    border: 1px solid grey;
}
#wireframes_container p {
    text-align: center;
    font-weight: bold;
}

/* Sitemap Page extra styling */
#sitemap_description_header_div {
    display: block;
    width: 100%;
}
#sitemap_banner {
    display: block;
    width: 100%;
    max-width: 133px;
    margin-left: auto;
    margin-right: auto;
}
#sitemap_container img {
    display: block;
    margin: 1em auto;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 5px 10px black;
    border: 1px solid grey;
}

/* Text Editor Page extra styling */
#text_editor_description_header_div {
    display: block;
    width: 100%;
}
#text_editor_banner {
    display: block;
    width: 100%;
    max-width: 194px;
    margin-left: auto;
    margin-right: auto;
}
#text_editor_container img {
    display: block;
    margin: 1em auto;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 5px 10px black;
    border: 1px solid grey;
}
#text_editor_container p {
    text-align: center;
    font-weight: bold;
}

/* Browser Page extra styling */
#browser_description_header_div {
    display: block;
    width: 100%;
}
#browser_banner {
    display: block;
    width: 100%;
    max-width: 144px;
    margin-left: auto;
    margin-right: auto;
}
#browser_container img {
    display: block;
    margin: 1em auto;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 5px 10px black;
    border: 1px solid grey;
}
#browser_container p {
    text-align: center;
    font-weight: bold;
}

/* FTP Page extra styling */
#ftp_description_header_div {
    display: block;
    width: 100%;
}
#ftp_banner {
    display: block;
    width: 100%;
    max-width: 74px;
    margin-left: auto;
    margin-right: auto;
}
#ftp_container img {
    display: block;
    margin: 1em auto;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 5px 10px black;
    border: 1px solid grey;
}
#ftp_container p {
    text-align: center;
    font-weight: bold;
}

/* Validator Page extra styling */
#validator_description_header_div {
    display: block;
    width: 100%;
}
#validator_banner {
    display: block;
    width: 100%;
    max-width: 155px;
    margin-left: auto;
    margin-right: auto;
}
#validator_container img {
    display: block;
    margin: 1em auto;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 5px 10px black;
    border: 1px solid grey;
}
#validator_container p {
    text-align: center;
    font-weight: bold;
}

/* Contact Page extra styling */
#contact_card {
    display: flex;
    background-image: url("../images/TexturesCom_Fossils0090.jpg");
    background-size: cover;
    margin-top: 1em;
    box-shadow: inset 0 3px 5px black;
    border: none;
 }
#profile_pic_container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50%;
    height: auto;
    margin: 1em;
}
#profile_pic {
    height: auto;
    width: 100%;
    max-width: 396px;
    max-height: 396px;
    box-shadow: 0 2px 5px black;
    border: 1px solid grey;
}
#contact_info {
    background-image: url(../images/TexturesCom_ConcreteDirty0282_1_seamless.jpg);
    width: 50%;
    height: auto;
    margin: 1em;
    box-shadow: 0 2px 5px black;
    border: 1px solid grey;
}
#contact_info div {
    background-repeat: no-repeat;
    background-size: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: .5em;
    max-width: 396px;
}
#contact_list {
    display: block;
    list-style-type: none;
    margin: 0;
    padding: 0;
    }
#contact_list li img {
    display: block;
    width: 100%;
    max-width: 396px;
    opacity: 0;
}
/* Contact Links Rollover styling - this is a little twitchy without JavaScript... */
#soundcloud_link_container {
    background-image: url("../images/contact_links/soundcloud_clear.png");
}
#soundcloud_link_container:hover {
    background-image: url("../images/contact_links/soundcloud.png");
}
#email_link_container {
    background-image: url("../images/contact_links/email_clear.png");
}
#email_link_container:hover {
    background-image: url("../images/contact_links/email.png");
}
#blog_link_container {
    background-image: url("../images/contact_links/wordpress_clear.png");
}
#blog_link_container:hover {
    background-image: url("../images/contact_links/wordpress.png");
}
#twitter_link_container {
    background-image: url("../images/contact_links/twitter_clear.png");
}
#twitter_link_container:hover {
    background-image: url("../images/contact_links/twitter.png");
}
#facebook_link_container {
    background-image: url("../images/contact_links/facebook_clear.png");
}
#facebook_link_container:hover {
    background-image: url("../images/contact_links/facebook.png");
}
#linkedin_link_container {
    background-image: url("../images/contact_links/linkedin_clear.png");
}
#linkedin_link_container:hover {
    background-image: url("../images/contact_links/linkedin.png");
}

/* Footer styles */
footer {
    grid-row: 6 / 7; grid-column: 1 / span 12;
    display: flex;
    height: auto;
    background-color: #21282f;
    background-image: url("../images/TexturesCom_ConcreteLeaking0165.jpg");
    background-position: top;
    border-top: 1px solid grey;
    border-bottom: 1px solid grey;
    padding: 1em;
    margin-top: .5em;
    box-shadow: 0 5px 10px black;
}
footer div {
    position: relative;
    width: 100%;
    height: auto;
}
footer img {
    width: 100%;
    max-height: 100px;
    max-width: 100px;
    float: left;
}
footer p {
    position: absolute;
    right: 0;
    bottom: 0;
    margin: 0;
    padding-left: 0;
}

/* Tablet portrait layout (768 to 1080px) */
@media only screen and (max-width: 1080px) {
    #header_logo_div {
        display: none;
    }
    #header_logo_div_1080 {
        grid-row: 1 / 2; grid-column: 1 / span 12;
        width: 100%;
        display: block;
        margin:auto;
        background-color: #8798AB;
    }
    #header_logo {
        width: 100%;
        max-height: 184px;
        max-width: 1080px;
        display: block;
        margin: auto;
    }
    nav {
        grid-row: 2 / 3; grid-column: 1 / span 12;
    }
    header {
        grid-row: 3 / 4; grid-column: 1 / span 12;
        height: auto;
    }
    header img {
        width: 100%;
        height: auto;
        max-width: 200px;
    }
    #article_section {
        grid-row: 4 / 5; grid-column: 1 / span 12;
    }
    #content_section_7 {
        grid-row: 10/11; grid-column: 1 / span 12;
    }
    
    /* Home Page extra styling */
    main {
        grid-row: 3 / 4; grid-column: 1 / span 12;
        height: auto;
    }
    main img{
        width: 100%;
        height: auto;
        max-width: 580px;
    }
    #content_section_1 {
        grid-row: 4 / 5; grid-column: 1 / span 12;
    }
    #content_section_2 {
        grid-row: 5 / 6; grid-column: 1 / span 12;
    }
    #content_section_2 img{
        width: auto;
        max-height: 300px;
        padding: 1em 0 ;
    }
    #content_section_3 {
        grid-row: 6 / 7; grid-column: 1 / span 12;
    }
    
    /* Music page extra styling */
    #music_section_1 {
        grid-row: 4 / 5; grid-column: 1 / span 12;
    }
    .audioplayer_div{
        display: block;
        height: auto;
        max-height: 300;
        width: 100%;
        max-width: 471px;
        margin: auto;
        padding: 1em 0;
    }   
    .audioplayer_div img {
        display: block;
        width: 100%;
        height: auto;
        max-width: 580px;
        max-height: 268px;
        margin: auto;
        margin-bottom: 1em;
    }
    #music_section_2 {
        grid-row: 5 / 6; grid-column: 1 / span 12;
    }
    #music_section_3 {
        grid-row: 6 / 7; grid-column: 1 / span 12;
    }
    #music_section_4 {
        grid-row: 7 / 8; grid-column: 1 / span 12;
    }
    #music_section_5 {
        grid-row: 8/9; grid-column: 1 / span 12;
    }
    #music_section_6 {
        grid-row: 9/10; grid-column: 1 / span 12;
    }

    /* News page extra styling */
    #news_article_section {
        grid-row: 4 / 5; grid-column: 1 / span 12;
    }
    
    footer {
        grid-row: 11/12; grid-column: 1 / span 12;
    }
}

/* Mobile landscape layout (480 to 767px) */
@media only screen and (max-width: 479px) {
    /* Home page extra styling */
    #content_section_1 {
        grid-row: 4 / 5; grid-column: 1 / span 12;
    }
    #content_section_2 {
        grid-row: 5 / 6; grid-column: 1 / span 12;
    }
    #content_section_2 img {
        width: 100%;
        max-width: 300px;
        height: auto;
        padding: 1em 0 ;
    }
    #content_section_3 {
        grid-row: 6 / 7; grid-column: 1 / span 12;
    }
    
    /* Contact page extra styling */
    #contact_card {
        display: block;
        background: none;
        box-shadow: none;
        margin-left: 0;
        margin-right: 0;
    }
    #profile_pic_container {
        width: 100%;
        height: auto;
        margin: 0 0 .5em 0;
    }
    #contact_info {
    width: 100%;
    height: auto;
    margin: 0;
}
}

/* Mobile portrait layout (479px or less) */
@media only screen and (max-width: 479px) {
    #nav_menu ul li {
        float: left;
        width: 100%;
    }
}