/*General selectors*/
body{
    background-color: #161a1d;
    color: #d3d3d3;
    margin: 0px;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

header{
    grid-row:3 / 4;
    grid-column: 1 / -1;
    text-align: center;
}

main{
    grid-row: 4 / 5;
    grid-column: 2 / -2;
}

footer{
    font-style: italic;
    text-align: center;
    grid-row: 7 / 8;
    grid-column: 2 / -2;
}

nav{
    background-color: #42424270;
    font-weight: bold;
    position:sticky;
    top:0;
    height: auto;
    grid-row: 2 / 3;
    grid-column: 2 / -2;
}

img{
    image-resolution: from-image;
}

caption{
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-style:italic;
}

h1{
    color:#ba181b;
    display: inline;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

h2{
    color: #ba181b;
    font-size: 35px;
    font-family: Georgia, 'Times New Roman', Times, serif;
    display:inline;
}

a{
    font-weight:bolder;
    text-decoration:underline;
    color:#d3d3d3;
}

/*Descendant selectors*/

nav ul{
    list-style-type: none;
    display:flex;
    flex-flow:row nowrap;
    margin: 0px;
    padding: 0px;
}

nav ul li{
    width:100%;
    border-top: #0b090a70 solid 5px;
    border-bottom: #0b090a70 solid 5px;
    border-left: #0b090a70 solid 5px;
    
}

nav a{
    color: #d3d3d3;
    text-decoration: none;
    text-align: center;
    display: block;
    padding: 0.75rem 0rem;
}

.button a{
    display:block;
    text-decoration: none;
    font-weight: bold;
    background-color: #a4161a;
    color: #d3d3d3;
    height:50px;
    width:200px;
    margin-top: 30px;
    text-align: center;
    text-decoration: none;
    padding-top: 35px;
}

div.buttons ul{
    list-style: none;
}

/*Class selectors*/
.textbox{
    float: left;
    width: 45%;
    grid-row: 5 / 6;
    grid-column: 1 / 4;
}

.textboxright{
    float: right;
    width:50%;
    grid-row: 5 / 6;
    grid-column: 4 / 8;
}

.buttons{
    float:right;
    grid-row: 5 / 6;
    grid-column: 4 / 8;
}

/*PsuedoClass Selectors*/
nav a:hover{
    background-color: #e5383b;
}

.button a:hover{
    background-color: #f5f3f4;
    color: #0b090a;
}

h1:last-of-type{
    display:block;
}

h2:last-of-type{
    display:block;
}

nav ul li:last-of-type{
    border-right: #0b090a70 solid 5px;
}

/*Id Selectors*/
#wrapper{
    display:grid;
    grid-auto-rows: auto;
    grid-template-columns: minmax(0px, 1fr) repeat(6, minmax(0, 175px)) minmax(0px, 1fr);
}

#banner{
    background-color: #660708;
    height: 107px;
    grid-row: 1 / 2;
    grid-column: 1 / -1;
    background-image:url(logosmol.PNG);
    background-repeat: no-repeat;
    background-position: left;
}

#mask{
    background-color: #42424270;
    position: sticky;
    top:0;
    height:50px;
    grid-row: 2 / 3;
    grid-column: 1 / -1;
}

#landingimage{
    height:500px;
    background-image: url(mblandingpic.jpg);
    width:inherit;
    background-position: center;
    background-repeat: no-repeat;
    grid-row: 3 / 4;
    grid-column: 2 / -2;
}

.textstart{
    font-family: 'Yellowtail', cursive;
}

.indent{
    margin-left: 15px;
}

#landingmask{
    background-color: #161a1d90;
    height:500px;
    width:100%;
    grid-row: 3 / 4;
    grid-column: 2 / -2;
    text-align: center;
    font-size: 55px;
}

.social a{
    background-color: white;
    width:100px;
    height:25px;
    float: left;
    margin-bottom: 15px;
}

.socialImage{
    margin-bottom: 10px;
}

#mobileheader{
    display:none;
    color: #d3d3d3;
    font-size:30px;
}

@media only screen and (max-width:1100px){
    h1{
        font-size: 90px;
    }
    #wrapper{
        grid-template-columns: minmax(0px, 1fr) repeat(6, minmax(0, 168px)) minmax(0px, 1fr);
    }
}

@media only screen and (max-width:992px){
    nav{
        position:relative;
    }

    nav ul{
        flex-flow:column nowrap;
    }

    h1{
        display:none;
    }

    img{
        display:block;
        width: 300px;
        height: 300px;
    }

    #mobileheader{
        display:inline;
        float:right;
    }

    #landingimage{
        width:100%;
        height:300px;
    }

    .buttons ul{
        padding-left:0px;
    }

    nav ul li{
        width:100%;
        border:none;
        
    }

    #landingmask{
        display:none;
    }

    #mask{
        display:none;
    }

    #wrapper{
        grid-template-columns: minmax(0px, 1fr) repeat(6, minmax(0, 128px)) minmax(0px, 1fr);
    }

    .button a{
        display:block;
        height:50px;
        width:100%;
    }

    .buttons{
        grid-column: 1 / -1;
        grid-row: 6 / 7;
        width:100%;
        float:none;
    }

    .textbox{
        float: none;
        grid-row: 5 / 6;
        grid-column: 2 / -2;
        width:100%;
    }
    
    .textboxright{
        float: none;
        grid-row: 5 / 6;
        grid-column: 2 / -2;
        width:100%;
    }
    
}

@media only screen and (max-width:768px)
{
    #mobileheader{
        font-size:20px;
        padding-right:30px;
        padding-top:25px;
    }

    main{
        text-align: center;
    }

    #landingimage{
        display:none;
    }

    #wrapper{
        grid-template-columns: minmax(0px, 1fr) repeat(6, minmax(0, 128px)) minmax(0px, 1fr);
    }

    img{
        padding-left: 58px;
    }

    .socialImage{
        width:100%;
        height:50px;
        margin-bottom:50px;
        padding:0px;
    }

    .social{
        width:100%;
        height:100px;
        padding-left:0px;
        margin-bottom:30px;
    }
    
}